user exits
TRANSCRIPT
ABAP_Interview 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)
1
ABAP_Interview EXITS
Go to “CMOD” transaction
Go to Standard Menu : Goto-->Text enhancements-->Keywords-->Change
Enter the Data Element: STCD1
Change Description : ss number
2
ABAP_Interview EXITS
Change Tax Code1 is as shown below
Press “Save”
Specify the Request Number
3
ABAP_Interview EXITS
Enter the Data Element: STCD2
Change Tax Code2 as shown below
Press “Save”
Specify the Request Number
Enter the Data Element : FISKN_K
4
ABAP_Interview 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.
5
ABAP_Interview 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’.
6
ABAP_Interview 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.
7
ABAP_Interview EXITS
6. Write the flow logic in PAI and PBO as per the requirement.
8
ABAP_Interview 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
9
ABAP_Interview 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.
10
ABAP_Interview 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)
11
ABAP_Interview 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.
12
ABAP_Interview 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
13
ABAP_Interview 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
14
ABAP_Interview 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
15
ABAP_Interview EXITS
Double click on the include and write the following code
16
ABAP_Interview 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.
17
ABAP_Interview EXITS
Enter some data in the custom fields and save.
7.Go to EKPO table and check the data.
===4===============================================================================
18