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

Usage indicator not updated using BAPI_SALESORDER_CHANGE

Former Member
0 Likes
982

Hi,

We are creating the sales order through a Non -SAP system for this we have made the RFC by suing BAPI

BAPI_SALESORDER_CREATEFROMDATA, after this later we update some text by using the BAPI , BAPI_SALESORDER_CHANGE, as in BAPI_SALESORDER_CREATEFROMDATA there is no filed for Usage indicator which is present at Header level in create sales order with VA01 we found this field in BAPI_SALESORDER_CHANGE in ORDER_HEADER_IN field DLVSCHDUSE, but when we pass this value to RFC it is not saving the passed Usage value in the sales order what can be the problem.

regards,

zafar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
699

Are you getting any error in RETURN structure ? I didn't find any problem when i tried to simulate the same scenario. May be you are missing something while calling the bapi (may be the order_header_inx structure).

PS: Updation of this field is even possible while creating order through BAPI-BAPI_SALESORDER_CREATEFROMDAT2.

Regards, Vinod

3 REPLIES 3
Read only

Former Member
0 Likes
700

Are you getting any error in RETURN structure ? I didn't find any problem when i tried to simulate the same scenario. May be you are missing something while calling the bapi (may be the order_header_inx structure).

PS: Updation of this field is even possible while creating order through BAPI-BAPI_SALESORDER_CREATEFROMDAT2.

Regards, Vinod

Read only

0 Likes
699

Hi,

In preset case in the structure ORDER_HEADER_INX i am passing only Flag 'U' in the filed UPDATEFLAG so along with this what setting required to update the usage indicator the usage indicator value i am passing thorugh ORDER_HEADER_IN i.e structure BAPISDH1 field DLVSCHDUSE.

regards,

zafar

Read only

0 Likes
699

Alongwith the value passed to field in ORDER_HEADER_IN, you have to pass 'X' to corresponding field in ORDER_HEADER_INX also (in this case field DLVSCHDUSE).

Regards,Vinod