SAP Function Modules

ISP_ZEBU_SET_GENERATE_SIMPLE SAP Function module







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

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


Pattern for FM ISP_ZEBU_SET_GENERATE_SIMPLE - ISP ZEBU SET GENERATE SIMPLE





CALL FUNCTION 'ISP_ZEBU_SET_GENERATE_SIMPLE' "
  EXPORTING
*   bfs = CON_STUFE0            " jvtorgzebu-bfs_stufe
*   drerz = CON_SPACE(8)        " jvtmodzebu-drerz
*   druckerei = CON_SPACE(4)    " jvtmodzebu-druckerei
    land =                      " tjy00-defland1
*   lieferart = CON_SPACE(2)    " jvtmodzebu-lieferart
*   netz = CON_SPACE(2)         " jvtmodzebu-netz
    plz =                       " jvtorgzebu-plz
*   pva = '        '            " jvtmodzebu-pva
*   xbundgebinde = ' '          " jvtorgzebu-xmodif
    zebuart =                   " jvtplzzebu-zebuart
  IMPORTING
    zebu_satz =                 " rjvzebu
    zebu_satz_post =            " rjvpstzebu
  TABLES
    drerz_tab =                 " rjv5005
  EXCEPTIONS
    WRONG_PLZ_STUFE_OR_ROOT = 1  "
    .  "  ISP_ZEBU_SET_GENERATE_SIMPLE

ABAP code example for Function Module ISP_ZEBU_SET_GENERATE_SIMPLE





The ABAP code below is a full code listing to execute function module ISP_ZEBU_SET_GENERATE_SIMPLE 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_zebu_satz  TYPE RJVZEBU ,
ld_zebu_satz_post  TYPE RJVPSTZEBU ,
it_drerz_tab  TYPE STANDARD TABLE OF RJV5005,"TABLES PARAM
wa_drerz_tab  LIKE LINE OF it_drerz_tab .


SELECT single BFS_STUFE
FROM JVTORGZEBU
INTO @DATA(ld_bfs).


SELECT single DRERZ
FROM JVTMODZEBU
INTO @DATA(ld_drerz).


SELECT single DRUCKEREI
FROM JVTMODZEBU
INTO @DATA(ld_druckerei).


SELECT single DEFLAND1
FROM TJY00
INTO @DATA(ld_land).


SELECT single LIEFERART
FROM JVTMODZEBU
INTO @DATA(ld_lieferart).


SELECT single NETZ
FROM JVTMODZEBU
INTO @DATA(ld_netz).


SELECT single PLZ
FROM JVTORGZEBU
INTO @DATA(ld_plz).


SELECT single PVA
FROM JVTMODZEBU
INTO @DATA(ld_pva).


SELECT single XMODIF
FROM JVTORGZEBU
INTO @DATA(ld_xbundgebinde).


SELECT single ZEBUART
FROM JVTPLZZEBU
INTO @DATA(ld_zebuart).


"populate fields of struture and append to itab
append wa_drerz_tab to it_drerz_tab. . CALL FUNCTION 'ISP_ZEBU_SET_GENERATE_SIMPLE' EXPORTING * bfs = ld_bfs * drerz = ld_drerz * druckerei = ld_druckerei land = ld_land * lieferart = ld_lieferart * netz = ld_netz plz = ld_plz * pva = ld_pva * xbundgebinde = ld_xbundgebinde zebuart = ld_zebuart IMPORTING zebu_satz = ld_zebu_satz zebu_satz_post = ld_zebu_satz_post TABLES drerz_tab = it_drerz_tab EXCEPTIONS WRONG_PLZ_STUFE_OR_ROOT = 1 . " ISP_ZEBU_SET_GENERATE_SIMPLE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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_zebu_satz  TYPE RJVZEBU ,
ld_bfs  TYPE JVTORGZEBU-BFS_STUFE ,
it_drerz_tab  TYPE STANDARD TABLE OF RJV5005 ,
wa_drerz_tab  LIKE LINE OF it_drerz_tab,
ld_zebu_satz_post  TYPE RJVPSTZEBU ,
ld_drerz  TYPE JVTMODZEBU-DRERZ ,
ld_druckerei  TYPE JVTMODZEBU-DRUCKEREI ,
ld_land  TYPE TJY00-DEFLAND1 ,
ld_lieferart  TYPE JVTMODZEBU-LIEFERART ,
ld_netz  TYPE JVTMODZEBU-NETZ ,
ld_plz  TYPE JVTORGZEBU-PLZ ,
ld_pva  TYPE JVTMODZEBU-PVA ,
ld_xbundgebinde  TYPE JVTORGZEBU-XMODIF ,
ld_zebuart  TYPE JVTPLZZEBU-ZEBUART .


SELECT single BFS_STUFE
FROM JVTORGZEBU
INTO ld_bfs.


"populate fields of struture and append to itab
append wa_drerz_tab to it_drerz_tab.

SELECT single DRERZ
FROM JVTMODZEBU
INTO ld_drerz.


SELECT single DRUCKEREI
FROM JVTMODZEBU
INTO ld_druckerei.


SELECT single DEFLAND1
FROM TJY00
INTO ld_land.


SELECT single LIEFERART
FROM JVTMODZEBU
INTO ld_lieferart.


SELECT single NETZ
FROM JVTMODZEBU
INTO ld_netz.


SELECT single PLZ
FROM JVTORGZEBU
INTO ld_plz.


SELECT single PVA
FROM JVTMODZEBU
INTO ld_pva.


SELECT single XMODIF
FROM JVTORGZEBU
INTO ld_xbundgebinde.


SELECT single ZEBUART
FROM JVTPLZZEBU
INTO ld_zebuart.

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