06-29-2009 8:07 AM
Hello All,
Iam using BDC for creating a ZCR order throught VA01 - Credit Memo request. When executed in the foreground, it works fine.But when ran in background gives an error message - Control Framework: Fatal error - GUI cannot be reached and gives a short Dump for 'RAISE_EXCEPTION'.
Please suggest.
06-29-2009 10:32 AM
Hi,
Probably there is some OOPs control on any of the screens for which you are updating the data.
This will not work in background.
Regards,
Ankur Parab
06-29-2009 10:26 AM
Hi,
don't you try to update text of sales order? If yes then it's not going to work. SAP uses ActiveX object to provide text editor. IThe problem is that you need to have GUI to use it. I would try to use BAPI to update sales order and SAVE_TEXT to update long texts.
Cheers
06-29-2009 10:32 AM
Hi,
Probably there is some OOPs control on any of the screens for which you are updating the data.
This will not work in background.
Regards,
Ankur Parab
06-29-2009 10:52 AM
Hi,
Thank you both for the responses.
@Martin - We are using BDC to update the Texts like the Internal order notes for ZCR order. So is that the reason why this error is coming up?
If yes....how can I handle the updation of the texts? First create the order using BDC and then separately go and update the texts for the same?
06-29-2009 11:02 AM
Yes, that's your problem. I would prefer to use BAPI BAPI_SALESORDER_CREATEFROMDAT2 to create a new sales order and then update long text using function module SAVE_TEXT. Usually you get only problems with BDC. The BAPI will return sales order number so you will just use it as a key to SAVE_TEXT.
Cheers
06-29-2009 12:34 PM
Martin - Can you explain me in a bit detail, why the BDC is working fine when the program is run in Foreground but the BDC is creating issue when the program is run in Background? Just curious to know.
Normally, BDC should run the same way whether it is in background of Foreground.
Thanks,
Ramya
10-06-2009 12:51 PM
Normally, BDC should run the same way whether it is in background of Foreground.
No, BDC does not run the same way in background and foreground
To understand BDC in background : different behavior or termination read those OSS notes :
- [Note 33319 - Batch input: Backgr. runs diff. than in the dialog|https://service.sap.com/sap/support/notes/33319]
- [Note 311440 - Batch input and controls|https://service.sap.com/sap/support/notes/311440]
Also this note of interest :
- [Note 554139 - FAQ 2: Batch input|https://service.sap.com/sap/support/notes/554139]
Regards,
Raymond