SAP Function Modules

ISP_INVOICE_DOCUMENT_READ SAP Function module - IS-M/SD: Read Billing Documents







ISP_INVOICE_DOCUMENT_READ 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_DOCUMENT_READ 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_DOCUMENT_READ - ISP INVOICE DOCUMENT READ





CALL FUNCTION 'ISP_INVOICE_DOCUMENT_READ' "IS-M/SD: Read Billing Documents
  EXPORTING
*   activity = '  '             " tact-actvt
*   konv_read = ' '             " xfeld         Checkbox Field
*   msgty = '*'                 " rjmsg-msgty
*   no_nast = ' '               " xfeld         Checkbox Field
    jfrk_i =                    " jfrk
*   no_jfpa = ' '               " xfeld         Checkbox Field
  IMPORTING
    activ_e =                   " tact-actvt
    src =                       " sy-subrc
    jfrk_e =                    " jfrk
  TABLES
    xkomfk =                    " jkomfk
    xkomv =                     " komv
    xjffs =                     " jffs
    xjfpa =                     " jfpavb
    xjfrk =                     " jfrkvb
    xjfrp =                     " jfrpvb
*   xjfrkcc =                   " jfrkccvb
    .  "  ISP_INVOICE_DOCUMENT_READ

ABAP code example for Function Module ISP_INVOICE_DOCUMENT_READ





The ABAP code below is a full code listing to execute function module ISP_INVOICE_DOCUMENT_READ 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_activ_e  TYPE TACT-ACTVT ,
ld_src  TYPE SY-SUBRC ,
ld_jfrk_e  TYPE JFRK ,
it_xkomfk  TYPE STANDARD TABLE OF JKOMFK,"TABLES PARAM
wa_xkomfk  LIKE LINE OF it_xkomfk ,
it_xkomv  TYPE STANDARD TABLE OF KOMV,"TABLES PARAM
wa_xkomv  LIKE LINE OF it_xkomv ,
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 ACTVT
FROM TACT
INTO @DATA(ld_activity).

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

DATA(ld_msgty) = some text here
DATA(ld_no_nast) = 'Check type of data required'.
DATA(ld_jfrk_i) = 'Check type of data required'.
DATA(ld_no_jfpa) = 'Check type of data required'.

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

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

"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_DOCUMENT_READ' EXPORTING * activity = ld_activity * konv_read = ld_konv_read * msgty = ld_msgty * no_nast = ld_no_nast jfrk_i = ld_jfrk_i * no_jfpa = ld_no_jfpa IMPORTING activ_e = ld_activ_e src = ld_src jfrk_e = ld_jfrk_e TABLES xkomfk = it_xkomfk xkomv = it_xkomv xjffs = it_xjffs xjfpa = it_xjfpa xjfrk = it_xjfrk xjfrp = it_xjfrp * xjfrkcc = it_xjfrkcc . " ISP_INVOICE_DOCUMENT_READ
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_activ_e  TYPE TACT-ACTVT ,
ld_activity  TYPE TACT-ACTVT ,
it_xkomfk  TYPE STANDARD TABLE OF JKOMFK ,
wa_xkomfk  LIKE LINE OF it_xkomfk,
ld_src  TYPE SY-SUBRC ,
ld_konv_read  TYPE XFELD ,
it_xkomv  TYPE STANDARD TABLE OF KOMV ,
wa_xkomv  LIKE LINE OF it_xkomv,
ld_jfrk_e  TYPE JFRK ,
ld_msgty  TYPE RJMSG-MSGTY ,
it_xjffs  TYPE STANDARD TABLE OF JFFS ,
wa_xjffs  LIKE LINE OF it_xjffs,
ld_no_nast  TYPE XFELD ,
it_xjfpa  TYPE STANDARD TABLE OF JFPAVB ,
wa_xjfpa  LIKE LINE OF it_xjfpa,
ld_jfrk_i  TYPE JFRK ,
it_xjfrk  TYPE STANDARD TABLE OF JFRKVB ,
wa_xjfrk  LIKE LINE OF it_xjfrk,
ld_no_jfpa  TYPE XFELD ,
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 ACTVT
FROM TACT
INTO ld_activity.


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

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

ld_msgty = some text here

"populate fields of struture and append to itab
append wa_xjffs to it_xjffs.
ld_no_nast = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xjfpa to it_xjfpa.
ld_jfrk_i = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xjfrk to it_xjfrk.
ld_no_jfpa = 'Check type of data required'.

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