03-29-2006 8:38 PM
hi
while i am processing the session of lsmw in foreground all the records r processing without any problem if i process in background i am getting the errors even a single record is getting processed
i am unable to predict the error can anyone help me how to solve this, is there any extra setting v have to make to run the session in the background
thanks in advanse
03-29-2006 8:49 PM
03-29-2006 10:23 PM
hi sudheer
thanks alot for ur help
here one main problem is there
i tried to do this with only recording even though i entered a single record and if i process that record in the background it is giving the same error like with the lsmw background so it is not the problem with the lsmw it is the problem with the transaction itself
here i am giving the transaction which i am using PSOBWORK
this is the starndard transaction.
can u let me know why it is happening like this
and what is the solution for this
03-29-2006 10:30 PM
HI Naveen,
i do not have Auth for the T.code PSOBWORK , it is saying Does not exists,can you give me the error which you are getting, then i will try to give the solution
Thanks
Sudheer
03-29-2006 10:35 PM
hi sudheer
Control Framework: Fatal error - GUI cannot be reached
Runtime error RAISE_EXCEPTION has occurred
this is the error message which is coming.
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.
this is for some more help
thanks alot sudheer ur help appreciated
naveen
03-29-2006 10:36 PM
hi sudheer
some more info here too
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.
03-29-2006 10:48 PM
Hi Naveen Kumar
It depends on which version of LSMW you are using. In any case, first create the same recording using SHDB using Background Mode (I know background mode recording in not available in older versions of SHDB). Now examine the generated BDC code. You will understand the difference in forground/background modes. Make changes accordingly in your LSMW recording to support background Screens. Then I believe your LSMW will work in background also.
I faced a similar situation for some other Object and this approach of mine solved the issue. Please let me know if the problem still persists.
Thanks
Sarat Chandra
03-30-2006 1:47 PM
Hi sarat
i tried to do only recording of the transaction code n i run it in background even though it is generating the same error as in the case of lsmw even with single record also .
i am using the version ERP2005 with the module pscd so please if u can guide me that would be very much helpful
ur help is appreciated
03-29-2006 11:02 PM
Hi naveen,
According to your error, it needs a screen(frontend) for processing which is missing in your Background process,
Just debug(put a break point or do the full debug) the code in the Background process, then find out
Try the Sarat Chandra suggesion, that may help you
Thanks
Sudheer