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: 

CV02n - batch input fails

Former Member
0 Kudos

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.

3 REPLIES 3

former_member214131
Active Contributor
0 Kudos

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

0 Kudos

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?

Former Member
0 Kudos

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