SAP Function Modules

OM_PM_CREATE SAP Function module







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

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


Pattern for FM OM_PM_CREATE - OM PM CREATE





CALL FUNCTION 'OM_PM_CREATE' "
  EXPORTING
    current_date =              " datum
    scenario =                  " hromscen
    objectmanager =             " omclasskey
    auditlist =                 " omclasskey
    status_int =                " omstatint
*   locator_extension = 0       " i
*   icon_legend =               " omticonleg
  IMPORTING
    locator_container =         " cl_gui_docking_container
  TABLES
    search_tool =               " omsearchto
    .  "  OM_PM_CREATE

ABAP code example for Function Module OM_PM_CREATE





The ABAP code below is a full code listing to execute function module OM_PM_CREATE 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_locator_container  TYPE CL_GUI_DOCKING_CONTAINER ,
it_search_tool  TYPE STANDARD TABLE OF OMSEARCHTO,"TABLES PARAM
wa_search_tool  LIKE LINE OF it_search_tool .

DATA(ld_current_date) = 'Check type of data required'.
DATA(ld_scenario) = 'Check type of data required'.
DATA(ld_objectmanager) = 'Check type of data required'.
DATA(ld_auditlist) = 'Check type of data required'.
DATA(ld_status_int) = 'Check type of data required'.
DATA(ld_locator_extension) = 'Check type of data required'.
DATA(ld_icon_legend) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_search_tool to it_search_tool. . CALL FUNCTION 'OM_PM_CREATE' EXPORTING current_date = ld_current_date scenario = ld_scenario objectmanager = ld_objectmanager auditlist = ld_auditlist status_int = ld_status_int * locator_extension = ld_locator_extension * icon_legend = ld_icon_legend IMPORTING locator_container = ld_locator_container TABLES search_tool = it_search_tool . " OM_PM_CREATE
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_locator_container  TYPE CL_GUI_DOCKING_CONTAINER ,
ld_current_date  TYPE DATUM ,
it_search_tool  TYPE STANDARD TABLE OF OMSEARCHTO ,
wa_search_tool  LIKE LINE OF it_search_tool,
ld_scenario  TYPE HROMSCEN ,
ld_objectmanager  TYPE OMCLASSKEY ,
ld_auditlist  TYPE OMCLASSKEY ,
ld_status_int  TYPE OMSTATINT ,
ld_locator_extension  TYPE I ,
ld_icon_legend  TYPE OMTICONLEG .

ld_current_date = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_search_tool to it_search_tool.
ld_scenario = 'Check type of data required'.
ld_objectmanager = 'Check type of data required'.
ld_auditlist = 'Check type of data required'.
ld_status_int = 'Check type of data required'.
ld_locator_extension = 'Check type of data required'.
ld_icon_legend = 'Check type of data required'.

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