Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Pricing determination for creating sales order using BAPI

Former Member
0 Likes
2,993

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

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

5 REPLIES 5
Read only

George_Lioumis
Active Participant
0 Likes
1,358

Hello Manchu.

Basically, it is an SD customizing issue. During the creation of the Sales Order you cannot "restrict" any other condition type. The SD guys must customize the condition type to allow for zero value so that the sales order is successfully created without this conition type.

Regards,

George

Read only

0 Likes
1,358

Hi George,

Can you detail the explanation provided by you.

Read only

Former Member
0 Likes
1,358

Hi,

Just set the parameter

logic_switch-pricing = 'G'.

I hope this helps

Regards

Raju chitale

Read only

0 Likes
1,358

Hi Raju,

Where should I check the field logic_switch-pricing = 'G'.

Is it found in the BAPI structure ?

Read only

0 Likes
1,358

Hi Raju,

I think logic switch is for external order number assignment.

But I am creating the internal assignment so it is going for dump if I check that field.