SAP Function Modules

RE_OK_CODE_IMPORT_TO_PRG SAP Function module







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

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


Pattern for FM RE_OK_CODE_IMPORT_TO_PRG - RE OK CODE IMPORT TO PRG





CALL FUNCTION 'RE_OK_CODE_IMPORT_TO_PRG' "
  IMPORTING
    e_ok_processed =            "
    e_sichern_fl =              "
    e_abbruch_prueflauf =       "
    e_cursor_line =             " sy-stepl
    e_cursor_field =            "
  TABLES
    t_xviob40 =                 " aviob40
    t_xviob41 =                 " aviob41
    t_yviob40 =                 " aviob40
    t_yviob41 =                 " aviob41
    .  "  RE_OK_CODE_IMPORT_TO_PRG

ABAP code example for Function Module RE_OK_CODE_IMPORT_TO_PRG





The ABAP code below is a full code listing to execute function module RE_OK_CODE_IMPORT_TO_PRG 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_ok_processed  TYPE STRING ,
ld_e_sichern_fl  TYPE STRING ,
ld_e_abbruch_prueflauf  TYPE STRING ,
ld_e_cursor_line  TYPE SY-STEPL ,
ld_e_cursor_field  TYPE STRING ,
it_t_xviob40  TYPE STANDARD TABLE OF AVIOB40,"TABLES PARAM
wa_t_xviob40  LIKE LINE OF it_t_xviob40 ,
it_t_xviob41  TYPE STANDARD TABLE OF AVIOB41,"TABLES PARAM
wa_t_xviob41  LIKE LINE OF it_t_xviob41 ,
it_t_yviob40  TYPE STANDARD TABLE OF AVIOB40,"TABLES PARAM
wa_t_yviob40  LIKE LINE OF it_t_yviob40 ,
it_t_yviob41  TYPE STANDARD TABLE OF AVIOB41,"TABLES PARAM
wa_t_yviob41  LIKE LINE OF it_t_yviob41 .


"populate fields of struture and append to itab
append wa_t_xviob40 to it_t_xviob40.

"populate fields of struture and append to itab
append wa_t_xviob41 to it_t_xviob41.

"populate fields of struture and append to itab
append wa_t_yviob40 to it_t_yviob40.

"populate fields of struture and append to itab
append wa_t_yviob41 to it_t_yviob41. . CALL FUNCTION 'RE_OK_CODE_IMPORT_TO_PRG' IMPORTING e_ok_processed = ld_e_ok_processed e_sichern_fl = ld_e_sichern_fl e_abbruch_prueflauf = ld_e_abbruch_prueflauf e_cursor_line = ld_e_cursor_line e_cursor_field = ld_e_cursor_field TABLES t_xviob40 = it_t_xviob40 t_xviob41 = it_t_xviob41 t_yviob40 = it_t_yviob40 t_yviob41 = it_t_yviob41 . " RE_OK_CODE_IMPORT_TO_PRG
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_ok_processed  TYPE STRING ,
it_t_xviob40  TYPE STANDARD TABLE OF AVIOB40 ,
wa_t_xviob40  LIKE LINE OF it_t_xviob40,
ld_e_sichern_fl  TYPE STRING ,
it_t_xviob41  TYPE STANDARD TABLE OF AVIOB41 ,
wa_t_xviob41  LIKE LINE OF it_t_xviob41,
ld_e_abbruch_prueflauf  TYPE STRING ,
it_t_yviob40  TYPE STANDARD TABLE OF AVIOB40 ,
wa_t_yviob40  LIKE LINE OF it_t_yviob40,
ld_e_cursor_line  TYPE SY-STEPL ,
it_t_yviob41  TYPE STANDARD TABLE OF AVIOB41 ,
wa_t_yviob41  LIKE LINE OF it_t_yviob41,
ld_e_cursor_field  TYPE STRING .


"populate fields of struture and append to itab
append wa_t_xviob40 to it_t_xviob40.

"populate fields of struture and append to itab
append wa_t_xviob41 to it_t_xviob41.

"populate fields of struture and append to itab
append wa_t_yviob40 to it_t_yviob40.

"populate fields of struture and append to itab
append wa_t_yviob41 to it_t_yviob41.

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