How to resolve un reported exception
I have migrated my project jdk1.3 in to jdk 1.5 but it throwing some compiler warning messages as un reported exception
Whats the error?
Do you have a stack trace? Error message?
Similar Messages
-
How to resolve preverifying class exception while building
Hi,
I am new to J2ME, i am getting preverifying class exception when ever building a application using Wireless Toolkit 2.1, JDK1.5, CLDC 1.1.
actually i need to run web application on mobiles (PDA), can any one suggests how to resolve the above exception and what are the jar files required in classpath.
Please let me know.
Thanks
ST_Reddy.Then leave it as it is. If the method doesn't throw the exception it is not a problem.
If you need to throw the exception in some rare cases, then throw RuntimeException. It is not required to declare such exception in interface. -
How to migrate CSSCAN report exceptional status tables
Hi All,
In the Csscan output report I found some tables under exceptional status,
how to migrate those tables data?
Note:- I am doing character set migration from US7ASCII to UTF8.
Thanks,
Sankar[How to post a SQL statement tuning request|http://forums.oracle.com/forums/thread.jspa?threadID=863295&tstart=0]
[When your query takes too long...|http://forums.oracle.com/forums/thread.jspa?messageID=1812597#1812597]
And when you post source code:
{{noformat}code{noformat}}
....Post Your Code Here....
{{noformat}code{noformat}}
something I noticed:
AND trunc(t.invoice_date) BETWEEN '01-Jan-2009' AND '31-Dec-2009' you are comparing DATE with STRING.... this calls for implicit datatype conversion -
Hello,
Can anyone guide me how to access the calendar exception details from Project Server using PSI?
I need to extract calendar details of enterprise resources , like exception name, exception type, exception start date and exception end date into my SSRS report hosted in SharePoint 2013 and 2010.
I would be helpful if I can get a sample of this. I have read through many PSI documents in fact still going through ,what PSI does and doesn't , PSI methods etc. from Project Server SDK and MSDN . Moreover, I
am a beginner in .NET programming. I am confused and have lots of questions in my mind, like which PSI service should be used in my report(is it just Calendar.svc), can we pull the details as XML type data source my SSRS report ,are
there any other configuration settings apart from " setting up an event handler by installing an event handler assembly on each Project Server computer in the SharePoint farm, and then configuring the event handler
for the Project Web App instance by using the Project Server Settings page in the General Application Settings of SharePoint Central Administration" (as per prerequisites for PSI in SDK) , how can I implement authentication settings
-(when user with proper SharePoint permission
can accesses the SSRS report )
Kindly bear with me if my questions are not appropriate .
Please do guide me, and .
Thanks in Advance!!
Mridhula
Mridhula.SHi Brendan,
Project server reporting database doesn't contain the calendar info. The only supported way to use the PSI to read the calendar info from Published database.
See this
reply from Amit.
Hope this helps,
Guillaume Rouyre, MBA, MVP, P-Seller | -
Rep-51019 report authentication is missing. How to resolve it?
I am getting the message rep-51019 report authentication is missing. How to resolve it
The search box is in the 'Mail' toolbar. From menu bar select 'View' -> 'Toolbars' -> then check 'Mail Toolbar'. OR from the menu pull-down select 'Preferences' and check 'Mail Toolbar'.
All of your preferences are stored in a profile folder which is separate from the TB program files, so when you reload or upgrade TB it uses the existing profile. -
How to resolve the problem of "Update was terminated" when posting
hello,
please give me a favor. I met a big problem when running FB01, the system give me the error message: Express document "Update was terminated" received from author. I test all clients, all of them have the same problem, how to resolve.
I use SAP ECC6.0 IDES, the error messages recorded by SM16 are:
DDIC_TYPE_INCONSISTENCY
SAPLGIVA
FGVALATT
16
//bas/700_REL/src/krn/runt/abucutil.c#2
ab_RxDdicTypeError
1053
20070528145604
8176
81920
0
37628064
3299600
879552
DG
SAP (R) - R/3(TM) Callstack, Version 1.0
Copyright (C) SAP AG. All rights reserved.
Callstack without Exception:
App : disp+work.EXE (pid=5564)
When : 5/28/2007 14:56:4.843
Threads : 2
Computer Name : EXXEPT01
User Name : SAPServiceER1
Number of Processors: 2
Processor Type: x86 Family 6 Model 15 Stepping 6
Windows Version : 5.2 Current Build: 3790
State Dump for Thread Id d10
eax=00000201 ebx=00000484 ecx=00000210 edx=04bcf0de esi=00000484 edi=00000000
eip=7c82ed54 esp=053cd608 ebp=053cd678 iopl=0 nv up ei pl zr na po nc
eip=7c82ed54 esp=07e5fec0 ebp=07e5ff04 iopl=0 nv up ei pl zr na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000246
function : KiFastSystemCallRet
7c82ed54 c3 ret
7c82ed55 8da42400000000 lea esp,[esp] ss:07e5fec0=7c821514
7c82ed5c 8d642400 lea esp,[esp] ss:29d6e4d3=????????
FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name
07e5ff04 010f51e5 000006e0 00000000 00000000 0613e580 ntdll!KiFastSystemCallRet
07e5ff84 7c349565 00000000 00000000 00000000 0613e618 disp+work!SigIMsgFunc [signt.c (594)]
07e5ffb8 77e66063 0613e618 00000000 00000000 0613e618 MSVCR71!endthreadex
07e5ffec 00000000 7c3494f6 0613e618 00000000 00000000 kernel32!GetModuleFileNameA
-cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00200246
function : KiFastSystemCallRet
7c82ed54 c3 ret
7c82ed55 8da42400000000 lea esp,[esp] ss:053cd608=7c822124
7c82ed5c 8d642400 lea esp,[esp] ss:272dbc1b=????????
FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name
053cd678 77e6ba12 00000484 ffffffff 00000000 053cd6ac ntdll!KiFastSystemCallRet
053cd68c 0100a516 00000484 ffffffff 00000002 00000001 kernel32!WaitForSingleObject
053cd6ac 0055ab69 0055aba2 7c38b5c8 7c38b5c8 7c38b5c8 disp+work!NTDebugProcess [ntstcdbg.c (449)]
053cd6b0 0055aba2 7c38b5c8 7c38b5c8 7c38b5c8 01d28c78 disp+work!NTStack [dptstack.c (1365)]
053cd6cc 0055abd6 7c38b5c8 00000000 00852a87 7c38b5c8 disp+work!CTrcStack2 [dptstack.c (352)]
053cd6d8 00852a87 7c38b5c8 00000000 005f0059 00310030 disp+work!CTrcStack [dptstack.c (182)]
053cd6fc 00855dd9 00000020 a02899f8 a02b037c 00000000 disp+work!rabax_CStackSave [abrabax.c (6842)]
053cd7d4 007fa810 0141ec20 0141ebf0 0000041d 203ec5e0 disp+work!ab_rabax [abrabax.c (1213)]
053cd7ec 00a1d65f a0284050 0000007b 053cd868 00000000 disp+work!ab_RxDdicTypeError [abucutil.c (1053)]
053cd818 00a1d747 a02a4fe0 a02a4fe0 a02a4fe0 00000000 disp+work!FirstLevelChildCnt [scsypar.c (3423)]
053cd894 00a1dca1 053cd8cc a02a4fe0 053d0d20 053d0ce4 disp+work!UcTypeToTree [scsypar.c (3578)]
053d0d28 00a1dd69 053d0d44 a02a4fe0 00000000 a02a4fe0 disp+work!UcTypeToFragView [scsypar.c (3845)]
053d0d70 00a170f0 a02a4fe0 104e3ac8 00000000 00a0cfa7 disp+work!sc_tparUcFragView [scsypar.c (3897)]
053d0d80 00a0cfa7 a02a4fe0 00000000 0295d6d4 a01bc106 disp+work!sc_loadflds [scsytyp.c (813)]
053d0d9c 00a1aafa a01bc106 0295d6d4 00000000 0295d6d4 disp+work!sc_ddictab [scsyddic.c (166)]
053d0ef8 00a1b4f8 00000004 053d0f20 a01bc106 0295d6d4 disp+work!simple_type_find_1 [scsytyp.c (2999)]
053d0f24 00a1b762 a01bc106 00000004 0295d6d4 0000000b disp+work!sc_complex_type_find [scsytyp.c (2621)]
053d0f4c 00a13e2b a01bc106 0000000b 00000000 0295d6d4 disp+work!sc_ctypid [scsytyp.c (2447)]
053d0f6c 00b8c83a 00000001 00000005 00000002 053d7a1c disp+work!sc_typid [scsymb.c (1733)]
053d79d4 009d2f1d 000000d1 0294d7d4 02939df8 02939d94 disp+work!rs_expan_abap [rsabap32.c (1241)]
053d79e8 00a08072 000000d1 053d7b04 a01bc0f4 00000000 disp+work!sc_expan [rsyn6.c (2228)]
053d7adc 00a076df 00000000 053d7b04 00000000 00000005 disp+work!parse [rsyn4.c (1398)]
053d7b1c 00a5c027 00000076 00000000 00000001 00000001 disp+work!sc_check [rsyn4.c (402)]
053d816c 00b2b436 00000000 06474310 06495096 00000000 disp+work!sc_inclu [rsyn31.c (1675)]
053debd4 009d2f1d 00000076 0294d7d4 02939124 02939114 disp+work!rs_expan_abap [rsabap31.c
053debe8 00a08072 00000076 053ded04 a01ae0f0 00000000 disp+work!sc_expan [rsyn6.c (2228)]
053decdc 00a076df 00000000 053ded04 00000000 00000005 disp+work!parse [rsyn4.c (1398)]
053ded1c 00a5c027 00000076 00000000 00000001 00000001 disp+work!sc_check [rsyn4.c (402)]
053df36c 00b2b436 00000000 00000000 00000000 00000000 disp+work!sc_inclu [rsyn31.c (1675)]
053e5dd4 009d2f1d 00000076 0294d7d4 02939124 02939114 disp+work!rs_expan_abap [rsabap31.c
053e5de8 00a08072 00000076 053e5f04 a01a00ec 00000000 disp+work!sc_expan [rsyn6.c (2228)]
053e5edc 00a076df 00000000 053e5f04 00000000 00000000 disp+work!parse [rsyn4.c (1398)]
053e5f1c 00a08b07 0295ba90 053e9c88 053e64c8 009ce139 disp+work!sc_check [rsyn4.c (402)]
053e5f2c 009ce139 00000000 00000000 00000000 053e64a0 disp+work!sc_checkStart [rsyn4.c (24
053e64c8 007e0f7f 053e9c88 00000001 00000000 00000000 disp+work!cg_generate [cgmain2.c (65
053e6510 0057a552 053e9c88 00000000 00000000 053ec954 disp+work!ab_gabap [abgen.c (1592)]
053e9cf8 007e1558 00000041 a0828954 00000000 00000000 disp+work!dy_gen_abap [dynpabsv.c (2
053ec914 00656064 a0828954 00000000 00000000 00000000 disp+work!ab_genprog [abgen.c (1345)
053ec964 006566ab a0828954 00000000 00000001 053ec9a4 disp+work!newload [abload1.c (388)]
053ec990 0065673b a0828954 00000001 053ec9a4 00000000 disp+work!ab_LoadProgOrTrfo [abload1
053ec9a8 0072796a a0828954 00000001 00000000 00000000 disp+work!ab_LoadProg [abload1.c (77
053ecadc 00708d14 00000000 a016ff64 0000001e 00003623 disp+work!ab_link [ablink.c (381)]
053ecb04 0070c9c0 a016ff64 0000001e 00000000 a0828954 disp+work!perform_load [abperf.c (68
053ed0bc 0067af78 00000003 a080fd88 00000000 053ed124 disp+work!ab_jxper [abperf.c (478)]
a016ff64 80000000 005f004c 80000000 00000044 80000000 disp+work!ab_extri [abextri.c (552)]
005f0025 458bec8b b1908a08 56000000 8a0c758b 0000b18e <nosymbols>
005f0025 458bec8b b1908a08 56000000 8a0c758b 0000b18e <nosymbols>
55c3c95b 00000000 00000000 00000000 00000000 00000000 <nosymbols>
State Dump for Thread Id 14ec
eax=00000001 ebx=00000103 ecx=fffffffe edx=05580000 esi=00000000 edi=00000000
eip=7c82ed54 esp=07e5fec0 ebp=07e5ff04 iopl=0 nv up ei pl zr na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000246
function : KiFastSystemCallRet
7c82ed54 c3 ret
7c82ed55 8da42400000000 lea esp,[esp] ss:07e5fec0=7c821514
7c82ed5c 8d642400 lea esp,[esp] ss:29d6e4d3=????????
FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name
07e5ff04 010f51e5 000006e0 00000000 00000000 0613e580 ntdll!KiFastSystemCallRet
07e5ff84 7c349565 00000000 00000000 00000000 0613e618 disp+work!SigIMsgFunc [signt.c (594)]
07e5ffb8 77e66063 0613e618 00000000 00000000 0613e618 MSVCR71!endthreadex
07e5ffec 00000000 7c3494f6 0613e618 00000000 00000000 kernel32!GetModuleFileNameA
-FAGLFLEXT
123
700 Windows NT 2x Intel 80686 EXXEPT01 ORACLE ER1 EXXEPT01
700
NT 5.0 2195 Service Pack 4 x86 MS VC++ 13.10
OCI_10103_SHARE
GregoryHello Greg,
Thank you for this question. What you are reporting looks to me like requires deeper analysis in the system. The channel for such questions is the Service Marketplace <i>http://service.sap.com/.</i> Please post it there.
Thank you!
Kind regards, Kyoko -
Can any 1 pls help how to execute the report from plsql or scheduled job and not from a form
I have a report that works fine, The concern now is that somebody will have to manually run this process. It should be something automated, wherein it will run on it's own
Some batch job which will trigger automatically as per the pre defined schedule
Thx in advance
ImranHi Imran,
If the job is to be scheduled on unix... do you have an report server rwrun60 on your unix machine? (in other words can you deploy your reports on unix?) If so it will be a lot easier not to use dbms_job but just schedule it with the unix scheduler CRON.
Then you can create a shell script (.bat is used in windows , on unix it should be , actually you even don't need an extention, .unx or .sh)
eg for your script
#!/bin/ksh
ORACLE_HOME=<path to your oracle home on unix>
ORACLE_SID=<SID of the instance your report needs to run on>
PATH=$ORACLE_HOME/bin:$PATH
WORKINGDIR=<your directory where your reports are
export ORACLE_HOME PATH ORACLE_SID WORKINGDIR
cd WORKINGDIR
# if you want more than one report to run at the same time you can use this loop
for i in `ls *.rep`
do
rwrun60 module=$i userid=..... destype=printer (you can of course use other parameters too)
done
*If you want just a single report leave the loop out and put name of report afeter module=
if you save the file ask your unix admins to make it executable and to schedule it with cron on the unix machine
That's all
I have several hundreds reports running this way (on Linux with 10g report server)
Hope it helps
Erwin
In answer to you latest question to run from pl/sql it can but you need to be able to run a "host" command from your database
one way to do it with java class
install these two java sources on your instance
(you can leave the FEP1_ out of course)
CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "FEP1_CaptureStream" AS
import java.util.*;
import java.io.*;
class FEP1_CaptureStream implements Runnable {
private final InputStream is;
private final String type;
private final OutputStream redirect;
private boolean redirected = false;
FEP1_CaptureStream(InputStream is, String type, OutputStream redirect)
this.is = is;
this.type = type + ">";
this.redirect = redirect;
FEP1_CaptureStream(InputStream is, String type)
this(is, type, null);
FEP1_CaptureStream(InputStream is)
this(is, " ", null);
public void run()
try {
PrintWriter pw = null;
if (redirect != null) {
pw = new PrintWriter(redirect);
redirected = true;
InputStreamReader isr = new InputStreamReader(is);
BufferedReader br = new BufferedReader(isr);
String line=null;
while ( (line = br.readLine()) != null) {
System.out.println(type + line);
if (redirected) {
pw.println(line);
if (redirected) {
pw.flush();
pw.close();
br.close();
isr.close();
} catch (IOException ioe) {
ioe.printStackTrace();
second source
CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "FEP1_ExecOSCmd" AS
import java.util.*;
import java.io.*;
public class FEP1_ExecOSCmd {
public static void main (String args[])
int rc = 0;
if (args.length < 1) {
System.out.println("USAGE: java ExecOSCmd \'cmd\' ");
System.exit(1);
try {
String cmd = args[0];
FileOutputStream fos = null;
if (args.length == 2 ) {
fos = new FileOutputStream(args[1]);
Runtime rt = Runtime.getRuntime();
Process p = rt.exec(cmd);
FEP1_CaptureStream err = new FEP1_CaptureStream(p.getErrorStream(), "ERR");
Thread e = new Thread(err);
/* NOTE we do not join the error thread. If there was no
Error it may never return. We would wait forever for it to
return thus janging this process */
e.start();
FEP1_CaptureStream out = new FEP1_CaptureStream(p.getInputStream(),
"OUT", fos);
Thread o = new Thread(out);
o.start();
try {
rc = p.waitFor();
/* Handle exceptions for waitFor() */
} catch (InterruptedException intexc) {
System.out.println("Interrupted Exception on waitFor: " +
intexc.getMessage());
if (fos !=null) {
o.join(); // need to wait for the output to finish.
fos.flush();
fos.close();
System.out.println("ExitValue: " + rc);
} catch (Throwable t) {
System.out.println("ExitValue: " + rc);
t.printStackTrace();
Now create a package or standalone procedure to wrap this code
PROCEDURE EXECUTECMD
(CMD VARCHAR2
IS
LANGUAGE JAVA NAME 'FEP1_ExecOSCmd.main(java.lang.String[])';
put security ok and then you can use this procedure in a another
eg
EXECUTECMD('/mybin/start_reports.sh');
this will start the sh script
or
eg
EXECUTECMD('/Oracle/bin/rwrun60 module=.....');
or create a string with all your params and pass it to the command
Be aware that this command executes on the server where your instance is running!
Message was edited by:
Irvine74 -
How to create a report to bring all data from two different Info providers
Hi All,
I have a peculier problem while creating a report. I have two custom info providers one DSO and another Cube. There are only two common fields between these two Info providers . I need to create a report such that the report displays all the values from DSO but user can have the selection option on one of the fields in the Cube.
Here is an example
DSO Contents:
DocNum- DocItem- DocText- Amount- Quantity
10000---- 10---- ABC---- 100---- 10
10001---- 20---- DSN---- 200---- 10
10005---- 20---- DSN---- 200---- 10
Z1003---- 10---- CAN---- 500---- 1
Cube Contents
DocNum- DocItem- Date----- InvoiceAmt
10000---- 10---- 1/10/2009---- 50
10001---- 20---- 2/20/2009---- 100
10005---- 20---- 2/25/2009---- 100
The report needs to be displayed as shown below when the user selects value for date from 1/10/2009 to 2/20/2009
DocNum- DocItem- DocText- Amount- Quantity
10000---- 10---- ABC---- 100---- 10
10001---- 20---- DSN---- 200---- 10
I hope this was clear for you to understand. I would really appricate if any one can answers about how to resolve this problem. I cannot add the date filed to DSO and I also have Doc Num and Item as the user selection fields in the report.
Thank you all in advance and i would really appreciate for your suggestions.
Regards
Chinna
Edited by: chinna2479 on Mar 3, 2009 7:38 PM
Edited by: chinna2479 on Mar 3, 2009 7:39 PMHi chinna,
Two possible options, I can think of now, but both of them may be a compromise with performance.
1. create an infoset and then a query on top of it, provided we have a one to one relation in both the targets. That is, the combination of doc and item number is not duplicate in either cube or ODS.
2. Create a master data object of doc and item number and have date as an attribute. Load that from cube data and make date as navigational attr.
Use this navgntal attr for selection in your report.
Let us know, if you require any further info.
Naveen.A -
How to resolve #Multivalue Error
HI All,
I have a data like below, in this for inpatient data is NULL and as per business requirement if data is null then "0". so i create a variable and drag into inpatient's total column
statement for inpatient is
=If IsNull([total]) Then 0 Else [total] Where ([items]="Inpatient")
items total
Office
4
Utilization
70
Inpatient
it is working and showing as "0"
but when inpatient has value it is showing #multivalue"
Office Visits
4
Non-Emergency ED Utilization
70
Inpatient Stays
40
how to resolve is issue
Please reply i am using SAP BO 3.1 INFOVIEW
Thanks in advance
RanjeetHi Ranjeet,
First thing is you are getting this error because of the where clause used in the variable.
Because in the 2nd case when it has value for Inpatient, it is actually taking the same value for all the 3 cases.
How to remove null value with 0:
1. Remove where clause from the variable and use that variable in place of Total in the table report.
2. Use format number option to place 0 in place of undefined values.
Hope it helps. Please ask if you have any queries.
Regards,
Subrat -
How to create a report in Form line Style and can display Image field?
Hi,
In Report builder 10g, I would like to create a Report with Form Line Style and this report included a Image field.
I can choose this Style only when Select Report type is Paper Layout. Because, If I choose Create both Web & Paper Layout or Create Web Layout only then in the next Style tab 03 option Form, Form letter and Mailing Label be Disabled.
But in Paper Layout, my report can not display Image field.
I tried with Web layout and all the other Styles (Except 03 mentioned be Disabled) then all Styles are displayed Imager field OK.
How to create a report in Form line Style and can display Image field?
I was change File Format property of my Image field from text to Image already in Property Inspector. But report only showed MM for my Image field.
Thanks & regards,
BACH
Message was edited by:
bachnpHere you go..Just follow these steps blindly and you are done.
1) Create a year prompt with presentation variable as pv_year
2) Create a report say Mid report with year column selected 3 times
- Put a filter of pv_year presentation variable on first year column with a default value say @{pv_year}{2008}
- Rename the second time column say YEAR+1 and change the fx to CAST(TIME_DIM."YEAR" AS INT)+1
- Rename the second time column say YEAR-1 and change the fx to CAST(TIME_DIM."YEAR" AS INT)-1
Now when you will run Mid Report, this will give you a records with value as 2008 2009 2007
3) Create your main report with criteria as Year and Measure col
- Change the fx for year column as CAST(TIME_DIM."YEAR" AS INT)
- Now put a filter on year column with Filter based on results of another request and select these:
Relationship = greater than or equal to any
Saved Request = Browse Mid Report
Use values in Column = YEAR-1
- Again,put a filter on year column with Filter based on results of another request and select these:
Relationship = less than or equal to any
Saved Request = Browse Mid Report (incase it doesn't allow you to select then select any other request first and then select Mid Report)
Use values in Column = YEAR+1
This will select Year > = 2007 AND Year < = 2009. Hence the results will be for year 2007,2008,2009
This will 100% work...
http://i56.tinypic.com/wqosgw.jpg
Cheers -
How to Created custom report for Ship not Billed (SD/FI)?
Hi all,
I am anticipating to write some abap reports..Here is one of them..
Anyone can help me with writing a Report , how to do 'Custom Report for shipped not Billed(SD/FI)' ..But since I am new to Abap , if you wish to reply, please use a little more detail and simple explanation, step by step so I can understand what is the idea, how it can be acheived...what kind of report should be used , techniques, tables etc...:)
Appreciate your help!
Regards,
BobyHi Boby,
You need to create custom transaction to achive these results.
you will have selection-screen ,it would be :
Date : Here date would be mandatory - Ranges Option
Customer - Optional field - Ranges
Order # Sales Order (Optional) Ranges
Invoice # - Invoice # (Optional) Ranges
You will get the data based on ur selection-screen criteria ...
First you will have customer order details from diffrent table
VBAK,
VBAP,
LIKP
LIPS
VBRK,
VBRP
KNA1,
VBFA Tables ( See the my sample program )
Output would be :
Customer # Custome Name Order # Delivery # Invoice # Netpr, Netquantity ,
Check the condition whether invoice table has VBRK-RFBSK = ''.
See the my sample program : This is sales report by monthly..
REPORT ZFDSALES_REPORT no standard page heading
message-id zwave.
Data Declaration Part
TYPE-POOLS
type-pools : slis.
Tables
tables : VBAK,
VBAP.
Internal table for VBAK Table
data : begin of i_vbak occurs 0,
vbeln like vbak-vbeln,
bstnk like vbak-bstnk,
vdatu like vbak-vdatu,
end of i_vbak.
Internal table for VBAP and MATNR
data : begin of i_vbap occurs 0,
vbeln like vbap-vbeln,
matnr like vbap-matnr,
kdmat like vbap-kdmat,
kwmeng like vbap-kwmeng,
netpr like vbap-netpr,
maktx like makt-maktx,
end of i_vbap.
Internal tables
data : begin of i_sales occurs 0,
vdatu like vbak-vdatu,
bstnk like vbak-bstnk,
matnr like vbap-matnr,
maktx like makt-maktx,
kdmat like vbap-kdmat,
kwmeng like vbap-kwmeng,
netpr like vbap-netpr,
end of i_sales.
Variable for ALV
data : v_repid like sy-repid,
gt_fieldcat type slis_t_fieldcat_alv.
Selection-screen
selection-screen : begin of block blk with frame title text-001.
select-options : s_vbeln for vbak-vbeln,
s_erdat for vbak-erdat,
s_ernam for vbak-ernam,
s_vdatu for vbak-vdatu obligatory,
s_BSTNK for vbak-BSTNK,
s_KUNNR for vbak-kunnr,
s_matnr for vbap-matnr,
s_KDMAT for vbap-KDMAT.
selection-screen : end of block blk.
Initilization
initialization.
v_repid = sy-repid.
S T A R T - O F - S E L E C T I O N ****************
start-of-selection.
Get the data from VBAK and VBAP Tables
perform get_vbak_vbap.
E N D - O F - S E L E C T I O N *****************
end-of-selection.
Display the data
perform dispolay_data.
*& Form get_vbak_vbap
Get the data from VBAK and VBAP Table
FORM get_vbak_vbap.
Get the data from VBAK Table
select vbeln bstnk vdatu from vbak into table i_vbak
where vbeln in s_vbeln
and bstnk in s_bstnk
and vdatu in s_vdatu
and kunnr in s_kunnr
and erdat in s_erdat
and ernam in s_ernam.
if sy-subrc ne 0.
message e000(zwave) with 'No data found for given selection'.
endif.
Get the data from VBAP Table
select avbeln amatnr akdmat akwmeng a~netpr
b~maktx into table i_vbap
from vbap as a inner join makt as b on bmatnr = amatnr
for all entries in i_vbak
where a~vbeln in s_vbeln
and a~kdmat in s_kdmat
and a~abgru = space
and a~matnr in s_matnr
and a~matnr ne '000000000000009999'
and a~matnr ne '000000000000004444'
and a~matnr ne '000000000000008888'
and a~matnr ne '000000000000001111'
and a~werks = '1000'
and b~spras = 'E'
and a~vbeln = i_vbak-vbeln.
if sy-subrc ne 0.
message e000(zwave) with 'No data found for given selection'.
endif.
sort i_vbak by vbeln.
sort i_vbap by vbeln matnr.
loop at i_vbap.
read table i_vbak with key vbeln = i_vbap-vbeln
binary search.
if sy-subrc eq 0.
i_sales-bstnk = i_vbak-bstnk.
i_sales-vdatu = i_vbak-vdatu.
i_sales-matnr = i_vbap-matnr.
i_sales-kdmat = i_vbap-kdmat.
i_sales-maktx = i_vbap-maktx.
i_sales-netpr = i_vbap-netpr.
i_sales-kwmeng = i_vbap-kwmeng.
append i_sales.
else.
continue.
endif.
clear : i_sales,
i_vbap,
i_vbak.
endloop.
sort i_sales by vdatu bstnk matnr.
refresh : i_vbap,
i_vbak.
ENDFORM. " get_vbak_vbap
*& Form dispolay_data
Display the data
FORM dispolay_data.
Fill the Fiedlcat
PERFORM fieldcat_init using gt_fieldcat[].
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = v_repid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
I_CALLBACK_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
IS_LAYOUT =
IT_FIELDCAT = gt_fieldcat[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IT_ALV_GRAPHICS =
IT_ADD_FIELDCAT =
IT_HYPERLINK =
I_HTML_HEIGHT_TOP =
I_HTML_HEIGHT_END =
IT_EXCEPT_QINFO =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = i_sales
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
ENDFORM. " dispolay_data
*& Form fieldcat_init
text
-->P_GT_FIELDCAT[] text
FORM fieldcat_init USING e01_lt_fieldcat type slis_t_fieldcat_alv.
DATA: LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
Delivery Date
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'VDATU'.
LS_FIELDCAT-OUTPUTLEN = 12.
LS_FIELDCAT-TABNAME = 'I_SALES'.
ls_fieldcat-seltext_L = 'Delivery Date'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Purchase Order #Material Description
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'BSTNK'.
LS_FIELDCAT-OUTPUTLEN = 25.
LS_FIELDCAT-TABNAME = 'I_SALES'.
ls_fieldcat-seltext_L = 'Purchase Order #'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Material
CLEAR LS_FIELDCAT.
LS_FIELDCAT-REF_FIELDNAME = 'MATNR'.
LS_FIELDCAT-REF_TABNAME = 'MARA'.
LS_FIELDCAT-FIELDNAME = 'MATNR'.
LS_FIELDCAT-TABNAME = 'I_SALES'.
ls_fieldcat-seltext_L = 'Material #'.
ls_fieldcat-seltext_M = 'Material #'.
ls_fieldcat-seltext_S = 'Material #'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Material Description
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'MAKTX'.
LS_FIELDCAT-OUTPUTLEN = 40.
LS_FIELDCAT-TABNAME = 'I_SALES'.
ls_fieldcat-seltext_L = 'Material Description'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Customer Material #
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'KDMAT'.
LS_FIELDCAT-OUTPUTLEN = 35.
LS_FIELDCAT-TABNAME = 'I_SALES'.
ls_fieldcat-seltext_L = 'Customer material no.'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Quantity
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'KWMENG'.
LS_FIELDCAT-OUTPUTLEN = 15.
LS_FIELDCAT-TABNAME = 'I_SALES'.
ls_fieldcat-seltext_L = 'Quantity'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Net Price
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'NETPR'.
LS_FIELDCAT-OUTPUTLEN = 15.
LS_FIELDCAT-TABNAME = 'I_SALES'.
ls_fieldcat-seltext_L = 'Net Price'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
ENDFORM. " fieldcat_init
Reward Points if it is helpful
Thanks
Seshu -
How to get a report in pdf format.
Hi Experts,
Could any one let me know that, how to get the report in PDF format.
Once a report is generated it should be displayed in pdf format or downloaded in pdf format.
Thanks in Advance,
Regards,
Irfan HussainHi,
Check out this code:
REPORT zspooltopdf.
PARAMETER: p_email1 LIKE somlreci1-receiver
DEFAULT '[email protected]',
p_sender LIKE somlreci1-receiver
DEFAULT '[email protected]',
p_delspl AS CHECKBOX.
*DATA DECLARATION
DATA: gd_recsize TYPE i.
* Spool IDs
TYPES: BEGIN OF t_tbtcp.
INCLUDE STRUCTURE tbtcp.
TYPES: END OF t_tbtcp.
DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
wa_tbtcp TYPE t_tbtcp.
* Job Runtime Parameters
DATA: gd_eventid LIKE tbtcm-eventid,
gd_eventparm LIKE tbtcm-eventparm,
gd_external_program_active LIKE tbtcm-xpgactive,
gd_jobcount LIKE tbtcm-jobcount,
gd_jobname LIKE tbtcm-jobname,
gd_stepcount LIKE tbtcm-stepcount,
gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc.
DATA: w_recsize TYPE i.
DATA: gd_subject LIKE sodocchgi1-obj_descr,
it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
gd_sender_type LIKE soextreci1-adr_typ,
gd_attachment_desc TYPE so_obj_nam,
gd_attachment_name TYPE so_obj_des.
* Spool to PDF conversions
DATA: gd_spool_nr LIKE tsp01-rqident,
gd_destination LIKE rlgrap-filename,
gd_bytecount LIKE tst01-dsize,
gd_buffer TYPE string.
* Binary store for PDF
DATA: BEGIN OF it_pdf_output OCCURS 0.
INCLUDE STRUCTURE tline.
DATA: END OF it_pdf_output.
CONSTANTS: c_dev LIKE sy-sysid VALUE 'DEV',
c_no(1) TYPE c VALUE ' ',
c_device(4) TYPE c VALUE 'LOCL'.
*START-OF-SELECTION.
START-OF-SELECTION.
* Write statement to represent report output. Spool request is created
* if write statement is executed in background. This could also be an
* ALV grid which would be converted to PDF without any extra effort
WRITE 'Hello World'.
new-page.
commit work.
new-page print off.
IF sy-batch EQ 'X'.
PERFORM get_job_details.
PERFORM obtain_spool_id.
*** Alternative way could be to submit another program and store spool
*** id into memory, will be stored in sy-spono.
*submit ZSPOOLTOPDF2
* to sap-spool
* spool parameters %_print
* archive parameters %_print
* without spool dynpro
* and return.
* Get spool id from program called above
* IMPORT w_spool_nr FROM MEMORY ID 'SPOOLTOPDF'.
PERFORM convert_spool_to_pdf.
if p_delspl EQ 'X'.
PERFORM delete_spool.
endif.
IF sy-sysid = c_dev.
wait up to 5 seconds.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN.
ENDIF.
ELSE.
SKIP.
WRITE:/ 'Program must be executed in background in-order for spool',
'request to be created.'.
ENDIF.
* FORM obtain_spool_id *
FORM obtain_spool_id.
CHECK NOT ( gd_jobname IS INITIAL ).
CHECK NOT ( gd_jobcount IS INITIAL ).
SELECT * FROM tbtcp
INTO TABLE it_tbtcp
WHERE jobname = gd_jobname
AND jobcount = gd_jobcount
AND stepcount = gd_stepcount
AND listident <> '0000000000'
ORDER BY jobname
jobcount
stepcount.
READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
IF sy-subrc = 0.
message s004(zdd) with gd_spool_nr.
gd_spool_nr = wa_tbtcp-listident.
MESSAGE s004(zdd) WITH gd_spool_nr.
ELSE.
MESSAGE s005(zdd).
ENDIF.
ENDFORM.
* FORM get_job_details *
FORM get_job_details.
* Get current job details
CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
IMPORTING
eventid = gd_eventid
eventparm = gd_eventparm
external_program_active = gd_external_program_active
jobcount = gd_jobcount
jobname = gd_jobname
stepcount = gd_stepcount
EXCEPTIONS
no_runtime_info = 1
OTHERS = 2.
ENDFORM.
* FORM convert_spool_to_pdf *
FORM convert_spool_to_pdf.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = gd_spool_nr
no_dialog = c_no
dst_device = c_device
IMPORTING
pdf_bytecount = gd_bytecount
TABLES
pdf = it_pdf_output
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
CHECK sy-subrc = 0.
* Transfer the 132-long strings to 255-long strings
LOOP AT it_pdf_output.
TRANSLATE it_pdf_output USING ' ~'.
CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
ENDLOOP.
TRANSLATE gd_buffer USING '~ '.
DO.
it_mess_att = gd_buffer.
APPEND it_mess_att.
SHIFT gd_buffer LEFT BY 255 PLACES.
IF gd_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
ENDFORM.
* FORM delete_spool *
FORM delete_spool.
DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
ld_spool_nr = gd_spool_nr.
CHECK p_delspl <> c_no.
CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
EXPORTING
spoolid = ld_spool_nr.
ENDFORM.
Regards,
Gayathri -
How to format the report with the aggregated value
Hi,
I have 2 characteristics and 3 KFs in the infocube.
First field is Cost Center
Second field is creation Date
3rd field is KF1
4th field is KF2
5th field is KF3
I have put the date field( in the row) as this is required for calculating formula for KFs. But I have set that as No display.
The date in the info cube is as follows.
Cost Ceneter Date( no Display) KF1 KF2 KF3
CC1 01/01/2006 100 150 200
CC1 02/02/2006 75 100 95
CC1 05/02/2006 125 95 125
CC2 01/02/2006 75 25 85
CC2 02/02/2006 85 65 10
As the Date field is in query set to No display so the date appearing in the report is as follows
CC1 100 150 200
75 100 95
125 95 125
CC2 75 25 85
85 65 10
But I want the aggregated value at cost senter level i.e.
CC1 300 245 420
CC2 160 90 95
I can not remove the Date frield from query as there is a formula variable defined on the date field.
Please let me know how to bring the report to the required format.
Bill
Message was edited by:
Bill BryanIf you are in new Bex, you can do it.
You will have to create another (set of) CKF on top of the current ones (which do exception aggregation on DOCNUM) and set the exception aggregation on date.
Say you have
CH1--CH2CH3--CKF1
To have a 'before aggregation' behavior for CKF1 when CH3 is not present, you will create a CKF2 = CKF1 with exception aggregation on CH3.
Now, if you want to remove CH2 and have the 'before aggregation' behavior you will need to create another CKF3 = CKF2 with exception aggregation on CH2.
ie for each level of aggregation, you will have to define a new CKF/Formula with corresponding exception aggregation - this is what will be needed to get you your output.
Message was edited by:
Ajay Das -
How to resolve the error " low paging memory"
HI all ,
I developed a report, which is running fine in development and in quality , but when it runs on production , it shows the dump 'low paging memory'. how to resolve this , can any one sujjest please ?Hi,
1) Run a trace ST05 in ur quality system and fine tune the memory consuming select queries.
2) Discuss with the basis regarding this error, probably they can help you out by increasing some space in pRODN.
Regards
Subbu -
I am no longer able to double click on a file and have it open. Any suggestions on how to resolve this problem?
Please read this whole message before doing anything.
This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
Test while in safe mode. Same problem?
After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.
Maybe you are looking for
-
Not very happy with warranty replacement
I am not trying to get something for nothing when I make the statement that I am not happy with the replacement touch that apple sent me for my almost out of warranty touch that completely stopped working. I am happy with the customer service, the ea
-
Please help! My partner has taken my old phone but we cant get it to join our wifi network a home - it wont request or prompt for the password...My iphone 4S works and joins the same network so it must be within distance to the router...we cant work
-
Problem transferring music to iPod touch
Ok, so I just bought the IPT 2G 16gig less than a week ago, and i love it. So I put in a cd and load it into my library, and everything works just fine; until I try to take the music and put it into the touch. I drag the music to my ipod and it wont
-
Web Dynpro for ABAP Adobe Forms
We have created a table with fields. How can we create a Web Dynpro for ABAP applicaton to populate these fields into an Adobe Form?
-
Palm Centro - Entourage Sync HELP!
How do I set up to sync my centro to my entourage? I'm sure someone knows how to do this. HELP! I can get hot sync to go both ways between Palm desktop but I use Entourage for all my contacts and calendar. How do I set this up? I assume it's very b