SAP Function Modules

ISP_DISTRIBUTION_PLAN_READ SAP Function module - IS-M/SD: Read Shipping Schedule for Postal Shipping







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

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


Pattern for FM ISP_DISTRIBUTION_PLAN_READ - ISP DISTRIBUTION PLAN READ





CALL FUNCTION 'ISP_DISTRIBUTION_PLAN_READ' "IS-M/SD: Read Shipping Schedule for Postal Shipping
* EXPORTING
*   base_tables =               "
*   bfs_stufe = '00'            " jvtverzplz-bfs_stufe
*   datum = '19000101'          " jrtablg-versanddat
*   land =                      " jvtverzplz-land1
*   plzbis =                    " jvtverzplz-plzbis
*   plzvon =                    " jvtverzplz-plzvon
*   variante =                  " jvtvervari-vrsndvari
*   vrsndplan =                 " jvtverplan-vrsndplan
*   wochentag_bis = '9'         " jvtvertag-tagbis
*   wochentag_von = '0'         " jvtvertag-tagvon
  TABLES
    out_verplan =               " jvvverplan
*   verplan_tab =               " jvtverplan
*   vertag_tab =                " jvtvertag
*   verzplz_tab =               " jvtverzplz
    .  "  ISP_DISTRIBUTION_PLAN_READ

ABAP code example for Function Module ISP_DISTRIBUTION_PLAN_READ





The ABAP code below is a full code listing to execute function module ISP_DISTRIBUTION_PLAN_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:
it_out_verplan  TYPE STANDARD TABLE OF JVVVERPLAN,"TABLES PARAM
wa_out_verplan  LIKE LINE OF it_out_verplan ,
it_verplan_tab  TYPE STANDARD TABLE OF JVTVERPLAN,"TABLES PARAM
wa_verplan_tab  LIKE LINE OF it_verplan_tab ,
it_vertag_tab  TYPE STANDARD TABLE OF JVTVERTAG,"TABLES PARAM
wa_vertag_tab  LIKE LINE OF it_vertag_tab ,
it_verzplz_tab  TYPE STANDARD TABLE OF JVTVERZPLZ,"TABLES PARAM
wa_verzplz_tab  LIKE LINE OF it_verzplz_tab .

DATA(ld_base_tables) = 'some text here'.

SELECT single BFS_STUFE
FROM JVTVERZPLZ
INTO @DATA(ld_bfs_stufe).


SELECT single VERSANDDAT
FROM JRTABLG
INTO @DATA(ld_datum).


SELECT single LAND1
FROM JVTVERZPLZ
INTO @DATA(ld_land).


SELECT single PLZBIS
FROM JVTVERZPLZ
INTO @DATA(ld_plzbis).


SELECT single PLZVON
FROM JVTVERZPLZ
INTO @DATA(ld_plzvon).


SELECT single VRSNDVARI
FROM JVTVERVARI
INTO @DATA(ld_variante).


SELECT single VRSNDPLAN
FROM JVTVERPLAN
INTO @DATA(ld_vrsndplan).


SELECT single TAGBIS
FROM JVTVERTAG
INTO @DATA(ld_wochentag_bis).


SELECT single TAGVON
FROM JVTVERTAG
INTO @DATA(ld_wochentag_von).


"populate fields of struture and append to itab
append wa_out_verplan to it_out_verplan.

"populate fields of struture and append to itab
append wa_verplan_tab to it_verplan_tab.

"populate fields of struture and append to itab
append wa_vertag_tab to it_vertag_tab.

"populate fields of struture and append to itab
append wa_verzplz_tab to it_verzplz_tab. . CALL FUNCTION 'ISP_DISTRIBUTION_PLAN_READ' * EXPORTING * base_tables = ld_base_tables * bfs_stufe = ld_bfs_stufe * datum = ld_datum * land = ld_land * plzbis = ld_plzbis * plzvon = ld_plzvon * variante = ld_variante * vrsndplan = ld_vrsndplan * wochentag_bis = ld_wochentag_bis * wochentag_von = ld_wochentag_von TABLES out_verplan = it_out_verplan * verplan_tab = it_verplan_tab * vertag_tab = it_vertag_tab * verzplz_tab = it_verzplz_tab . " ISP_DISTRIBUTION_PLAN_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_base_tables  TYPE STRING ,
it_out_verplan  TYPE STANDARD TABLE OF JVVVERPLAN ,
wa_out_verplan  LIKE LINE OF it_out_verplan,
ld_bfs_stufe  TYPE JVTVERZPLZ-BFS_STUFE ,
it_verplan_tab  TYPE STANDARD TABLE OF JVTVERPLAN ,
wa_verplan_tab  LIKE LINE OF it_verplan_tab,
ld_datum  TYPE JRTABLG-VERSANDDAT ,
it_vertag_tab  TYPE STANDARD TABLE OF JVTVERTAG ,
wa_vertag_tab  LIKE LINE OF it_vertag_tab,
ld_land  TYPE JVTVERZPLZ-LAND1 ,
it_verzplz_tab  TYPE STANDARD TABLE OF JVTVERZPLZ ,
wa_verzplz_tab  LIKE LINE OF it_verzplz_tab,
ld_plzbis  TYPE JVTVERZPLZ-PLZBIS ,
ld_plzvon  TYPE JVTVERZPLZ-PLZVON ,
ld_variante  TYPE JVTVERVARI-VRSNDVARI ,
ld_vrsndplan  TYPE JVTVERPLAN-VRSNDPLAN ,
ld_wochentag_bis  TYPE JVTVERTAG-TAGBIS ,
ld_wochentag_von  TYPE JVTVERTAG-TAGVON .

ld_base_tables = 'some text here'.

"populate fields of struture and append to itab
append wa_out_verplan to it_out_verplan.

SELECT single BFS_STUFE
FROM JVTVERZPLZ
INTO ld_bfs_stufe.


"populate fields of struture and append to itab
append wa_verplan_tab to it_verplan_tab.

SELECT single VERSANDDAT
FROM JRTABLG
INTO ld_datum.


"populate fields of struture and append to itab
append wa_vertag_tab to it_vertag_tab.

SELECT single LAND1
FROM JVTVERZPLZ
INTO ld_land.


"populate fields of struture and append to itab
append wa_verzplz_tab to it_verzplz_tab.

SELECT single PLZBIS
FROM JVTVERZPLZ
INTO ld_plzbis.


SELECT single PLZVON
FROM JVTVERZPLZ
INTO ld_plzvon.


SELECT single VRSNDVARI
FROM JVTVERVARI
INTO ld_variante.


SELECT single VRSNDPLAN
FROM JVTVERPLAN
INTO ld_vrsndplan.


SELECT single TAGBIS
FROM JVTVERTAG
INTO ld_wochentag_bis.


SELECT single TAGVON
FROM JVTVERTAG
INTO ld_wochentag_von.

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