Hi All,
I am changing a Sales Doc. using following Module.
I need to change the value of 'Billing Block' as 02 or space (at header level in VA02) depending on some condition.
Code is as follows.
GW_HEADER-COLLECT_NO = gv_vbeln
gw_header-BILL_BLOCK = gv_faksk " 02 or space
gw_item-UPDATEFLAG = 'U'
GW_ITEM-BILL_BLOCK = 'X'
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = gv_vbeln
ORDER_HEADER_IN = gw_header
order_header_inx = gw_item
SIMULATION = 'X'
tables
return = gt_return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'.
now in the return parameter gt_return is getting message 'ORDER_HEADER_IN' is processed successfuly.
But when i am checking in VA02, the screen field is not changed accordingly.
Please help me.
Thanks in Advance,
Subhani.