SAP Function Modules

CBRC_EHS_WL_BUILD SAP Function module







CBRC_EHS_WL_BUILD is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name CBRC_EHS_WL_BUILD into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: CBRC_EHS
Released Date: Not Released
Processing type: Start of update delayed (Start Delayed)
update module start delayed settings


Pattern for FM CBRC_EHS_WL_BUILD - CBRC EHS WL BUILD





CALL FUNCTION 'CBRC_EHS_WL_BUILD' "
* TABLES
*   i_xestrh_tab =              " rcgcdestrh
*   i_yestrh_tab =              " rcgcdestrh
*   i_xestrr_tab =              " vestrr
*   i_yestrr_tab =              " vestrr
*   i_xestmj_tab =              " rcgcdestmj
*   i_yestmj_tab =              " rcgcdestmj
*   i_xestri_tab =              " rcgcdestri
*   i_yestri_tab =              " rcgcdestri
*   i_xestrl_tab =              " rcgcdestrl
*   i_yestrl_tab =              " rcgcdestrl
*   i_xestvh_tab =              " rcgcdestvh
*   i_yestvh_tab =              " rcgcdestvh
*   i_xestva_tab =              " rcgcdestva
*   i_yestva_tab =              " rcgcdestva
*   i_xestvp_tab =              " rcgcdestvp
*   i_yestvp_tab =              " rcgcdestvp
*   i_xestdu_tab =              " rcgcdestdu
*   i_yestdu_tab =              " rcgcdestdu
*   i_xchdcch_tab =             " rcgcdchdcch
*   i_ychdcch_tab =             " rcgcdchdcch
    .  "  CBRC_EHS_WL_BUILD

ABAP code example for Function Module CBRC_EHS_WL_BUILD





The ABAP code below is a full code listing to execute function module CBRC_EHS_WL_BUILD including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_i_xestrh_tab  TYPE STANDARD TABLE OF RCGCDESTRH,"TABLES PARAM
wa_i_xestrh_tab  LIKE LINE OF it_i_xestrh_tab ,
it_i_yestrh_tab  TYPE STANDARD TABLE OF RCGCDESTRH,"TABLES PARAM
wa_i_yestrh_tab  LIKE LINE OF it_i_yestrh_tab ,
it_i_xestrr_tab  TYPE STANDARD TABLE OF VESTRR,"TABLES PARAM
wa_i_xestrr_tab  LIKE LINE OF it_i_xestrr_tab ,
it_i_yestrr_tab  TYPE STANDARD TABLE OF VESTRR,"TABLES PARAM
wa_i_yestrr_tab  LIKE LINE OF it_i_yestrr_tab ,
it_i_xestmj_tab  TYPE STANDARD TABLE OF RCGCDESTMJ,"TABLES PARAM
wa_i_xestmj_tab  LIKE LINE OF it_i_xestmj_tab ,
it_i_yestmj_tab  TYPE STANDARD TABLE OF RCGCDESTMJ,"TABLES PARAM
wa_i_yestmj_tab  LIKE LINE OF it_i_yestmj_tab ,
it_i_xestri_tab  TYPE STANDARD TABLE OF RCGCDESTRI,"TABLES PARAM
wa_i_xestri_tab  LIKE LINE OF it_i_xestri_tab ,
it_i_yestri_tab  TYPE STANDARD TABLE OF RCGCDESTRI,"TABLES PARAM
wa_i_yestri_tab  LIKE LINE OF it_i_yestri_tab ,
it_i_xestrl_tab  TYPE STANDARD TABLE OF RCGCDESTRL,"TABLES PARAM
wa_i_xestrl_tab  LIKE LINE OF it_i_xestrl_tab ,
it_i_yestrl_tab  TYPE STANDARD TABLE OF RCGCDESTRL,"TABLES PARAM
wa_i_yestrl_tab  LIKE LINE OF it_i_yestrl_tab ,
it_i_xestvh_tab  TYPE STANDARD TABLE OF RCGCDESTVH,"TABLES PARAM
wa_i_xestvh_tab  LIKE LINE OF it_i_xestvh_tab ,
it_i_yestvh_tab  TYPE STANDARD TABLE OF RCGCDESTVH,"TABLES PARAM
wa_i_yestvh_tab  LIKE LINE OF it_i_yestvh_tab ,
it_i_xestva_tab  TYPE STANDARD TABLE OF RCGCDESTVA,"TABLES PARAM
wa_i_xestva_tab  LIKE LINE OF it_i_xestva_tab ,
it_i_yestva_tab  TYPE STANDARD TABLE OF RCGCDESTVA,"TABLES PARAM
wa_i_yestva_tab  LIKE LINE OF it_i_yestva_tab ,
it_i_xestvp_tab  TYPE STANDARD TABLE OF RCGCDESTVP,"TABLES PARAM
wa_i_xestvp_tab  LIKE LINE OF it_i_xestvp_tab ,
it_i_yestvp_tab  TYPE STANDARD TABLE OF RCGCDESTVP,"TABLES PARAM
wa_i_yestvp_tab  LIKE LINE OF it_i_yestvp_tab ,
it_i_xestdu_tab  TYPE STANDARD TABLE OF RCGCDESTDU,"TABLES PARAM
wa_i_xestdu_tab  LIKE LINE OF it_i_xestdu_tab ,
it_i_yestdu_tab  TYPE STANDARD TABLE OF RCGCDESTDU,"TABLES PARAM
wa_i_yestdu_tab  LIKE LINE OF it_i_yestdu_tab ,
it_i_xchdcch_tab  TYPE STANDARD TABLE OF RCGCDCHDCCH,"TABLES PARAM
wa_i_xchdcch_tab  LIKE LINE OF it_i_xchdcch_tab ,
it_i_ychdcch_tab  TYPE STANDARD TABLE OF RCGCDCHDCCH,"TABLES PARAM
wa_i_ychdcch_tab  LIKE LINE OF it_i_ychdcch_tab .


"populate fields of struture and append to itab
append wa_i_xestrh_tab to it_i_xestrh_tab.

"populate fields of struture and append to itab
append wa_i_yestrh_tab to it_i_yestrh_tab.

"populate fields of struture and append to itab
append wa_i_xestrr_tab to it_i_xestrr_tab.

"populate fields of struture and append to itab
append wa_i_yestrr_tab to it_i_yestrr_tab.

"populate fields of struture and append to itab
append wa_i_xestmj_tab to it_i_xestmj_tab.

"populate fields of struture and append to itab
append wa_i_yestmj_tab to it_i_yestmj_tab.

"populate fields of struture and append to itab
append wa_i_xestri_tab to it_i_xestri_tab.

"populate fields of struture and append to itab
append wa_i_yestri_tab to it_i_yestri_tab.

"populate fields of struture and append to itab
append wa_i_xestrl_tab to it_i_xestrl_tab.

"populate fields of struture and append to itab
append wa_i_yestrl_tab to it_i_yestrl_tab.

"populate fields of struture and append to itab
append wa_i_xestvh_tab to it_i_xestvh_tab.

"populate fields of struture and append to itab
append wa_i_yestvh_tab to it_i_yestvh_tab.

"populate fields of struture and append to itab
append wa_i_xestva_tab to it_i_xestva_tab.

"populate fields of struture and append to itab
append wa_i_yestva_tab to it_i_yestva_tab.

"populate fields of struture and append to itab
append wa_i_xestvp_tab to it_i_xestvp_tab.

"populate fields of struture and append to itab
append wa_i_yestvp_tab to it_i_yestvp_tab.

"populate fields of struture and append to itab
append wa_i_xestdu_tab to it_i_xestdu_tab.

"populate fields of struture and append to itab
append wa_i_yestdu_tab to it_i_yestdu_tab.

"populate fields of struture and append to itab
append wa_i_xchdcch_tab to it_i_xchdcch_tab.

"populate fields of struture and append to itab
append wa_i_ychdcch_tab to it_i_ychdcch_tab. . CALL FUNCTION 'CBRC_EHS_WL_BUILD' * TABLES * i_xestrh_tab = it_i_xestrh_tab * i_yestrh_tab = it_i_yestrh_tab * i_xestrr_tab = it_i_xestrr_tab * i_yestrr_tab = it_i_yestrr_tab * i_xestmj_tab = it_i_xestmj_tab * i_yestmj_tab = it_i_yestmj_tab * i_xestri_tab = it_i_xestri_tab * i_yestri_tab = it_i_yestri_tab * i_xestrl_tab = it_i_xestrl_tab * i_yestrl_tab = it_i_yestrl_tab * i_xestvh_tab = it_i_xestvh_tab * i_yestvh_tab = it_i_yestvh_tab * i_xestva_tab = it_i_xestva_tab * i_yestva_tab = it_i_yestva_tab * i_xestvp_tab = it_i_xestvp_tab * i_yestvp_tab = it_i_yestvp_tab * i_xestdu_tab = it_i_xestdu_tab * i_yestdu_tab = it_i_yestdu_tab * i_xchdcch_tab = it_i_xchdcch_tab * i_ychdcch_tab = it_i_ychdcch_tab . " CBRC_EHS_WL_BUILD
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
it_i_xestrh_tab  TYPE STANDARD TABLE OF RCGCDESTRH ,
wa_i_xestrh_tab  LIKE LINE OF it_i_xestrh_tab,
it_i_yestrh_tab  TYPE STANDARD TABLE OF RCGCDESTRH ,
wa_i_yestrh_tab  LIKE LINE OF it_i_yestrh_tab,
it_i_xestrr_tab  TYPE STANDARD TABLE OF VESTRR ,
wa_i_xestrr_tab  LIKE LINE OF it_i_xestrr_tab,
it_i_yestrr_tab  TYPE STANDARD TABLE OF VESTRR ,
wa_i_yestrr_tab  LIKE LINE OF it_i_yestrr_tab,
it_i_xestmj_tab  TYPE STANDARD TABLE OF RCGCDESTMJ ,
wa_i_xestmj_tab  LIKE LINE OF it_i_xestmj_tab,
it_i_yestmj_tab  TYPE STANDARD TABLE OF RCGCDESTMJ ,
wa_i_yestmj_tab  LIKE LINE OF it_i_yestmj_tab,
it_i_xestri_tab  TYPE STANDARD TABLE OF RCGCDESTRI ,
wa_i_xestri_tab  LIKE LINE OF it_i_xestri_tab,
it_i_yestri_tab  TYPE STANDARD TABLE OF RCGCDESTRI ,
wa_i_yestri_tab  LIKE LINE OF it_i_yestri_tab,
it_i_xestrl_tab  TYPE STANDARD TABLE OF RCGCDESTRL ,
wa_i_xestrl_tab  LIKE LINE OF it_i_xestrl_tab,
it_i_yestrl_tab  TYPE STANDARD TABLE OF RCGCDESTRL ,
wa_i_yestrl_tab  LIKE LINE OF it_i_yestrl_tab,
it_i_xestvh_tab  TYPE STANDARD TABLE OF RCGCDESTVH ,
wa_i_xestvh_tab  LIKE LINE OF it_i_xestvh_tab,
it_i_yestvh_tab  TYPE STANDARD TABLE OF RCGCDESTVH ,
wa_i_yestvh_tab  LIKE LINE OF it_i_yestvh_tab,
it_i_xestva_tab  TYPE STANDARD TABLE OF RCGCDESTVA ,
wa_i_xestva_tab  LIKE LINE OF it_i_xestva_tab,
it_i_yestva_tab  TYPE STANDARD TABLE OF RCGCDESTVA ,
wa_i_yestva_tab  LIKE LINE OF it_i_yestva_tab,
it_i_xestvp_tab  TYPE STANDARD TABLE OF RCGCDESTVP ,
wa_i_xestvp_tab  LIKE LINE OF it_i_xestvp_tab,
it_i_yestvp_tab  TYPE STANDARD TABLE OF RCGCDESTVP ,
wa_i_yestvp_tab  LIKE LINE OF it_i_yestvp_tab,
it_i_xestdu_tab  TYPE STANDARD TABLE OF RCGCDESTDU ,
wa_i_xestdu_tab  LIKE LINE OF it_i_xestdu_tab,
it_i_yestdu_tab  TYPE STANDARD TABLE OF RCGCDESTDU ,
wa_i_yestdu_tab  LIKE LINE OF it_i_yestdu_tab,
it_i_xchdcch_tab  TYPE STANDARD TABLE OF RCGCDCHDCCH ,
wa_i_xchdcch_tab  LIKE LINE OF it_i_xchdcch_tab,
it_i_ychdcch_tab  TYPE STANDARD TABLE OF RCGCDCHDCCH ,
wa_i_ychdcch_tab  LIKE LINE OF it_i_ychdcch_tab.


"populate fields of struture and append to itab
append wa_i_xestrh_tab to it_i_xestrh_tab.

"populate fields of struture and append to itab
append wa_i_yestrh_tab to it_i_yestrh_tab.

"populate fields of struture and append to itab
append wa_i_xestrr_tab to it_i_xestrr_tab.

"populate fields of struture and append to itab
append wa_i_yestrr_tab to it_i_yestrr_tab.

"populate fields of struture and append to itab
append wa_i_xestmj_tab to it_i_xestmj_tab.

"populate fields of struture and append to itab
append wa_i_yestmj_tab to it_i_yestmj_tab.

"populate fields of struture and append to itab
append wa_i_xestri_tab to it_i_xestri_tab.

"populate fields of struture and append to itab
append wa_i_yestri_tab to it_i_yestri_tab.

"populate fields of struture and append to itab
append wa_i_xestrl_tab to it_i_xestrl_tab.

"populate fields of struture and append to itab
append wa_i_yestrl_tab to it_i_yestrl_tab.

"populate fields of struture and append to itab
append wa_i_xestvh_tab to it_i_xestvh_tab.

"populate fields of struture and append to itab
append wa_i_yestvh_tab to it_i_yestvh_tab.

"populate fields of struture and append to itab
append wa_i_xestva_tab to it_i_xestva_tab.

"populate fields of struture and append to itab
append wa_i_yestva_tab to it_i_yestva_tab.

"populate fields of struture and append to itab
append wa_i_xestvp_tab to it_i_xestvp_tab.

"populate fields of struture and append to itab
append wa_i_yestvp_tab to it_i_yestvp_tab.

"populate fields of struture and append to itab
append wa_i_xestdu_tab to it_i_xestdu_tab.

"populate fields of struture and append to itab
append wa_i_yestdu_tab to it_i_yestdu_tab.

"populate fields of struture and append to itab
append wa_i_xchdcch_tab to it_i_xchdcch_tab.

"populate fields of struture and append to itab
append wa_i_ychdcch_tab to it_i_ychdcch_tab.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name CBRC_EHS_WL_BUILD or its description.