SAP CBHR_CUST_HEAINS_OFFICE_GET Function Module for
CBHR_CUST_HEAINS_OFFICE_GET is a standard cbhr cust heains office get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 cbhr cust heains office get FM, simply by entering the name CBHR_CUST_HEAINS_OFFICE_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: CBHR_CUST
Program Name: SAPLCBHR_CUST
Main Program:
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function CBHR_CUST_HEAINS_OFFICE_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 'CBHR_CUST_HEAINS_OFFICE_GET'".
EXPORTING
I_KVSCH = "
I_KVGST = "
* I_VALDAT = SY-DATUM "
IMPORTING
E_KVSCH = "
E_TXT02 = "
E_TXT04 = "
E_PSTLZ = "
E_ORT01 = "
E_TELNR = "
IMPORTING Parameters details for CBHR_CUST_HEAINS_OFFICE_GET
I_KVSCH -
Data type: KVSCHOptional: No
Call by Reference: No ( called with pass by value option)
I_KVGST -
Data type: KVGSTOptional: No
Call by Reference: No ( called with pass by value option)
I_VALDAT -
Data type: SY-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CBHR_CUST_HEAINS_OFFICE_GET
E_KVSCH -
Data type: KVSCHOptional: No
Call by Reference: No ( called with pass by value option)
E_TXT02 -
Data type: TXTKROptional: No
Call by Reference: No ( called with pass by value option)
E_TXT04 -
Data type: STRASOptional: No
Call by Reference: No ( called with pass by value option)
E_PSTLZ -
Data type: PSTLZOptional: No
Call by Reference: No ( called with pass by value option)
E_ORT01 -
Data type: ORT01Optional: No
Call by Reference: No ( called with pass by value option)
E_TELNR -
Data type: TELNROptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CBHR_CUST_HEAINS_OFFICE_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_kvsch | TYPE KVSCH, " | |||
lv_i_kvsch | TYPE KVSCH, " | |||
lv_e_txt02 | TYPE TXTKR, " | |||
lv_i_kvgst | TYPE KVGST, " | |||
lv_e_txt04 | TYPE STRAS, " | |||
lv_i_valdat | TYPE SY-DATUM, " SY-DATUM | |||
lv_e_pstlz | TYPE PSTLZ, " | |||
lv_e_ort01 | TYPE ORT01, " | |||
lv_e_telnr | TYPE TELNR. " |
  CALL FUNCTION 'CBHR_CUST_HEAINS_OFFICE_GET' " |
EXPORTING | ||
I_KVSCH | = lv_i_kvsch | |
I_KVGST | = lv_i_kvgst | |
I_VALDAT | = lv_i_valdat | |
IMPORTING | ||
E_KVSCH | = lv_e_kvsch | |
E_TXT02 | = lv_e_txt02 | |
E_TXT04 | = lv_e_txt04 | |
E_PSTLZ | = lv_e_pstlz | |
E_ORT01 | = lv_e_ort01 | |
E_TELNR | = lv_e_telnr | |
. " CBHR_CUST_HEAINS_OFFICE_GET |
ABAP code using 7.40 inline data declarations to call FM CBHR_CUST_HEAINS_OFFICE_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 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