how to fetch variables from current screen in BADI ?
I am using transaction BP to create a new Business Partner.
I go to transaction BP and click on create new person. Then , I select a Role for the new business partner, say PROSPECT.
Now i want to access this ROLE through my BADI.
QUESTION : How do i access this role ????
NOTE : The status of the screen shows Program : SAPLBUPA_DIALOG_JOEL and Screen : SCREEN_1000_1.
How variable containing the role selected is stored in the Program : SAPLBUPA_DIALOG_JOEL .
How do i use this program in my BADI ?
The role may not come from the screen program.
The alternative way is to get the main program. Usually the main program is SAPLBUD0. Check the TOP include of this function group and find out the internal tabel for the role.
This internal table can be accessed in the BADI.
arul jothi a.