Error when creating sales order using idoc
Is there anyone who can help me the following problem. Thank you very much!!
When I use idoc to create order, it will create order using bdc VA01.
During call transaction VA01, i got the following error message
'Item &'s configuration can no longer be changed'. It is from message class V2, 204.
When i look at the standard code for VA01,
This message is triggered in program FV45SFCO_CONFIGURATION_PREPARE, line 132.
if not ch_anzeigen is initial and
da_subrc = 4.
message e204(v2) with vbap-posnr.
The variable ch_anzeigen was set to X. It was set in FV45SFCO_CONFIGURATION_MODE_DE, line 35. because vbap-abgru is 'YX', It is not initial.
da_subrc = 4. was set in program FV45SFCO_CONFIGURATION_CHECKI1.
In this program LV_SUBRC = 1(it is executed using idoc). MAEPV-STDPD is not initial, SVBAP-TABIX is initial(because it is creation process, if it is change order process, it will not be initial), therefore CH_SUBRC = 4.