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

Former Member
0 Likes
928

Hi all,

for one of the requirement i am testing bapi_salesorder_change i need to fill the storage location value which is coming from some other program. after executing bapi i am getting a message as ITEM_IN are processed sucessfuly and sales order is saved after that i am excuting bapi_trasaction_commit but i am not getting the value of the storage location updated in vbap .

can anyone suggest me the solution.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
868

can anyone help me in the issue

Hi all,

for one of the requirement i am testing bapi_salesorder_change i need to fill the storage location value which is coming from some other program. after executing bapi i am getting a message as ITEM_IN are processed sucessfuly and sales order is saved after that i am excuting bapi_trasaction_commit but i am not getting the value of the storage location updated in vbap .

can anyone suggest me the solution.

7 REPLIES 7
Read only

Former Member
0 Likes
869

can anyone help me in the issue

Read only

0 Likes
868

Hi,

Maybe a stupid question, but are you sure you are setting the ITEM_INX table right? Update flag as "U" for updating and the "X" flag for STORE_LOC?

I just tried it out, and seems to work fine...

T00th

Read only

0 Likes
868

yeah i did set the flag as U and storage location as X but still i am not able to see the updated value in vbap

Read only

0 Likes
868

But you can see it updated in the actual sales order? When you start VA02/03 I mean.

Read only

0 Likes
868

sorry i am npt able to see the updated values in va02 or va03

Read only

0 Likes
868

Hi,

then I guess your function call is wrong...apparently the values aren't being set in the tables right.

Maybe you could set a breakpoint at the line where you call your BAPI with the parameters, and check if the tables are filled correctly...

T00th

Read only

Former Member
0 Likes
868

just check LGORT is retrived or not.

gt_item_in TYPE TABLE OF bapisditm,

in bapi_salesordr_change

pass gt_item_in to order_item_in under TABLES

hope it works