SAP Function Modules

ISP_DISTRIBUTE_RETRIEVAL_READ SAP Function module







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

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


Pattern for FM ISP_DISTRIBUTE_RETRIEVAL_READ - ISP DISTRIBUTE RETRIEVAL READ





CALL FUNCTION 'ISP_DISTRIBUTE_RETRIEVAL_READ' "
  EXPORTING
    ab =                        " rjs0102-gueltigab
    bis =                       " rjs0102-gueltigbis
*   liefbarpar = SPACE          " rjv1001
*   xinakt_mitlesen = SPACE     " rjs0102-xstruaktiv
*   xenqueue_struc_nodes = SPACE  " rjs0101-xstrupuff
*   xisolated_read = SPACE      " rjs0101-xstrupuff
  TABLES
*   knoten_tab =                " rjs0104
    liefbar_tab =               " rjv1003
  EXCEPTIONS
    ALTER_ZIELZUORDTYP = 1      "
    INTERNER_FEHLER = 2         "
    KEINE_LIEFERART = 3         "
    KEINE_PARALLELLNR = 4       "
    KEIN_BLATT = 5              "
    KEIN_STARTZUORDTYP = 6      "
    KEIN_ZIELZUORDTYP = 7       "
    KEIN_ZUGRIFFSPFAD = 8       "
    MIX_PARALLEL = 9            "
    MIX_RICHTUNG = 10           "
    MIX_ZUGRIFFSPFAD = 11       "
    NOT_INITIAL = 12            "
    PARALLEL_STARTZUORDTYP = 13  "
    START_NACH_ZIELZUORDTYP = 14  "
    LIEFBAR_SUBOPTIMAL = 15     "
    .  "  ISP_DISTRIBUTE_RETRIEVAL_READ

ABAP code example for Function Module ISP_DISTRIBUTE_RETRIEVAL_READ





The ABAP code below is a full code listing to execute function module ISP_DISTRIBUTE_RETRIEVAL_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_knoten_tab  TYPE STANDARD TABLE OF RJS0104,"TABLES PARAM
wa_knoten_tab  LIKE LINE OF it_knoten_tab ,
it_liefbar_tab  TYPE STANDARD TABLE OF RJV1003,"TABLES PARAM
wa_liefbar_tab  LIKE LINE OF it_liefbar_tab .


DATA(ld_ab) = 20210129

DATA(ld_bis) = 20210129
DATA(ld_liefbarpar) = 'Check type of data required'.

DATA(ld_xinakt_mitlesen) = some text here

DATA(ld_xenqueue_struc_nodes) = some text here

DATA(ld_xisolated_read) = some text here

"populate fields of struture and append to itab
append wa_knoten_tab to it_knoten_tab.

"populate fields of struture and append to itab
append wa_liefbar_tab to it_liefbar_tab. . CALL FUNCTION 'ISP_DISTRIBUTE_RETRIEVAL_READ' EXPORTING ab = ld_ab bis = ld_bis * liefbarpar = ld_liefbarpar * xinakt_mitlesen = ld_xinakt_mitlesen * xenqueue_struc_nodes = ld_xenqueue_struc_nodes * xisolated_read = ld_xisolated_read TABLES * knoten_tab = it_knoten_tab liefbar_tab = it_liefbar_tab EXCEPTIONS ALTER_ZIELZUORDTYP = 1 INTERNER_FEHLER = 2 KEINE_LIEFERART = 3 KEINE_PARALLELLNR = 4 KEIN_BLATT = 5 KEIN_STARTZUORDTYP = 6 KEIN_ZIELZUORDTYP = 7 KEIN_ZUGRIFFSPFAD = 8 MIX_PARALLEL = 9 MIX_RICHTUNG = 10 MIX_ZUGRIFFSPFAD = 11 NOT_INITIAL = 12 PARALLEL_STARTZUORDTYP = 13 START_NACH_ZIELZUORDTYP = 14 LIEFBAR_SUBOPTIMAL = 15 . " ISP_DISTRIBUTE_RETRIEVAL_READ
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 8. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 9. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 10. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 11. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 12. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 13. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 14. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 15. "Exception "Add code for exception here 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_ab  TYPE RJS0102-GUELTIGAB ,
it_knoten_tab  TYPE STANDARD TABLE OF RJS0104 ,
wa_knoten_tab  LIKE LINE OF it_knoten_tab,
ld_bis  TYPE RJS0102-GUELTIGBIS ,
it_liefbar_tab  TYPE STANDARD TABLE OF RJV1003 ,
wa_liefbar_tab  LIKE LINE OF it_liefbar_tab,
ld_liefbarpar  TYPE RJV1001 ,
ld_xinakt_mitlesen  TYPE RJS0102-XSTRUAKTIV ,
ld_xenqueue_struc_nodes  TYPE RJS0101-XSTRUPUFF ,
ld_xisolated_read  TYPE RJS0101-XSTRUPUFF .


ld_ab = 20210129

"populate fields of struture and append to itab
append wa_knoten_tab to it_knoten_tab.

ld_bis = 20210129

"populate fields of struture and append to itab
append wa_liefbar_tab to it_liefbar_tab.
ld_liefbarpar = 'Check type of data required'.

ld_xinakt_mitlesen = some text here

ld_xenqueue_struc_nodes = some text here

ld_xisolated_read = 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_DISTRIBUTE_RETRIEVAL_READ or its description.