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: 

lsmw urgent

Former Member
0 Kudos

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

8 REPLIES 8

Former Member
0 Kudos

Hi,

Please refer Thread <b>41110</b>(this is also the same problem which you are getting) <u><i><u>or</u></i></u> use the below link

Thanks

Sudheer

0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

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.

0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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