SAP Function Modules

ISH_PARTIALPAY_POST SAP Function module







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

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


Pattern for FM ISH_PARTIALPAY_POST - ISH PARTIALPAY POST





CALL FUNCTION 'ISH_PARTIALPAY_POST' "
  EXPORTING
    i_bukrs =                   " tn01-bukrs
    i_budat =                   " bkpf-budat
    i_bldat =                   " bkpf-bldat
    i_blart =                   " bkpf-blart
*   i_bktxt =                   " bkpf-bktxt
*   i_xblnr =                   " bkpf-xblnr
*   i_valut =                   " bseg-valut
*   i_sgtxt =                   " bseg-sgtxt
*   i_zuonr =                   " bseg-zuonr
    i_customer =                " bseg-kunnr
    i_konto =                   " ish_cash_account
    i_wrbtr =                   " bseg-wrbtr
    i_waers =                   " bkpf-waers
*   i_tmode = 'E'               "
*   i_tupdate = 'S'             "
*   i_tclear = ' '              "
  IMPORTING
    beleg =                     " bkpf-belnr
    msgid =                     " sy-msgid
    msgno =                     " sy-msgno
    msgty =                     " sy-msgty
    msgv1 =                     " sy-msgv1
    msgv2 =                     " sy-msgv2
    msgv3 =                     " sy-msgv3
    msgv4 =                     " sy-msgv4
    subrc =                     " sy-subrc
  TABLES
    it_bsid =                   " bsid
    .  "  ISH_PARTIALPAY_POST

ABAP code example for Function Module ISH_PARTIALPAY_POST





The ABAP code below is a full code listing to execute function module ISH_PARTIALPAY_POST 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_beleg  TYPE BKPF-BELNR ,
ld_msgid  TYPE SY-MSGID ,
ld_msgno  TYPE SY-MSGNO ,
ld_msgty  TYPE SY-MSGTY ,
ld_msgv1  TYPE SY-MSGV1 ,
ld_msgv2  TYPE SY-MSGV2 ,
ld_msgv3  TYPE SY-MSGV3 ,
ld_msgv4  TYPE SY-MSGV4 ,
ld_subrc  TYPE SY-SUBRC ,
it_it_bsid  TYPE STANDARD TABLE OF BSID,"TABLES PARAM
wa_it_bsid  LIKE LINE OF it_it_bsid .


SELECT single BUKRS
FROM TN01
INTO @DATA(ld_i_bukrs).


SELECT single BUDAT
FROM BKPF
INTO @DATA(ld_i_budat).


SELECT single BLDAT
FROM BKPF
INTO @DATA(ld_i_bldat).


SELECT single BLART
FROM BKPF
INTO @DATA(ld_i_blart).


SELECT single BKTXT
FROM BKPF
INTO @DATA(ld_i_bktxt).


SELECT single XBLNR
FROM BKPF
INTO @DATA(ld_i_xblnr).


SELECT single VALUT
FROM BSEG
INTO @DATA(ld_i_valut).


SELECT single SGTXT
FROM BSEG
INTO @DATA(ld_i_sgtxt).


SELECT single ZUONR
FROM BSEG
INTO @DATA(ld_i_zuonr).


SELECT single KUNNR
FROM BSEG
INTO @DATA(ld_i_customer).

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

SELECT single WRBTR
FROM BSEG
INTO @DATA(ld_i_wrbtr).


SELECT single WAERS
FROM BKPF
INTO @DATA(ld_i_waers).

DATA(ld_i_tmode) = 'some text here'.
DATA(ld_i_tupdate) = 'some text here'.
DATA(ld_i_tclear) = 'some text here'.

"populate fields of struture and append to itab
append wa_it_bsid to it_it_bsid. . CALL FUNCTION 'ISH_PARTIALPAY_POST' EXPORTING i_bukrs = ld_i_bukrs i_budat = ld_i_budat i_bldat = ld_i_bldat i_blart = ld_i_blart * i_bktxt = ld_i_bktxt * i_xblnr = ld_i_xblnr * i_valut = ld_i_valut * i_sgtxt = ld_i_sgtxt * i_zuonr = ld_i_zuonr i_customer = ld_i_customer i_konto = ld_i_konto i_wrbtr = ld_i_wrbtr i_waers = ld_i_waers * i_tmode = ld_i_tmode * i_tupdate = ld_i_tupdate * i_tclear = ld_i_tclear IMPORTING beleg = ld_beleg msgid = ld_msgid msgno = ld_msgno msgty = ld_msgty msgv1 = ld_msgv1 msgv2 = ld_msgv2 msgv3 = ld_msgv3 msgv4 = ld_msgv4 subrc = ld_subrc TABLES it_bsid = it_it_bsid . " ISH_PARTIALPAY_POST
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_beleg  TYPE BKPF-BELNR ,
it_it_bsid  TYPE STANDARD TABLE OF BSID ,
wa_it_bsid  LIKE LINE OF it_it_bsid,
ld_i_bukrs  TYPE TN01-BUKRS ,
ld_msgid  TYPE SY-MSGID ,
ld_i_budat  TYPE BKPF-BUDAT ,
ld_msgno  TYPE SY-MSGNO ,
ld_i_bldat  TYPE BKPF-BLDAT ,
ld_i_blart  TYPE BKPF-BLART ,
ld_msgty  TYPE SY-MSGTY ,
ld_msgv1  TYPE SY-MSGV1 ,
ld_i_bktxt  TYPE BKPF-BKTXT ,
ld_msgv2  TYPE SY-MSGV2 ,
ld_i_xblnr  TYPE BKPF-XBLNR ,
ld_msgv3  TYPE SY-MSGV3 ,
ld_i_valut  TYPE BSEG-VALUT ,
ld_msgv4  TYPE SY-MSGV4 ,
ld_i_sgtxt  TYPE BSEG-SGTXT ,
ld_subrc  TYPE SY-SUBRC ,
ld_i_zuonr  TYPE BSEG-ZUONR ,
ld_i_customer  TYPE BSEG-KUNNR ,
ld_i_konto  TYPE ISH_CASH_ACCOUNT ,
ld_i_wrbtr  TYPE BSEG-WRBTR ,
ld_i_waers  TYPE BKPF-WAERS ,
ld_i_tmode  TYPE STRING ,
ld_i_tupdate  TYPE STRING ,
ld_i_tclear  TYPE STRING .


"populate fields of struture and append to itab
append wa_it_bsid to it_it_bsid.

SELECT single BUKRS
FROM TN01
INTO ld_i_bukrs.


SELECT single BUDAT
FROM BKPF
INTO ld_i_budat.


SELECT single BLDAT
FROM BKPF
INTO ld_i_bldat.


SELECT single BLART
FROM BKPF
INTO ld_i_blart.


SELECT single BKTXT
FROM BKPF
INTO ld_i_bktxt.


SELECT single XBLNR
FROM BKPF
INTO ld_i_xblnr.


SELECT single VALUT
FROM BSEG
INTO ld_i_valut.


SELECT single SGTXT
FROM BSEG
INTO ld_i_sgtxt.


SELECT single ZUONR
FROM BSEG
INTO ld_i_zuonr.


SELECT single KUNNR
FROM BSEG
INTO ld_i_customer.

ld_i_konto = 'Check type of data required'.

SELECT single WRBTR
FROM BSEG
INTO ld_i_wrbtr.


SELECT single WAERS
FROM BKPF
INTO ld_i_waers.

ld_i_tmode = 'some text here'.
ld_i_tupdate = 'some text here'.
ld_i_tclear = 'some text here'.

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