SAP Function Modules

ISP_SERVICE_ACCOUNT_DOC_ADD SAP Function module - IS-M/SD: Update Settlement Documents







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

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


Pattern for FM ISP_SERVICE_ACCOUNT_DOC_ADD - ISP SERVICE ACCOUNT DOC ADD





CALL FUNCTION 'ISP_SERVICE_ACCOUNT_DOC_ADD' "IS-M/SD: Update Settlement Documents
  EXPORTING
    jlsk_i =                    " jlsk
*   with_posting = ' '          "
    trtyp =                     " t180-trtyp
  IMPORTING
    jlsk_e =                    " jlsk
  TABLES
    xjlcommind =                " jlcommindvb
    xjffb =                     " jffbvb
    xjlfs =                     " jlfs
    xjlpa =                     " jlpavb
    xjlrk =                     " jlrkvb
    xjlrp =                     " jlrpvb
    xjlss =                     " jlss
    xkomlk =                    " komlk
    xkomlkgn =                  " komlkgn
    xkomv =                     " komv
    xthead =                    " thead
* CHANGING
*   c_xjffb_if_tab =            " jlhdextifdocflowvb_t
    .  "  ISP_SERVICE_ACCOUNT_DOC_ADD

ABAP code example for Function Module ISP_SERVICE_ACCOUNT_DOC_ADD





The ABAP code below is a full code listing to execute function module ISP_SERVICE_ACCOUNT_DOC_ADD 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_jlsk_e  TYPE JLSK ,
it_xjlcommind  TYPE STANDARD TABLE OF JLCOMMINDVB,"TABLES PARAM
wa_xjlcommind  LIKE LINE OF it_xjlcommind ,
it_xjffb  TYPE STANDARD TABLE OF JFFBVB,"TABLES PARAM
wa_xjffb  LIKE LINE OF it_xjffb ,
it_xjlfs  TYPE STANDARD TABLE OF JLFS,"TABLES PARAM
wa_xjlfs  LIKE LINE OF it_xjlfs ,
it_xjlpa  TYPE STANDARD TABLE OF JLPAVB,"TABLES PARAM
wa_xjlpa  LIKE LINE OF it_xjlpa ,
it_xjlrk  TYPE STANDARD TABLE OF JLRKVB,"TABLES PARAM
wa_xjlrk  LIKE LINE OF it_xjlrk ,
it_xjlrp  TYPE STANDARD TABLE OF JLRPVB,"TABLES PARAM
wa_xjlrp  LIKE LINE OF it_xjlrp ,
it_xjlss  TYPE STANDARD TABLE OF JLSS,"TABLES PARAM
wa_xjlss  LIKE LINE OF it_xjlss ,
it_xkomlk  TYPE STANDARD TABLE OF KOMLK,"TABLES PARAM
wa_xkomlk  LIKE LINE OF it_xkomlk ,
it_xkomlkgn  TYPE STANDARD TABLE OF KOMLKGN,"TABLES PARAM
wa_xkomlkgn  LIKE LINE OF it_xkomlkgn ,
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 .

DATA(ld_c_xjffb_if_tab) = 'Check type of data required'.
DATA(ld_jlsk_i) = 'Check type of data required'.
DATA(ld_with_posting) = 'some text here'.

SELECT single TRTYP
FROM T180
INTO @DATA(ld_trtyp).


"populate fields of struture and append to itab
append wa_xjlcommind to it_xjlcommind.

"populate fields of struture and append to itab
append wa_xjffb to it_xjffb.

"populate fields of struture and append to itab
append wa_xjlfs to it_xjlfs.

"populate fields of struture and append to itab
append wa_xjlpa to it_xjlpa.

"populate fields of struture and append to itab
append wa_xjlrk to it_xjlrk.

"populate fields of struture and append to itab
append wa_xjlrp to it_xjlrp.

"populate fields of struture and append to itab
append wa_xjlss to it_xjlss.

"populate fields of struture and append to itab
append wa_xkomlk to it_xkomlk.

"populate fields of struture and append to itab
append wa_xkomlkgn to it_xkomlkgn.

"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. . CALL FUNCTION 'ISP_SERVICE_ACCOUNT_DOC_ADD' EXPORTING jlsk_i = ld_jlsk_i * with_posting = ld_with_posting trtyp = ld_trtyp IMPORTING jlsk_e = ld_jlsk_e TABLES xjlcommind = it_xjlcommind xjffb = it_xjffb xjlfs = it_xjlfs xjlpa = it_xjlpa xjlrk = it_xjlrk xjlrp = it_xjlrp xjlss = it_xjlss xkomlk = it_xkomlk xkomlkgn = it_xkomlkgn xkomv = it_xkomv xthead = it_xthead * CHANGING * c_xjffb_if_tab = ld_c_xjffb_if_tab . " ISP_SERVICE_ACCOUNT_DOC_ADD
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_c_xjffb_if_tab  TYPE JLHDEXTIFDOCFLOWVB_T ,
ld_jlsk_e  TYPE JLSK ,
ld_jlsk_i  TYPE JLSK ,
it_xjlcommind  TYPE STANDARD TABLE OF JLCOMMINDVB ,
wa_xjlcommind  LIKE LINE OF it_xjlcommind,
ld_with_posting  TYPE STRING ,
it_xjffb  TYPE STANDARD TABLE OF JFFBVB ,
wa_xjffb  LIKE LINE OF it_xjffb,
ld_trtyp  TYPE T180-TRTYP ,
it_xjlfs  TYPE STANDARD TABLE OF JLFS ,
wa_xjlfs  LIKE LINE OF it_xjlfs,
it_xjlpa  TYPE STANDARD TABLE OF JLPAVB ,
wa_xjlpa  LIKE LINE OF it_xjlpa,
it_xjlrk  TYPE STANDARD TABLE OF JLRKVB ,
wa_xjlrk  LIKE LINE OF it_xjlrk,
it_xjlrp  TYPE STANDARD TABLE OF JLRPVB ,
wa_xjlrp  LIKE LINE OF it_xjlrp,
it_xjlss  TYPE STANDARD TABLE OF JLSS ,
wa_xjlss  LIKE LINE OF it_xjlss,
it_xkomlk  TYPE STANDARD TABLE OF KOMLK ,
wa_xkomlk  LIKE LINE OF it_xkomlk,
it_xkomlkgn  TYPE STANDARD TABLE OF KOMLKGN ,
wa_xkomlkgn  LIKE LINE OF it_xkomlkgn,
it_xkomv  TYPE STANDARD TABLE OF KOMV ,
wa_xkomv  LIKE LINE OF it_xkomv,
it_xthead  TYPE STANDARD TABLE OF THEAD ,
wa_xthead  LIKE LINE OF it_xthead.

ld_c_xjffb_if_tab = 'Check type of data required'.
ld_jlsk_i = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xjlcommind to it_xjlcommind.
ld_with_posting = 'some text here'.

"populate fields of struture and append to itab
append wa_xjffb to it_xjffb.

SELECT single TRTYP
FROM T180
INTO ld_trtyp.


"populate fields of struture and append to itab
append wa_xjlfs to it_xjlfs.

"populate fields of struture and append to itab
append wa_xjlpa to it_xjlpa.

"populate fields of struture and append to itab
append wa_xjlrk to it_xjlrk.

"populate fields of struture and append to itab
append wa_xjlrp to it_xjlrp.

"populate fields of struture and append to itab
append wa_xjlss to it_xjlss.

"populate fields of struture and append to itab
append wa_xkomlk to it_xkomlk.

"populate fields of struture and append to itab
append wa_xkomlkgn to it_xkomlkgn.

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

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