SAP CBGL_LB73_MATDOC_DATA_GET Function Module for NOTRANSL: EHS: Logistikdaten Materialbeleg mit Materialvorschlag
CBGL_LB73_MATDOC_DATA_GET is a standard cbgl lb73 matdoc data get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: EHS: Logistikdaten Materialbeleg mit Materialvorschlag processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for cbgl lb73 matdoc data get FM, simply by entering the name CBGL_LB73_MATDOC_DATA_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: CBGL_LB73
Program Name: SAPLCBGL_LB73
Main Program: SAPLCBGL_LB73
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CBGL_LB73_MATDOC_DATA_GET pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'CBGL_LB73_MATDOC_DATA_GET'"NOTRANSL: EHS: Logistikdaten Materialbeleg mit Materialvorschlag.
EXPORTING
I_RFC_DESTINATION = "Logical Destination (Specified When Function Is Called)
I_MBLNR = "Number of Material Document
I_MJAHR = "Material Document Year
IMPORTING
E_MATNR = "Material Number
E_MAKTX = "Material Description
E_PACKING_UOM = "Packaging Unit of Measure
E_LABEL_COUNT = "Number of Labels
E_BATCH = "Batch Number
E_NOITEM = "Item in Material Document
TABLES
E_MATERIAL_TAB = "EHS: Structure for Material Item
E_PACK_HIERARCHY_TAB = "EHS: Packaging Hierarchy
E_SHIP_MOD_TAB = "EHS: Structure for Modes of Transport
E_COUNTRY_TAB = "EHS: Structure for Countries
E_PARAM_TAB = "EHS: Parameter Values for Report Shipping
EXCEPTIONS
RFC_ERROR = 1 MATDOC_NOT_FOUND = 2 HIERARCHY_ERROR = 3 DETERMINATE_OUTERMOST_ERROR = 4 OVERFLOW = 5 WRONG_PUOM = 6 NO_LABELING_DATA = 7
IMPORTING Parameters details for CBGL_LB73_MATDOC_DATA_GET
I_RFC_DESTINATION - Logical Destination (Specified When Function Is Called)
Data type: RFCDESTOptional: No
Call by Reference: No ( called with pass by value option)
I_MBLNR - Number of Material Document
Data type: MBLNROptional: No
Call by Reference: No ( called with pass by value option)
I_MJAHR - Material Document Year
Data type: MJAHROptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CBGL_LB73_MATDOC_DATA_GET
E_MATNR - Material Number
Data type: MATNROptional: No
Call by Reference: No ( called with pass by value option)
E_MAKTX - Material Description
Data type: MAKTXOptional: No
Call by Reference: No ( called with pass by value option)
E_PACKING_UOM - Packaging Unit of Measure
Data type: CBGLE_PUOMOptional: No
Call by Reference: No ( called with pass by value option)
E_LABEL_COUNT - Number of Labels
Data type: CBGLE_NUMOptional: No
Call by Reference: No ( called with pass by value option)
E_BATCH - Batch Number
Data type: CHARG_DOptional: No
Call by Reference: No ( called with pass by value option)
E_NOITEM - Item in Material Document
Data type: MBLPOOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CBGL_LB73_MATDOC_DATA_GET
E_MATERIAL_TAB - EHS: Structure for Material Item
Data type: CCGLS_MATPOSOptional: No
Call by Reference: Yes
E_PACK_HIERARCHY_TAB - EHS: Packaging Hierarchy
Data type: CCGLS_PACK_HIERARCHYOptional: No
Call by Reference: Yes
E_SHIP_MOD_TAB - EHS: Structure for Modes of Transport
Data type: CCGLS_SHIPPING_MODESOptional: No
Call by Reference: Yes
E_COUNTRY_TAB - EHS: Structure for Countries
Data type: CCGLS_COUNTRY_TABOptional: No
Call by Reference: Yes
E_PARAM_TAB - EHS: Parameter Values for Report Shipping
Data type: CVDDPOptional: No
Call by Reference: Yes
EXCEPTIONS details
RFC_ERROR - RFC Error
Data type:Optional: No
Call by Reference: Yes
MATDOC_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
HIERARCHY_ERROR - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
DETERMINATE_OUTERMOST_ERROR - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
OVERFLOW - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
WRONG_PUOM - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
NO_LABELING_DATA - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CBGL_LB73_MATDOC_DATA_GET Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_e_matnr | TYPE MATNR, " | |||
| lv_rfc_error | TYPE MATNR, " | |||
| lt_e_material_tab | TYPE STANDARD TABLE OF CCGLS_MATPOS, " | |||
| lv_i_rfc_destination | TYPE RFCDEST, " | |||
| lv_e_maktx | TYPE MAKTX, " | |||
| lv_i_mblnr | TYPE MBLNR, " | |||
| lv_matdoc_not_found | TYPE MBLNR, " | |||
| lt_e_pack_hierarchy_tab | TYPE STANDARD TABLE OF CCGLS_PACK_HIERARCHY, " | |||
| lv_i_mjahr | TYPE MJAHR, " | |||
| lv_e_packing_uom | TYPE CBGLE_PUOM, " | |||
| lt_e_ship_mod_tab | TYPE STANDARD TABLE OF CCGLS_SHIPPING_MODES, " | |||
| lv_hierarchy_error | TYPE CCGLS_SHIPPING_MODES, " | |||
| lt_e_country_tab | TYPE STANDARD TABLE OF CCGLS_COUNTRY_TAB, " | |||
| lv_e_label_count | TYPE CBGLE_NUM, " | |||
| lv_determinate_outermost_error | TYPE CBGLE_NUM, " | |||
| lv_e_batch | TYPE CHARG_D, " | |||
| lv_overflow | TYPE CHARG_D, " | |||
| lt_e_param_tab | TYPE STANDARD TABLE OF CVDDP, " | |||
| lv_e_noitem | TYPE MBLPO, " | |||
| lv_wrong_puom | TYPE MBLPO, " | |||
| lv_no_labeling_data | TYPE MBLPO. " |
|   CALL FUNCTION 'CBGL_LB73_MATDOC_DATA_GET' "NOTRANSL: EHS: Logistikdaten Materialbeleg mit Materialvorschlag |
| EXPORTING | ||
| I_RFC_DESTINATION | = lv_i_rfc_destination | |
| I_MBLNR | = lv_i_mblnr | |
| I_MJAHR | = lv_i_mjahr | |
| IMPORTING | ||
| E_MATNR | = lv_e_matnr | |
| E_MAKTX | = lv_e_maktx | |
| E_PACKING_UOM | = lv_e_packing_uom | |
| E_LABEL_COUNT | = lv_e_label_count | |
| E_BATCH | = lv_e_batch | |
| E_NOITEM | = lv_e_noitem | |
| TABLES | ||
| E_MATERIAL_TAB | = lt_e_material_tab | |
| E_PACK_HIERARCHY_TAB | = lt_e_pack_hierarchy_tab | |
| E_SHIP_MOD_TAB | = lt_e_ship_mod_tab | |
| E_COUNTRY_TAB | = lt_e_country_tab | |
| E_PARAM_TAB | = lt_e_param_tab | |
| EXCEPTIONS | ||
| RFC_ERROR = 1 | ||
| MATDOC_NOT_FOUND = 2 | ||
| HIERARCHY_ERROR = 3 | ||
| DETERMINATE_OUTERMOST_ERROR = 4 | ||
| OVERFLOW = 5 | ||
| WRONG_PUOM = 6 | ||
| NO_LABELING_DATA = 7 | ||
| . " CBGL_LB73_MATDOC_DATA_GET | ||
ABAP code using 7.40 inline data declarations to call FM CBGL_LB73_MATDOC_DATA_GET
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.Search for further information about these or an SAP related objects