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
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
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”
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.