Fonction SAP BAPI_ADV_MED_GET_LAYOBJ_DOCS - Read Documents for a Layout Area or a Layout Area Item

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
AREA BAPILAYA-AREA N 10 Layout Area
CARRIER_TYPE BAPILAYHLP-DACARTYP C 2 Data Carrier Type for Determining File Path
CATALOG BAPIADMID-PRODCAT C 10 Product Catalog
ITEM BAPILAYIT-ITEM N 10 SPACE X Layout Area Item
VARIANT BAPIADMVID-VARIANT C 3 Variant

Paramètre Reférence Type Long. Description
RETURN BAPIRETURN u 452 Return Value

Paramètre Reférence Long. Facultatif Description
DOCUMENTS BAPILAYD 332 Documents

FUNCTIONALITY&
This method returns documents assigned to a layout area or layout areaitem in an advertising medium.

Notes
The object for which the documents are to be determined is determinedby parameters AREA (layout area) and ITEM (item). If ITEM is initial,the documents are requested for a layout area, otherwise for a layoutarea item.
Messages are returned in parameter RETURN. The return values and theirmeaning can be found in the parameter documentation.

Description
Return values for errors

Value range
TYPE = "E" CODE = "W+402" Product catalog does not exist
TYPE = "E" CODE = "W+403" Variant does not exist
TYPE = "E" CODE = "W+410" Data carrier type does not exist
TYPE = "E" CODE = "W+401" Unknown error
TYPE = "E" CODE = "W+544" No authorization to read catalog
TYPE = "E" CODE = "W+254" No authorization to read layout area

Description
Key uniquely identifying the layout area.

Description
In a document, reference can be made to one or two files. The files aredefined in a document info record withthe values data carrier and original. For thesystem to determine the access path to the files, the mountpoint/logical directory (see Customizing) of the datacarrier is linked with the value entered for original. The mountpoint/logical directory depends on the datacarrier type of the system from which access is to be made. Theparamter CARRIERTYPE defines the data carrier type.

Description
For further information please see the data elementdocumentation.

Description
For further information please see the data elementdocumentation.

Description
For further information please see the

data element documentation.
Value range


Default

Description
Documents are returned in table DOCUMENTS. DOCUMENTS contains thefollowing fields:

  • DTYPE: Document type

  • DNUMR: Document number

  • DVERS: Document version

  • DPART: Part document

  • DSTAT: Status of document

  • DAPPL: Workstation application file 1

  • DPATH: File path for file 1

  • RCODE: Return code for file 1

  • DAPPL1: Workstation application file 2

  • DPATH1: File path for file 2

  • RCODE1: Return code for file 2

  • The fields DPATH and DPATH1 contain the complete path for the fileconcerned. This path is determined as follows: If thedocument info record does not containa data carrier for the file concerned, the contents of the "Original"field in the document info record is copied. If the info recordcontains a file carrier, the path is made up from the mountpoint/logical directoy and the value entered under original. The datacarrier mount point/logical directory determined depends on thedata carrier type passed on inCARRIER_TYPE.
    The fields RCODE and RCODE1 contain return values for errors that canoccur during file path determination. The following return valuescurrently exist:
    • 0 No error

    • 1 No mount point found for the relevant data carrier and data carrier
    • type passed on in CARRIER_TYPE.