cancel
Showing results for 
Search instead for 
Did you mean: 

How to create an include for a BAdi?

Former Member
0 Kudos

Dear All, I have a problem about create an include for a BAdi,

for example:

1 In the SRM Purchase Order, the Tax Code field shall be set to non-editable

An implementation of BADI definition BBP_UI_CONTROL_BADI named ZQM_PO_UI_CONTROL.

Create an include for this BADI that is executed for sy-mandt = 200.

What must I do?

thanks a lot.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

<b>Use the IF.. ELSE.. ENDIF conditions. That is inside the MEthod... EndMethod..code</b>

<b>Sample Code</b>

METHOD .....


IF SY-MANDT = '200'

*--- Do this

ELSEIF SY-MANDT = '100'.

*--- Do that

ENDIF.


ENDMENTHOD.

Hope this will help.

Please reward suitable points.

Regards

- Atul

Former Member
0 Kudos

thanks for Atul,

I am a rookie with SRM,

I can't find this place, in se18 or se19?

use which name? BBP_UI_CONTROL_BADI ?ZQM_PO_UI_CONTROL ?

thanks a lot.

Former Member
0 Kudos

Hi

Here are the steps->

<b>Go to SE19 transaction and type the name - ZQM_PO_UI_CONTROL

and click on Display button. A new screen will come. Click on Interface tab.

There you will see the method name...

<b>BBP_PO_UI_CTRL</b>

in the table.

Doble-Click on this method name.

A new screen will appear..

You will see Method ... Endmethod.. Inside that you can make the required changes by Clicking on Change button on the Application toolbar.</b>

Hope this will help.

Please reward suitable points.

Regards

- Atul

Answers (1)

Answers (1)

Former Member
0 Kudos

thanks Atul help