11-19-2008 11:03 AM
Hi Experts,
I am facing an issue, while I am trying to run a program in background.
Let me explain u the situation.
I wrote a BDC & it should run in background. In selection screen I have given some input parameters & file name which is going to upload & now I have selected to run in background from the menu option. When I go & see in SM37, job has got cancelled due to an error , the error is 'XXXXX file cant be processed'.
I have used the FM - TEXT_CONVERT_XLS_TO_SAP to upload the data on excel.
Pls advice me how to ovecome this issue.
Sujatha
11-19-2008 11:21 AM
Hi,,, Sujata
With the call transaction method,,, select the RUN MODE as 'N'...
This for Background-processing.... why to go to menubar....
Thanks
Saurabh
11-19-2008 11:13 AM
In case of BDC you don't have to select background from the menu options.....
you have to create the session and then run that session in background from T-CODE "SM35".
Use standard Include.
INCLUDE BDCRECX1.
This include will generate the selection screen automaticallly.......
select the radiobutton Session... and give the Session name...... and then execute and then go to T-CODE SM35, and select your session and execute in background.......
Thanks
Saurabh
11-19-2008 11:16 AM
Hi Saurav,
Thanks for the reply,
I am not using session, my program runs with call transaction method.
- Sujatha
11-19-2008 11:21 AM
Hi,,, Sujata
With the call transaction method,,, select the RUN MODE as 'N'...
This for Background-processing.... why to go to menubar....
Thanks
Saurabh
11-19-2008 11:27 AM
Hi Saurav,
you have not understood my issue fully, actully i have done whatever you said, but the thing is, i am unable to execute the program in background after giving all the input parameters in the selection screen.
Hope u got my point now
Sujatha
Edited by: Sujatha Reddy on Nov 19, 2008 12:28 PM
11-19-2008 11:36 AM
Are you pick the file from presenatation layer .If yes then did you check whether the FM support's Front-end function in a batch mode . It can be due to that also . Pls check.
11-19-2008 11:38 AM
Hi Karthik,
this is what exactly happening,
you understood my point, but how I can I check whether it supports front-end function in batch mode?
Sujatha
11-19-2008 11:48 AM
Hello Sujatha,
Are you using GUI_UPLOAD to acheive this functionality. You cannot use GUI_UPLOAD & GUI_DOWNLOAD in background mode.
For this you need to access files from the application server.
Hope this helps.
BR,
Suhas
11-19-2008 11:51 AM
Hi Suhas,
I am using the FM - TEXT_CONVERT_XLS_TO_SAP.
I am aware that GUI_* FMs cant be used inbackgound, is there any other alternative?
11-19-2008 11:56 AM
Hello Sujatha,
I have already suggested ) No GUI* FMs ... For this u need to make use of application server files
Hard Luck !!!
BR,
Suhas
11-19-2008 11:57 AM
TEXT_CONVERT_XLS_TO_SAP has only one exception CONVERSION_FAILED , this FM will not help to upload the file when schedule in background . Use open dataset , pick the file from application server when your running this in background.
11-19-2008 11:43 AM
hi,
this may be with security issues.
ask ur security guy to check the role.
may be u r user id has no access for that.
check the log in sm50