2013 May 08 6:16 PM
I have been able to use function BAPI_SALESORDER_CHANGE to change the billing block of an item to a new value, but it won't allow me to clear that value.
I have these variables set:
CLEAR ORDER_ITEM_IN-BILL_BLOCK. "Update works fine if BILL_BLOCK contains a value
ORDER_ITEM_INX-BILL_BLOCK = 'X'.
ORDER_ITEM_INX-UPDATEFLAG = 'U'.
ORDER_ITEM_IN-ITM_NUMBER = <value from vbap-posnr>.
ORDER_ITEM_IN-MATERIAL = <value from vbap-matnr>.
ORDER_HEADER_INX-UPDATEFLAG = 'X'.
SALESDOCUMENT = <value from vbak-vbeln>.
Any ideas on how to remove the item billing block? Is this function unable to do it?
Thanks,
Mark
2013 May 08 8:24 PM
I just figured it out. ORDER_ITEM_INX-ITM_NUMBER also needs to have the value of VBAP-POSNR. I got it working and the billing block at the item level in the sales order was removed.
-Mark
2013 May 08 8:24 PM
I just figured it out. ORDER_ITEM_INX-ITM_NUMBER also needs to have the value of VBAP-POSNR. I got it working and the billing block at the item level in the sales order was removed.
-Mark
2013 May 08 9:37 PM
I have it working fine moving space to ORDER_ITEM_IN-BILL_BLOCK and don't forget to pass item number to 'X' structure ORDER_ITEM_INX-ITM_NUMBER = <value from vbap-posnr>.
Regards,
Felipe