SAP Function Modules

VELO17_GRER_EXECUTE SAP Function module - VELO : Aktion GRER (Stornierung Wareneingang)







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

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


Pattern for FM VELO17_GRER_EXECUTE - VELO17 GRER EXECUTE





CALL FUNCTION 'VELO17_GRER_EXECUTE' "VELO : Aktion GRER (Stornierung Wareneingang)
* EXPORTING
*   gr_actdoctype_iv =          " vlc_actdoctype  Goods receipt: Art des zur Aktion gehörenden Belegs
*   po_actdoctype_iv =          " vlc_actdoctype  Purchase order: Art des zur Aktion gehörenden Belegs
*   re_actdoctype_iv =          " vlc_actdoctype  Reversal document: Art des zur Aktion gehörenden Belegs
*   aba_gore_iv = ABA_GORE_GC   " vlc_actdoctype  Type of Document for Action
*   aba_ord1_iv = ABA_ORD1_GC   " vlc_actdoctype  Type of Document for Action
*   aba_grer_iv = ABA_GRER_GC   " vlc_actdoctype  Type of Document for Action
*   aba_ugre_iv = ABA_UGRE_GC   " vlc_actdoctype  Type of Document for Action
  TABLES
    vlcdiavehi_ct =             " vlcdiavehi    VELO : Dialogstruktur für Fahrzeuge
    vlch_mssg_ct =              " vlch_mssg_pt
  CHANGING
    vlcactdata_cs =             " vlcactdata    VELO : Übergabestruktur für Aktionen (Kopf und Positionen)
  EXCEPTIONS
    INTERNAL_ERROR = 1          "               Interner Fehler
    PREREQUISITE_NOT_FULFILLED = 2  "           Voraussetzung nicht erfüllt
    ACTION_NOT_PERFORMED = 3    "               Aktion nicht ausgeführt
    .  "  VELO17_GRER_EXECUTE

ABAP code example for Function Module VELO17_GRER_EXECUTE





The ABAP code below is a full code listing to execute function module VELO17_GRER_EXECUTE 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_vlcdiavehi_ct  TYPE STANDARD TABLE OF VLCDIAVEHI,"TABLES PARAM
wa_vlcdiavehi_ct  LIKE LINE OF it_vlcdiavehi_ct ,
it_vlch_mssg_ct  TYPE STANDARD TABLE OF VLCH_MSSG_PT,"TABLES PARAM
wa_vlch_mssg_ct  LIKE LINE OF it_vlch_mssg_ct .

DATA(ld_vlcactdata_cs) = 'Check type of data required'.
DATA(ld_gr_actdoctype_iv) = 'Check type of data required'.
DATA(ld_po_actdoctype_iv) = 'Check type of data required'.
DATA(ld_re_actdoctype_iv) = 'Check type of data required'.
DATA(ld_aba_gore_iv) = 'Check type of data required'.
DATA(ld_aba_ord1_iv) = 'Check type of data required'.
DATA(ld_aba_grer_iv) = 'Check type of data required'.
DATA(ld_aba_ugre_iv) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_vlcdiavehi_ct to it_vlcdiavehi_ct.

"populate fields of struture and append to itab
append wa_vlch_mssg_ct to it_vlch_mssg_ct. . CALL FUNCTION 'VELO17_GRER_EXECUTE' * EXPORTING * gr_actdoctype_iv = ld_gr_actdoctype_iv * po_actdoctype_iv = ld_po_actdoctype_iv * re_actdoctype_iv = ld_re_actdoctype_iv * aba_gore_iv = ld_aba_gore_iv * aba_ord1_iv = ld_aba_ord1_iv * aba_grer_iv = ld_aba_grer_iv * aba_ugre_iv = ld_aba_ugre_iv TABLES vlcdiavehi_ct = it_vlcdiavehi_ct vlch_mssg_ct = it_vlch_mssg_ct CHANGING vlcactdata_cs = ld_vlcactdata_cs EXCEPTIONS INTERNAL_ERROR = 1 PREREQUISITE_NOT_FULFILLED = 2 ACTION_NOT_PERFORMED = 3 . " VELO17_GRER_EXECUTE
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 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_vlcactdata_cs  TYPE VLCACTDATA ,
ld_gr_actdoctype_iv  TYPE VLC_ACTDOCTYPE ,
it_vlcdiavehi_ct  TYPE STANDARD TABLE OF VLCDIAVEHI ,
wa_vlcdiavehi_ct  LIKE LINE OF it_vlcdiavehi_ct,
ld_po_actdoctype_iv  TYPE VLC_ACTDOCTYPE ,
it_vlch_mssg_ct  TYPE STANDARD TABLE OF VLCH_MSSG_PT ,
wa_vlch_mssg_ct  LIKE LINE OF it_vlch_mssg_ct,
ld_re_actdoctype_iv  TYPE VLC_ACTDOCTYPE ,
ld_aba_gore_iv  TYPE VLC_ACTDOCTYPE ,
ld_aba_ord1_iv  TYPE VLC_ACTDOCTYPE ,
ld_aba_grer_iv  TYPE VLC_ACTDOCTYPE ,
ld_aba_ugre_iv  TYPE VLC_ACTDOCTYPE .

ld_vlcactdata_cs = 'Check type of data required'.
ld_gr_actdoctype_iv = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_vlcdiavehi_ct to it_vlcdiavehi_ct.
ld_po_actdoctype_iv = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_vlch_mssg_ct to it_vlch_mssg_ct.
ld_re_actdoctype_iv = 'Check type of data required'.
ld_aba_gore_iv = 'Check type of data required'.
ld_aba_ord1_iv = 'Check type of data required'.
ld_aba_grer_iv = 'Check type of data required'.
ld_aba_ugre_iv = 'Check type of data required'.

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