SAP Function Modules

ISP_READ_DELIVERY SAP Function module







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

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


Pattern for FM ISP_READ_DELIVERY - ISP READ DELIVERY





CALL FUNCTION 'ISP_READ_DELIVERY' "
  EXPORTING
*   erschdat_bis = '99991231'   " jvtlfng-erschdat
*   erschdat_von = '19000101'   " jvtlfng-erschdat
    sel_par =                   " rjv07skey
*   versanddat_bis = '99991231'  " jvtlfng-versanddat
*   versanddat_von = '19000101'  " jvtlfng-versanddat
*   xprospekt = SPACE           "
*   xzustellung = SPACE         "
  TABLES
    delivery_tab =              " jvtlfng
    .  "  ISP_READ_DELIVERY

ABAP code example for Function Module ISP_READ_DELIVERY





The ABAP code below is a full code listing to execute function module ISP_READ_DELIVERY 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:
it_delivery_tab  TYPE STANDARD TABLE OF JVTLFNG,"TABLES PARAM
wa_delivery_tab  LIKE LINE OF it_delivery_tab .


SELECT single ERSCHDAT
FROM JVTLFNG
INTO @DATA(ld_erschdat_bis).


SELECT single ERSCHDAT
FROM JVTLFNG
INTO @DATA(ld_erschdat_von).

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

SELECT single VERSANDDAT
FROM JVTLFNG
INTO @DATA(ld_versanddat_bis).


SELECT single VERSANDDAT
FROM JVTLFNG
INTO @DATA(ld_versanddat_von).

DATA(ld_xprospekt) = 'some text here'.
DATA(ld_xzustellung) = 'some text here'.

"populate fields of struture and append to itab
append wa_delivery_tab to it_delivery_tab. . CALL FUNCTION 'ISP_READ_DELIVERY' EXPORTING * erschdat_bis = ld_erschdat_bis * erschdat_von = ld_erschdat_von sel_par = ld_sel_par * versanddat_bis = ld_versanddat_bis * versanddat_von = ld_versanddat_von * xprospekt = ld_xprospekt * xzustellung = ld_xzustellung TABLES delivery_tab = it_delivery_tab . " ISP_READ_DELIVERY
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_erschdat_bis  TYPE JVTLFNG-ERSCHDAT ,
it_delivery_tab  TYPE STANDARD TABLE OF JVTLFNG ,
wa_delivery_tab  LIKE LINE OF it_delivery_tab,
ld_erschdat_von  TYPE JVTLFNG-ERSCHDAT ,
ld_sel_par  TYPE RJV07SKEY ,
ld_versanddat_bis  TYPE JVTLFNG-VERSANDDAT ,
ld_versanddat_von  TYPE JVTLFNG-VERSANDDAT ,
ld_xprospekt  TYPE STRING ,
ld_xzustellung  TYPE STRING .


SELECT single ERSCHDAT
FROM JVTLFNG
INTO ld_erschdat_bis.


"populate fields of struture and append to itab
append wa_delivery_tab to it_delivery_tab.

SELECT single ERSCHDAT
FROM JVTLFNG
INTO ld_erschdat_von.

ld_sel_par = 'Check type of data required'.

SELECT single VERSANDDAT
FROM JVTLFNG
INTO ld_versanddat_bis.


SELECT single VERSANDDAT
FROM JVTLFNG
INTO ld_versanddat_von.

ld_xprospekt = 'some text here'.
ld_xzustellung = '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 ISP_READ_DELIVERY or its description.