cancel
Showing results for 
Search instead for 
Did you mean: 

How to create saleorder with BAPI by input Cond Value rather than Cond rate

Former Member
0 Kudos

Hi, experts

I want to create a sale order by using BAPI, but as specific need I want to input the Condition value into order items rather than Condition type.

I have already configure the Condition type that I could input Condition value directly in the front-end by tcode va01. But I still could not input them by using BAPI.

Is there any sample code for the input of table ORDER_CONDITIONS_IN?

My code is as below:

order_conditions_in-itm_number = n.

order_conditions_in-cond_type = t_price_list-kschl.

order_conditions_in-currency = currency.

order_conditions_in-stat_con = 'X'.

order_conditions_in-cond_unit = 'PCS'.

order_conditions_in-condvalue = t_price_list-kbetr.

  • order_conditions_in-cond_value = t_price_list-kbetr.

order_conditions_in-cond_p_unt = 1.

order_conditions_in-condorigin = 'C'.

order_conditions_in-calctypcon = 'C'.

order_conditions_in-condcntrl = 'E'.

order_conditions_in-condchaman = 'X'.

order_conditions_in-cond_updat = 'X'.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Does any body know?

Former Member
0 Kudos

You can reference - Note 593246 - BAPI SD as of Rel.4.70: New functions for pricing