Wanted to run a background job in diff app server
i wanted to run a job in diff app server...
how can i do it.
sap guru
In the JOB_CLOSE funtion module,
you have a parameter for that.. check it..
Similar Messages
-
Regarding email attachement while running a background job
Dear Experts,
When i am running a background job for any ALV report (standard or custom report) <b>automatically</b> the output is going to an e-mail address as a HTML file attachment. I want to change it to EXCEL file attachment.
Please help me on this issue..
Kind Regards,
TomHi Prasanna,
Thank you for your reply. I am not using any code for sending the mail to the recipient E-mail address, system is taking care automatically.
Few settings were done in SCOT transaction from basis, but no where they mentioned file type is .HTM.
From my end i have done the following steps.
1. go to SM36, give a job name.
2. press on step push button , give the ABAP program name ( any ALV program, i mean standard report or Z report), give the variant and save.
3. Come back . press on Spool list recipient push button give the e-mail address, press copy button on the pop up window.
4. press on start condition button , press on Immediate option and save.
5. again press on Save button in the screen.
now here job will be scheduled immediately, go to SM37 check your job status, if it is completed, automatically system is sending an e-mail with the ".HTM" attachment file output to the recipient e-mail address.
i am not doing any coding part here.
my concern is system should send the e-mail with ".XLS" file output attachment.
please advise on this.
Regards,
Tom. -
Office intergration - run as background job
Hi,
I have a word template merged with data using "Desktop Office Integration".
Currently word template will be opened before data merging is done.
Is it possible to run as background job, which word template can merge with data in backend? If possible, how should i work on it?
Kindly advise.
Thanks,
GinnieHi,
Thanks for your prompt reply.
Is there any other methods which i can pull my data from table and merge to a word document?
Or is it possible to generate PDF in this case?
I need it to be a backend job.
Any suggestion? Kindly advise.
thanks,
ginnie -
ABAP program to run in Background job
Hi,
We have a custumized program (SO Creation) calling some functions (like: WS_QUERY, WS_UPLOAD, WS_DOWNLOAD, CREATE_TEXT and CALL TRANSACTION VA01) and can only run thru dialog process (foreground). Is it possible to convert it to something that can run thru background job?
Please help.
Thanks.Hi Deo ,
Unfortunately cl_gui_frontend_services will not work in background.
Please have a look at following information about cl_gui_frontend_services :
The class CL_GUI_FRONTEND_SERVICES contains static methods for the following areas:
File functions
Directory functions
Registry
Environment
Write to / read from clipboard
Upload / download files
Execute programs / open documents
Query functions, such as Windows directory, Windows version, and so on
Standard dialogs (open, save, directory selection)
To Use this, you should be bit familier with OO ABAP Concepts. So I will suggest you to go through with OO concepts of ABAP. It will be of great help to you.
Regards,
Nikhil -
Read Error logs after running the background jobs
Hi,
How to read the error logs after running the background jobs. In our scenarion we are running the COHV transaction to release the production orders in background. But we are not finding the error logs after background job. We would like to read the error logs and correct for further processing.
Kindly suggest.
Thanks & Regards,
N. LaxmanHi
you can check the back ground jobs defined by any user in SM37 and where you can see the spool and job logs as well.
plz check in your case and revert back
Regards
Anupam Sharma -
Disabling parallel run of background job
Hi All
I have an ECC6.0 system in load balancing mode with cluster environment. The problem is that we have a program which runs in background. The same is specified to run on App1 server. However, in case the no. of bkd processes are less in App1 servers, it schedules the remaining jobs on to App Server 2 which is not desired.
eg
I have a process which activates 8 bkgd jobs on App1
App1 only has 5 bkgd processes free
The remaining 3 jobs will get scheduled on App2, which is not desired.
Please let me know how can i restrict a background process to run only on a single server.
Regards
Lokesh.If you define/change a job you can give a background server, however, if you give a fixed instance name and that instance is down the job won´t run at all.
You may be able to use an external scheduling software for this, e. g. Redwood Cronacle - which is free for Netweaver customers.
Markus -
I want to run multiple instance of tomcat on same server-very Urgent
HI all,
I want to run multiple instance of tomcat on same server. I have created CATALINA_BASE directory and i put conf,logs,temp,webapps, and work directory. I have configured server.xml in different port. I have set the environment variables too. Though it didn't workout for me. Is there anything else i have to do for that. if so, Please assist me.
I did all according to the tomcat 4.1running.txt
Thanks in advance
Ram.hi,
http://www.linuxjournal.com/article/8561
http://forum.java.sun.com/thread.jspa?threadID=515368&messageID=2458945Hit Google..
http://www.google.com/search?q=how+to++run+multiple+instance+of+tomcat+on+same+server&client=netscape-pp&rls=com.netscape:en-US -
Can ABAP proxy to consume WSDL file be run as background job for every10min
Hi all,
I have a requirement where I need to build an interface which gatheru2019s the purchase order details and send to external third party software in their required format (as an XML file).
So I should be the first point of contact and should trigger the interface each time a purchase order is generated.
So I am thinking that I should develop a background job for every 10 minutes which will look for new purchase orders and gathers the information of the purchase orders and send them to external third party software in their required format.
I have gone through all the SAP forums and e-Learning but still I have confusion in regards to how is it possible technically? Can some one guide me with some information on the same.
I have a little bit of confusion and want to know few things.
1) Should I create a web service or should I consume a web service?
2) If I need to consume a web service, then can I write an ABAP proxy to be run in background fro evry 10 minutes? I mean can we run ABAP proxy as a batch job in the background?
3) Is there a difference between consuming an XML file and WSDL File?
Any Help will be highly appreciated.
Regards,
Jessica.There are two options (as I know) to generate XML file.
1. Use XML TRANSFORMATION to get the XML string based your TRANSFORMATION. You can input your data and get back the XML string. Download this string to a file
Test XML generation program is:
types: begin of ty_data,
num type i,
end of ty_data.
DATA: itab TYPE standard table of ty_Data,
la_data like line of itab,
xmlstr TYPE string.
DO 3 TIMES.
la_data-num = sy-index.
APPEND la_data TO itab.
ENDDO.
CALL TRANSFORMATION ztest_np1
SOURCE table = itab
RESULT XML xmlstr.
CALL FUNCTION 'DISPLAY_XML_STRING'
EXPORTING xml_string = xmlstr.
My ZTEST_NP1 transformation. To create a transformation, click on the transformation in the "CALL TRANSFORMATION ztest_np1" statement. Select Simple transformation type.
<?sap.transform simple?>
<tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
<tt:root name="table"/>
<tt:template>
<table>
<tt:loop ref=".table">
<item>
<tt:value ref="NUM"/>
</item>
</tt:loop>
</table>
</tt:template>
</tt:transform>
XML string is like:
<?xml version="1.0" encoding="utf-8" ?>
<table>
<item>1</item>
<item>2</item>
<item>3</item>
</table>
To use this option, you have to create a transformation and than use it to generate the XML string.
Check this SAP Help
http://help.sap.com/saphelp_nw04s/helpdata/en/e3/7d4719ca581441b6841f1054ff1326/frameset.htm
2. You can concatenate and create an XML string and download that string into a file.
Regards,
Naimesh Patel -
Function Module to run as Background Job
Hi All
Could anyone tell how can i run a RFC function module as Background job,
Right now, one external application calling this RFC FM, when this is getting executed, i can see a dialog process is occupied in SM50. Now o avoid this, i want when external application calls this RFC FM, it should get executed as a background job in SM50.
Regards
Munish GargHi Minish,
Normally, we can call an RFC in background task as below:
CALL FUNCTION func IN BACKGROUND TASK
[DESTINATION dest]
parameter_list
[AS SEPARATE UNIT].
But I am not sure whether your external application can call this RFC in background. But you can create an another RFC and inside call this RFC in background.
Then call the new RFC so that it will internally call the required RFC in background and Immediately after it will be closed.
Regards,
Selva K. -
How do I run scheduled background job manually
I have a cancelled background job that is givingh dumps. I have implemented corrections and now i want to run it manullay to check it. How do i do that. Please suggest
Hi Bill,
You mentioned that you've applied some correction..If you applied some notes that might have modified the standard code.
In that case Go to SE38, Give the program name, choose "variant" > Display. Now select the variant (with which you got the message its not valid). Go to "Variant" > "Adjust".
Then try running the report with the variant. This should solve the variant issue.
Thanks,
Debasis.
Edited by: Debasis Sahoo on Sep 24, 2008 11:55 PM -
Report program when run in background job getting cancelled immediately
Hi
When i run a program in foreground i am able to see the output. But when run in background not able to run the job successfully. The job is getting cancelled immediately.
I am using the below function module for output display. Should i need to pass any parameters in the below function module so that i can run the program in background successfully.
CALL METHOD DETAIL_GRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IS_LAYOUT = IS_LAYOUT
I_SAVE = 'A'
IS_VARIANT = GS_VARIANT
CHANGING
IT_FIELDCATALOG = IT_FIELDCATALOG
IT_OUTTAB = BLOCKED_STOCK_TAB_ALV[].
Please suggest.
Thanks and regards
Rajani YeluriHi Rajani.
ALV require the DRYPOR(screen) for display but incase you run in back ground which have to write to spool but in spool we can only write in format of LIST REPORT not inter-active report like ALV. That why
system cancelled your process immediately.
Hope it helps.
Sayan. -
Can we run in Background job which can pick a file from front end ?
Hi All,
I would like to run a report in Background job , for this i need to pick a file from front end services(Local drive or share folder)
Is there any alternate FM=>GUI_UPLOAD to upload data from front end services or any other solution for this?
I am getting error=> "No batch" and " Cannot perform frontend function in batch input mode"
Could you please help on this ?
Thanks for your help in advance.
Regards,
Prasad.Hello Prasad,
IF you keep your file on a shared folder on your front end, you can access it via OPEN DATASET if your application server has access to that path.
You can test it out by asking Basis to try and access your front end file from the app server itself. -
Force Dialog in ATP when run in Background Job
Hi gurus,
Can we set the ATP to always show even if in Background Job? I have a requirement to run a program in background job and set the confirmed qty to 0. In foreground the process is ok (the ATP screen shows up so my BDC is correct). But when I run the program in background, I have an error in my BDC because the screen for the ATP does not show up.
Best regards,
Andre
Edited by: Andre Reforma on Jun 5, 2009 9:28 AMchdir("..") Err#13 EACCES [file_dac_search]
I suspect that an underlying mount point has improper file access.
Unmount the ZFS filesystem (either /zones or /zones/test) and check the perms on the directory that it's mounted on.
Darren -
How to Prevent the Executing a Program but Allow to Run as Background Job?
Hi All,
I have an ABAB List Program. I need to restrict this program from executing. This has to always run as a Background Job. How do I check this condition in the program?
Thanks,
KishanCheck for the system variable SY-BATCH. If this field is 'X', then allow the execution of the program. If not then exit. Do this coding in the initialization event or start of selection.
INITIALIZATION.
IF sy-batch IS INITIAL.
STOP.
ENDIF.
Manoj -
Different result when running as background job
Hi,
We got a program which has a selection screen with a couple of select-options.
When we start this programm with a specified variant, it proceeds to a result screen. If we click back now (to the selection-screen) and run the programm with the exactly same settings again, one select-option is getting ignored and therefore we get incorrect results.
This happens only, if you go back from the result screen and excecute it again from the selection screen or if we start it as a background job.
If you exit the programm completely and restart it, the results are correct again.
It makes no sense to post any code snippets here, since the program is very complex. I just can't imagine any reason, why the select-option is sometimes getting ignored.
Does anyone have an idea?
Thanks in advance.
Regards,
Tobioh well it DOES explain it.
just think of following select:
Select *
from vbap
into ls_vbap
where vbeln not in lr_vbeln.
if lr_vbeln is not cleard you will run into problems maybe.
anyway, may it be that somewhere in coding you are manually modifying your select option?
It´s just an internal table of type range, so have a look there.
Maybe you are looking for
-
Total order value (net) per PO with ME2N (Purchase order List display)
Hello, with ME2N I can see the order value (net) of a PO per item line. Is it also possible to see the the total order value for all item lines in a PO? Thanks for coming back to me! Sofia
-
Internal variables of report painter shouldn't be selectable
Dear collegues, I have created two new internal variables in report writer in order to use them in planning layout of TA KP67: - previous year: marked as internal variable: calculated as: &1CGJAHE-1 (2008) and - future year: marked as internal variab
-
How to identify the version of InDesign application used to produce an InDesign document
Is there a way to identify the version of the InDesign application(CS/CS2/CS3) where the Document was originally created? Can we use InDesign CS3 server to open a CS2 document to do some relinking and save it again as a CS2 document without convertin
-
Tables - payable account report
Hi, I need your help to know which are the tables to find all documents involve in payable account to create a report in business object where it shows amounts (Credits and debits) by document currency ( Invoices, payments, etc.) I would appreciate
-
whereare my pics in icloud--ho can I view them