You are on page 1of 18

ABAP_Interview 1 EXITS

Implementing Field Exit for the transaction MK01


By Raghava Vakada. Mouri Tech Solutions 

“In this scenario, I would like to explain about Field exit enhancement for MK01 standard
transaction in Control tab under Tax information”. 

Note : This field Enhancement will reflect in the transactions XD01, FK01 and MK01. 

Go to “MK01” transaction

Enter the Vendor, Purchase Organization and Check the Control details in General data  

The Enhancement fields are SS number, em no and Fiscal address under Tax Information (as
shown below) 
ABAP_Interview 2 EXITS

Go to “CMOD” transaction 

Go to Standard Menu : Goto-->Text enhancements-->Keywords-->Change 

Enter the Data Element: STCD1 

Change Description : ss number


ABAP_Interview 3 EXITS

Change Tax Code1 is as shown below 

Press “Save” 

Specify the Request Number 

 
ABAP_Interview 4 EXITS

Enter the Data Element: STCD2 

Change Tax Code2 as shown below 

Press “Save” 

Specify the Request Number 

Enter the Data Element : FISKN_K 


ABAP_Interview 5 EXITS

Change description is as shown below with “Financial Year”

Press “Save” 

Specify the Request Number 

Now, Go to transaction MK01. 

The Field Enhancement details are shown below. 


ABAP_Interview 6 EXITS

2==============================================================
======

Implement screen exit for MM01/MM02/MM03 HOT


By Vijayanand Poreddy

Requirement: 
Add new field(s) to MM01 basic data 1 view (screen) and store the values into a
Ztable along with material number as primary key. 

Solution: 

      1.   Go to Transaction SPRO, Display IMG.

2.   Go to Logistics-General à Material Master à Configuring the material master


     
and execute ‘Create Program for Customized Subscreen’.
ABAP_Interview 7 EXITS

3.   Create a function group of your own with Y or Z. In this case the function group
     
name given ZMGD1.

4.   Go to transaction SE80 and open the function group created, here the function
     
group is ZMGD1.

5.   Open the screen 0001. Using screen design layout (SE51), customize the screen
     
according to the requirement.
ABAP_Interview 8 EXITS

      6.   Write the flow logic in PAI and PBO as per the requirement.
ABAP_Interview 9 EXITS

      7.   PBO

o       Inactive the fields for input when material is displayed (MM03)

o       Retrieve the data from Ztable for material change/display (MM02/MM03)

      8.   PAI

o       Export the data into memory


ABAP_Interview 10 EXITS

     9.   Now go to transaction SPRO, Display IMG then go to Logistics-General à


Material Master à Configuring the material master and execute ‘Define Structure of
Data Screens for Each Screen Sequence’.

  10.   Select the corresponding screen sequence number and double click on data
screen button. In this case screen sequence ‘21’ has modified.
ABAP_Interview 11 EXITS

  11.   Select logical screen 07 (Basic Data 1) and double click on Subscreens.

  12.   In change view of subscreens, modify the program name of sub screen 21à07à08
to the subscreen program name which is created in step 6. In this case the program
name is SAPLZMGD1. Save the modifications.

  13.   Now to save the given enhanced field value in the Ztable, write the required code
in the user exit EXIT_SAPLMGMU_001.

o       Import the data from memory ( The data which is exported in PAI event,
refer step 8)
ABAP_Interview 12 EXITS

Execute the transaction MM01/MM02/MM03 and test the scenario developed.

=3=============================================================
=======

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. 

 
ABAP_Interview 13 EXITS

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
ABAP_Interview 14 EXITS

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
ABAP_Interview 15 EXITS

Adding custom fields to the Purchase Order transaction ME22N


...Previous

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


ABAP_Interview 16 EXITS

Double click on the include and write the following code


ABAP_Interview 17 EXITS

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. 
ABAP_Interview 18 EXITS

Enter some data in the custom fields and save. 

7.Go to EKPO table and check the data. 

===4=========================================================================
======

You might also like