Running a report for several inputs
I have to run a report and email the output for several inputs say around 60. what would be the best way of doing it.
Hi,
Write two programs...
In the first program ..create an internal table with input data and loop that internal table and within the loop call the second program which sends a mail with the input data as selection screen. It may work...
Regards,
Jayaram...
Similar Messages
-
How can I run the report for different input values at the same time?
Reports version: Report Builder 6.0.8.13.1
Oracle version: Oracle8i Enterprise Edition Release 8.1.7.0.0
I want to run the same report for different input parameter values and spool each o/p to different file and ftp to a server. For this, as a first step, I am spooling different input values in to a file, reading those values through a loop and calling the report for that input values. Each report run/execution is taking 15 minutes. Total report execution is taking approximately 4 hours (assuming 16 different input values) to complete. So I have to wait 4 hours to see ALL outputs.
I would like to run the report parallel for ALL the input values and I should be able to see the ALL outputs with in 15 or 16 minutes.
In my shell script, I added & symbol at the end of the report call to start/run the job in the background. Due to this the control passed to the next step after the report call. At this place I have an ftp command to send the output file to a different server and it is giving error some thing like o/p file is not available/created yet". This is due to the fact that report writer is NOT yet completely started/initiated or it is NOT completed the spooling.
How can I run the report at the same time for all the input values and save the time?
Thanks in advance.
Kishore.Increase the number of server engines running right now it seems there is only one engine running ,increase it to 4 or 6
and then atleast 4 or 6 reports will run simultaneously.
For FTPing the output add to your sript to check whether it is locked and if not then only try to ftp .
Also for more better functionality read the document (chapter 15 ) for 10g reports for its new fuinctionality.
http://download.oracle.com/docs/cd/B14099_17/bi.1012/b14048/toc.htm
Thanks
Subodh -
Need to run the report for All Values when Null is passed in parameter
Hi All,
In my BIP report, I am using a parameter :asset with Type as Text, which means user will type the values for the parameter in the text box.
Now, this parameter can take multiple comma separated values. I have a requirement to run the report for All Values when user doesn't enter any value in the parameter text box and if user enters any value(s) then the report will run for those values . The way, I tried to handle that in the query using couple of ways was :
IMP : My Database is SQL Server
where
(table.asset = isnull((:asset), table.asset) or table.asset in (:asset))
Now this works fine when I give a single asset number but when I give multiple values separated by comma like 123, 345 in the text box, then the statement fails saying 'encountered ,'
I also tried simply
table.asset in isnull((:asset),table.asset) -- but this doesn't work as it doesn't allow me to use in operater while using isnull and if i will use = operater then it won't work in case of multiple values
Any suggestions on how can I handle this? Any help would be highly appreciated.
Thanks,
Ronnythanks for replying, but i tried this option too, it did not work for me, neither isnull nor coalesce. I mean, the solution work for single value but when i pass multiple values then separated by a comma then it doesn't work and shows me an error like "Incorrect Syntax ','". I am using SQL server as DB and bip is 10.1.3.4.1
also please share the SR number, so i can also check the same.
can there be any other work around to this?
thanks,
ronny -
Concurrent Manager encountered an error while running Oracle*Report for you
hi
our team is running a report.but encountered
+-----------------------------
| Starting concurrent program execution...
+-----------------------------
Arguments
P_DELV_ID='8022'
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
American_America.US7ASCII
Enter Password:
REP-0069: Internal error
REP-57054: In-process job terminated:Terminated with error:
REP-1401: '': Fatal PL/SQL error occurred.
Report Builder: Release 10.1.2.0.2 - Production on Mon Jun 21 11:26:16 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
+---------------------------------------------------------------------------+
Start of log messages from FND_FILE
+---------------------------------------------------------------------------+
+---------------------------------------------------------------------------+
End of log messages from FND_FILE
+---------------------------------------------------------------------------+
Program exited with status 1
Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 451508.
Review your concurrent request log and/or report output file for more detailed information.
+---------------------------------------------------------------------------+
Executing request completion options...
+------------- 1) PUBLISH -------------+
Beginning post-processing of request 451508 on node DEMO at 21-JUN-2010 11:26:17.
Post-processing of request 451508 failed at 21-JUN-2010 11:26:17 with the error message:
One or more post-processing actions failed. Consult the OPP service log for details.
+--------------------------------------+
Finished executing request completion options.
+---------------------------------------------------------------------------+
Concurrent request completed
Current system time is 21-JUN-2010 11:26:17
+---------------------------------------------------------------------------+how to solve it?when i am searching in this error in cmctl log there is nothing for it.
i have lnched a SR on this they told to run it by appsrwrun.sh.how to run this report by appsrwrun.sh??
rgrds
Edited by: new2appsdba on Jun 21, 2010 4:19 AMHi,
how do you suspect its a OPP related issue??what is OPP?
Enter value for request_id: 451508
old 5: AND fcpp.concurrent_request_id = &&request_id
new 5: AND fcpp.concurrent_request_id = 451508
REQ_ID NODE_NAME
LOGFILE_NAME
451508 DEMO
/t01/demoap/inst/apps/DEMO_demo/logs/appl/conc/log/FNDOPP94508.txt
[demoap@demo ~]$ vi /t01/demoap/inst/apps/DEMO_demo/logs/appl/conc/log/FNDOPP94508.txt
[6/20/10 1:37:36 PM] [main] Starting GSF service with concurrent process id = 94508.
[6/20/10 1:37:36 PM] [main] Initialization Parameters: oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads=5
[6/20/10 1:37:37 PM] [Thread-16] Service thread starting up.
[6/20/10 1:37:37 PM] [Thread-15] Service thread starting up.
[6/21/10 11:12:00 AM] [OPPServiceThread0] Post-processing request 451495.
[6/21/10 11:12:00 AM] [94508:RT451495] Executing post-processing actions for request 451495.
[6/21/10 11:12:00 AM] [94508:RT451495] Starting XML Publisher post-processing action.
[6/21/10 11:12:00 AM] [94508:RT451495]
Template code: WILPACKSLIP
Template app: ONT
Language: en
Territory: 00
Output type: PDF
[6/21/10 11:12:00 AM] [UNEXPECTED] [94508:RT451495] java.io.FileNotFoundException: /t01/demoap/inst/apps/DEMO_demo/logs/appl/conc/out/o451495.out (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:241)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:172)
[6/21/10 11:12:00 AM] [94508:RT451495] Completed post-processing actions for request 451495.
[6/21/10 11:22:27 AM] [OPPServiceThread0] Post-processing request 451505.
[6/21/10 11:22:27 AM] [94508:RT451505] Executing post-processing actions for request 451505.
[6/21/10 11:22:27 AM] [94508:RT451505] Starting XML Publisher post-processing action.
[6/21/10 11:22:27 AM] [94508:RT451505]
Template code: WILPACKSLIP
Template app: ONT
Language: en
Territory: 00
Output type: PDF
[6/21/10 11:22:27 AM] [UNEXPECTED] [94508:RT451505] java.io.FileNotFoundException: /t01/demoap/inst/apps/DEMO_demo/logs/appl/conc/out/o451505.out (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:241)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:172)
[6/21/10 11:22:27 AM] [94508:RT451505] Completed post-processing actions for request 451505.
[6/21/10 11:26:17 AM] [OPPServiceThread1] Post-processing request 451508.
[6/21/10 11:26:17 AM] [94508:RT451508] Executing post-processing actions for request 451508.
[6/21/10 11:26:17 AM] [94508:RT451508] Starting XML Publisher post-processing action.
[6/21/10 11:26:17 AM] [94508:RT451508]
Template code: WILPACKSLIP
Template app: ONT
Language: en
Territory: 00
Output type: PDF
[6/21/10 11:26:17 AM] [UNEXPECTED] [94508:RT451508] java.io.FileNotFoundException: /t01/demoap/inst/apps/DEMO_demo/logs/appl/conc/out/o451508.out (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:241)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:172)
[6/21/10 12:00:59 PM] [94508:RT451533] Completed post-processing actions for request 451533.
[6/21/10 12:17:51 PM] [OPPServiceThread0] Post-processing request 451573.
[6/21/10 12:17:51 PM] [94508:RT451573] Executing post-processing actions for request 451573.
[6/21/10 12:17:51 PM] [94508:RT451573] Starting XML Publisher post-processing action.
[6/21/10 12:17:51 PM] [94508:RT451573]
Template code: XXWEBB_EXP_INV
Template app: ONT
Language: en
Territory: 00
Output type: PDF
[6/21/10 12:17:51 PM] [UNEXPECTED] [94508:RT451573] java.io.FileNotFoundException: /t01/demoap/inst/apps/DEMO_demo/logs/appl/conc/out/o451573.out (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:241)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:172)
[6/21/10 12:17:51 PM] [94508:RT451573] Completed post-processing actions for request 451573.
[6/21/10 12:19:19 PM] [OPPServiceThread0] Post-processing request 451577.
[6/21/10 12:19:19 PM] [94508:RT451577] Executing post-processing actions for request 451577.
[6/21/10 12:19:19 PM] [94508:RT451577] Starting XML Publisher post-processing action.
[6/21/10 12:19:19 PM] [94508:RT451577]
Template code: WILEXINVREP
Template app: ONT
Language: en
Territory: 00
Output type: PDF
[062110_121919525][][EXCEPTION] [DEBUG] ------- Preferences defined PreferenceStore -------
[062110_121919526][][EXCEPTION] [DEBUG] ------- Environment variables stored in EnvironmentStore -------
[062110_121919526][][EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.LOW]:[-1]
[062110_121919526][][EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.LOW]:[-1]
[062110_121919526][][EXCEPTION] [DEBUG] [SECURITY_GROUP_ID]:[0]
[062110_121919526][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_INTERVAL]:[300]
[062110_121919526][][EXCEPTION] [DEBUG] [NLS_CHARACTERSET]:[US7ASCII]
[062110_121919526][][EXCEPTION] [DEBUG] [RESP_APPL_ID]:[-1]
[062110_121919526][][EXCEPTION] [DEBUG] [NLS_LANGUAGE]:[AMERICAN]
[062110_121919526][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MIN]:[1]
[062110_121919526][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MAX]:[2]
[062110_121919526][][EXCEPTION] [DEBUG] [NLS_NUMERIC_CHARACTERS]:[.,]
[062110_121919526][][EXCEPTION] [DEBUG] [APPS_JDBC_URL]:[jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=demo.webbindia.com)(PORT=1527)))(CONNECT_DATA=(SID=DEMO)))]
[062110_121919527][][EXCEPTION] [DEBUG] [RESP_ID]:[-1]
[062110_121919527][][EXCEPTION] [DEBUG] [FND_MAX_JDBC_CONNECTIONS]:[500]
[062110_121919527][][EXCEPTION] [DEBUG] [FND_JDBC_USABLE_CHECK]:[false]
[062110_121919527][][EXCEPTION] [DEBUG] [USER_ID]:[-1]
[062110_121919527][][EXCEPTION] [DEBUG] [NLS_TERRITORY]:[AMERICA]
[062110_121919527][][EXCEPTION] [DEBUG] [FND_JDBC_PLSQL_RESET]:[false]
[062110_121919527][][EXCEPTION] [DEBUG] [FND_JDBC_CONTEXT_CHECK]:[true]
[062110_121919527][][EXCEPTION] [DEBUG] [NLS_DATE_FORMAT]:[DD-MON-RR]
[062110_121919527][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_SIZE]:[5]
[062110_121919527][][EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.HIGH]:[-1]
[062110_121919527][][EXCEPTION] [DEBUG] [NLS_SORT]:[BINARY]
[062110_121919527][][EXCEPTION] [DEBUG] [NLS_DATE_LANGUAGE]:[AMERICAN]
[062110_121919527][][EXCEPTION] [DEBUG] [LOGIN_ID]:[-1]
[062110_121919528][][EXCEPTION] [DEBUG] ------- Properties stored in Java System Properties -------
[062110_121919528][][EXCEPTION] [DEBUG] [APPLTMP]:[/t01/demoap/inst/apps/DEMO_demo/appltmp]
[062110_121919528][][EXCEPTION] [DEBUG] [java.runtime.name]:[Java(TM) 2 Runtime Environment, Standard Edition]
[062110_121919528][][EXCEPTION] [DEBUG] [sun.boot.library.path]:[/t01/demoap/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/i386]
[062110_121919528][][EXCEPTION] [DEBUG] [java.vm.version]:[1.5.0_08-b03]
[062110_121919528][][EXCEPTION] [DEBUG] [OVERRIDE_DBC]:[true]
[062110_121919528][][EXCEPTION] [DEBUG] [dbcfile]:[/t01/demoap/inst/apps/DEMO_demo/appl/fnd/12.0.0/secure/DEMO.dbc]
[062110_121919528][][EXCEPTION] [DEBUG] [java.vm.vendor]:[Sun Microsystems Inc.]
[062110_121919528][][EXCEPTION] [DEBUG] [java.vendor.url]:[http://java.sun.com/]
[062110_121919528][][EXCEPTION] [DEBUG] [path.separator]:[:]
[062110_121919528][][EXCEPTION] [DEBUG] [APPLCSF]:[/t01/demoap/inst/apps/DEMO_demo/logs/appl/conc]
[062110_121919528][][EXCEPTION] [DEBUG] [java.vm.name]:[Java HotSpot(TM) Server VM]
[062110_121919528][][EXCEPTION] [DEBUG] [file.encoding.pkg]:[sun.io]
[062110_121919528][][EXCEPTION] [DEBUG] [user.country]:[US]
[062110_121919529][][EXCEPTION] [DEBUG] [sun.os.patch.level]:[unknown]
[062110_121919529][][EXCEPTION] [DEBUG] [java.vm.specification.name]:[Java Virtual Machine Specification]
[062110_121919529][][EXCEPTION] [DEBUG] [user.dir]:[/t01/demoap/inst/apps/DEMO_demo/logs/appl/conc/log]
[062110_121919529][][EXCEPTION] [DEBUG] [java.runtime.version]:[1.5.0_08-b03]
[062110_121919529][][EXCEPTION] [DEBUG] [CLIENT_PROCESSID]:[30369]
[062110_121919529][][EXCEPTION] [DEBUG] [java.awt.graphicsenv]:[sun.awt.X11GraphicsEnvironment]
[062110_121919529][][EXCEPTION] [DEBUG] [java.endorsed.dirs]:[/t01/demoap/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/endorsed]
[062110_121919529][][EXCEPTION] [DEBUG] [os.arch]:[i386]
[062110_121919529][][EXCEPTION] [DEBUG] [JTFDBCFILE]:[/t01/demoap/inst/apps/DEMO_demo/appl/fnd/12.0.0/secure/DEMO.dbc]
[062110_121919529][][EXCEPTION] [DEBUG] [java.io.tmpdir]:[/tmp]
[062110_121919529][][EXCEPTION] [DEBUG] [line.separator]:[
[062110_121919529][][EXCEPTION] [DEBUG] [java.vm.specification.vendor]:[Sun Microsystems Inc.]
[062110_121919529][][EXCEPTION] [DEBUG] [os.name]:[Linux]
[062110_121919529][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MIN]:[1]
[062110_121919530][][EXCEPTION] [DEBUG] [cpid]:[94508]
[062110_121919530][][EXCEPTION] [DEBUG] [sun.jnu.encoding]:[UTF-8]
[062110_121919530][][EXCEPTION] [DEBUG] [oracle.apps.fnd.common.Pool.leak.mode]:[stderr:off]
[062110_121919530][][EXCEPTION] [DEBUG] [java.library.path]:[/t01/demoap/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/i386/server:/t01/demoap/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/i386:/t01/demoap/apps/tech_st/10.1.3/appsutil/jdk/jre/../lib/i386:/t01/demoap/apps/tech_st/10.1.3/lib32:/t01/demoap/apps/tech_st/10.1.3/lib:/t01/demoap/apps/apps_st/appl/cz/12.0.0/bin:/t01/demoap/apps/apps_st/appl/iby/12.0.0/bin:/t01/demoap/apps/apps_st/appl/pon/12.0.0/bin:/t01/demoap/apps/apps_st/appl/sht/12.0.0/lib]
[062110_121919530][][EXCEPTION] [DEBUG] [java.specification.name]:[Java Platform API Specification]
[062110_121919530][][EXCEPTION] [DEBUG] [java.class.version]:[49.0]
[062110_121919530][][EXCEPTION] [DEBUG] [sun.management.compiler]:[HotSpot Server Compiler]
[062110_121919530][][EXCEPTION] [DEBUG] [queue_appl_id]:[0]
[062110_121919530][][EXCEPTION] [DEBUG] [os.version]:[2.6.18-164.11.1.el5xen]
[062110_121919530][][EXCEPTION] [DEBUG] [LONG_RUNNING_JVM]:[true]
[062110_121919530][][EXCEPTION] [DEBUG] [user.home]:[/t01/demoap]
[062110_121919530][][EXCEPTION] [DEBUG] [user.timezone]:[GMT+05:30]
[062110_121919530][][EXCEPTION] [DEBUG] [java.awt.printerjob]:[sun.print.PSPrinterJob]
--------------------------------------------------------------------------------lots of lines ----------------------------------------
[GC 17474K->10837K(24648K), 0.0037890 secs]
[GC 17685K->11057K(24648K), 0.0035530 secs]
[GC 17905K->11271K(24648K), 0.0029030 secs]
[GC 18119K->11488K(24648K), 0.0024650 secs]
[GC 18336K->11702K(24648K), 0.0023940 secs]
[GC 18550K->11919K(24648K), 0.0025010 secs]
[GC 18767K->12133K(24648K), 0.0024460 secs]
[GC 18981K->12344K(24648K), 0.0024020 secs]
[GC 19192K->12575K(24648K), 0.0024790 secs]
[GC 19423K->12781K(24648K), 0.0025650 secs]
[GC 19629K->12991K(24648K), 0.0024010 secs]
[GC 19839K->13212K(24648K), 0.0024430 secs]
[GC 20060K->13427K(24648K), 0.0024160 secs]
[GC 20275K->13641K(24648K), 0.0024440 secs]
[GC 20489K->13857K(24648K), 0.0024410 secs]
[GC 20705K->14073K(24648K), 0.0024570 secs]
[GC 20921K->14284K(24648K), 0.0024340 secs]
[GC 21132K->14504K(24648K), 0.0024580 secs]
[GC 21352K->14719K(24648K), 0.0024620 secs]
[GC 21567K->14935K(24648K), 0.0024600 secs]
[GC 21783K->15151K(24648K), 0.0024360 secs]
[GC 21999K->15365K(24648K), 0.0024180 secs]
[GC 22213K->15004K(24648K), 0.0204220 secs]rgrds
Edited by: new2appsdba on Jun 22, 2010 1:43 AM
Edited by: new2appsdba on Jun 22, 2010 2:12 AM
Edited by: new2appsdba on Jun 22, 2010 5:37 AM -
Regarding running of report for YTD
Hi,
I need to run the report for YTD. I have a date column in answers. I tried by using sql_tsi_day function but didn't work. Please help me in writing the sql.Have a look at the TODATE function
http://obiee101.blogspot.com/2008/11/obiee-ago-and-todate-series.html
regards
John
http://obiee101.blogspot.com -
How do you keep a VI running while waiting for user input?
I have a VI that:
1. The user enters set points.
2. The user starts the VI and the VI sends the set points to an external process via a serial interface.
3. The VI stops running.
4 The user waits for the external process to complete.
5. Repeat sequence. Go to Step 1.
This works well except for one small problem. Starting the VI in step 2 causes an external micro controller to reset. During the reset it will ignore set point commands. To get around this problem a delay has been added between when the VI opens the serial port and when the VI sends the set points to the external process Is it possible to keep a VI running continuously in this type of application, thereby eliminating the start up and shut down of the serial interface?
If yes, how do you keep a VI running while waiting for user input?
HowardThe ones for the event structure specifically. I'm posting from my phone. Look at the basic ones for user input. even a simple while loop with a boolean and a case statement would work.
-
How to Run a Report for Blanket PO that have been OVER Invoiced (over limit
Hi All,
How do I run a report in ME2N, where I would want to see all the Blanket POs (Framework Orders) that has a "Actual Value" (the amt invoiced so far) which is Greater than the Overall Limit (specified in the "Limits" tab)?
Are there any fields in the Dynamic Selection in ME2N? I coudn't Find any......How can I compare two fields in the Blanket PO, for example "Overal Limit' > "Actual Value"?? How to put this selection criteria in ME2N
Edited by: Duke Dukester on Sep 17, 2008 10:31 AMYou will not get this information via ME2N but you can get via ME2S
once you execute the ME2S you will see the PO lines and if oyu double click on it than you will get the all information you are looking but the exact query directly not possible with ME2S
The best way is write the query using table ESUH and EKPO
joint EKPO to ESUH and do the query based on your requirements.
you can get the package number from EKPO and based on the package number you can retrive the data form ESUH table -
Running GR55 reports for special periods
When running GR55 reports, the selection field for "Period" only lists periods 1 to 12. We are using the standard K4 FI year variant.
Can someone tell me how to get the 4 special periods displayed for selection?
Thank you,
HakizaThe drop down in the "To" field only lists periods 001 to 012, but it lets you manually enter other periods such as 14 or 16.
So you are not limited by the periods displayed in the drop down box.
I hope this solves your problem. Thanks,
Hakiza -
Retired asset - cannot run standart report for closed fical year
Hi there,
I was just wondering how to run standart asset report (Y_T11_68000004, AR02) for closed fiscal year in case of the asset was retired during this year.
As I know report can be run only with last date of closed fiscal year (12/31/200x) otherwise got message AU116. But when I have asset retired i.e. in 30/10/200x the report for this year is empty and cant see the movements data.
Any ideas? Maybe some settings for asset history report, or is there another report for movements for previous years.... ?
Thanks a lot!Hi,
start the asset history sheet, there you can see all information.
Alternative is to create an own query on logical database in SQ01.
Regards,
Markus -
Problems running a report for one specific customer
We have a portal where our external customer are login in using their customer number together with a pw. When logged inn they are running a specific report (custom made). Our issue today is that the customers have access to all other customers, thereby able to run reports for other customers as well. We want to set a parameter id so the report is locked only to the logged in customer. Anyone know how we can to this?
RegardsIt all depend on your custom made report. WHat has it been developed in. Is it an ABAP report/BI Report.
Make sure your report accepts say eg a Customer Id parameter. Then we can create a wrapper iview to pass the Customer Id. -
Time Out error problem when i run the report for the whole plant
Dear all,
pls find the below coding, when i execute this report for the whole plant , it gives me time out error since it has to process huge database. pls suggest me in which part of my below coding i can improvise or any other better way to fetch the same result.
pls note that
i m using Views for querying.pls also note the comments given in Bold to understand the reason behind the coding.
Views used in are - ZVPOD and ZVPRDCONF.
START-OF-SELECTION.
Data: zstat type jest-stat.
data: stklocaf type mska-lgort.
data: stklocas type mska-lgort.
<u><b>To collect the status of the production order by joining the ZVPOD and JEST table.</b></u>
CLEAR it_ZVPRODDET.
SELECT DISTINCT ZVPOD~bukrs ZVPOD~aufnr ZVPOD~objnr
jest~stat ZVPOD~werks ZVPOD~arbpl ZVPOD~J_3AKORD2
FROM ZVPOD
INNER JOIN jest ON ZVPOD~objnr = jest~objnr
INTO CORRESPONDING FIELDS OF wa_ZVPRODDET where
plnbez in FGM and arbpl in wc and werks in plant
and SSAVD in eldate
and J_3AKORD2 in cups and jest~inact ne 'X'.
APPEND wa_ZVPRODDET TO it_ZVPRODDET.
ENDSELECT.
SORT it_ZVPRODDET BY aufnr stat.
<u><b>Loop thru Itab to check and delete the records from itab for the specified status.</b></u>
LOOP AT it_ZVPRODDET INTO wa_ZVPRODDET.
IF wa_ZVPRODDET-stat = 'I0045' . " TECO - compl
DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr.
ELSEIF wa_ZVPRODDET-stat = 'I0009' . " CNF - Confirmed
DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr.
ELSEIF wa_ZVPRODDET-stat = 'I0012' . " DLV - Delivered
DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr.
ELSEIF wa_ZVPRODDET-stat = 'I0046' . " CLSD - Closed
DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr.
ELSEIF wa_ZVPRODDET-stat = 'I0076' . " DLFL - Del Flag
DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr.
ELSEIF wa_ZVPRODDET-stat = 'E0003' . " SCLS - Short Close
CLEAR tj30t.
SELECT SINGLE txt04
FROM tj30t INTO tj30t-txt04
WHERE stsma = 'PRDHOLD' AND
estat = 'E0003' AND
txt04 = 'SCLS' AND
spras = 'EN'.
IF sy-subrc = 0.
DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr.
ENDIF.
ENDIF.
* Condition for Prod Order released - REL
IF wa_ZVPRODDET-stat = 'I0002'.
mreleased = 'Y'.
else.
mreleased = 'N'.
endif.
zstat = wa_ZVPRODDET-stat.
IF mreleased = 'N'.
DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr
and stat = zstat.
ENDIF.
ENDLOOP.
<u><b>Loop thru the filtered ITAB to get all the production order details for the production order number specified in the where clause( zaufnr ) and populate another internal table.</b></u>
LOOP AT it_ZVPRODDET INTO wa_ZVPRODDET.
zaufnr = wa_zvproddet-aufnr.
zarbid = wa_zvproddet-arbid.
at new aufnr.
SELECT DISTINCT * INTO CORRESPONDING FIELDS OF walnpln
FROM zvpod where plnbez in FGM and arbpl in wc and SSAVD in
eldate and werks in plant and J_3AKORD2 in cups and aufnr = zaufnr.
APPEND walnpln TO itablnpln.
endselect.
endat.
endloop.
clear walnpln.
<u><b>
Looping thru Internal table and performs all the following calculations and inner loop
and also relevant querying.</b></u>
<u><b>Assume that ITABLNPLN holds appox. 8000 records.</b></u>
LOOP AT itablnpln INTO walnpln.
contot = 0.
SELECT distinct * INTO CORRESPONDING FIELDS OF TABLE itablnp
FROM zvprdconf where aufnr = walnpln-aufnr and
j_3asize = walnpln-j_3akordx and stzhl ne '2' and stokz ne 'X'.
clear zvprdconf.
SELECT single isdd
FROM zvprdconf into zvprdconf-isdd
where aufnr = walnpln-aufnr and
j_3asize = walnpln-j_3akordx and stzhl ne '2' and stokz ne 'X'.
SELECT single isdz
FROM zvprdconf into zvprdconf-isdz
where aufnr = walnpln-aufnr and
j_3asize = walnpln-j_3akordx and stzhl ne '2' and stokz ne 'X'.
IF sy-subrc EQ 0.
<u><b>Assume that ITABLNP holds appox. 30 records.</b></u>
loop at itablnp into walnp.
contot = contot + walnp-J_3ALMNGA.
move walnp-J_3ASIZE to walnpln-J_3ASIZE.
move zvprdconf-isdd to walnpln-zdate.
move zvprdconf-isdz to walnpln-ztime.
endloop.
walnpln-output = contot.
endif.
walnpln-wip = walnpln-menge - contot.
if walnpln-werks = '1000'.
stklocaf = '1050'.
stklocas = '1060'.
elseif walnpln-werks = '2000'.
stklocaf = '2150'.
stklocas = '2160'.
endif.
select single kunnr into walnpln-ship from vbpa where
vbeln = walnpln-KDAUF and PARVW = 'WE'.
zship = walnpln-ship.
move zship to walnpln-ship.
select single kalab into walnpln-zactqty from mska
where matnr = walnpln-plnbez
and j_3asize = walnpln-J_3AKORDX and LGORT = stklocaf.
condense walnpln-kdauf.
zsales = walnpln-kdauf.
concatenate zsales 'S' into zso.
select single kalab into walnpln-zsndqty from mska
where matnr = walnpln-plnbez
and j_3asize = walnpln-J_3AKORDX and LGORT = stklocas
and J_4KSCAT = zso.
zmatn = walnpln-plnbez.
zsale = walnpln-KDAUF.
walnpln-kdauf = zsale.
walnpln-plnbez = zmatn.
zcust = walnpln-kunnr.
walnpln-kunnr = zcust.
select single bezei into walnpln-season from TVV2T where
kvgr2 = walnpln-kvgr2 and SPRAS = 'E'.
select single bezei into walnpln-shipmode from T173T where
vsart = walnpln-vsart and SPRAS = 'E'.
STRL = strlen( walnpln-j_3akord2 ).
if strl = 4.
move walnpln-j_3akord2 to walnpln-j_3akord3.
clear walnpln-j_3akord2.
endif.
move zremk to walnpln-remk.
MODIFY itablnpln FROM walnpln.
contot = 0.
clear itablnp.
ENDLOOP.
PERFORM build_fieldcatalog.
PERFORM build_layout.
PERFORM display_alv_report.Hi raja,
Plese go through the suggessitions.
1.avoide the select ...endselect. write the below select
CLEAR IT_ZVPRODDET.
SELECT DISTINCT
ZVPOD~BUKRS
ZVPOD~AUFNR
ZVPOD~OBJNR
JEST~STAT
ZVPOD~WERKS
ZVPOD~ARBPL
ZVPOD~J_3AKORD2
FROM ZVPOD
INNER JOIN JEST ON ZVPOD~OBJNR = JEST~OBJNR
INTO CORRESPONDING FIELDS TABLE IT_ZVPRODDET
WHERE PLNBEZ IN FGM AND
ARBPL IN WC AND
WERKS IN PLANT AND
SSAVD IN ELDATE AND
J_3AKORD2 IN CUPS AND
JEST~INACT NE 'X'.
IF SY-SUBRC = 0.
SORT TABLE IT_ZVPRODDET.
ENDIF.
2..first of all dont delete a record inside the loop. instead use the Field symobols.
have u obsereved you code in the loop!!!!. wht u r doing..
u r removing the same record which u in the loop..
If u wanto delete the entires with check to<b> stat</b>... <b>then.. why dont u put the STAT field in Wher e condition..?</b> by this you reduce the data base select time..
Now the select query is like the below....
CLEAR IT_ZVPRODDET.
SELECT DISTINCT
ZVPOD~BUKRS
ZVPOD~AUFNR
ZVPOD~OBJNR
JEST~STAT
ZVPOD~WERKS
ZVPOD~ARBPL
ZVPOD~J_3AKORD2
FROM ZVPOD
INNER JOIN JEST ON ZVPOD~OBJNR = JEST~OBJNR
INTO CORRESPONDING FIELDS TABLE IT_ZVPRODDET
WHERE PLNBEZ IN FGM AND
ARBPL IN WC AND
WERKS IN PLANT AND
SSAVD IN ELDATE AND
J_3AKORD2 IN CUPS AND
JEST~INACT NE 'X' AND
( STAT <> 'I0045' AND
STAT <> 'I0045' AND
STAT <> 'I0009' AND
STAT <> 'I0012' AND
STAT <> 'I0046' AND
STAT <> 'I0076' AND
STAT <> 'E0003' ).
IF SY-SUBRC = 0.
SORT TABLE IT_ZVPRODDET.
ENDIF.
<b>3.</b> WHT IS MEANING OF THE SELECT
<b> CLEAR TJ30T.
SELECT SINGLE TXT04
FROM TJ30T INTO TJ30T-TXT04
WHERE STSMA = 'PRDHOLD' AND
ESTAT = 'E0003' AND
TXT04 = 'SCLS' AND
SPRAS = 'EN'.
IF SY-SUBRC = 0.
DELETE IT_ZVPRODDET WHERE AUFNR = WA_ZVPRODDET-AUFNR.
ENDIF.</b>....... IN WHERE CONDION U R GIven all are constant values right?..
why u need select it inside the loop.. u can write before the SELECT from ZVPOD..
that why first checke this field then go for fur thure selects..
<b>now u r code looks like this....</b>
CLEAR TJ30T.
SELECT SINGLE TXT04
FROM TJ30T INTO TJ30T-TXT04
WHERE STSMA = 'PRDHOLD' AND
ESTAT = 'E0003' AND
TXT04 = 'SCLS' AND
SPRAS = 'EN'.
IF SY-SUBRC = 0.
CLEAR IT_ZVPRODDET.
SELECT DISTINCT
ZVPOD~BUKRS
ZVPOD~AUFNR
ZVPOD~OBJNR
JEST~STAT
ZVPOD~WERKS
ZVPOD~ARBPL
ZVPOD~J_3AKORD2
FROM ZVPOD
INNER JOIN JEST ON ZVPOD~OBJNR = JEST~OBJNR
INTO CORRESPONDING FIELDS TABLE IT_ZVPRODDET
WHERE PLNBEZ IN FGM AND
ARBPL IN WC AND
WERKS IN PLANT AND
SSAVD IN ELDATE AND
J_3AKORD2 IN CUPS AND
JEST~INACT NE 'X' AND
JEST~STAT <> 'I0045' AND
JEST~STAT <> 'I0045' AND
JEST~STAT <> 'I0009' AND
JEST~STAT <> 'I0012' AND
JEST~STAT <> 'I0046' AND
JEST~STAT <> 'I0076' AND
JEST~STAT <> 'E0003' ).
IF SY-SUBRC = 0.
SORT TABLE IT_ZVPRODDET.
ENDIF.
ENDIF.
there are so many select inside the loop...... please Delete all of them.... write them be for the loop.......using the FOR ALL ENTRIES.....
THEN LOOP THE TABLE USING THE WHERE CONDITIONS.
<b>Plese write u updated code here again</b>.. -
Don't have to run the report for no prompt value
Hi,
The requirement is that I need to create a report which is more of a search report kind of thing. So on the dashboard we need to show only prompts. The users would choose any prompt and run the report.....now the issue is....that when no prompt values is selected and user hit the GO button ..i need to show a message saying "Please select any value" ...how to do that ..
I have already refered kishore's blog on guided navigation to implement this ..but the issue which I am facing is that my intermediate report is taking too much time (almost 10 mins) to come back with values and then my actual report shows the message thorugh No results view ...but i need to load the messsage to the dashboard in not more that 1 mins ...how to do that .....
any help would be much appreciated ....
Thanks
RonnyThanks Kishore, but I have already refered your blog and implemented this approach as I have mentioned above, however, the issue is that my intermediate report in which I am using the dummy filter is taking too much time to run ...like 10 mins...so guided navigation doesn't work properly ....I have almost 15 prompts so it is taking time ..is there any other work around ?
Thanks,
Ronny -
Error in running Jasper Reports for more than 100 users in stress test
I have created a web application with Jasper reports. during the stress test, we were able to run the same report simultaneously for 100 concurrent users, after that we get the following error. I hope there is no problem in my code (correct me if i am wrong)
We use Web Sphere
The error we get is as follows:
java.io.FileNotFoundException: /apps/HewittProjects/installedApps/TBIA/workforce_CUR.ear/workforceServer4.16.4.war/reports/timesheet_mgr2.jasper (Too many open files)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:106)
at com.wily.introscope.agent.probe.io.ManagedFileInputStream.(ManagedFileInputStream.java:89)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:85)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:64)
at com.workforcesoftware.servlets.ReportServlet2.getCompiledReport(ReportServlet2.java:712)
at com.workforcesoftware.servlets.ReportServlet2.doPost(ReportServlet2.java:423)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.ServicingServletState.service(StrictLifecycleServlet.java:333)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:61)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1009)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:529)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:208)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:134)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:321)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:120)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:250)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:652)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:448)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:937)
NESTED BY :
net.sf.jasperreports.engine.JRException: Error loading object from file : /apps/HewittProjects/installedApps/TBIA/workforce_CUR.ear/workforceServer4.16.4.war/reports/timesheet_mgr2.jasper
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:92)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:64)
at com.workforcesoftware.servlets.ReportServlet2.getCompiledReport(ReportServlet2.java:712)
at com.workforcesoftware.servlets.ReportServlet2.doPost(ReportServlet2.java:423)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.ServicingServletState.service(StrictLifecycleServlet.java:333)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:61)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1009)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:529)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:208)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:134)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:321)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:120)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:250)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:652)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:448)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:937)
if this really cannot find the file, then how could it run successfully for 100 users?
Have anyone experienced this problem?
Thanks for your help.ummm seems odd to have 100 users making a report.. that can be the limitation of your application..
-
Report assignments in COPA report for several years
Hello
I have a COPA report, which contains of data for 2 or more years.
I have setup a report assignment, so it is possible to step into a FI document from the 'Ref doc number' characteristic in the report. Unortunately it does not always finds the right document if I haven't first drilled down on 'Fiscal year' in the report.
Does anybody know, whether it is possible to avoid and instead alway find the document in the right year?
Best regards
Søren Kirch
LOGSTOR A/SHi Vivek,
KE30 is a Transaction code. If you want to copy a Report associated with this Transaction code then go to transaction code KE30 Provide the data a initial screen. Then go to Utilities->status. A popup screen will be displayed. In SAP data tab There is a field called Program. Copy that program name & go to transaction code SE80 & provide the program name & go for display. Here all the related screens, fields, tables etc. will be displayed then right click on the program name & select copy & provide the target program name starting from Z. Save & activate it.
Note you can copy the standard program & copy it also but I think it will not take place the standard porgram, you will have to run the progam manually.
I think BADI or BTE may be available for this transaction.
Ashven -
Hi,
I developed some reports to show the distribution of resources against duration. Previously, I used the output as ASCII text file and then make an Excel spreadsheet / histogram with the results.
Scenario is:
1- I have several projects which I want to report the distro. of resources on
2- I want to show the distro. of qty. against duration sorted by projects in the same report, i.e. currently the units are shown as 1 single row / month summed for all open projects
Is it possible?
Regards,
KarimIn P6, Under Reports, I look under the "Open Projects" heading, and then "Resource Usage", I start with the canned report RL-06. This is a weekly report, but you only need to adjust the timescale to show daily instead of weekly. In the Report Wizard, not Report Editor, Under the "Group and Sort" Button, it should give you the option to group by "Project" (no "S"). This should fix your issue.
Maybe you are looking for
-
Excise Invoice at Depot using J1IG.
Dear Gurus, I am doing Excise invoice at Depot using T.COde- J1IG for Material documents. I created a Stock Transport Order,created Delivery using VL10D and done PGI.I captured Excise using J1In and Cretaed BIlling Document. I have do
-
How do I change my Apple ID on my iPhone 3 S?
I have my 3S running the latest OS for iPhones, but it insists on using the Apple ID that was put in several years ago. I have since got an IPHONE 4S and and Ipad and they use an ID that I set up on ICloud. How can I change this so I can use Match
-
Importing RAW file in Mac OS X 10.10.3 using Photos
I am hoping someone who has been using Photos for Mac OS X has figured out where the RAW files are stored in Photos. Basically, the following are problems that am facing; My RAW files are not appearing in Photos program on both my iMac and MBP. I ne
-
Setup tables filling currency error
Hi , When i am trying fill Sales data to the setup tables i am getting the below error please some on help me Error determining rate : forign curr. INR date 20.08.2006(Doc 11320) Thanks, GAL
-
I am trying to export an app preview to app store and it keeps rejecting due the video is not in the correct format I am following apple specification and the only thing I can't figure how to do in the adobe premiere export media window is: Audio Ste