Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Control Framework: Fatal error - GUI cannot be reached

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

former_member555112
Active Contributor
0 Kudos

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

6 REPLIES 6

martin_voros
Active Contributor
0 Kudos

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

former_member555112
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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?

0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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