Application Development 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: 

Problem using Bapi_Salesorder_Change (VBAP-ABGRU)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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?

0 Kudos

Hello

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

Kind regards

0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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