SAP Function Modules

FIEB_GET_RETURNREASON SAP Function module







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

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


Pattern for FM FIEB_GET_RETURNREASON - FIEB GET RETURNREASON





CALL FUNCTION 'FIEB_GET_RETURNREASON' "
  EXPORTING
    i_anwnd =                   " febko-anwnd   Application using bank data storage
    i_vgtyp =                   " febko-vgtyp   Trans. Cat.
    i_absnd =                   " febko-absnd   Sending bank (electronic bank statement)
    i_azidt =                   " febko-azidt   Bank statement identification
    i_ktonr =                   " febko-ktonr   Bank Account Number
    i_bukrs =                   " febko-bukrs   Alternative company code for the selection of open items
    i_hbkid =                   " febko-hbkid   Short Key for a House Bank
    i_hktid =                   " febko-hktid   ID for Account Details
    i_vgext =                   " t028x-vgext   External business transaction
    i_rrext =                   " t028x-rrext   External Returns Reason
  IMPORTING
    e_rrint =                   " rrint_eb      Internal Returns Reason
    .  "  FIEB_GET_RETURNREASON

ABAP code example for Function Module FIEB_GET_RETURNREASON





The ABAP code below is a full code listing to execute function module FIEB_GET_RETURNREASON 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_e_rrint  TYPE RRINT_EB .


SELECT single ANWND
FROM FEBKO
INTO @DATA(ld_i_anwnd).


SELECT single VGTYP
FROM FEBKO
INTO @DATA(ld_i_vgtyp).


SELECT single ABSND
FROM FEBKO
INTO @DATA(ld_i_absnd).


SELECT single AZIDT
FROM FEBKO
INTO @DATA(ld_i_azidt).


SELECT single KTONR
FROM FEBKO
INTO @DATA(ld_i_ktonr).


SELECT single BUKRS
FROM FEBKO
INTO @DATA(ld_i_bukrs).


SELECT single HBKID
FROM FEBKO
INTO @DATA(ld_i_hbkid).


SELECT single HKTID
FROM FEBKO
INTO @DATA(ld_i_hktid).


SELECT single VGEXT
FROM T028X
INTO @DATA(ld_i_vgext).


SELECT single RREXT
FROM T028X
INTO @DATA(ld_i_rrext).
. CALL FUNCTION 'FIEB_GET_RETURNREASON' EXPORTING i_anwnd = ld_i_anwnd i_vgtyp = ld_i_vgtyp i_absnd = ld_i_absnd i_azidt = ld_i_azidt i_ktonr = ld_i_ktonr i_bukrs = ld_i_bukrs i_hbkid = ld_i_hbkid i_hktid = ld_i_hktid i_vgext = ld_i_vgext i_rrext = ld_i_rrext IMPORTING e_rrint = ld_e_rrint . " FIEB_GET_RETURNREASON
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_e_rrint  TYPE RRINT_EB ,
ld_i_anwnd  TYPE FEBKO-ANWND ,
ld_i_vgtyp  TYPE FEBKO-VGTYP ,
ld_i_absnd  TYPE FEBKO-ABSND ,
ld_i_azidt  TYPE FEBKO-AZIDT ,
ld_i_ktonr  TYPE FEBKO-KTONR ,
ld_i_bukrs  TYPE FEBKO-BUKRS ,
ld_i_hbkid  TYPE FEBKO-HBKID ,
ld_i_hktid  TYPE FEBKO-HKTID ,
ld_i_vgext  TYPE T028X-VGEXT ,
ld_i_rrext  TYPE T028X-RREXT .


SELECT single ANWND
FROM FEBKO
INTO ld_i_anwnd.


SELECT single VGTYP
FROM FEBKO
INTO ld_i_vgtyp.


SELECT single ABSND
FROM FEBKO
INTO ld_i_absnd.


SELECT single AZIDT
FROM FEBKO
INTO ld_i_azidt.


SELECT single KTONR
FROM FEBKO
INTO ld_i_ktonr.


SELECT single BUKRS
FROM FEBKO
INTO ld_i_bukrs.


SELECT single HBKID
FROM FEBKO
INTO ld_i_hbkid.


SELECT single HKTID
FROM FEBKO
INTO ld_i_hktid.


SELECT single VGEXT
FROM T028X
INTO ld_i_vgext.


SELECT single RREXT
FROM T028X
INTO ld_i_rrext.

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