SAP CBGL_LB10_LS_FIND_BY_TSYGID Function Module for NOTRANSL: EHS: Find label stock RECN by validity area
CBGL_LB10_LS_FIND_BY_TSYGID is a standard cbgl lb10 ls find by tsygid 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: Find label stock RECN by validity area 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 lb10 ls find by tsygid FM, simply by entering the name CBGL_LB10_LS_FIND_BY_TSYGID into the relevant SAP transaction such as SE37 or SE38.
Function Group: CBGL_LB10
Program Name: SAPLCBGL_LB10
Main Program: SAPLCBGL_LB10
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CBGL_LB10_LS_FIND_BY_TSYGID 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_LB10_LS_FIND_BY_TSYGID'"NOTRANSL: EHS: Find label stock RECN by validity area.
EXPORTING
* I_TSYGID = '*' "
* I_VALDAT = SY-DATUM "Date and Time, Current (Application Server) Date
IMPORTING
E_RECORDS_FOUND = "
TABLES
X_KEYTAB = "EHS: Minimum Key for FM Call Interface
IMPORTING Parameters details for CBGL_LB10_LS_FIND_BY_TSYGID
I_TSYGID -
Data type: CCGLT_LSTG-TSYGIDDefault: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_VALDAT - Date and Time, Current (Application Server) Date
Data type: SY-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CBGL_LB10_LS_FIND_BY_TSYGID
E_RECORDS_FOUND -
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CBGL_LB10_LS_FIND_BY_TSYGID
X_KEYTAB - EHS: Minimum Key for FM Call Interface
Data type: RCGSTDRECNOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CBGL_LB10_LS_FIND_BY_TSYGID 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_i_tsygid | TYPE CCGLT_LSTG-TSYGID, " '*' | |||
| lt_x_keytab | TYPE STANDARD TABLE OF RCGSTDRECN, " | |||
| lv_e_records_found | TYPE SY-TABIX, " | |||
| lv_i_valdat | TYPE SY-DATUM. " SY-DATUM |
|   CALL FUNCTION 'CBGL_LB10_LS_FIND_BY_TSYGID' "NOTRANSL: EHS: Find label stock RECN by validity area |
| EXPORTING | ||
| I_TSYGID | = lv_i_tsygid | |
| I_VALDAT | = lv_i_valdat | |
| IMPORTING | ||
| E_RECORDS_FOUND | = lv_e_records_found | |
| TABLES | ||
| X_KEYTAB | = lt_x_keytab | |
| . " CBGL_LB10_LS_FIND_BY_TSYGID | ||
ABAP code using 7.40 inline data declarations to call FM CBGL_LB10_LS_FIND_BY_TSYGID
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.| "SELECT single TSYGID FROM CCGLT_LSTG INTO @DATA(ld_i_tsygid). | ||||
| DATA(ld_i_tsygid) | = '*'. | |||
| "SELECT single TABIX FROM SY INTO @DATA(ld_e_records_found). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_i_valdat). | ||||
| DATA(ld_i_valdat) | = SY-DATUM. | |||
Search for further information about these or an SAP related objects