SAP Function Modules

ISU_BBP_CORR_WRITE SAP Function module - Save Correspondence Data in EABPS_CORR







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

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


Pattern for FM ISU_BBP_CORR_WRITE - ISU BBP CORR WRITE





CALL FUNCTION 'ISU_BBP_CORR_WRITE' "Save Correspondence Data in EABPS_CORR
* EXPORTING
*   xwa_dfkkcoh =               " dfkkcoh       FI-CA Correspondence - Correspondence Header
*   x_wmode =                   " e_mode        Processing Mode (1 = Display, 2 = Change, 3 = Create...)
*   x_addcorr =                 " regen-kennzx
  TABLES
    xt_eabps =                  " eabps         Sub-BB Plan
    xt_eabp =                   " eabp
    xt_ejvl =                   " ejvl          Yearly advance payment
    xt_eabps_ch =               " eabps
    xt_eabp_ch =                " eabp
    xt_ejvl_ch =                " ejvl
    xt_effav =                  " effav
  EXCEPTIONS
    UPDATE_ERROR = 1            "
    GENERAL_FAULT = 2           "
    .  "  ISU_BBP_CORR_WRITE

ABAP code example for Function Module ISU_BBP_CORR_WRITE





The ABAP code below is a full code listing to execute function module ISU_BBP_CORR_WRITE 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_eabps  TYPE STANDARD TABLE OF EABPS,"TABLES PARAM
wa_xt_eabps  LIKE LINE OF it_xt_eabps ,
it_xt_eabp  TYPE STANDARD TABLE OF EABP,"TABLES PARAM
wa_xt_eabp  LIKE LINE OF it_xt_eabp ,
it_xt_ejvl  TYPE STANDARD TABLE OF EJVL,"TABLES PARAM
wa_xt_ejvl  LIKE LINE OF it_xt_ejvl ,
it_xt_eabps_ch  TYPE STANDARD TABLE OF EABPS,"TABLES PARAM
wa_xt_eabps_ch  LIKE LINE OF it_xt_eabps_ch ,
it_xt_eabp_ch  TYPE STANDARD TABLE OF EABP,"TABLES PARAM
wa_xt_eabp_ch  LIKE LINE OF it_xt_eabp_ch ,
it_xt_ejvl_ch  TYPE STANDARD TABLE OF EJVL,"TABLES PARAM
wa_xt_ejvl_ch  LIKE LINE OF it_xt_ejvl_ch ,
it_xt_effav  TYPE STANDARD TABLE OF EFFAV,"TABLES PARAM
wa_xt_effav  LIKE LINE OF it_xt_effav .

DATA(ld_xwa_dfkkcoh) = 'Check type of data required'.
DATA(ld_x_wmode) = 'Check type of data required'.

DATA(ld_x_addcorr) = some text here

"populate fields of struture and append to itab
append wa_xt_eabps to it_xt_eabps.

"populate fields of struture and append to itab
append wa_xt_eabp to it_xt_eabp.

"populate fields of struture and append to itab
append wa_xt_ejvl to it_xt_ejvl.

"populate fields of struture and append to itab
append wa_xt_eabps_ch to it_xt_eabps_ch.

"populate fields of struture and append to itab
append wa_xt_eabp_ch to it_xt_eabp_ch.

"populate fields of struture and append to itab
append wa_xt_ejvl_ch to it_xt_ejvl_ch.

"populate fields of struture and append to itab
append wa_xt_effav to it_xt_effav. . CALL FUNCTION 'ISU_BBP_CORR_WRITE' * EXPORTING * xwa_dfkkcoh = ld_xwa_dfkkcoh * x_wmode = ld_x_wmode * x_addcorr = ld_x_addcorr TABLES xt_eabps = it_xt_eabps xt_eabp = it_xt_eabp xt_ejvl = it_xt_ejvl xt_eabps_ch = it_xt_eabps_ch xt_eabp_ch = it_xt_eabp_ch xt_ejvl_ch = it_xt_ejvl_ch xt_effav = it_xt_effav EXCEPTIONS UPDATE_ERROR = 1 GENERAL_FAULT = 2 . " ISU_BBP_CORR_WRITE
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_xwa_dfkkcoh  TYPE DFKKCOH ,
it_xt_eabps  TYPE STANDARD TABLE OF EABPS ,
wa_xt_eabps  LIKE LINE OF it_xt_eabps,
ld_x_wmode  TYPE E_MODE ,
it_xt_eabp  TYPE STANDARD TABLE OF EABP ,
wa_xt_eabp  LIKE LINE OF it_xt_eabp,
ld_x_addcorr  TYPE REGEN-KENNZX ,
it_xt_ejvl  TYPE STANDARD TABLE OF EJVL ,
wa_xt_ejvl  LIKE LINE OF it_xt_ejvl,
it_xt_eabps_ch  TYPE STANDARD TABLE OF EABPS ,
wa_xt_eabps_ch  LIKE LINE OF it_xt_eabps_ch,
it_xt_eabp_ch  TYPE STANDARD TABLE OF EABP ,
wa_xt_eabp_ch  LIKE LINE OF it_xt_eabp_ch,
it_xt_ejvl_ch  TYPE STANDARD TABLE OF EJVL ,
wa_xt_ejvl_ch  LIKE LINE OF it_xt_ejvl_ch,
it_xt_effav  TYPE STANDARD TABLE OF EFFAV ,
wa_xt_effav  LIKE LINE OF it_xt_effav.

ld_xwa_dfkkcoh = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xt_eabps to it_xt_eabps.
ld_x_wmode = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xt_eabp to it_xt_eabp.

ld_x_addcorr = some text here

"populate fields of struture and append to itab
append wa_xt_ejvl to it_xt_ejvl.

"populate fields of struture and append to itab
append wa_xt_eabps_ch to it_xt_eabps_ch.

"populate fields of struture and append to itab
append wa_xt_eabp_ch to it_xt_eabp_ch.

"populate fields of struture and append to itab
append wa_xt_ejvl_ch to it_xt_ejvl_ch.

"populate fields of struture and append to itab
append wa_xt_effav to it_xt_effav.

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