7

Customer Field enhancement at Delivery Level in EWM

 1 year ago
source link: https://blogs.sap.com/2022/10/04/customer-field-enhancement-at-delivery-level-in-ewm/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
October 4, 2022 4 minute read

Customer Field enhancement at Delivery Level in EWM

In this blog post, we will provide a guide to create an editable custom field and add it to the Outbound Delivery Order.

Problem Statement:

We had a business requirement where we had to store some custom information at in delivery level to use further in warehouse processes like put away, picking etc. Also, we needed to provide a way for users to edit the custom information at delivery level.

We know that adding custom fields to deliveries /stock can be done by enhancing the relevant EEW structures.

  • But how do we add the field to form view?
  • How do we make a custom field editable in the form view?
  • How do we populate the values to custom field?

We had searched for blogs to guide us on our quest to fulfil our requirement, but we had not found any. We did some back-and-forth analysis and debugging in EWM system and then found the way to do it.

Here is how we achieved it

Solution

  • Add the custom fields to relevant EEW Structures

Append the field in EEW structure /SCDL/INCL_EEW_DR_ITEM_STR which is related to ODR document (where data is being flown from ECC system).

1-80.png

Append the field in EEW structure /SCDL/INCL_EEW_DLV_ITEM_STR which is related to ODO document (where data is being flown form ECC system and field value can be edited in EWM system).

2-54.png

Once EEW structures are appended with custom fields , these can be viewed in ALV list view in non-editable form ,Refer the below screen shot for the same.

To make it available in form view, follow below steps,

  1. Customization-Addition of custom field to form view

Extended Warehouse Management->Cross-Process Settings->Delivery-Warehouse Request

3-47.png

Delivery-Warehouse Request->Extension of delivery -Warehouse request->Define logical Field names

4-40.png

Choose the EEW structure of the delivery .

5-32.png

Select logical field name and input the custom field name newly added logical field name.

Since we are adding field at item level, Soc level selected as 2 Item.

6-35.png

Delivery- warehouse request->Extension of delivery-Warehouse Request->Extend system profiles for Field control.

7-27.png

Choose the ODO item system profile   /SCDL/OUT_PRD_DLV

8-34.png

Add the permitted fields with EEW structure

9-30.png

Select the relevant status to make the field non editable.

In this case field is non editable once the status of the document is set to completed .

10-29.png
  1. Technical Details –
  • Create a customer-defined function group
11-26.png
  • In the function group, create a PBO and a PAI module for the enhancement of item data.

The PBO module should call one of the following methods:

/SCWM/CL_DLV_UI_BADI_MGMT=>PBO_ITEM

12-25.png

The PAI module should call one of the following methods:

/SCWM/CL_DLV_UI_BADI_MGMT=>PAI_ITEM

13-20.png

Please note that transaction to which the changes are being made should be mentioned at exporting.

Since these changes relevant to Outbound item, transaction mentioned as SC_TA_PRDO.

For inbound it should be SC_TA_PRDI.

Refer to interface /SCWM/IF_EX_DLV_UI_SCREEN for other transactions.

14-17.png
  • Create a sub screen in the function group. The screen for the item data must not exceed 128 columns and 8 rows. In the flow logic, call the corresponding PBO or PAI modules
15-14.png
16-12.png

Add the EEW structure Custom field to screen.

17-12.png
  • Now implement the BADI to enhance the screen
18-9.png
  • Implement the BADI based on the requirement, In this case item extension is being used.
19-10.png
  • Call the screen created under function group in previous step.

Repid is function group

Dynnr is screen number created.

20-7.png

Result:

Newly added field shown in the form view of Outbound Item.

21-7.png

Conclusion

Using the above steps, we were able to achieve the addition of editable custom field at outbound delivery item level. Similar steps can be followed to enhance inbound/outbound deliveries/delivery requests at header/item level.

Please feel free to comment on this blog for any constructive feedback or if you have further questions regarding the process. I will be monitoring this blog and would be more than happy to help you out.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK