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

BAPI_SALESORDER_CHANGE with configuration data

Former Member
0 Likes
1,485

Hi all,

I am using BAPI_SALESORDER_CHANGE to create a new line item on an existing sales order. The call takes a lot of time, and when debugging I can see that most of the time is spent in the BAPI when calling fm CE_C_PROCESSING in no_dialog mode. The thing is that in my calling program I have already called CE_C_PROCESSING to validate/change config, so my question is if anyone knows if it's possible to tell the BAPI not to call CE_C_PROCESSING?

Or maybe use something else instead of the BAPI? I have tried to use fm CUCB_CONFIGURATION_TO_DB. This one is very quick, but for new items I don't really know how to use it, and for existing items the config is saved but when you enter the order in VA03 it seems no repricing has been performed so the figures are not correct for the changed item. Anyone who knows anything about this?

Best regards,

Henrik

Hi all,

I am using BAPI_SALESORDER_CHANGE to create a new line item on an existing sales order. The call takes a lot of time, and when debugging I can see that most of the time is spent in the BAPI when calling fm CE_C_PROCESSING in no_dialog mode. The thing is that in my calling program I have already called CE_C_PROCESSING to validate/change config, so my question is if anyone knows if it's possible to tell the BAPI not to call CE_C_PROCESSING?

Or maybe use something else instead of the BAPI? I have tried to use fm CUCB_CONFIGURATION_TO_DB. This one is very quick, but for new items I don't really know how to use it, and for existing items the config is saved but when you enter the order in VA03 it seems no repricing has been performed so the figures are not correct for the changed item. Anyone who knows anything about this?

Best regards,

Henrik

4 REPLIES 4
Read only

Former Member
0 Likes
1,191

Hello Henrick,

no, the answer at your question is no. the reason is that the bapi is a standard MF and you can't modify the stanard flux.

The only thingh you can do is to copy the bapi into a zbapi and comment the part concerning CE_C_PROCESSING.

But this operation is dangerous because you modify the standard SAP and is not easy to control the impact you can have about this operation.

Regards,

Roberto.

Read only

Former Member
0 Likes
1,191

Hi,

To carry out new pricing, when new items are added to the order using fm - BAPI_SALESORDER_CHANGE.

U need to populate new pricing = 'B'. 'B = New Pricing'.

the export parameters for the same is : LOGIC_SWITCH-PRICINIG = 'B'.

It will carry out new pricing as usual like VA02, When we select repricing.

Regards,

Bysani.

Read only

Former Member
0 Likes
1,191

Hi,

To carry out new pricing, when new items are added to the order using fm - BAPI_SALESORDER_CHANGE.

U need to populate new pricing = 'B'. 'B = New Pricing'.

the export parameters for the same is : LOGIC_SWITCH-PRICINIG = 'B'.

It will carry out new pricing as usual like VA02, When we select repricing.

Regards,

Bysani.

Read only

Former Member
0 Likes
1,191

Hi,

To carry out new pricing, when new items are added to the order using fm - BAPI_SALESORDER_CHANGE.

U need to populate new pricing = 'B'. 'B = New Pricing'.

the export parameters for the same is : LOGIC_SWITCH-PRICINIG = 'B'.

It will carry out new pricing as usual like VA02, When we select repricing.

Regards,

Bysani.