cancel
Showing results for 
Search instead for 
Did you mean: 

Exit / BADI that can change PO's price in condition tab

Former Member
0 Kudos

Hi experts,

does any exit enable us to change the price in PO's condition tab? I need to replace the current price with my own price calculation and what's the name of the exit/BADI

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

DATA : t_cond TYPE mmpur_tkomv.

DATA : wa_cond LIKE LINE OF t_cond.

CALL METHOD im_header->get_conditions

IMPORTING

ex_conditions = t_cond.

LOOP AT t_cond INTO wa_cond.

*C-- Write your logic.

ENDLOOP.

CALL METHOD im_header->set_conditions

EXPORTING

im_conditions = t_cond.

Former Member
0 Kudos

Thanks Sharath.

Former Member
0 Kudos

hi Sharath,

upon change PO, the condition t_cond is empty, pls advise . thanks

Answers (3)

Answers (3)

Former Member
0 Kudos

I would suggest to use BADI ME_PROCESS_PO_CUST.

1. Method to implement would be POST.

2. Method POST has parameter IM_HEADER which is in reference to IF_PURCHASE_ORDER_MM.

3. This reference has method GET_CONDITIONS.

4. call this method to get conditions data.

5. Make all the changes based on the logic and use method SET_CONDITIONS to change the values.

6. Thats it.

Sharath.

Former Member
0 Kudos

Hi Sharath,

can you give me the sample code of how to call the method GET_CONDITIONS. Thanks.

Former Member
0 Kudos

Hi Ester,

in se80, enter package ME, n chk the enhancements provided..

Hope it helps,

Regards,

Bikash

Former Member
0 Kudos

Hello,

You can modify the condition table price with a Pricing formula created by transaction VOFM. You need to get access key to modify the include proposed by SAP. Then include the Pricing formula in Pricing Procedure Definition (for the condition type) in SPRO.

Thanks,

Venu

Former Member
0 Kudos

Hi Venu,

I cant use VOFM, as the calculation differs in every PO, that's why i have to do it background using either BADI/Exits