Skip to Content
0
Former Member
Jan 02, 2008 at 08:13 AM

Pricing determination for creating sales order using BAPI

1627 Views

Hi,

I am using BAPI_SALESORDER_CREATEFROMDAT2 for creating sales order. I am filling conditions structures

'BAPICOND' and 'BAPICONDX' .

fs_order_conditions_in-itm_number = '00010'.

fs_order_conditions_in-cond_type = 'ZNTP'.

fs_order_conditions_in-cond_value = zsalesinput-price.

fs_order_conditions_in-currency = 'INR'.

append fs_order_conditions_in to order_conditions_in.

fs_order_conditions_inx-itm_number = '00010'.

fs_order_conditions_inx-cond_type = 'ZNTP'.

fs_order_conditions_inx-cond_value = 'X'.

fs_order_conditions_inx-currency = 'X'.

  • fs_order_conditions_inx-updateflag = 'U'.

append fs_order_conditions_inx to order_conditions_inx.

I am filling the conditions table with above mentioned fields.

Sales order is getting created successfully but I am getting two condition records in the conditions tab of sales order, one which is filled using the BAPI and the other one which is automatically picked by the system. Please tell me how to restrict the one which is created automatically by the system.

Because I want the one which is created by BAPI only.

Helpful posts will be rewarded