SAP Function Modules

BORWE_REVERSE_GOODS_ISSUE SAP Function module







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

Associated Function Group: BORWE
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM BORWE_REVERSE_GOODS_ISSUE - BORWE REVERSE GOODS ISSUE





CALL FUNCTION 'BORWE_REVERSE_GOODS_ISSUE' "
  EXPORTING
    i_vbeln =                   " vbeln         Sales and Distribution Document Number
*   i_budat = SY-DATUM          " sy-datlo      Date and time, local date of user
    i_mblnr =                   " mblnr         Number of Material Document
*   i_mblpo =                   " mblpo         Item in Material Document
*   i_mjahr =                   " mjahr         Material Document Year
*   i_posnr =                   " posnr         Item Number of the SD Document
*   i_pgr_flg =                 " xfeld         Checkbox
  IMPORTING
    e_error =                   " xfeld         Checkbox
    et_mesg =                   " fmpl_t_mesg   Error Messages Table
    e_mblnr =                   " mblnr         Number of Material Document
* TABLES
*   t_vbapf =                   " vbapf
*   t_vbfa =                    " vbfavb
    .  "  BORWE_REVERSE_GOODS_ISSUE

ABAP code example for Function Module BORWE_REVERSE_GOODS_ISSUE





The ABAP code below is a full code listing to execute function module BORWE_REVERSE_GOODS_ISSUE 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:
ld_e_error  TYPE XFELD ,
ld_et_mesg  TYPE FMPL_T_MESG ,
ld_e_mblnr  TYPE MBLNR ,
it_t_vbapf  TYPE STANDARD TABLE OF VBAPF,"TABLES PARAM
wa_t_vbapf  LIKE LINE OF it_t_vbapf ,
it_t_vbfa  TYPE STANDARD TABLE OF VBFAVB,"TABLES PARAM
wa_t_vbfa  LIKE LINE OF it_t_vbfa .

DATA(ld_i_vbeln) = 'Check type of data required'.
DATA(ld_i_budat) = '20210129'.
DATA(ld_i_mblnr) = '20210129'.
DATA(ld_i_mblpo) = '20210129'.
DATA(ld_i_mjahr) = '20210129'.
DATA(ld_i_posnr) = '20210129'.
DATA(ld_i_pgr_flg) = '20210129'.

"populate fields of struture and append to itab
append wa_t_vbapf to it_t_vbapf.

"populate fields of struture and append to itab
append wa_t_vbfa to it_t_vbfa. . CALL FUNCTION 'BORWE_REVERSE_GOODS_ISSUE' EXPORTING i_vbeln = ld_i_vbeln * i_budat = ld_i_budat i_mblnr = ld_i_mblnr * i_mblpo = ld_i_mblpo * i_mjahr = ld_i_mjahr * i_posnr = ld_i_posnr * i_pgr_flg = ld_i_pgr_flg IMPORTING e_error = ld_e_error et_mesg = ld_et_mesg e_mblnr = ld_e_mblnr * TABLES * t_vbapf = it_t_vbapf * t_vbfa = it_t_vbfa . " BORWE_REVERSE_GOODS_ISSUE
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_e_error  TYPE XFELD ,
ld_i_vbeln  TYPE VBELN ,
it_t_vbapf  TYPE STANDARD TABLE OF VBAPF ,
wa_t_vbapf  LIKE LINE OF it_t_vbapf,
ld_et_mesg  TYPE FMPL_T_MESG ,
ld_i_budat  TYPE SY-DATLO ,
it_t_vbfa  TYPE STANDARD TABLE OF VBFAVB ,
wa_t_vbfa  LIKE LINE OF it_t_vbfa,
ld_e_mblnr  TYPE MBLNR ,
ld_i_mblnr  TYPE MBLNR ,
ld_i_mblpo  TYPE MBLPO ,
ld_i_mjahr  TYPE MJAHR ,
ld_i_posnr  TYPE POSNR ,
ld_i_pgr_flg  TYPE XFELD .

ld_i_vbeln = '20210129'.

"populate fields of struture and append to itab
append wa_t_vbapf to it_t_vbapf.
ld_i_budat = '20210129'.

"populate fields of struture and append to itab
append wa_t_vbfa to it_t_vbfa.
ld_i_mblnr = '20210129'.
ld_i_mblpo = '20210129'.
ld_i_mjahr = '20210129'.
ld_i_posnr = '20210129'.
ld_i_pgr_flg = '20210129'.

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