SAP CBGL_LB74_ADDRESS_GET Function Module for NOTRANSL: EHS: Lesen der Adressdaten zu einer Adressnummer
CBGL_LB74_ADDRESS_GET is a standard cbgl lb74 address 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: Lesen der Adressdaten zu einer Adressnummer 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 lb74 address get FM, simply by entering the name CBGL_LB74_ADDRESS_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: CBGL_LB74
Program Name: SAPLCBGL_LB74
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function CBGL_LB74_ADDRESS_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_LB74_ADDRESS_GET'"NOTRANSL: EHS: Lesen der Adressdaten zu einer Adressnummer.
EXPORTING
* I_ADDRESS_NO = "Address Number
* I_CUSTOMER_NO = "Customer Number
* I_VALDAT = SY-DATUM "ABAP System Field: Current Date of Application Server
* I_LANGUAGE = ' ' "ABAP System Field: Language Key of Text Environment
IMPORTING
E_ADDRESS_WA = "EHS: Address data for recipient (company)
EXCEPTIONS
PARAMETER_ERROR = 1 CUSTOMER_NOT_FOUND = 2 NO_ADDRESS_FOUND = 3
IMPORTING Parameters details for CBGL_LB74_ADDRESS_GET
I_ADDRESS_NO - Address Number
Data type: ADDR1_SEL-ADDRNUMBEROptional: Yes
Call by Reference: No ( called with pass by value option)
I_CUSTOMER_NO - Customer Number
Data type: KUNNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_VALDAT - ABAP System Field: Current Date of Application Server
Data type: SY-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LANGUAGE - ABAP System Field: Language Key of Text Environment
Data type: SY-LANGUDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CBGL_LB74_ADDRESS_GET
E_ADDRESS_WA - EHS: Address data for recipient (company)
Data type: CVDRECADRCOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
PARAMETER_ERROR - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
CUSTOMER_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
NO_ADDRESS_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CBGL_LB74_ADDRESS_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_address_wa | TYPE CVDRECADRC, " | |||
| lv_i_address_no | TYPE ADDR1_SEL-ADDRNUMBER, " | |||
| lv_parameter_error | TYPE ADDR1_SEL, " | |||
| lv_i_customer_no | TYPE KUNNR, " | |||
| lv_customer_not_found | TYPE KUNNR, " | |||
| lv_i_valdat | TYPE SY-DATUM, " SY-DATUM | |||
| lv_no_address_found | TYPE SY, " | |||
| lv_i_language | TYPE SY-LANGU. " SPACE |
|   CALL FUNCTION 'CBGL_LB74_ADDRESS_GET' "NOTRANSL: EHS: Lesen der Adressdaten zu einer Adressnummer |
| EXPORTING | ||
| I_ADDRESS_NO | = lv_i_address_no | |
| I_CUSTOMER_NO | = lv_i_customer_no | |
| I_VALDAT | = lv_i_valdat | |
| I_LANGUAGE | = lv_i_language | |
| IMPORTING | ||
| E_ADDRESS_WA | = lv_e_address_wa | |
| EXCEPTIONS | ||
| PARAMETER_ERROR = 1 | ||
| CUSTOMER_NOT_FOUND = 2 | ||
| NO_ADDRESS_FOUND = 3 | ||
| . " CBGL_LB74_ADDRESS_GET | ||
ABAP code using 7.40 inline data declarations to call FM CBGL_LB74_ADDRESS_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.| "SELECT single ADDRNUMBER FROM ADDR1_SEL INTO @DATA(ld_i_address_no). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_i_valdat). | ||||
| DATA(ld_i_valdat) | = SY-DATUM. | |||
| "SELECT single LANGU FROM SY INTO @DATA(ld_i_language). | ||||
| DATA(ld_i_language) | = ' '. | |||
Search for further information about these or an SAP related objects