SAP Function Modules

OMS_OMSET_EDITOR SAP Function module - Edit/display/check operation mode sets (normal and exception operatio







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

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


Pattern for FM OMS_OMSET_EDITOR - OMS OMSET EDITOR





CALL FUNCTION 'OMS_OMSET_EDITOR' "Edit/display/check operation mode sets (normal and exception operatio
  EXPORTING
    omset_editor_dialog =       " btch0000-char1  Interactive mode yes / no
    omset_editor_mode =         " btch0000-char1  Normal operation or exception operation type set
*   omset_editor_opcode = 0     " btch0000-int4  Operation : display / edit (only online)
  IMPORTING
    omset_editor_tbl_modified =   " btch0000-char1  specifies whether OMSET_EDIT_TBL was changed
  TABLES
    omset_edit_tbl =            " btcomset      Table with operation type set data (I/O)
  EXCEPTIONS
    INVALID_DIALOG_TYPE = 1     "               invalid interactive category
    INVALID_MODE = 2            "               invalid identifier for type of the operation type set
    INVALID_OMSET_DATA = 3      "               Operation type set data is invalid
    INVALID_OPCODE = 4          "               invalid operation code
    .  "  OMS_OMSET_EDITOR

ABAP code example for Function Module OMS_OMSET_EDITOR





The ABAP code below is a full code listing to execute function module OMS_OMSET_EDITOR 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_omset_editor_tbl_modified  TYPE BTCH0000-CHAR1 ,
it_omset_edit_tbl  TYPE STANDARD TABLE OF BTCOMSET,"TABLES PARAM
wa_omset_edit_tbl  LIKE LINE OF it_omset_edit_tbl .


DATA(ld_omset_editor_dialog) = some text here

DATA(ld_omset_editor_mode) = some text here

DATA(ld_omset_editor_opcode) = 123

"populate fields of struture and append to itab
append wa_omset_edit_tbl to it_omset_edit_tbl. . CALL FUNCTION 'OMS_OMSET_EDITOR' EXPORTING omset_editor_dialog = ld_omset_editor_dialog omset_editor_mode = ld_omset_editor_mode * omset_editor_opcode = ld_omset_editor_opcode IMPORTING omset_editor_tbl_modified = ld_omset_editor_tbl_modified TABLES omset_edit_tbl = it_omset_edit_tbl EXCEPTIONS INVALID_DIALOG_TYPE = 1 INVALID_MODE = 2 INVALID_OMSET_DATA = 3 INVALID_OPCODE = 4 . " OMS_OMSET_EDITOR
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 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_omset_editor_tbl_modified  TYPE BTCH0000-CHAR1 ,
ld_omset_editor_dialog  TYPE BTCH0000-CHAR1 ,
it_omset_edit_tbl  TYPE STANDARD TABLE OF BTCOMSET ,
wa_omset_edit_tbl  LIKE LINE OF it_omset_edit_tbl,
ld_omset_editor_mode  TYPE BTCH0000-CHAR1 ,
ld_omset_editor_opcode  TYPE BTCH0000-INT4 .


ld_omset_editor_dialog = some text here

"populate fields of struture and append to itab
append wa_omset_edit_tbl to it_omset_edit_tbl.

ld_omset_editor_mode = some text here

ld_omset_editor_opcode = 123

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