SAP Function VB_CP_BUF_LAYOUT_READ - Batch Record: Read Layout Profile

Parameter Reference Type Length Default Optional Text
I_MATNR MCHP-MATNR C 18
I_WERKS MCHP-WERKS C 4

Parameter Reference Type Length Text
E_FLG_COMPLETE BOOLE-BOOLE C 1
E_FLG_STANDARD_LAYOUT BOOLE-BOOLE C 1
E_LAYOUT_PROF REBR1 u 20

Parameter Reference Length Optional Text
E_LAYOUT_TDOC REBR2 147 X

Functionality
This function module is used to read the document profile and the printparameters (print program, print for, routine and SAPScript form) foreach document type. It provides information on the range of documents(which documents are to be included in the batch record, and whichprint programs and forms are to be used to create the documents).
If the entry is made the standard in form routinesget_standard_layout_header and get_standard_layout_tdocare read.
Standard document types:
PPPI_EBR_ORDER: Process order
PPPI_EBR_MATLI: Material list for process order
PPPI_EBR_SHEET: PI sheet
PPPI_EBR_MESSA: Process messages
PPPI_EBR_LOT: Inspection lot (check report)
PPPI_EBR_CONTENT: List of contents
PPPI_EBR_VERSION: Batch report, version
PPPI_EBR_USER: User data
Parameters:
I_MATNR: Material number
I_WERKS: Plant
E_LAYOUT_PROF: Document profile (entry in overall profile for batchrecord)
E_LAYOUT_TDOC: Output information for the individual documents(document type)

Notes
For further information, see transactions COCU1 and COCU3.