cancel
Showing results for 
Search instead for 
Did you mean: 

How to Change Conditions while creating PO

Former Member
0 Kudos
1,357

Hi ALL

While creating the PO, i need to change the value of certain condition type.

I am able to do for PB00 condition, but i need to change it for other conditions.

For example, if there is any discount condition, i need to be able to change the value, when PO is getting created

Can you please help on this

Regards

Madhan Doraikannan

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi All,

I have the same issue ... so I need someone to take care of it background instead on-line transaction??? If I don't use any function, just via GUI ... Please help. Thanks

Best regards,

Hwey Lin

Former Member
0 Kudos

Hi Madhan,

I have the same requirements as you to get the conditions for the item level and set the value for the header file. However, I dun know how to use the method get condition as i dont really know how to define the parameter MMPUR_TKOMV. Can you kindly send me your code. Thanks for your help.

Regards,

Mervyn

Former Member
0 Kudos

Hi

I create PO via ME57 ->Assign vendor -> Assignments

And double click on the line item.

It will take to ME21N transaction

Regards

Madhan Doraikannan

christian_wohlfahrt
Active Contributor
0 Kudos

Hi Madhan,

how do you create your PO? Which transaction / IDOC / BAPI do you use?

Regards,

Christian

Former Member
0 Kudos

Hi

Correction in earlier message

I create PO via ME57 ->Assign Automatically -> Assignments

And double click on the line item.

It will take to ME21N transaction

Regards

Madhan Doraikannan

christian_wohlfahrt
Active Contributor
0 Kudos

Hi,

so you are working online.

I guess you have found in item line the conditions tab.

In case you are not allowed to change some conditions, that's customizing:

Materials Management -> Purchasing -> Conditions -> Define Price Determination Process -> Define Condition Types -> Define Condition Type.

Here choose desired condition, double click (detailed view) and check box 'Value' (KAEND_WRT). Flags deletion will allow to remove a condition from a document, Qty relation will allow different unit conversions.

Regards,

Christian

Former Member
0 Kudos

Hi Christian

The condition should not be always changed.

Here is the scenorio.

when we create PO, the Purchase price is Automatically picked from Info Record.

Sometimes we have special price, so i implemented BADI

ME_PROCESS_PO_CUST to change the price and the same is working fine.

But if the INFO Record is having any discounts attached to PB00, than it doesnot allow to change the price, since the price field is greyed out in the purchase order.

In the same BADI we have

GET_CONDITIONS

SET_CONDITIONS

But i donot know how to use them, do you have idea on the same.

Please let me know, if you need further info

Regards

Madhan Doraikannan

Former Member
0 Kudos

Hi

It works

GET_CONDITIONS

SET_CONDITIONS

in the BADI ME_PROCESS_PO_CUST allowed to change the value

Regards

Madhan Doraikannan

christian_wohlfahrt
Active Contributor
0 Kudos

Hi Madhan!

Your scenario is getting more and more complicate, but so you will have better answers.

I didn't found methods GET_CONDITIONS, SET_CONDITIONS in ME_PROCESS_PO_CUST (Customer enhancement?!), but most probably no changes will be done by these methods, which aren't allowed online in transaction.

But why do you use a transaction dependent BADI instead of pricing exits / pricing procedure?

If you need something out of condition reach, you can use exit with function module ME_FILL_KOMP_PO. Communication structure KOMP can be used in a formula to fill a condition without access sequence. Then condition exclusion groups can handle allowed / not allowed condition combinations.

Regards,

Christian