SAP CBGL_LB71_BUFFER_READ_ORG Function Module for EHS: Obsolete
CBGL_LB71_BUFFER_READ_ORG is a standard cbgl lb71 buffer read org SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for EHS: Obsolete 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 lb71 buffer read org FM, simply by entering the name CBGL_LB71_BUFFER_READ_ORG into the relevant SAP transaction such as SE37 or SE38.
Function Group: CBGL_LB71
Program Name: SAPLCBGL_LB71
Main Program: SAPLCBGL_LB71
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CBGL_LB71_BUFFER_READ_ORG 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_LB71_BUFFER_READ_ORG'"EHS: Obsolete.
EXPORTING
I_RFC_DESTINATION = "Logical Destination (Specified when Calling Function)
I_VBELN = "Delivery
I_POSNR = "Delivery Item
IMPORTING
E_HEADER = "SD Document: Delivery Header Data
E_POSITION = "SD Document: Delivery: Item Data
TABLES
* E_POSITION_TAB = "
EXCEPTIONS
RFC_ERROR = 1 DELIVERY_NOT_FOUND = 2 WRONG_POSNR = 3
IMPORTING Parameters details for CBGL_LB71_BUFFER_READ_ORG
I_RFC_DESTINATION - Logical Destination (Specified when Calling Function)
Data type: RFCDESTOptional: No
Call by Reference: Yes
I_VBELN - Delivery
Data type: VBELN_VLOptional: No
Call by Reference: Yes
I_POSNR - Delivery Item
Data type: POSNR_VLOptional: No
Call by Reference: Yes
EXPORTING Parameters details for CBGL_LB71_BUFFER_READ_ORG
E_HEADER - SD Document: Delivery Header Data
Data type: LIKPOptional: No
Call by Reference: Yes
E_POSITION - SD Document: Delivery: Item Data
Data type: LIPSOptional: No
Call by Reference: Yes
TABLES Parameters details for CBGL_LB71_BUFFER_READ_ORG
E_POSITION_TAB -
Data type: LIPSOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
RFC_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DELIVERY_NOT_FOUND - Delivery Not Found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_POSNR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CBGL_LB71_BUFFER_READ_ORG 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_header | TYPE LIKP, " | |||
| lv_rfc_error | TYPE LIKP, " | |||
| lt_e_position_tab | TYPE STANDARD TABLE OF LIPS, " | |||
| lv_i_rfc_destination | TYPE RFCDEST, " | |||
| lv_i_vbeln | TYPE VBELN_VL, " | |||
| lv_e_position | TYPE LIPS, " | |||
| lv_delivery_not_found | TYPE LIPS, " | |||
| lv_i_posnr | TYPE POSNR_VL, " | |||
| lv_wrong_posnr | TYPE POSNR_VL. " |
|   CALL FUNCTION 'CBGL_LB71_BUFFER_READ_ORG' "EHS: Obsolete |
| EXPORTING | ||
| I_RFC_DESTINATION | = lv_i_rfc_destination | |
| I_VBELN | = lv_i_vbeln | |
| I_POSNR | = lv_i_posnr | |
| IMPORTING | ||
| E_HEADER | = lv_e_header | |
| E_POSITION | = lv_e_position | |
| TABLES | ||
| E_POSITION_TAB | = lt_e_position_tab | |
| EXCEPTIONS | ||
| RFC_ERROR = 1 | ||
| DELIVERY_NOT_FOUND = 2 | ||
| WRONG_POSNR = 3 | ||
| . " CBGL_LB71_BUFFER_READ_ORG | ||
ABAP code using 7.40 inline data declarations to call FM CBGL_LB71_BUFFER_READ_ORG
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