cancel
Showing results for 
Search instead for 
Did you mean: 

badu subscreen

Former Member
0 Kudos

Hi.

for perticular tranction u will be getting all badi defination.

but as per as my requirment add shd add one subscreen. suppose we have 10 badi definations for that transaction . but for adding a subscreen let us consider that we have 3 badidefinations releted for adding a subscreen? SO WHICH BADIDEFINATION i shd choose among 3 subscreen badi definations.

can any one can give me a solution

Thanks in advance.

SAtish

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

u can use Screen exit to do the functionality.

Can u tell me which transaction r u working?

Regards

Sandipan

Former Member
0 Kudos

hi,

it is for me23n.for this tranction there is only one defination(ME_GUI_PO_CUST) that is releted to subscreen there i dont have any problem to work. but if we have TWO definations related to subscreen then which one i should choose.how to choose.

Former Member
0 Kudos

Hi,

In method Suscribe of the BADI

Check Like this:-->

For Header:--

CHECK im_application = 'PO'.

CHECK im_element = 'HEADER'. " For Header

For Item

CHECK im_application = 'PO'.

CHECK im_element = 'ITEM'. "For Item level.

Then Add the Screen.According to your requirement.

Regards

sandipan

Former Member
0 Kudos

thanks sandipan.

i have done all those things.ok fine

but my question is suppose if i have two badi defination for eg.

1) me_gui_po_cust and

2)me_gui_po_cust1

two definations we have then how to choose which badi defination i shd consider whether

me_gui_po_cust or me_gui_po_cust1

how to find out which one i shd use.

just leave that tranction. if we face that problem how to do that one.not only for subscreen even for any other exits it may be function module exit or wht ever it may be.

i hope u got my point.

Former Member
0 Kudos

Hi,

For that u have to first implement the BADI and set the breakpoint inside the method of the BADI/EXIT and

test whether it is triggering at your desired point.

Regards

Sandipan

Former Member
0 Kudos

means if we have two badi definations i shd write a code in both of the badi's and then i shd put the breakpoints in each of the methods of the badis(both). then which one is trigger that one we shd consider.

Former Member
0 Kudos

Hi,

First try with One BADI and set break points there in the methods.

If it doesnot serve your purpose then try with another BADI.

Regards

Sandipan

Former Member
0 Kudos

so one is working then i shd deactivate the other implementation so that it wont work.

Former Member
0 Kudos

thk u sandipan i gave u full pts.

Former Member
0 Kudos

Hi,

No if u deactivate the other BADi then the Functionality it was serving it will not be done.

Lets take an example,

suppose that u r trying with badi ME_GUI_PO_CAST

Then implement the BADI using SE19. And set break points there and test.

There is no need to deactivate the other BADI.

Then if the first BADi is not working then try to implement the other BADi using Se19.

And test it.

Hope this helps.

regards

Sandipan

Former Member
0 Kudos

Hi,

Is ur doubt cleared?

Any way thanks for points.

Regards

Sandipan

Former Member
0 Kudos

yes.

if i get any doubts i ask's u

Thanks

Former Member
0 Kudos

Hi sandipan,

yesterday i faced one question that :

if we have too many badi definations for perticular transaction i.e u explained me about subscren that wht shd we do if we have more badi defination for perticular client requirment .that we shd implement each and every badi , put break point, there which one is triggered tht one we shd choose. BUT QUESTION is if we have many badi definations FOR e.g 50 badis ( JUST ASSUMPTIONS ) for perticular requirment implementing the badi and checking the implemented badi whether tht one is executing or not that will take more time.IS THERE IS ANY ALTERNATIVE METHOD TO FIND OUT EXACT BADI.

this is the question i faced.

sadipan plzzz reply me soon for this question.

Thanks in advance

SAtish

Former Member
0 Kudos

Hi,

1st of all for a particular Transaction/Package find the BADi from SE84.

From That u can sort out the requirement according to the description given there for the BADI.

Like

ME_BAPI_PO_CUST Customer BAdI for BAPI_PO_CREATE1 and BAPI_PO_CHANGE

ME_REQ_OI_EXT Commitment Update in the Case of External Requisitions

Regards

Sandipan

Former Member
0 Kudos

hi sandipan,

i am not getting ur point can u explain me more clearly.

even we dont have any alternative method other than this.

thanks.

Satish

Former Member
0 Kudos

Hi satish,

Let me take an example

U have transaction so first try to find the package and the BADI assciated with the package.

Then from the description Sort out the BADi required for your need.

The test the BADI using braek point.

Regards

Sandipan

Answers (1)

Answers (1)

Former Member
0 Kudos

HI,

You find by setting a break point in all definition with implementaation.

Regards

Raj.K

Former Member
0 Kudos

Hi raj,

can u explain briefly.