Easy Enhancement Workbench
Easy Enhancement Workbench
Easy Enhancement Workbench
Custom field extensions of data objects are common requirements in implementation projects.
The EEW is the newer kind of tool that supports you with this activity.
The EEW is less a framework than a tool that enables you to make field extensions of data
objects. The extension mechanism that underlies the tool can be seen as a framework through,
as its works by customizing includes and enhancement structures.
➢ Manual Processing:
o The activation and assignment of fields to customizing include via transaction
code SE11. To do so, you need to know that the customizing include is actually
available in the corresponding ABAP dictionary structure or table that you wish to
enhance. In this way you will not need to make use of EEW
Below are the following central master data objects of the SAP SCM platform, which also exists in
SAP CRM.
For the above objects you can create extensions on the EEW.
In case “SCM Master data (SCM_MD) is not available or not shown in system, please implement
SAP NOTE 1430069 and follow the advice given in that note.
Once you customize all configurations as per the SAP NOTE, now you can able to see the
SCM_MD (SCM Master Data Objects) in the list
➢ Create a Project:
Click on continue step by step configurations as per the wizard till complete
Add list of fields you required in the frame, by using simple default mode or export mode
Where you required these fields to be added, by default as per your selection it will
display the objects.
Enable the fields to appear in screen. If you click continue system will provide you the
complete status as below.
Note: Same like if you want to add fields SCM Locations, Packaging materials, Location
Product, Storage Data, Warehouse Product, Storage type Product
As shown above we add required custom fields in Product Header data (/SAPAPO/MAT1)
Click on Display
In Table /SAPAPO/MATKEY
➢ You can only enhance document and non-EWM enabled master data objects in manual
way.
➢ Special enhancement structures called EEW structures exists and that all are active in the
respective data objects that can be changed by adding an append, which is possible
without modifications the standard objects.
➢ Below are the areas where you can find EEW structures
o Warehouse Requests (Including EGR)
o WT
o HU
o TU
o Vehicle
o Door
o Available and physical stock
o Packaging Specification
o VAS Orders
o Quality inspection Document
o Indirect Labor task
o MFS Telegram
o Shipment
o Freight Order
➢ The EEW structures were built-in by SAP to the associated structures, or database tables,
belonging to the object.
➢ For example, adding new field in EEW structure for HUs, then field appear for HU
Database tables, as well as in the internal structures and in display (Warehouse
management Monitors)
➢ Adding custom fields for these objects will have to follow the classic method via append
structures. Automatically generated screen enhancements are also not supported with
EEW structures enhancements.
➢ Many UIs of individual data objects in SAP EWM build on the SAP list viewer (ALV)
though, and the EEW structures are included in the respective ALV list underlying the
display structures. This is the reason why custom fields are often found in the list view of
data objects but not in the form view.
➢ If available for the object, you can implement BADIs to have the fields appear in the form
view as well. Below are the list of BADIs available for enhancements.
IMG Path: SCM EWM | EWM | Business Add-ins (BADIs) for EWM | Cross process settings
| Delivery -Warehouse Request | Screen enhancement for customer enhancement
structure
Applicable transactions:
/SCWM/GR
/SCWM/FD
/SCWM/GRN
/SCWM/IDN
/SCWM/IM_DR
/SCWM/IM_PC
/SCWM/IM_ST
/SCWM/ODR
/SCWM/PRDI
/SCWM/PRDO
IMG Path: SCM EWM | EWM | Business Add-ins (BADIs) for EWM | Good Receipt Process
| Enhancement for Goods Receipt Process | Define enhancement for goods receipt
Process
Applicable Transactions:
/SCWM/GRPE
/SCWM/GRPI
/SCWM/GR
IMG Path: SCM EWM | EWM | Business Add-ins (BADIs) for EWM | Cross Process settings
| Value added services | BADI: Screen exit for VAS header
Applicable Transactions:
/SCWM/VAS
/SCWM/VASEXEC
/SCWM/VAS_I
/SCWM/VAS_INT
/SCWM/VAS_KTR
/SCWM/VAS_KTS
/SCWM/VAS_KTO
IMG Path: SCM EWM | EWM | Master Data | packaging Specification | Packaging
Specification user Interface
Applicable Transactions:
/SCWM/PACKSPEC
/SCWM/INCL_EEW*
/SCDL/INCL_EEW*
/SCMB/INCL_EEW*
Requirement:
Below custom development shows how we can transfer additional data from ERP to EWM via
the delivery interface and use this data further.
Two BADI enhancements and two structure enhancements will be required to get this to work
1. Passing custom data from SAP ERP into the delivery interface (SAP ERP) by using BADI
(SMOD_V50B0001)
2. Enhancing the data object of the outbound delivery request (ODR) in SAP EWM,
enhancement of structure /SCDL/INCL_EEW_DR_ITEM_STR)
3. Passing custom data from the delivery interface to the ODR in SAP EWM by using BADI
(/SCWM/EX_MAPIN_OD_SAVEREPL)
4. Enhance the data object of the ODO in SAP EWM, enhancement of structure
/SCDL/INCL_EEW_DLV_ITEM_STR)
Step 1:
System: ERP
Method: EXIT_SAPLV50K_007
Step 2:
You need to enhance data dictionary structure /SCDL/INCL_EEW_DR_ITEM_STR for the ODR with
additional field ZZFIELD1. To do so
Go to SE11 and enhance it with an append structure that contains the custom field.
Step 3:
Passing the value of custom field from the extension structure of the interface to the ODR item
into SAP EWM. To do so,
METHOD /scwm/if_ex_mapin_od_saverepl~mapin.
CONSTANTS: c_fieldname TYPE name_feld VALUE ’ZZFIELD1’.
DATA: lv_posnr TYPE /scdl/dl_itemno,
lv_vbeln TYPE vbeln_vl.
break-point id z108A.
LOOP AT ct_dlv_request
ASSIGNING FIELD-SYMBOL(<fs_dlv_req>).
LOOP AT <fs_dlv_req>-t_item
ASSIGNING FIELD-SYMBOL(<fs_item>).
READ TABLE <fs_item>-t_keymap_item
INTO DATA(ls_keymap) INDEX 1.
CHECK sy-subrc IS INITIAL.
lv_vbeln = ls_keymap-docno.
lv_posnr = ls_keymap-itemno.
READ TABLE it_bapi_extension2
ASSIGNING FIELD-SYMBOL(<fs_bapiext>)
WITH KEY param = lv_vbeln
row = lv_posnr
field = c_fieldname.
CHECK sy-subrc IS INITIAL.
MOVE <fs_bapiext>-value TO <fs_item>-s_eew-zzfield1.
ENDLOOP.
ENDLOOP.
ENDMETHOD.
Step 4:
Before the custom data can be passed from the delivery request to the delivery order, we must
enhance the data dictionary structure /SCDL/INCL_EEW_DLV_ITEM_STR of the delivery order by
the custom field. To do so, go to SE11 and enhance it same as step 2.
Since the transfer of the custom data of the delivery request to the delivery order works
automatically for identically named fields in both structures, you do not need to implement the
BADI definition /SCDL/TS_DATA_COPY of the transition service.
This would only be required in the case different named fields, because the automatic transfer is
executed via the move-corresponding command.
Step 1:
Create a new function group (for example Z_DLV_UI) and include a new PBO and
PAI module in it as shown below
Example
MODULE output OUTPUT.
CALL METHOD /scwm/cl_dlv_ui_badi_mgmt=>pbo_item
EXPORTING
iv_transaction = /scwm/if_ex_dlv_ui_screen=>sc_ta_prdo.
ENDMODULE.
Example PBO Module for the Form View of the ODO Item
MODULE input INPUT.
CALL METHOD /scwm/cl_dlv_ui_badi_mgmt=>pai_item
EXPORTING
iv_transaction = /scwm/if_ex_dlv_ui_screen=>sc_ta_
prdo. ENDMODULE.
Step 2:
Now we need to create a Dynpro (for example, 1000) of type “Sub screen.” This sub screen
should include our custom field that we want to display in form view. Use the enhancement
structure /SCDL/INCL_EEW_DLV_ITEM_STR for the definition of the field in the screen painter.
You can read about the procedure in more detail in the BAdI documentation of the IMG node
Business Add-Ins (BAdIs) for Extended Warehouse Management _ Cross-Process Settings _
Delivery -Warehouse Request _ BAdI: Screen Enhancements for Customer Enhancement
Structures.
Step 3:
METHOD /scwm/if_ex_dlv_ui_screen~define_item_extension.
ev_repid = ’SAPLZ_DLV_UI’.
ev_dynnr = ’1000’.
ENDMETHOD.