SAP CBGL_LB61_STATE_CHECK_GEN Function Module for NOTRANSL: EHS: Statusprüfung bei Etikettengenerierung









CBGL_LB61_STATE_CHECK_GEN is a standard cbgl lb61 state check gen 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: Statusprüfung bei Etikettengenerierung 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 lb61 state check gen FM, simply by entering the name CBGL_LB61_STATE_CHECK_GEN into the relevant SAP transaction such as SE37 or SE38.

Function Group: CBGL_LB61
Program Name: SAPLCBGL_LB61
Main Program: SAPLCBGL_LB61
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CBGL_LB61_STATE_CHECK_GEN 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_LB61_STATE_CHECK_GEN'"NOTRANSL: EHS: Statusprüfung bei Etikettengenerierung
EXPORTING
I_LDEPID = "Report generation variant
I_RECN = "Sequential Number of Data Record
I_MATNR = "Material Number
I_SUBID = "Specification
I_LANGU = "SAP System, Current Language
I_STATECHECKMOD = "SAP System, Current Language

IMPORTING
E_FLG_IS_REPORT = "Truth Value

CHANGING
X_MPD_LABEL = "EHS: Structure for Displaying Label Tree
.



IMPORTING Parameters details for CBGL_LB61_STATE_CHECK_GEN

I_LDEPID - Report generation variant

Data type: ESELDEPID
Optional: No
Call by Reference: Yes

I_RECN - Sequential Number of Data Record

Data type: ESERECN
Optional: No
Call by Reference: Yes

I_MATNR - Material Number

Data type: MATNR
Optional: No
Call by Reference: Yes

I_SUBID - Specification

Data type: ESESUBID
Optional: No
Call by Reference: Yes

I_LANGU - SAP System, Current Language

Data type: SY-LANGU
Optional: No
Call by Reference: Yes

I_STATECHECKMOD - SAP System, Current Language

Data type: CBGLE_STATE_CHECK_MODE
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for CBGL_LB61_STATE_CHECK_GEN

E_FLG_IS_REPORT - Truth Value

Data type: ESEBOOLE
Optional: No
Call by Reference: Yes

CHANGING Parameters details for CBGL_LB61_STATE_CHECK_GEN

X_MPD_LABEL - EHS: Structure for Displaying Label Tree

Data type: CCGLS_MPD_LABELS
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CBGL_LB61_STATE_CHECK_GEN 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_ldepid  TYPE ESELDEPID, "   
lv_x_mpd_label  TYPE CCGLS_MPD_LABELS, "   
lv_e_flg_is_report  TYPE ESEBOOLE, "   
lv_i_recn  TYPE ESERECN, "   
lv_i_matnr  TYPE MATNR, "   
lv_i_subid  TYPE ESESUBID, "   
lv_i_langu  TYPE SY-LANGU, "   
lv_i_statecheckmod  TYPE CBGLE_STATE_CHECK_MODE. "   

  CALL FUNCTION 'CBGL_LB61_STATE_CHECK_GEN'  "NOTRANSL: EHS: Statusprüfung bei Etikettengenerierung
    EXPORTING
         I_LDEPID = lv_i_ldepid
         I_RECN = lv_i_recn
         I_MATNR = lv_i_matnr
         I_SUBID = lv_i_subid
         I_LANGU = lv_i_langu
         I_STATECHECKMOD = lv_i_statecheckmod
    IMPORTING
         E_FLG_IS_REPORT = lv_e_flg_is_report
    CHANGING
         X_MPD_LABEL = lv_x_mpd_label
. " CBGL_LB61_STATE_CHECK_GEN




ABAP code using 7.40 inline data declarations to call FM CBGL_LB61_STATE_CHECK_GEN

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 LANGU FROM SY INTO @DATA(ld_i_langu).
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!