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

Problem using Bapi_Salesorder_Change (VBAP-ABGRU)

Former Member
0 Likes
3,343

Hello Guys,

I currently encounter a big issue using BAPI "Bapi_Salesorder_Change " in order to replace the value stored in field VBAP-ABGRU (from 01 to blank). The system does not make any change even if call function 'BAPI_TRANSACTION_COMMIT' is called.

Kind regards

Chris

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,977

Hi,

Please set wait = 'X'. in 'BAPI_TRANSACTION_COMMIT'

like the code shown below.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'.

Regards,

Neenu Jose

6 REPLIES 6
Read only

Former Member
0 Likes
1,977

Hi,

what is the error message u are getting in the return_tab?

Also, have you made the change flag as 'X' for the field?

Read only

0 Likes
1,977

Hello

I receive the following error E 00 347 "Field header_inx-updateflag is not an input field"

Kind regards

Read only

0 Likes
1,977

Hi,

specify the field Field header_inx-updateflag as blank '' and try..

ie.,

header_inx-updateflag = ''. "Instead of I or U

If possible pls put the code here

Regards..

Edited by: Renjith Michael on Oct 13, 2008 2:42 PM

Read only

Former Member
0 Likes
1,977

Hi Chris,

I think your id does not have authorization or the field is not editable for your id. Check it using VA02 transaction if it is not editable there then get authorizations and try.

Use function module SD_WF_ORDER_REJECT to clear as this does use VA02 transaction you will be able to remove the reason for rejection.

Regards

Hussain

Read only

Former Member
0 Likes
1,977

Hi,

Please set: header_inx-updateflag = 'U' and

header_inx-ord_reason = 'X'.

Try with this code.

PARAMETERS:

p_or_res TYPE augru.

DATA : st_order_header_in TYPE bapisdh1.

DATA : st_order_header_inx TYPE bapisdh1x.

CLEAR st_order_header_in.

st_order_header_in-ord_reason = p_or_res.

CLEAR st_order_header_inx.

st_order_header_inx-updateflag = 'U'.

st_order_header_inx-ord_reason = 'X'.

CALL FUNCTION 'BAPI_SALESORDER_CHANGE'

EXPORTING

salesdocument = vbeln

order_header_in = st_order_header_in

order_header_inx = st_order_header_inx.

Regards,

Neenu Jose.

Read only

Former Member
0 Likes
1,978

Hi,

Please set wait = 'X'. in 'BAPI_TRANSACTION_COMMIT'

like the code shown below.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'.

Regards,

Neenu Jose