Wednesday, February 2, 2011

Adding custom fields to the Purchase Order transaction ME22N


Enhancement used: MM06E005

1. Go to transaction CMOD and create a project as shown below.

2.Give the enhance name as MM06E005 and save.

Click on components button the following screen is displayed.

3.Create the required custom fields using the includes CI_EKKODB and CI_EKPODB

The above 5 fields are added.

4.Screen: 0111 is used for adding custom fields. Design the screen with the above fields.

Code in PBO

5.The following two function Exits are used for adding custom fields at item level:

EXIT_SAPMM06E_016 (Export Data to Customer Sub screen for PO)

EXIT_SAPMM06E_018 (Import Data from Customer Sub screen for PO)

Click on the Function Module: EXIT_SAPMM06E_016

The following screen is displayed

Double click on the include and write the following code

The following is the code for the function module EXIT_SAPMM06E_018

6.Go to transaction ME22N and check at item level. Custom tab with custom fields will appear as follow.

Enter some data in the custom fields and save.

7.Go to EKPO table and check the data.

1 comment:

Anonymous said...

missing information, EKPO will not be updated when you do this.

Tutorials on SAP-ABAP

Adobe Interactive Forms Tutorials

Business Server Pages (BSP)


Web Dynpro for ABAP (Step by step procedure for web dynpro,Tutorials on Web Dynpro,)

ALV Tutorials

Blog Archive