Go to the transaction code CMOD and create a new project.
Give a short description for the Project and save it in local object.
Step2: Click on the tab "Enhancement assignments".
Give the enhancement name, that is assigned to SE38 transaction.
Step3: Click on the tab "Components".
We can see both function exits as well as menu exits for the enhancement SEUED001.
Step4:
Choose first menu exit and double click on it
Click on "Copy". Do the same for rest 2.
Click on Activate button to activate the three menu exits.
Now go to SE38 transaction. And open any report, we can see our menu option appears.
Step5:
Go back to "Components" tab in the transaction CMOD. Double click on function exit EXIT_SAPLLOCAL_EDT1_001
Double click on that include.
Press yes. And write down the below code inside that.
IF sy-ucomm = '+PGE'.
CALL TRANSACTION 'SE93'.
ENDIF.
CALL TRANSACTION 'SE93'.
ENDIF.
Save and activate the include.
When the include is activated a green tick mark appears behind the function exit in CMOD.
Step6:
Go back to CMOD. And repeat the same for rest of the FMs.
Step7:
Go to the transaction SE38, and select the menu item SE93.
Note : Here in this example the code is repeated in all the user exit function modules, as proper research was not done. In realtime project initially we have to do a research on which FM we have to implement the code, so that these unnecessary coding is not required. This has done to explain the tutorial only.
0 comments:
Post a Comment