SAP Function Modules

EXIT_RPC770I0_004 SAP Function module







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

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


Pattern for FM EXIT_RPC770I0_004 - EXIT RPC770I0 004





CALL FUNCTION 'EXIT_RPC770I0_004' "
  EXPORTING
    begda =                     " sy-datum      Date and time, current date (Application server)
    endda =                     " sy-datum      Date and time, current date (Application server)
    fileu4 =                    "
  TABLES
    dati_recorda =              "
  EXCEPTIONS
    CONVERSION_ERROR = 1        "               CONVERSION_ERROR
    FILE_OPEN_ERROR = 2         "               FILE_OPEN_ERROR
    FILE_READ_ERROR = 3         "               FILE_READ_ERROR
    INVALID_TABLE_WIDTH = 4     "               INVALID_TABLE_WIDTH
    INVALID_TYPE = 5            "               INVALID_TYPE
    NO_BATCH = 6                "               NO_BATCH
    UNKNOWN_ERROR = 7           "               UNKNOWN_ERROR
    GUI_REFUSE_FILETRANSFER = 8  "              GUI_REFUSE_FILETRANSFER
    .  "  EXIT_RPC770I0_004

ABAP code example for Function Module EXIT_RPC770I0_004





The ABAP code below is a full code listing to execute function module EXIT_RPC770I0_004 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_dati_recorda  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_dati_recorda  LIKE LINE OF it_dati_recorda .

DATA(ld_begda) = '20210129'.
DATA(ld_endda) = '20210129'.
DATA(ld_fileu4) = 'some text here'.

"populate fields of struture and append to itab
append wa_dati_recorda to it_dati_recorda. . CALL FUNCTION 'EXIT_RPC770I0_004' EXPORTING begda = ld_begda endda = ld_endda fileu4 = ld_fileu4 TABLES dati_recorda = it_dati_recorda EXCEPTIONS CONVERSION_ERROR = 1 FILE_OPEN_ERROR = 2 FILE_READ_ERROR = 3 INVALID_TABLE_WIDTH = 4 INVALID_TYPE = 5 NO_BATCH = 6 UNKNOWN_ERROR = 7 GUI_REFUSE_FILETRANSFER = 8 . " EXIT_RPC770I0_004
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 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_begda  TYPE SY-DATUM ,
it_dati_recorda  TYPE STANDARD TABLE OF STRING ,
wa_dati_recorda  LIKE LINE OF it_dati_recorda,
ld_endda  TYPE SY-DATUM ,
ld_fileu4  TYPE STRING .

ld_begda = '20210129'.

"populate fields of struture and append to itab
append wa_dati_recorda to it_dati_recorda.
ld_endda = '20210129'.
ld_fileu4 = '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 EXIT_RPC770I0_004 or its description.