SAP Function Modules

ISP_INVOICE_CREATE_STO SAP Function module - IS-M/SD: Generate Reversal Billing Documents







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

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


Pattern for FM ISP_INVOICE_CREATE_STO - ISP INVOICE CREATE STO





CALL FUNCTION 'ISP_INVOICE_CREATE_STO' "IS-M/SD: Generate Reversal Billing Documents
  EXPORTING
*   igv_msgid = 'JF'            " jffs-msgid
*   invoice_date = 0            " jfrk-fkdat    Billing Document Date
    jfsk_i =                    " jfsk
*   with_posting = ' '          " xfeld
*   jfdfs_no_update = ' '       " xfeld
*   xbankrueck = ' '            " tjn01-xbankrueck
    vkorg =                     " jfrk-vkorg
  IMPORTING
    jfsk_e =                    " jfsk
  TABLES
    xjfdfs =                    " jfdfsvb       Billing Index
    xkomfk =                    " jkomfk        Billing Communications Table
    xkomfkgn =                  " jf60_xkomfkgn_type
    xkomv =                     " komv          Price Determination Communications-Condition Record
    xthead =                    " thead         SAPscript: Text Header
    xjffs =                     " jffs          Error Log for Collective Processing
    xjfpa =                     " jfpavb        Sales Document: Partner
    xjfrk =                     " jfrkvb        Billing Document: Header Data
    xjfrp =                     " jfrpvb        Billing Document: Item Data
*   xjfrkcc =                   " jfrkccvb
    .  "  ISP_INVOICE_CREATE_STO

ABAP code example for Function Module ISP_INVOICE_CREATE_STO





The ABAP code below is a full code listing to execute function module ISP_INVOICE_CREATE_STO 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_jfsk_e  TYPE JFSK ,
it_xjfdfs  TYPE STANDARD TABLE OF JFDFSVB,"TABLES PARAM
wa_xjfdfs  LIKE LINE OF it_xjfdfs ,
it_xkomfk  TYPE STANDARD TABLE OF JKOMFK,"TABLES PARAM
wa_xkomfk  LIKE LINE OF it_xkomfk ,
it_xkomfkgn  TYPE STANDARD TABLE OF JF60_XKOMFKGN_TYPE,"TABLES PARAM
wa_xkomfkgn  LIKE LINE OF it_xkomfkgn ,
it_xkomv  TYPE STANDARD TABLE OF KOMV,"TABLES PARAM
wa_xkomv  LIKE LINE OF it_xkomv ,
it_xthead  TYPE STANDARD TABLE OF THEAD,"TABLES PARAM
wa_xthead  LIKE LINE OF it_xthead ,
it_xjffs  TYPE STANDARD TABLE OF JFFS,"TABLES PARAM
wa_xjffs  LIKE LINE OF it_xjffs ,
it_xjfpa  TYPE STANDARD TABLE OF JFPAVB,"TABLES PARAM
wa_xjfpa  LIKE LINE OF it_xjfpa ,
it_xjfrk  TYPE STANDARD TABLE OF JFRKVB,"TABLES PARAM
wa_xjfrk  LIKE LINE OF it_xjfrk ,
it_xjfrp  TYPE STANDARD TABLE OF JFRPVB,"TABLES PARAM
wa_xjfrp  LIKE LINE OF it_xjfrp ,
it_xjfrkcc  TYPE STANDARD TABLE OF JFRKCCVB,"TABLES PARAM
wa_xjfrkcc  LIKE LINE OF it_xjfrkcc .


SELECT single MSGID
FROM JFFS
INTO @DATA(ld_igv_msgid).


SELECT single FKDAT
FROM JFRK
INTO @DATA(ld_invoice_date).

DATA(ld_jfsk_i) = 'Check type of data required'.
DATA(ld_with_posting) = 'Check type of data required'.
DATA(ld_jfdfs_no_update) = 'Check type of data required'.

SELECT single XBANKRUECK
FROM TJN01
INTO @DATA(ld_xbankrueck).


SELECT single VKORG
FROM JFRK
INTO @DATA(ld_vkorg).


"populate fields of struture and append to itab
append wa_xjfdfs to it_xjfdfs.

"populate fields of struture and append to itab
append wa_xkomfk to it_xkomfk.

"populate fields of struture and append to itab
append wa_xkomfkgn to it_xkomfkgn.

"populate fields of struture and append to itab
append wa_xkomv to it_xkomv.

"populate fields of struture and append to itab
append wa_xthead to it_xthead.

"populate fields of struture and append to itab
append wa_xjffs to it_xjffs.

"populate fields of struture and append to itab
append wa_xjfpa to it_xjfpa.

"populate fields of struture and append to itab
append wa_xjfrk to it_xjfrk.

"populate fields of struture and append to itab
append wa_xjfrp to it_xjfrp.

"populate fields of struture and append to itab
append wa_xjfrkcc to it_xjfrkcc. . CALL FUNCTION 'ISP_INVOICE_CREATE_STO' EXPORTING * igv_msgid = ld_igv_msgid * invoice_date = ld_invoice_date jfsk_i = ld_jfsk_i * with_posting = ld_with_posting * jfdfs_no_update = ld_jfdfs_no_update * xbankrueck = ld_xbankrueck vkorg = ld_vkorg IMPORTING jfsk_e = ld_jfsk_e TABLES xjfdfs = it_xjfdfs xkomfk = it_xkomfk xkomfkgn = it_xkomfkgn xkomv = it_xkomv xthead = it_xthead xjffs = it_xjffs xjfpa = it_xjfpa xjfrk = it_xjfrk xjfrp = it_xjfrp * xjfrkcc = it_xjfrkcc . " ISP_INVOICE_CREATE_STO
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_jfsk_e  TYPE JFSK ,
ld_igv_msgid  TYPE JFFS-MSGID ,
it_xjfdfs  TYPE STANDARD TABLE OF JFDFSVB ,
wa_xjfdfs  LIKE LINE OF it_xjfdfs,
ld_invoice_date  TYPE JFRK-FKDAT ,
it_xkomfk  TYPE STANDARD TABLE OF JKOMFK ,
wa_xkomfk  LIKE LINE OF it_xkomfk,
ld_jfsk_i  TYPE JFSK ,
it_xkomfkgn  TYPE STANDARD TABLE OF JF60_XKOMFKGN_TYPE ,
wa_xkomfkgn  LIKE LINE OF it_xkomfkgn,
ld_with_posting  TYPE XFELD ,
it_xkomv  TYPE STANDARD TABLE OF KOMV ,
wa_xkomv  LIKE LINE OF it_xkomv,
ld_jfdfs_no_update  TYPE XFELD ,
it_xthead  TYPE STANDARD TABLE OF THEAD ,
wa_xthead  LIKE LINE OF it_xthead,
ld_xbankrueck  TYPE TJN01-XBANKRUECK ,
it_xjffs  TYPE STANDARD TABLE OF JFFS ,
wa_xjffs  LIKE LINE OF it_xjffs,
ld_vkorg  TYPE JFRK-VKORG ,
it_xjfpa  TYPE STANDARD TABLE OF JFPAVB ,
wa_xjfpa  LIKE LINE OF it_xjfpa,
it_xjfrk  TYPE STANDARD TABLE OF JFRKVB ,
wa_xjfrk  LIKE LINE OF it_xjfrk,
it_xjfrp  TYPE STANDARD TABLE OF JFRPVB ,
wa_xjfrp  LIKE LINE OF it_xjfrp,
it_xjfrkcc  TYPE STANDARD TABLE OF JFRKCCVB ,
wa_xjfrkcc  LIKE LINE OF it_xjfrkcc.


SELECT single MSGID
FROM JFFS
INTO ld_igv_msgid.


"populate fields of struture and append to itab
append wa_xjfdfs to it_xjfdfs.

SELECT single FKDAT
FROM JFRK
INTO ld_invoice_date.


"populate fields of struture and append to itab
append wa_xkomfk to it_xkomfk.
ld_jfsk_i = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xkomfkgn to it_xkomfkgn.
ld_with_posting = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xkomv to it_xkomv.
ld_jfdfs_no_update = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xthead to it_xthead.

SELECT single XBANKRUECK
FROM TJN01
INTO ld_xbankrueck.


"populate fields of struture and append to itab
append wa_xjffs to it_xjffs.

SELECT single VKORG
FROM JFRK
INTO ld_vkorg.


"populate fields of struture and append to itab
append wa_xjfpa to it_xjfpa.

"populate fields of struture and append to itab
append wa_xjfrk to it_xjfrk.

"populate fields of struture and append to itab
append wa_xjfrp to it_xjfrp.

"populate fields of struture and append to itab
append wa_xjfrkcc to it_xjfrkcc.

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