SAP Function Modules

ISP_INVOICE_CREATE_FAKT SAP Function module - IS-M/SD: Generate Billing Interface Tables for Billing







ISP_INVOICE_CREATE_FAKT 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_FAKT 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_FAKT - ISP INVOICE CREATE FAKT





CALL FUNCTION 'ISP_INVOICE_CREATE_FAKT' "IS-M/SD: Generate Billing Interface Tables for Billing
  EXPORTING
*   fkdat = '00000000'          " jfrk-fkdat
*   igv_msgid = 'JF'            " jffs-msgid
*   spart = '  '                " jfrk-spart
    vkorg =                     " jfrk-vkorg
*   vtweg = '  '                " jfrk-vtweg
*   with_posting = ' '          " xfeld
*   fkper =                     " jfrp-ispfkper
*   perfk =                     " jfrp-ispperfk
*   xparallel = SPACE           " xfaktura_parallel_zum_auftrag  Indicator: Billing Creation Parallel to Order Processing
  IMPORTING
    xjfsk =                     " jfsk
  TABLES
*   xfkara =                    "
*   xgpnr =                     "
    xjfdfs =                    " jfdfsvb
    xkomfk =                    " jkomfk
    xkomfkgn =                  " jf60_xkomfkgn_type
    xkomv =                     " komv
*   xnamek =                    "
    xthead =                    " thead
    xjffs =                     " jffs
    xjfpa =                     " jfpavb
    xjfrk =                     " jfrkvb
    xjfrp =                     " jfrpvb
*   xzlsch =                    "
*   xjffdicht =                 " jffdivb
*   xdrerz =                    "
*   xjfrkcc =                   " jfrkccvb
*   xvbeln =                    "
    .  "  ISP_INVOICE_CREATE_FAKT

ABAP code example for Function Module ISP_INVOICE_CREATE_FAKT





The ABAP code below is a full code listing to execute function module ISP_INVOICE_CREATE_FAKT 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_xjfsk  TYPE JFSK ,
it_xfkara  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_xfkara  LIKE LINE OF it_xfkara ,
it_xgpnr  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_xgpnr  LIKE LINE OF it_xgpnr ,
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_xnamek  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_xnamek  LIKE LINE OF it_xnamek ,
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_xzlsch  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_xzlsch  LIKE LINE OF it_xzlsch ,
it_xjffdicht  TYPE STANDARD TABLE OF JFFDIVB,"TABLES PARAM
wa_xjffdicht  LIKE LINE OF it_xjffdicht ,
it_xdrerz  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_xdrerz  LIKE LINE OF it_xdrerz ,
it_xjfrkcc  TYPE STANDARD TABLE OF JFRKCCVB,"TABLES PARAM
wa_xjfrkcc  LIKE LINE OF it_xjfrkcc ,
it_xvbeln  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_xvbeln  LIKE LINE OF it_xvbeln .


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


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


SELECT single SPART
FROM JFRK
INTO @DATA(ld_spart).


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


SELECT single VTWEG
FROM JFRK
INTO @DATA(ld_vtweg).

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

SELECT single ISPFKPER
FROM JFRP
INTO @DATA(ld_fkper).


SELECT single ISPPERFK
FROM JFRP
INTO @DATA(ld_perfk).

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

"populate fields of struture and append to itab
append wa_xfkara to it_xfkara.

"populate fields of struture and append to itab
append wa_xgpnr to it_xgpnr.

"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_xnamek to it_xnamek.

"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_xzlsch to it_xzlsch.

"populate fields of struture and append to itab
append wa_xjffdicht to it_xjffdicht.

"populate fields of struture and append to itab
append wa_xdrerz to it_xdrerz.

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

"populate fields of struture and append to itab
append wa_xvbeln to it_xvbeln. . CALL FUNCTION 'ISP_INVOICE_CREATE_FAKT' EXPORTING * fkdat = ld_fkdat * igv_msgid = ld_igv_msgid * spart = ld_spart vkorg = ld_vkorg * vtweg = ld_vtweg * with_posting = ld_with_posting * fkper = ld_fkper * perfk = ld_perfk * xparallel = ld_xparallel IMPORTING xjfsk = ld_xjfsk TABLES * xfkara = it_xfkara * xgpnr = it_xgpnr xjfdfs = it_xjfdfs xkomfk = it_xkomfk xkomfkgn = it_xkomfkgn xkomv = it_xkomv * xnamek = it_xnamek xthead = it_xthead xjffs = it_xjffs xjfpa = it_xjfpa xjfrk = it_xjfrk xjfrp = it_xjfrp * xzlsch = it_xzlsch * xjffdicht = it_xjffdicht * xdrerz = it_xdrerz * xjfrkcc = it_xjfrkcc * xvbeln = it_xvbeln . " ISP_INVOICE_CREATE_FAKT
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_xjfsk  TYPE JFSK ,
ld_fkdat  TYPE JFRK-FKDAT ,
it_xfkara  TYPE STANDARD TABLE OF STRING ,
wa_xfkara  LIKE LINE OF it_xfkara,
ld_igv_msgid  TYPE JFFS-MSGID ,
it_xgpnr  TYPE STANDARD TABLE OF STRING ,
wa_xgpnr  LIKE LINE OF it_xgpnr,
ld_spart  TYPE JFRK-SPART ,
it_xjfdfs  TYPE STANDARD TABLE OF JFDFSVB ,
wa_xjfdfs  LIKE LINE OF it_xjfdfs,
it_xkomfk  TYPE STANDARD TABLE OF JKOMFK ,
wa_xkomfk  LIKE LINE OF it_xkomfk,
ld_vkorg  TYPE JFRK-VKORG ,
ld_vtweg  TYPE JFRK-VTWEG ,
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_fkper  TYPE JFRP-ISPFKPER ,
it_xnamek  TYPE STANDARD TABLE OF STRING ,
wa_xnamek  LIKE LINE OF it_xnamek,
ld_perfk  TYPE JFRP-ISPPERFK ,
it_xthead  TYPE STANDARD TABLE OF THEAD ,
wa_xthead  LIKE LINE OF it_xthead,
ld_xparallel  TYPE XFAKTURA_PARALLEL_ZUM_AUFTRAG ,
it_xjffs  TYPE STANDARD TABLE OF JFFS ,
wa_xjffs  LIKE LINE OF it_xjffs,
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_xzlsch  TYPE STANDARD TABLE OF STRING ,
wa_xzlsch  LIKE LINE OF it_xzlsch,
it_xjffdicht  TYPE STANDARD TABLE OF JFFDIVB ,
wa_xjffdicht  LIKE LINE OF it_xjffdicht,
it_xdrerz  TYPE STANDARD TABLE OF STRING ,
wa_xdrerz  LIKE LINE OF it_xdrerz,
it_xjfrkcc  TYPE STANDARD TABLE OF JFRKCCVB ,
wa_xjfrkcc  LIKE LINE OF it_xjfrkcc,
it_xvbeln  TYPE STANDARD TABLE OF STRING ,
wa_xvbeln  LIKE LINE OF it_xvbeln.


SELECT single FKDAT
FROM JFRK
INTO ld_fkdat.


"populate fields of struture and append to itab
append wa_xfkara to it_xfkara.

SELECT single MSGID
FROM JFFS
INTO ld_igv_msgid.


"populate fields of struture and append to itab
append wa_xgpnr to it_xgpnr.

SELECT single SPART
FROM JFRK
INTO ld_spart.


"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.

SELECT single VKORG
FROM JFRK
INTO ld_vkorg.


SELECT single VTWEG
FROM JFRK
INTO ld_vtweg.


"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.

SELECT single ISPFKPER
FROM JFRP
INTO ld_fkper.


"populate fields of struture and append to itab
append wa_xnamek to it_xnamek.

SELECT single ISPPERFK
FROM JFRP
INTO ld_perfk.


"populate fields of struture and append to itab
append wa_xthead to it_xthead.
ld_xparallel = 'Check type of data required'.

"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_xzlsch to it_xzlsch.

"populate fields of struture and append to itab
append wa_xjffdicht to it_xjffdicht.

"populate fields of struture and append to itab
append wa_xdrerz to it_xdrerz.

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

"populate fields of struture and append to itab
append wa_xvbeln to it_xvbeln.

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