6
Adding custom fields to the Purchase Order transaction ME22N By Jaya Vani B, YASH Technologies STEPS: 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.

Adding Custom Fields to the Purchase Order Transaction ME22N

Embed Size (px)

Citation preview

Page 1: Adding Custom Fields to the Purchase Order Transaction ME22N

Adding custom fields to the Purchase Order transaction ME22N

By Jaya Vani B, YASH Technologies

STEPS:

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. 

Page 2: Adding Custom Fields to the Purchase Order Transaction ME22N

 

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.

Page 3: Adding Custom Fields to the Purchase Order Transaction ME22N

 

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

Page 4: Adding Custom Fields to the Purchase Order Transaction ME22N

 

Double click on the include and write the following code

Page 5: Adding Custom Fields to the Purchase Order Transaction ME22N

 

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. 

Page 6: Adding Custom Fields to the Purchase Order Transaction ME22N

 

Enter some data in the custom fields and save. 

7.Go to EKPO table and check the data.