SAP Function Modules

CREATE_ADDBEPP_INFORMATION SAP Function module - Prepare ADDBEPP for Updating Parentheses and OIs







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

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


Pattern for FM CREATE_ADDBEPP_INFORMATION - CREATE ADDBEPP INFORMATION





CALL FUNCTION 'CREATE_ADDBEPP_INFORMATION' "Prepare ADDBEPP for Updating Parentheses and OIs
* EXPORTING
*   i_flg_disb_old = 'X'        " xfeld         'X' - alte Auszahlung; space - neue Auszahlung (Geschäftsvorfallworkplace)
*   i_sollbu_val = 'X'          " xfeld         Buchungsdatum aus der Sollstellung übernehmen
  TABLES
    xt_vdbepp =                 " vdbepp
    xt_addbepp =                " addbepp
*   xt_vdausz =                 " vdausz
*   xt_loanref_a =              " loanref
*   xt_addbepp_add =            " addbepp_add   Additional Information About VDBEPP
  EXCEPTIONS
    MASTERBEPP_NOT_UNIQUE = 1   "
    POSTING_IMPOSSIBLE = 2      "
    .  "  CREATE_ADDBEPP_INFORMATION

ABAP code example for Function Module CREATE_ADDBEPP_INFORMATION





The ABAP code below is a full code listing to execute function module CREATE_ADDBEPP_INFORMATION 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_xt_vdbepp  TYPE STANDARD TABLE OF VDBEPP,"TABLES PARAM
wa_xt_vdbepp  LIKE LINE OF it_xt_vdbepp ,
it_xt_addbepp  TYPE STANDARD TABLE OF ADDBEPP,"TABLES PARAM
wa_xt_addbepp  LIKE LINE OF it_xt_addbepp ,
it_xt_vdausz  TYPE STANDARD TABLE OF VDAUSZ,"TABLES PARAM
wa_xt_vdausz  LIKE LINE OF it_xt_vdausz ,
it_xt_loanref_a  TYPE STANDARD TABLE OF LOANREF,"TABLES PARAM
wa_xt_loanref_a  LIKE LINE OF it_xt_loanref_a ,
it_xt_addbepp_add  TYPE STANDARD TABLE OF ADDBEPP_ADD,"TABLES PARAM
wa_xt_addbepp_add  LIKE LINE OF it_xt_addbepp_add .

DATA(ld_i_flg_disb_old) = 'Check type of data required'.
DATA(ld_i_sollbu_val) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xt_vdbepp to it_xt_vdbepp.

"populate fields of struture and append to itab
append wa_xt_addbepp to it_xt_addbepp.

"populate fields of struture and append to itab
append wa_xt_vdausz to it_xt_vdausz.

"populate fields of struture and append to itab
append wa_xt_loanref_a to it_xt_loanref_a.

"populate fields of struture and append to itab
append wa_xt_addbepp_add to it_xt_addbepp_add. . CALL FUNCTION 'CREATE_ADDBEPP_INFORMATION' * EXPORTING * i_flg_disb_old = ld_i_flg_disb_old * i_sollbu_val = ld_i_sollbu_val TABLES xt_vdbepp = it_xt_vdbepp xt_addbepp = it_xt_addbepp * xt_vdausz = it_xt_vdausz * xt_loanref_a = it_xt_loanref_a * xt_addbepp_add = it_xt_addbepp_add EXCEPTIONS MASTERBEPP_NOT_UNIQUE = 1 POSTING_IMPOSSIBLE = 2 . " CREATE_ADDBEPP_INFORMATION
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here 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_i_flg_disb_old  TYPE XFELD ,
it_xt_vdbepp  TYPE STANDARD TABLE OF VDBEPP ,
wa_xt_vdbepp  LIKE LINE OF it_xt_vdbepp,
ld_i_sollbu_val  TYPE XFELD ,
it_xt_addbepp  TYPE STANDARD TABLE OF ADDBEPP ,
wa_xt_addbepp  LIKE LINE OF it_xt_addbepp,
it_xt_vdausz  TYPE STANDARD TABLE OF VDAUSZ ,
wa_xt_vdausz  LIKE LINE OF it_xt_vdausz,
it_xt_loanref_a  TYPE STANDARD TABLE OF LOANREF ,
wa_xt_loanref_a  LIKE LINE OF it_xt_loanref_a,
it_xt_addbepp_add  TYPE STANDARD TABLE OF ADDBEPP_ADD ,
wa_xt_addbepp_add  LIKE LINE OF it_xt_addbepp_add.

ld_i_flg_disb_old = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xt_vdbepp to it_xt_vdbepp.
ld_i_sollbu_val = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xt_addbepp to it_xt_addbepp.

"populate fields of struture and append to itab
append wa_xt_vdausz to it_xt_vdausz.

"populate fields of struture and append to itab
append wa_xt_loanref_a to it_xt_loanref_a.

"populate fields of struture and append to itab
append wa_xt_addbepp_add to it_xt_addbepp_add.

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