SAP Function Modules

RS_NAVIGATION_PREPARE SAP Function module







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

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


Pattern for FM RS_NAVIGATION_PREPARE - RS NAVIGATION PREPARE





CALL FUNCTION 'RS_NAVIGATION_PREPARE' "
  EXPORTING
*   i_changed = SPACE           "
    i_col =                     "
    i_editor =                  "
    i_incl =                    " sy-repid
*   i_operation = SPACE         "
    i_row =                     "
*   i_mainprogram = SPACE       " sy-repid
*   i_trdir = SPACE             " trdir
*   i_context =                 " cl_wb_context  Context of an Object
*   no_dialog = SPACE           "
*   error_navigation = 'X'      "
*   i_fcode = SPACE             "
*   g_enh_handler =             " cl_wb_ed_enhancement_handler
*   p_adt_popup =               " if_sedi_adt_popup_def_impl
  IMPORTING
    o_col =                     "
    o_dynnr =                   "
    o_event =                   "
    o_eventtype =               "
    o_class =                   "
    o_classtype =               "
    o_incl =                    "
    o_local =                   "
    o_objectname =              "
    o_objecttype =              "
    o_operation =               "
    o_program =                 "
    o_row =                     "
    o_messagetext =             "
    o_stmt_keyword =            "
    o_state =                   "
    o_lexem =                   "
    o_fullname =                "
  TABLES
    i_source =                  "
    .  "  RS_NAVIGATION_PREPARE

ABAP code example for Function Module RS_NAVIGATION_PREPARE





The ABAP code below is a full code listing to execute function module RS_NAVIGATION_PREPARE 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_o_col  TYPE STRING ,
ld_o_dynnr  TYPE STRING ,
ld_o_event  TYPE STRING ,
ld_o_eventtype  TYPE STRING ,
ld_o_class  TYPE STRING ,
ld_o_classtype  TYPE STRING ,
ld_o_incl  TYPE STRING ,
ld_o_local  TYPE STRING ,
ld_o_objectname  TYPE STRING ,
ld_o_objecttype  TYPE STRING ,
ld_o_operation  TYPE STRING ,
ld_o_program  TYPE STRING ,
ld_o_row  TYPE STRING ,
ld_o_messagetext  TYPE STRING ,
ld_o_stmt_keyword  TYPE STRING ,
ld_o_state  TYPE STRING ,
ld_o_lexem  TYPE STRING ,
ld_o_fullname  TYPE STRING ,
it_i_source  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_i_source  LIKE LINE OF it_i_source .

DATA(ld_i_changed) = 'some text here'.
DATA(ld_i_col) = 'some text here'.
DATA(ld_i_editor) = 'some text here'.
DATA(ld_i_incl) = '123 '.
DATA(ld_i_operation) = 'some text here'.
DATA(ld_i_row) = 'some text here'.
DATA(ld_i_mainprogram) = '123 '.
DATA(ld_i_trdir) = 'some text here'.
DATA(ld_i_context) = 'some text here'.
DATA(ld_no_dialog) = 'some text here'.
DATA(ld_error_navigation) = 'some text here'.
DATA(ld_i_fcode) = 'some text here'.
DATA(ld_g_enh_handler) = 'some text here'.
DATA(ld_p_adt_popup) = 'some text here'.

"populate fields of struture and append to itab
append wa_i_source to it_i_source. . CALL FUNCTION 'RS_NAVIGATION_PREPARE' EXPORTING * i_changed = ld_i_changed i_col = ld_i_col i_editor = ld_i_editor i_incl = ld_i_incl * i_operation = ld_i_operation i_row = ld_i_row * i_mainprogram = ld_i_mainprogram * i_trdir = ld_i_trdir * i_context = ld_i_context * no_dialog = ld_no_dialog * error_navigation = ld_error_navigation * i_fcode = ld_i_fcode * g_enh_handler = ld_g_enh_handler * p_adt_popup = ld_p_adt_popup IMPORTING o_col = ld_o_col o_dynnr = ld_o_dynnr o_event = ld_o_event o_eventtype = ld_o_eventtype o_class = ld_o_class o_classtype = ld_o_classtype o_incl = ld_o_incl o_local = ld_o_local o_objectname = ld_o_objectname o_objecttype = ld_o_objecttype o_operation = ld_o_operation o_program = ld_o_program o_row = ld_o_row o_messagetext = ld_o_messagetext o_stmt_keyword = ld_o_stmt_keyword o_state = ld_o_state o_lexem = ld_o_lexem o_fullname = ld_o_fullname TABLES i_source = it_i_source . " RS_NAVIGATION_PREPARE
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_o_col  TYPE STRING ,
it_i_source  TYPE STANDARD TABLE OF STRING ,
wa_i_source  LIKE LINE OF it_i_source,
ld_i_changed  TYPE STRING ,
ld_o_dynnr  TYPE STRING ,
ld_i_col  TYPE STRING ,
ld_o_event  TYPE STRING ,
ld_i_editor  TYPE STRING ,
ld_o_eventtype  TYPE STRING ,
ld_i_incl  TYPE SY-REPID ,
ld_o_class  TYPE STRING ,
ld_i_operation  TYPE STRING ,
ld_o_classtype  TYPE STRING ,
ld_i_row  TYPE STRING ,
ld_o_incl  TYPE STRING ,
ld_i_mainprogram  TYPE SY-REPID ,
ld_o_local  TYPE STRING ,
ld_i_trdir  TYPE TRDIR ,
ld_o_objectname  TYPE STRING ,
ld_i_context  TYPE CL_WB_CONTEXT ,
ld_o_objecttype  TYPE STRING ,
ld_no_dialog  TYPE STRING ,
ld_error_navigation  TYPE STRING ,
ld_o_operation  TYPE STRING ,
ld_i_fcode  TYPE STRING ,
ld_o_program  TYPE STRING ,
ld_g_enh_handler  TYPE CL_WB_ED_ENHANCEMENT_HANDLER ,
ld_o_row  TYPE STRING ,
ld_p_adt_popup  TYPE IF_SEDI_ADT_POPUP_DEF_IMPL ,
ld_o_messagetext  TYPE STRING ,
ld_o_stmt_keyword  TYPE STRING ,
ld_o_state  TYPE STRING ,
ld_o_lexem  TYPE STRING ,
ld_o_fullname  TYPE STRING .


"populate fields of struture and append to itab
append wa_i_source to it_i_source.
ld_i_changed = 'some text here'.
ld_i_col = 'some text here'.
ld_i_editor = 'some text here'.
ld_i_incl = '123 '.
ld_i_operation = 'some text here'.
ld_i_row = 'some text here'.
ld_i_mainprogram = '123 '.
ld_i_trdir = 'some text here'.
ld_i_context = 'some text here'.
ld_no_dialog = 'some text here'.
ld_error_navigation = 'some text here'.
ld_i_fcode = 'some text here'.
ld_g_enh_handler = 'some text here'.
ld_p_adt_popup = '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 RS_NAVIGATION_PREPARE or its description.