10-13-2008 10:00 AM
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
10-13-2008 12:09 PM
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
10-13-2008 10:03 AM
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?
10-13-2008 10:09 AM
Hello
I receive the following error E 00 347 "Field header_inx-updateflag is not an input field"
Kind regards
10-13-2008 10:12 AM
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
10-13-2008 10:30 AM
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
10-13-2008 12:00 PM
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.
10-13-2008 12:09 PM
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