09-20-2007 12:04 PM
hi experts,
i will have to write a badis for pr and po ,the scenario is like this the po price wnt be greater than 20% of pr price....with the help of st05 i traced the badis by using me21n and me51n tc...from st05 i got these badis :::
Duration Obj. name Op. Recs. RC Statement
8 V_EXT_ACT OPEN 0 R 40 BADI_MATN1
7 V_EXT_ACT OPEN 0 R 40 ME_CHECK_ALL_ITEMS
6 V_EXT_ACT OPEN 0 R 40 ME_CCP_ACTIVE_CHECK
7 V_EXT_ACT OPEN 0 R 40 ME_DEFINE_CALCTYPE
11 V_EXT_IMP OPEN 0 R 60 IF_EX_ME_PROCESS_PO
6 V_EXT_ACT OPEN 0 R 40 WB2_ADDITIONAL_DATA
8 V_EXT_IMP OPEN 0 R 60 IF_EX_WB2_ADDITIONAL_DATA
6 V_EXT_IMP OPEN 0 R 60 IF_EX_ME_PROCESS_PO_CUST
5 V_EXT_IMP OPEN 0 R 60 IF_EX_ME_PROCESS_PO
11 V_EXT_IMP OPEN 0 R 60 IF_EX_ME_PROCESS_PO_CUST
7 V_EXT_IMP OPEN 0 R 60 IF_EX_ME_PROCESS_PO
6 V_EXT_IMP OPEN 0 R 60 IF_EX_ME_PROCESS_PO_CUST
8 V_EXT_IMP OPEN 0 R 60 IF_EX_ME_PROCESS_PO
6 V_EXT_IMP OPEN 0 R 60 IF_EX_ME_PROCESS_PO_CUST
5 V_EXT_IMP OPEN 0 R 60 IF_EX_ME_PROCESS_PO
8 V_EXT_IMP OPEN 0 R 60 IF_EX_WB2_ADDITIONAL_DATA
4 V_EXT_IMP OPEN 0 R 60 IF_EX_WB2_ADDITIONAL_DATA
7 V_EXT_ACT OPEN 0 R 40 LFM2_DB_STRG
6 V_EXT_IMP OPEN 0 R 60 IF_EX_LFM2_DB_STRG
3 V_EXT_ACT OPEN 0 R 40 BADI_LAYER
3 V_EXT_ACT OPEN 0 R 40 STOREGROUPING
4 V_EXT_IMP OPEN 0 R 60 IF_EX_STOREGROUPING
3 V_EXT_ACT OPEN 0 R 40 BADI_LAYER
6 V_EXT_ACT OPEN 0 R 40 EINE_DB_STRG
5 V_EXT_IMP OPEN 0 R 60 IF_EX_EINE_DB_STRG
4 V_EXT_ACT OPEN 0 R 40 BADI_LAYER
3 V_EXT_ACT OPEN 0 R 40 STOREGROUPING
4 V_EXT_IMP OPEN 0 R 60 IF_EX_STOREGROUPING
7 V_EXT_ACT OPEN 0 R 40 REFERENCE_SITE
5 V_EXT_IMP OPEN 0 R 60 IF_EX_REFERENCE_SITE
4 V_EXT_ACT OPEN 0 R 40 BADI_LAYER
4 V_EXT_ACT OPEN 0 R 40 STOREGROUPING........
<b>etc from the above badis how will i judge that which badis is suitable for my scenario,how will i find is there any suitable way to find the exact badis....</b>...
plz consider my question carefully plz dnt send me how to find badis etc...because i already know it,,,, i want only how to judge which badis is suitable .......
09-20-2007 12:08 PM
To find a BAdI for any SAP transaction do the following:
goto that transaction
Click on System->Status
Double click on the program name
Once inside the program search for CL_EXITHANDLER=>GET_INSTANCE.
Make sure the radiobutton In main program is checked
A list of all the programs with call to the BAdIs will be listed.
The export parameter EXIT_NAME for the method GET_INSTANCE of class
CL_EXITHANDLER will have the user exit assigned to it.
The changing parameter INSTANCE will have the interface assigned to it.