01-24-2008 10:31 PM
Hi,
I am unable to run t-code CV02n in background for batch input purposes.
Please let me know if any OSS is available to correct the issue.
It gives me error as follows:
Control Framework: Fatal error - GUI cannot be reached
Message no. DC 006
Diagnosis
When the Control Framework is started, the system checks whether the installed GUI supports frontend components such as controls. This check failed; the causes may be as follows:
1.) The program is running in the background
2.) A transaction was called using CALL TRANSACTION ... STARTING IN BACKGROUND TASK.
Procedure
Programs that run in the background cannot address controls on the frontend. In this case, the application must either include a fallback that does not depend on the user interface, or the program or transaction must detect for itself that is running in the background and terminate itself.
01-25-2008 4:01 AM
Hi,
It is not suggested to call EnjoySAP transactions in BDC / LSMW Recordings. You can either use CV01/CV02 or use following LSMW object for creation:
Object 0190 Doc. purch. info rec
Method 0000
Program name RCVBI010
Program type B Batch input
Hope this helps.
Regds, Murugesh
01-29-2008 11:24 AM
thank for the input.
Basically I am looking to change the file path of an existing document using CV02n.
I am trying to use BAPI - BAPI_DOCUMENT_CHANGE2',
but it is appending a new file for the change document.
can someone help with the sample code?
02-17-2014 5:21 PM
Hello Krishnan,
the answer will be to late for you but I had the same issue.
In our case ALV caused the problem during XD02 on a customer screen.
We had 2 solutions:
1. we don't run BTCI in background, then the ALV elementts can be processed
or
2. if the program is in background we don't create the ALV-code in the dynpro
maybe the information is usefull.
best regards
Bernhard