SAP Function Modules

BORPAB_CHECK_MULTIPLE_GR SAP Function module







BORPAB_CHECK_MULTIPLE_GR 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 BORPAB_CHECK_MULTIPLE_GR into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: BORPAB
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM BORPAB_CHECK_MULTIPLE_GR - BORPAB CHECK MULTIPLE GR





CALL FUNCTION 'BORPAB_CHECK_MULTIPLE_GR' "
  EXPORTING
    it_pab_check =              " ttyp_cpabasn  Table Type for Structure CPABASN (Link SumJC / ASN)
*   it_leshp_key =              " leshp_delivery_key_t  Sales and Distribution Document Number
*   it_leshp_item =             " leshp_delivery_item_t  Delivery Items, Item Data for a Delivery
*   it_objects =                " lepgr_objects
*   it_hures =                  " hures_t       Table with Tentative HU Assignments
*   i_flg_detailed_list =       " xfeld
  TABLES
    et_prot =                   " prott         Log for Picking Report
    .  "  BORPAB_CHECK_MULTIPLE_GR

ABAP code example for Function Module BORPAB_CHECK_MULTIPLE_GR





The ABAP code below is a full code listing to execute function module BORPAB_CHECK_MULTIPLE_GR 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_et_prot  TYPE STANDARD TABLE OF PROTT,"TABLES PARAM
wa_et_prot  LIKE LINE OF it_et_prot .

DATA(ld_it_pab_check) = 'Check type of data required'.
DATA(ld_it_leshp_key) = 'Check type of data required'.
DATA(ld_it_leshp_item) = 'Check type of data required'.
DATA(ld_it_objects) = 'Check type of data required'.
DATA(ld_it_hures) = 'Check type of data required'.
DATA(ld_i_flg_detailed_list) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_prot to it_et_prot. . CALL FUNCTION 'BORPAB_CHECK_MULTIPLE_GR' EXPORTING it_pab_check = ld_it_pab_check * it_leshp_key = ld_it_leshp_key * it_leshp_item = ld_it_leshp_item * it_objects = ld_it_objects * it_hures = ld_it_hures * i_flg_detailed_list = ld_i_flg_detailed_list TABLES et_prot = it_et_prot . " BORPAB_CHECK_MULTIPLE_GR
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:
ld_it_pab_check  TYPE TTYP_CPABASN ,
it_et_prot  TYPE STANDARD TABLE OF PROTT ,
wa_et_prot  LIKE LINE OF it_et_prot,
ld_it_leshp_key  TYPE LESHP_DELIVERY_KEY_T ,
ld_it_leshp_item  TYPE LESHP_DELIVERY_ITEM_T ,
ld_it_objects  TYPE LEPGR_OBJECTS ,
ld_it_hures  TYPE HURES_T ,
ld_i_flg_detailed_list  TYPE XFELD .

ld_it_pab_check = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_prot to it_et_prot.
ld_it_leshp_key = 'Check type of data required'.
ld_it_leshp_item = 'Check type of data required'.
ld_it_objects = 'Check type of data required'.
ld_it_hures = 'Check type of data required'.
ld_i_flg_detailed_list = 'Check type of data required'.

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 BORPAB_CHECK_MULTIPLE_GR or its description.