How to execute report in Background from Dialog process?
How, or what is the best way, to lauch an executable program (report) into the background from a dialog program (dynpro)?
<b>Example:</b> The SUBMIT...AND RETURN still executes the called program before it returns control to the calling program. I just want the report to be kicked off and the dialog to continue as normal. I do not want the report execution time to affect the dialog process.
Thanks in advance for your time.
Hi Nablan, I'm also trying to do parallel processing and created a function module that kicks of another report program.
However, the process doesn't seem to work. The Main program runs from start to finish but the called program in the function module doesn't seem to run. When I used the option STARTING NEW TASK task name the code ran but in the foreground. I don't want to use this option as it runs in the foreground and SAP limits one to six sessions. Is there something I'm missing in the attributes of the function module I created. Currently the attributes are: Processing type Remote enable module and it's set to start immediately. I had used Normal function module initially but this did not work with the STARTING NEW TASK task name option.
Below are the codes segements I used.
In my main program I have the following code segement
CALL FUNCTION 'Z_CA_PROG_CALL'
IN BACKGROUND TASK
EXPORTING
zprogram = 'ZCA_TEST1'
EXCEPTIONS
program_call_failed = 1
invalid = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
COMMIT WORK.
In the function module I have the following code.
FUNCTION z_ca_prog_call.
""Local interface:
*" IMPORTING
*" VALUE(ZPROGRAM) LIKE ZCA_INTERFPROG-ZPROGRAM
*" EXCEPTIONS
*" PROGRAM_CALL_FAILED
*" INVALID
SUBMIT (zprogram).
IF sy-subrc <> 0.
CASE sy-subrc.
WHEN 1.
RAISE program_call_failed.
WHEN OTHERS.
RAISE invalid.
ENDCASE.
ENDIF.
ENDFUNCTION.
Similar Messages
-
Restrict 'Executing report in background' from selection screen
I want user to not to select option for executing report in background from Selection Screen of the program.
i.e. 'Execute Program in Background' option in 1st menu bar tab should either be disabled OR if user clicks on it then he should get error message on selection screen itself.
Thanks,
FalguniHi Falguni,
Write the code based on function code SJOB in the event AT SELECTION-SCREEN. Write the following code :
AT SELECTION-SCREEN
CASE SY-UCOMM.
WHEN 'SJOB'.
MESSAGE E000 WITH 'You cannot schedule background job'.
ENDCASE.
Thanks & Regards,
Faheem. -
Need to schedule a report in background from an user exit
Hi Experts,
I have a requirement to execute a report in background from an <b>user exit</b>. Please advise.
Thanks in advance,
Vivenchandar RUse the <b>submit</b> statement.
For example
SUBMIT zipr_trans_details "VIA SELECTION-SCREEN
WITH so_trdt IN lr_tr_period
WITH so_empno IN lr_emp
AND RETURN.
Where <b>zipr_trans_details</b> is the report name.
Message was edited by:
Naren Someneni -
hi
we have one requirement for execute report in background
we want to run the report ME5A for a large date range and at plant level.
Due to this, transaction data selected is large and so reportis taking very long time when executed in foreground.
so requirement is
execute report in background (i know possible in SAP)
download the report output on desktop automatically
can you pl suggest how to do this without customisation
regards
saraHi Sara,
Go to ME5A then enter the required field then go to Programme and then select the option execute in background -
Kindly send anybody a ppt on how to execute reports through Browser and Ana
Hi all,
I need a PPT on how to execute reports through Browser and Analyzer in version 3.5 or older to 3.5 immediatley from end user point of view. I donot have time to prepare it and has to be sumbmitted before end of the day.
Kindly help me out by sending it [email protected] .
Thanks in Advance.
Anil Kumar Sharma .PThank you Mr. Voodi,
I will wait for your reply.
Meanwhile could anybody else ,send me PPT on it.
Thanks in Advance,
Anil Kumar
Message was edited by:
Anil Kumar Sharma -
How do I remove the background from a movie / sound problems
Apologies, not really sure what I’m doing…
How do I remove the background from a movie I made?
I imported a QT movie at 368/272 pixels, but for whatever
reason the HTML jumps up to 550/400.
The movie is still 368/272 but there is a background border
making it 550/400. Tried all sorts of settings in Publish but
can’t get rid of it. Can I keep the movie (and controller)
and not the background?
I can get round it by changing the background colour, but
surely there must be another way.
Also: My QT file was fine but the .flv has a stuttering
sound, any idea what could cause that?
Thanks, and Thanks!If you want to remove a background and add a new one Photoshop Element for Mac makes it rather easy to do:
OT -
How to execute unix command line from cocoa?
how to execute unix command line from cocoa?
for example, if I want to call "ping" from cocoa, how should I do it? and how can I obtain the return value?
thank you.
Power G5 Quad Mac OS X (10.4.3)The following article may also help:
http://cocoadevcentral.com/articles/000025.php
Mihalis.
Dual G5 @ 2GHz Mac OS X (10.4.6) -
How to execute a .sql file from a batch file
Hi all
I've to take backup of a database weekly twice on every wednesday & Friday @ 5pm IST. I've written a hot backup script, which works every well.
now i want to automate the script. ie i want this script to run on wednesday & friday @ 5pm without any human interfearance ie with out actually any1 executing this script.
i created a batch file prod.bak with the following lines
@echo off
set oracle_sid=testdb
set oracle_home=d:\oracle\ora92
sqlplus /nolog
connect sys as sysdba/oracletest@testdb
this batch file when eexecuted connects me to sql prompt.
Now i want to execute my backup script bkp.sql automatically when it is connected to sql prompt.
(i tried with these lines in the above batch file...
call bkp.sql---it just opens the bkp.sql file in notepad & displays the script
start bkp.sql---same as call
connect / as sysdba/pwd@[email protected] --- does not work simply remains a the sql prompt.
At 17:00 /Every:w,f "d:\bkp.sql"---does not work simply remains at the sql promt.)
Can any1 let me know what should i write in the batch file that will execute the bkp.sql file automatically after it gets connected to sql prompt. M using oracle 9i.
I'll manage he time through windows utility of scheduling task.. Let me know how to execute the .sql file from a batch file.
Thanks
TriptiTry
sqlplus "sys/oracletest as sysdba" @bpk.sql
Working locally, and having set the ORACLE_SID, you don't need to specify the SqlNet alias (@testdb).
Remember to put an exit at the end of the bpk.sql script. -
How to execute SQOOP.cmd file from SSIS execute process task?
How to execute SQOOP.cmd file from SSIS execute process task?
What is argument need to be prefixed in the arguments property
Executable: C:\Hadoop\sqoop-1.4.2\bin\sqoop.cmd
Arguments: /C "sqoop import -connect "jdbc:sqlserver://mysystem:1433;database=test;username=myuser;password=mypwd;" -table emp -target-dir /user/emptable -m 1"
Thanks
DurgaHi Durga,
SQOOP.cmd must be no different than any other .cmd/.bat I assume, your question is more about setting the parameters up I guessed.
So unless the arguments change dynamically you can call SQOOP.cmd from yet another .cmd that has its parameters passed to it and the former you simply set to run without the arguments in Execute Process Task.
Otherwise, in general to set a bat/cmd file to run in SSIS one needs to do this:
PS: It is a good idea to populate the working directory with the path to the .cmd
Arthur My Blog -
How to execute 2 different application from same Application Server
Hi,
I would like to know that how to execute two different applications from the same Application Server with different databases?
We are using
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
Oracle Application Server 10g 10.1.2.0.2
Regards,
Hassanwhat type of applications you want to run from the same application server, Hassan?
What other DB are you using to launch it beside the one you quoted? Is it the MRep DB of infra? -
How to execute Dos Command 'Pause' from Java ?
How to execute Dos Command 'Pause' from Java ?
I have read the article in javaworld for Runtime.exec() anomalies.
Can someone please give an insight on this?Thanks Buddy!
That was very useful. Even though its a simple
solution, I never thought about that.Bullshit! Reread reply #7 of http://forum.java.sun.com/thread.jspa?threadID=780193 -
How to execute unix shell script from Java ...
Hi,
Anyone know how to execute unix shell script from Java?
Suppose I have several shell scripts written in perl or tcl or bash.
I just want to catch the output of that script.
Is there any ready to use module/object for this?
Please let me know, this is quite urgent for my study assigment.
Thanks in advance,
Regards,
meLook up Runtime.exec()
-
How to execute an ODI package from Command Line
Please can anyone help me to know how to execute an ODI package from the command line without creating a scenario from the package.
Appreciate your help.
Thanks
BYou can't. Create a scenario and then execute that from the command line.
-
How to execute a jsp instruction from a java class?
How to execute a jsp instruction from a java class?
Any help please.
Thank'sI'll detail my problem:
Supposing that I have a jsp file called: start.jsp
In the start.jsp I instanciated an object called global from the class Global ( for example ).
Then, I called a custom taglib:
<ix:mytag/>
In the suitable tld file: the mytag is defined:
<tag>
<tag class>Tag1<.....
The java file Tag1 has method:
doStartTag(){
// here is the problem
global.doSomeFunctions();
Okay, the problem is that the object gobal is not defined in the class Tag1. what to do?
I think that I have to pass the object global as a parameter to the class Tag1. How to do that?
Actually, the problem was to insert the follwoing in the doStartTag method:
doStartTag(){
pageContext.getOut().print("<%= hello world %>");
The output is <%= hello world %> not hello world.
Okay, the new problem is how to pass an object as a parameter to a class called from a tld file.
Any help please.
Thank's too much -
How do you remove the background from an image
how do you remove the background from an image thathas a white background?
First, change the background layer to a normal layer if needed, by dragging the padlock to the trash can.
Then use the quick selection tool or magic wand tool to select your background.
Now you can either delete the background, or click the icon at the bottom of the layers panel that looks like a circle inside a square. This icon will convert the selection to a mask.
The advantage of the mask is, it is non-destructible. In that you can change your mind at any time. Whereas deleting pixels is permanent once you close the file and there is no duplicate files. (A way around this is to make a duplicate layer and hide it. But that does make the file larger.)
Maybe you are looking for
-
today i popped the phone in the dock and it says an iphone has been previously synced with this computer . after spending a long time adding nicknames and birthdays, itunes wants me to restore frm back up , meaning i will lose the updates i just did.
-
Trouble with a composite key & unique violation
Hi all as mentioned yesterday I'm a novice so apologies in advance for any lack of clarity in my question: I'm doing the standard student estate agent database and I have come across an issue with a composite key. the table in question follows: CREAT
-
Solaris 10 installation does not start
Hi I am new to solaris . I downloaded the four zipped ISO files of solaris 10 from the website. I burned the images on the cd. When i insert the disk 1 and restart the computer it does not detect the cd as bootable and does not start the installation
-
Saved in PDF change to OCR?
Having saved a paper in PDF is it possible to change the format to OCR or does the paper have to be scanned again in OCR?
-
Hi, I am new to flex 3. I want to view xml file in a browser view through flex. I tried through IFrame, but i am not able to get it. Kindly assist me in this request.