SAP Function Modules

ISH_CALL_PAYMENT_DISTRIBUTION SAP Function module







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

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


Pattern for FM ISH_CALL_PAYMENT_DISTRIBUTION - ISH CALL PAYMENT DISTRIBUTION





CALL FUNCTION 'ISH_CALL_PAYMENT_DISTRIBUTION' "
  EXPORTING
    ss_fkomk =                  " rnfk1
*   ss_no_log = ' '             " npdok-xfeld
  TABLES
    ss_fkomp =                  " rnfp1
    ss_xkomv_i =                " komv          Conditions
*   ss_xkomv_e =                " komv
    ss_nleitab =                " nlei
    ss_nbewtab =                " nbew
*   ss_vbrk =                   " vbrk          Billing Document: Header Data
*   ss_vbrp =                   " vbrp          Billing Document: Item Data
*   ss_paym_distr_res =         " rnpp0
  EXCEPTIONS
    ERROR_PAYMENT_DISTRIBUTION = 1  "
    ERROR_FINISH_PD = 2         "
    .  "  ISH_CALL_PAYMENT_DISTRIBUTION

ABAP code example for Function Module ISH_CALL_PAYMENT_DISTRIBUTION





The ABAP code below is a full code listing to execute function module ISH_CALL_PAYMENT_DISTRIBUTION 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_ss_fkomp  TYPE STANDARD TABLE OF RNFP1,"TABLES PARAM
wa_ss_fkomp  LIKE LINE OF it_ss_fkomp ,
it_ss_xkomv_i  TYPE STANDARD TABLE OF KOMV,"TABLES PARAM
wa_ss_xkomv_i  LIKE LINE OF it_ss_xkomv_i ,
it_ss_xkomv_e  TYPE STANDARD TABLE OF KOMV,"TABLES PARAM
wa_ss_xkomv_e  LIKE LINE OF it_ss_xkomv_e ,
it_ss_nleitab  TYPE STANDARD TABLE OF NLEI,"TABLES PARAM
wa_ss_nleitab  LIKE LINE OF it_ss_nleitab ,
it_ss_nbewtab  TYPE STANDARD TABLE OF NBEW,"TABLES PARAM
wa_ss_nbewtab  LIKE LINE OF it_ss_nbewtab ,
it_ss_vbrk  TYPE STANDARD TABLE OF VBRK,"TABLES PARAM
wa_ss_vbrk  LIKE LINE OF it_ss_vbrk ,
it_ss_vbrp  TYPE STANDARD TABLE OF VBRP,"TABLES PARAM
wa_ss_vbrp  LIKE LINE OF it_ss_vbrp ,
it_ss_paym_distr_res  TYPE STANDARD TABLE OF RNPP0,"TABLES PARAM
wa_ss_paym_distr_res  LIKE LINE OF it_ss_paym_distr_res .

DATA(ld_ss_fkomk) = 'Check type of data required'.

DATA(ld_ss_no_log) = some text here

"populate fields of struture and append to itab
append wa_ss_fkomp to it_ss_fkomp.

"populate fields of struture and append to itab
append wa_ss_xkomv_i to it_ss_xkomv_i.

"populate fields of struture and append to itab
append wa_ss_xkomv_e to it_ss_xkomv_e.

"populate fields of struture and append to itab
append wa_ss_nleitab to it_ss_nleitab.

"populate fields of struture and append to itab
append wa_ss_nbewtab to it_ss_nbewtab.

"populate fields of struture and append to itab
append wa_ss_vbrk to it_ss_vbrk.

"populate fields of struture and append to itab
append wa_ss_vbrp to it_ss_vbrp.

"populate fields of struture and append to itab
append wa_ss_paym_distr_res to it_ss_paym_distr_res. . CALL FUNCTION 'ISH_CALL_PAYMENT_DISTRIBUTION' EXPORTING ss_fkomk = ld_ss_fkomk * ss_no_log = ld_ss_no_log TABLES ss_fkomp = it_ss_fkomp ss_xkomv_i = it_ss_xkomv_i * ss_xkomv_e = it_ss_xkomv_e ss_nleitab = it_ss_nleitab ss_nbewtab = it_ss_nbewtab * ss_vbrk = it_ss_vbrk * ss_vbrp = it_ss_vbrp * ss_paym_distr_res = it_ss_paym_distr_res EXCEPTIONS ERROR_PAYMENT_DISTRIBUTION = 1 ERROR_FINISH_PD = 2 . " ISH_CALL_PAYMENT_DISTRIBUTION
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_ss_fkomk  TYPE RNFK1 ,
it_ss_fkomp  TYPE STANDARD TABLE OF RNFP1 ,
wa_ss_fkomp  LIKE LINE OF it_ss_fkomp,
ld_ss_no_log  TYPE NPDOK-XFELD ,
it_ss_xkomv_i  TYPE STANDARD TABLE OF KOMV ,
wa_ss_xkomv_i  LIKE LINE OF it_ss_xkomv_i,
it_ss_xkomv_e  TYPE STANDARD TABLE OF KOMV ,
wa_ss_xkomv_e  LIKE LINE OF it_ss_xkomv_e,
it_ss_nleitab  TYPE STANDARD TABLE OF NLEI ,
wa_ss_nleitab  LIKE LINE OF it_ss_nleitab,
it_ss_nbewtab  TYPE STANDARD TABLE OF NBEW ,
wa_ss_nbewtab  LIKE LINE OF it_ss_nbewtab,
it_ss_vbrk  TYPE STANDARD TABLE OF VBRK ,
wa_ss_vbrk  LIKE LINE OF it_ss_vbrk,
it_ss_vbrp  TYPE STANDARD TABLE OF VBRP ,
wa_ss_vbrp  LIKE LINE OF it_ss_vbrp,
it_ss_paym_distr_res  TYPE STANDARD TABLE OF RNPP0 ,
wa_ss_paym_distr_res  LIKE LINE OF it_ss_paym_distr_res.

ld_ss_fkomk = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ss_fkomp to it_ss_fkomp.

ld_ss_no_log = some text here

"populate fields of struture and append to itab
append wa_ss_xkomv_i to it_ss_xkomv_i.

"populate fields of struture and append to itab
append wa_ss_xkomv_e to it_ss_xkomv_e.

"populate fields of struture and append to itab
append wa_ss_nleitab to it_ss_nleitab.

"populate fields of struture and append to itab
append wa_ss_nbewtab to it_ss_nbewtab.

"populate fields of struture and append to itab
append wa_ss_vbrk to it_ss_vbrk.

"populate fields of struture and append to itab
append wa_ss_vbrp to it_ss_vbrp.

"populate fields of struture and append to itab
append wa_ss_paym_distr_res to it_ss_paym_distr_res.

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