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: 

Job in Background

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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 REPLIES 11

Former Member
0 Kudos

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

0 Kudos

Hi Saurav,

Thanks for the reply,

I am not using session, my program runs with call transaction method.

- Sujatha

Former Member
0 Kudos

Hi,,, Sujata

With the call transaction method,,, select the RUN MODE as 'N'...

This for Background-processing.... why to go to menubar....

Thanks

Saurabh

0 Kudos

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

0 Kudos

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.

0 Kudos

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

0 Kudos

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

0 Kudos

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?

0 Kudos

Hello Sujatha,

I have already suggested ) No GUI* FMs ... For this u need to make use of application server files

Hard Luck !!!

BR,

Suhas

0 Kudos

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.

mahaboob_pathan
Contributor
0 Kudos

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