SAP Function Modules

EXIT_SAPLEEWM_IF_OMS_1_006 SAP Function module - IS-U Work Management: User Exit for IDoc ISU_DL_ORDER







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

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


Pattern for FM EXIT_SAPLEEWM_IF_OMS_1_006 - EXIT SAPLEEWM IF OMS 1 006





CALL FUNCTION 'EXIT_SAPLEEWM_IF_OMS_1_006' "IS-U Work Management: User Exit for IDoc ISU_DL_ORDER
  EXPORTING
    segment_name =              " edidd-segnam  Name of Current Segment
*   x_viaufks =                 " viaufks       PM/SM Order Data
*   x_tline =                   " tline         Long Text Line
*   x_customer =                " ekun_ext      Customer
*   x_cust_addr =               " eadrdat       Customer address
*   x_con_obj =                 " iflot-tplnr   Connection Object
*   x_con_obj_addr =            " eadrdat       Address of Connection Object
*   x_co_note =                 " eenfi_single_restab  Notes for Connection Object
*   x_dev_loc =                 " iflot-tplnr   Device Location
*   x_dl_note =                 " eenfi_single_restab  Notes for Device Location
  IMPORTING
    idoc_cimtype =              " edidc-cimtyp  Enhancement Name
  TABLES
    idoc_data =                 " edidd         IDoc Data
    .  "  EXIT_SAPLEEWM_IF_OMS_1_006

ABAP code example for Function Module EXIT_SAPLEEWM_IF_OMS_1_006





The ABAP code below is a full code listing to execute function module EXIT_SAPLEEWM_IF_OMS_1_006 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_idoc_cimtype  TYPE EDIDC-CIMTYP ,
it_idoc_data  TYPE STANDARD TABLE OF EDIDD,"TABLES PARAM
wa_idoc_data  LIKE LINE OF it_idoc_data .


DATA(ld_segment_name) = some text here
DATA(ld_x_viaufks) = 'Check type of data required'.
DATA(ld_x_tline) = 'Check type of data required'.
DATA(ld_x_customer) = 'Check type of data required'.
DATA(ld_x_cust_addr) = 'Check type of data required'.

SELECT single TPLNR
FROM IFLOT
INTO @DATA(ld_x_con_obj).

DATA(ld_x_con_obj_addr) = 'Check type of data required'.
DATA(ld_x_co_note) = 'Check type of data required'.

SELECT single TPLNR
FROM IFLOT
INTO @DATA(ld_x_dev_loc).

DATA(ld_x_dl_note) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_idoc_data to it_idoc_data. . CALL FUNCTION 'EXIT_SAPLEEWM_IF_OMS_1_006' EXPORTING segment_name = ld_segment_name * x_viaufks = ld_x_viaufks * x_tline = ld_x_tline * x_customer = ld_x_customer * x_cust_addr = ld_x_cust_addr * x_con_obj = ld_x_con_obj * x_con_obj_addr = ld_x_con_obj_addr * x_co_note = ld_x_co_note * x_dev_loc = ld_x_dev_loc * x_dl_note = ld_x_dl_note IMPORTING idoc_cimtype = ld_idoc_cimtype TABLES idoc_data = it_idoc_data . " EXIT_SAPLEEWM_IF_OMS_1_006
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_idoc_cimtype  TYPE EDIDC-CIMTYP ,
ld_segment_name  TYPE EDIDD-SEGNAM ,
it_idoc_data  TYPE STANDARD TABLE OF EDIDD ,
wa_idoc_data  LIKE LINE OF it_idoc_data,
ld_x_viaufks  TYPE VIAUFKS ,
ld_x_tline  TYPE TLINE ,
ld_x_customer  TYPE EKUN_EXT ,
ld_x_cust_addr  TYPE EADRDAT ,
ld_x_con_obj  TYPE IFLOT-TPLNR ,
ld_x_con_obj_addr  TYPE EADRDAT ,
ld_x_co_note  TYPE EENFI_SINGLE_RESTAB ,
ld_x_dev_loc  TYPE IFLOT-TPLNR ,
ld_x_dl_note  TYPE EENFI_SINGLE_RESTAB .


ld_segment_name = some text here

"populate fields of struture and append to itab
append wa_idoc_data to it_idoc_data.
ld_x_viaufks = 'Check type of data required'.
ld_x_tline = 'Check type of data required'.
ld_x_customer = 'Check type of data required'.
ld_x_cust_addr = 'Check type of data required'.

SELECT single TPLNR
FROM IFLOT
INTO ld_x_con_obj.

ld_x_con_obj_addr = 'Check type of data required'.
ld_x_co_note = 'Check type of data required'.

SELECT single TPLNR
FROM IFLOT
INTO ld_x_dev_loc.

ld_x_dl_note = 'Check type of data required'.

SAP Documentation for FM EXIT_SAPLEEWM_IF_OMS_1_006


This function module is for enhancing the Idoc ISU_DL_ORDER. It is called at the appropriate points in the program so that it can be used ...See here for full SAP fm documentation






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