2007 Nov 09 6:40 PM
Hi All,
Scenario : I have created a debit memo request without a billing block.
In a Separate Program we need to update the Billing block.
I am using BAPI_SALESDOCUMENT_CHANGE in the following
manner :
wa_order_header-bill_block = 'Z5'.
wa_order_header_inx-updateflag = 'U'.
wa_order_header_inx-bill_block = 'X'.
call function 'BAPI_SALESDOCUMENT_CHANGE'
exporting
salesdocument = wf_vbeln
order_header_in = wa_order_header
order_header_inx = wa_order_header_inx
tables
return = tb_return.
The update is failing with the return message as
<b>Field 'FAKSK' cannot be copied, because it is not ready for input.</b>
Any Input as to why its failing ?
2007 Nov 09 7:54 PM
You can not change the fields which are not ready for the input, even with the BAPI.
Internally, BAPI assigns bill_block to FAKSK. And VABK-FAKSK is not ready for input. So, you get this error.
You can use the user exit form USEREXIT_SAVE_DOCUMENT or USEREXIT_SAVE_DOCUMENT_PREPARE in MV45AFZZ to set your VBAK-FAKSK when you try to change the sales order from BAPI.
Regards,
Naimesh Patel
You can not change the fields which are not ready for the input, even with the BAPI.
Internally, BAPI assigns bill_block to FAKSK. And VABK-FAKSK is not ready for input. So, you get this error.
You can use the user exit form USEREXIT_SAVE_DOCUMENT or USEREXIT_SAVE_DOCUMENT_PREPARE in MV45AFZZ to set your VBAK-FAKSK when you try to change the sales order from BAPI.
Regards,
Naimesh Patel
2007 Nov 09 7:54 PM
You can not change the fields which are not ready for the input, even with the BAPI.
Internally, BAPI assigns bill_block to FAKSK. And VABK-FAKSK is not ready for input. So, you get this error.
You can use the user exit form USEREXIT_SAVE_DOCUMENT or USEREXIT_SAVE_DOCUMENT_PREPARE in MV45AFZZ to set your VBAK-FAKSK when you try to change the sales order from BAPI.
Regards,
Naimesh Patel
2007 Nov 09 8:05 PM
Hi,
Please try these FM perhaps they may help.
SD_WF_ORDER_SET_BILLING_BLOCK
SD_WF_ORDER_DEL_BILLING_BLOCK
Regards,
Ferry Lianto
2007 Nov 28 4:00 PM
Hi everybody...
I got the same problem but I do not think the mentioned FM´s will do the job.
At least I do not see how you should specify the desired billing block.
The only import value is the sales order number.
What I really would like to know is WHY this field is locked for the BAPI.
It´s only locked as long it is initial, as soon as there is a value you can change it by using BAPI_SALESDOCUMENT_CHANGE.
That really doesn´t make any sense to me....
2007 Nov 28 4:12 PM
OK, no wonder it doesn´t make any sense.... it´s a bug.
See message 512307 for details and workaround.
2007 Dec 07 2:25 AM
hi everybody,
Even iam getting the same problem, can any one explain me how to solve this issue. please do replay me the alternative method.
With Regards,
Ashwin
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |