SAP ISH_PAYMENT_DISTRIBUTION Function Module for









ISH_PAYMENT_DISTRIBUTION is a standard ish payment distribution SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for ish payment distribution FM, simply by entering the name ISH_PAYMENT_DISTRIBUTION into the relevant SAP transaction such as SE37 or SE38.

Function Group: NPD1
Program Name: SAPLNPD1
Main Program: SAPLNPD1
Appliation area: N
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ISH_PAYMENT_DISTRIBUTION pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'ISH_PAYMENT_DISTRIBUTION'"
EXPORTING
SS_EINRI = "
SS_PATNR = "
SS_FALNR = "
SS_FALAR = "
* SS_BILLDATE = SY-DATUM "
SS_MODUS = "

TABLES
SS_SERVICES = "
SS_NLEITAB = "
SS_NBEWTAB = "
* SS_PAYMENT_INFO = "IS-H: Info Payment Distribution per IR
* SS_VBRK = "Billing Document: Header Data
* SS_VBRP = "Billing Document: Item Data

EXCEPTIONS
NOT_COMPLETE = 1 MISSING_DATA = 2 ERROR_CONTRACTUAL_CAT = 3 NO_EXTERN_VALUES = 4
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLNPD1_001 IS-H: Requirements for Contract Schemes (Header Level)
EXIT_SAPLNPD1_002 IS-H: Requirements for Contract Schemes (Item Level)
EXIT_SAPLNPD1_003 IS-H: Service Filter for Contract Schemes
EXIT_SAPLNPD1_004 IS-H: Insurance Relationship Sort Order
EXIT_SAPLNPD1_005 IS-H: Determine Number of Days/Visits for Contract Schemes

IMPORTING Parameters details for ISH_PAYMENT_DISTRIBUTION

SS_EINRI -

Data type: TN01-EINRI
Optional: No
Call by Reference: No ( called with pass by value option)

SS_PATNR -

Data type: NPAT-PATNR
Optional: No
Call by Reference: No ( called with pass by value option)

SS_FALNR -

Data type: NFAL-FALNR
Optional: No
Call by Reference: No ( called with pass by value option)

SS_FALAR -

Data type: NFAL-FALAR
Optional: No
Call by Reference: No ( called with pass by value option)

SS_BILLDATE -

Data type:
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

SS_MODUS -

Data type: RNPP7
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for ISH_PAYMENT_DISTRIBUTION

SS_SERVICES -

Data type: RNPP0
Optional: No
Call by Reference: No ( called with pass by value option)

SS_NLEITAB -

Data type: NLEI
Optional: No
Call by Reference: No ( called with pass by value option)

SS_NBEWTAB -

Data type: NBEW
Optional: No
Call by Reference: No ( called with pass by value option)

SS_PAYMENT_INFO - IS-H: Info Payment Distribution per IR

Data type: RNPP9
Optional: Yes
Call by Reference: Yes

SS_VBRK - Billing Document: Header Data

Data type: VBRK
Optional: Yes
Call by Reference: Yes

SS_VBRP - Billing Document: Item Data

Data type: VBRP
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

NOT_COMPLETE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

MISSING_DATA -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ERROR_CONTRACTUAL_CAT -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_EXTERN_VALUES -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for ISH_PAYMENT_DISTRIBUTION Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_ss_einri  TYPE TN01-EINRI, "   
lt_ss_services  TYPE STANDARD TABLE OF RNPP0, "   
lv_not_complete  TYPE RNPP0, "   
lv_ss_patnr  TYPE NPAT-PATNR, "   
lt_ss_nleitab  TYPE STANDARD TABLE OF NLEI, "   
lv_missing_data  TYPE NLEI, "   
lv_ss_falnr  TYPE NFAL-FALNR, "   
lt_ss_nbewtab  TYPE STANDARD TABLE OF NBEW, "   
lv_error_contractual_cat  TYPE NBEW, "   
lv_ss_falar  TYPE NFAL-FALAR, "   
lt_ss_payment_info  TYPE STANDARD TABLE OF RNPP9, "   
lv_no_extern_values  TYPE RNPP9, "   
lt_ss_vbrk  TYPE STANDARD TABLE OF VBRK, "   
lv_ss_billdate  TYPE VBRK, "   SY-DATUM
lt_ss_vbrp  TYPE STANDARD TABLE OF VBRP, "   
lv_ss_modus  TYPE RNPP7. "   

  CALL FUNCTION 'ISH_PAYMENT_DISTRIBUTION'  "
    EXPORTING
         SS_EINRI = lv_ss_einri
         SS_PATNR = lv_ss_patnr
         SS_FALNR = lv_ss_falnr
         SS_FALAR = lv_ss_falar
         SS_BILLDATE = lv_ss_billdate
         SS_MODUS = lv_ss_modus
    TABLES
         SS_SERVICES = lt_ss_services
         SS_NLEITAB = lt_ss_nleitab
         SS_NBEWTAB = lt_ss_nbewtab
         SS_PAYMENT_INFO = lt_ss_payment_info
         SS_VBRK = lt_ss_vbrk
         SS_VBRP = lt_ss_vbrp
    EXCEPTIONS
        NOT_COMPLETE = 1
        MISSING_DATA = 2
        ERROR_CONTRACTUAL_CAT = 3
        NO_EXTERN_VALUES = 4
. " ISH_PAYMENT_DISTRIBUTION




ABAP code using 7.40 inline data declarations to call FM ISH_PAYMENT_DISTRIBUTION

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single EINRI FROM TN01 INTO @DATA(ld_ss_einri).
 
 
 
"SELECT single PATNR FROM NPAT INTO @DATA(ld_ss_patnr).
 
 
 
"SELECT single FALNR FROM NFAL INTO @DATA(ld_ss_falnr).
 
 
 
"SELECT single FALAR FROM NFAL INTO @DATA(ld_ss_falar).
 
 
 
 
DATA(ld_ss_billdate) = SY-DATUM.
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!