Report Example

Hi All,
I need the example of Vendor performance report..
If anyone already did it then please send the example of that report..
Note ::: I am not asking for General Examples of reports.
Thanks in advance
Raj

Hi Raj,,
This may help you.......
see the sample code
*& Report ZRFQ_COMP
*& Quotation Comparison Report
REPORT ZRFQ_COMP no standard page heading line-size 187 line-count 35.
*&Tables
Tables : ekko,
ekpo,
konp,
a016.
*&Data Decleration
Data : v_pos type i value 19.
Data : begin of it_rfq occurs 0,
ebeln type ekko-ebeln,
ekorg type ekko-ekorg,
lifnr type ekko-lifnr,
matnr type ekpo-matnr,
WERKS type ekpo-WERKS,
end of it_rfq.
Data : begin of it_a016 occurs 0,
ebeln type ekko-ebeln,
knumh type knumh,
end of it_a016.
Data : begin of it_a363 occurs 0,
werks type werks,
lifnr type lifnr,
matnr type matnr,
knumh type knumh,
end of it_a363.
Data : begin of it_pr_details occurs 0,
knumh type knumh,
kschl type kschl,
kbetr type kwert,
end of it_pr_details.
Data : begin of it_final occurs 0,
ebeln type ebeln,
lifnr type lifnr,
name1 type lfa1-name1,
pb00 type kbetr,
zpac type kbetr,
zb00 type kbetr,
ZIN1 type kbetr,
JEC1 type kbetr,
JHX1 type kbetr,
JMOP type kbetr,
JMX1 type kbetr,
JMX3 type kbetr,
JSEP TYPE KBETR,
JVRD type kbetr,
end of it_final.
Data : begin of it_vendorname occurs 0,
lifnr type lifnr,
name1 type lfa1-name1,
end of it_vendorname.
*&Selection Screen
Selection-screen: begin of block blk1 with frame title text-001.
parameters : p_matnr like ekpo-matnr obligatory.
select-options : s_ebeln for ekko-ebeln,
s_ekorg for ekko-ekorg,
s_lifnr for ekko-lifnr.
Selection-screen: end of block blk1.
*&Start-of-Selection.
Start-of-selection.
Select ekko~ebeln
ekko~ekorg
ekko~lifnr
ekpo~matnr
ekpo~werks
into table it_rfq
from ekko
inner join ekpo
on ekkoebeln eq ekpoebeln
where ekko~ebeln in s_ebeln
and ekko~ekorg in s_ekorg
and ekko~lifnr in s_lifnr
and ekpo~matnr eq p_matnr
and ekko~bstyp eq 'A'.
if sy-subrc eq 0.
*--> Condition number from A tables.
Perform get_connum.
*--> Getting the Pricing Details from Konp Table.
Perform get_prices.
*--> Populate Vendor Name.
Perform pop_vendor_name.
*--> Populating the Final Internal table for Report.
Perform pop_final_tab.
else.
message 'Purchase Document does not exist' type 'E'.
endif.
*&End-of-Selection.
End-of-Selection.
write :/ sy-vline,
2 'Vendor Number',
19 sy-vline.
v_pos = 19.
loop at it_final.
write at v_pos sy-vline.
v_pos = v_pos + 1.
write at v_pos it_final-lifnr.
v_pos = v_pos + 35.
endloop.
write at: v_pos sy-vline,
/(v_pos) sy-uline.
write :/ sy-vline,
2 'Gross Price',
19 sy-vline.
v_pos = 19.
loop at it_final.
write at v_pos sy-vline.
v_pos = v_pos + 20.
write at v_pos it_final-pb00.
v_pos = v_pos + 16.
endloop.
write at: v_pos sy-vline,
/(v_pos) sy-uline.
write :/ sy-vline,
2 'Packing & Forward',
19 sy-vline.
v_pos = 19.
loop at it_final.
write at v_pos sy-vline.
v_pos = v_pos + 20.
write at v_pos it_final-zpac.
v_pos = v_pos + 16.
endloop.
write at: v_pos sy-vline,
/(v_pos) sy-uline.
write :/ sy-vline,
2 'Surcharge',
19 sy-vline.
v_pos = 19.
loop at it_final.
write at v_pos sy-vline.
v_pos = v_pos + 20.
write at v_pos it_final-zb00.
v_pos = v_pos + 16.
endloop.
write at: v_pos sy-vline,
/(v_pos) sy-uline.
write :/ sy-vline,
2 'Installation',
19 sy-vline.
v_pos = 19.
loop at it_final.
write at v_pos sy-vline.
v_pos = v_pos + 20.
write at v_pos it_final-zin1.
v_pos = v_pos + 16.
endloop.
write at: v_pos sy-vline,
/(v_pos) sy-uline.
write :/ sy-vline,
2 'Ed cess on BED%',
19 sy-vline.
v_pos = 19.
loop at it_final.
write at v_pos sy-vline.
v_pos = v_pos + 20.
write at v_pos it_final-jec1.
v_pos = v_pos + 16.
endloop.
write at: v_pos sy-vline,
/(v_pos) sy-uline.
write :/ sy-vline,
2 'A/P Secess set off',
19 sy-vline.
v_pos = 19.
loop at it_final.
write at v_pos sy-vline.
v_pos = v_pos + 20.
write at v_pos it_final-jhx1.
v_pos = v_pos + 16.
endloop.
write at: v_pos sy-vline,
/(v_pos) sy-uline.
write :/ sy-vline,
2 'Basic Excise Duty',
19 sy-vline.
v_pos = 19.
loop at it_final.
write at v_pos sy-vline.
v_pos = v_pos + 20.
write at v_pos it_final-zpac.
v_pos = v_pos + 16.
endloop.
write at: v_pos sy-vline,
/(v_pos) sy-uline.
write :/ sy-vline,
2 'A/P BED set off',
19 sy-vline.
v_pos = 19.
loop at it_final.
write at v_pos sy-vline.
v_pos = v_pos + 20.
write at v_pos it_final-jmx1.
v_pos = v_pos + 16.
endloop.
write at: v_pos sy-vline,
/(v_pos) sy-uline.
write :/ sy-vline,
2 'Ecess % set off',
19 sy-vline.
v_pos = 19.
loop at it_final.
write at v_pos sy-vline.
v_pos = v_pos + 20.
write at v_pos it_final-jmx3.
v_pos = v_pos + 16.
endloop.
write at: v_pos sy-vline,
/(v_pos) sy-uline.
write :/ sy-vline,
2 'Sec ED Cess on BED',
19 sy-vline.
v_pos = 19.
loop at it_final.
write at v_pos sy-vline.
v_pos = v_pos + 20.
write at v_pos it_final-jsep.
v_pos = v_pos + 16.
endloop.
write at: v_pos sy-vline,
/(v_pos) sy-uline.
write :/ sy-vline,
2 'VAT%',
19 sy-vline.
v_pos = 19.
loop at it_final.
write at v_pos sy-vline.
v_pos = v_pos + 20.
write at v_pos it_final-jvrd.
v_pos = v_pos + 16.
endloop.
write at: v_pos sy-vline,
/(v_pos) sy-uline.
*&Top-of-Page.
Top-of-Page.
format color 1.
Write: 'Material Number :' color 1, p_matnr color 1.
loop at it_final.
v_pos = v_pos + 1.
v_pos = v_pos + 35.
endloop.
write at: /(v_pos) sy-uline,/ sy-vline,2 'Vendor Name'.
v_pos = 19.
loop at it_final.
write at v_pos sy-vline.
v_pos = v_pos + 1.
write at v_pos it_final-name1.
v_pos = v_pos + 35.
endloop.
write at: v_pos sy-vline,
/(v_pos) sy-uline.
*& Form get_connum
Condition number from A tables
form get_connum .
Select EVRTN
knumh
from a016
into table it_a016
for all entries in it_rfq
where EVRTN eq it_rfq-ebeln.
Select werks
lifnr
matnr
knumh
from a363
into table it_a363
for all entries in it_rfq
where werks eq it_rfq-werks
and lifnr eq it_rfq-lifnr
and matnr eq it_rfq-matnr.
endform. " get_connum
*& Form get_prices
Getting the Pricing Details from Konp Table.
form get_prices .
if not it_a016[] is initial.
select knumh
kschl
kbetr
from konp
into table it_pr_details
for all entries in it_a016
where knumh eq it_a016-knumh.
endif.
if not it_a363[] is initial.
select knumh
kschl
kbetr
from konp
appending table it_pr_details
for all entries in it_a016
where knumh eq it_a016-knumh.
endif.
endform. " get_prices
*& Form pop_final_tab
Populating the Final Internal table for Report
form pop_final_tab .
data : l_subrc like sy-subrc.
sort it_a016 by ebeln.
loop at it_rfq.
clear l_subrc.
read table it_a016 with key ebeln = it_rfq-ebeln
binary search.
if sy-subrc eq 0.
loop at it_pr_details where knumh eq it_a016-knumh.
it_final-ebeln = it_rfq-ebeln.
it_final-lifnr = it_rfq-lifnr.
read table it_vendorname with
key lifnr = it_rfq-lifnr.
it_final-name1 = it_vendorname-name1.
case it_pr_details-kschl.
when 'PBOO'.
it_final-pb00 = it_pr_details-kbetr.
if it_pr_details-kbetr eq 0.
clear it_final.
continue.
endif.
when 'ZPAC'.
it_final-zpac = it_pr_details-kbetr.
when 'ZB00'.
it_final-ZB00 = it_pr_details-kbetr.
when 'ZIN1'.
it_final-ZIN1 = it_pr_details-kbetr.
endcase.
endloop.
else.
l_subrc = sy-subrc.
endif.
read table it_a363 with key lifnr = it_rfq-lifnr
werks = it_rfq-werks
matnr = it_rfq-matnr.
if sy-subrc eq 0.
loop at it_pr_details where knumh eq it_a016-knumh.
it_final-ebeln = it_rfq-ebeln.
it_final-lifnr = it_rfq-lifnr.
read table it_vendorname with
key lifnr = it_rfq-lifnr.
it_final-name1 = it_vendorname-name1.
case it_pr_details-kschl.
when 'JEC1'.
it_final-JEC1 = it_pr_details-kbetr.
when 'JHX1'.
it_final-JHX1 = it_pr_details-kbetr.
when 'JMOP'.
it_final-JMOP = it_pr_details-kbetr.
when 'JMX1'.
it_final-JMX1 = it_pr_details-kbetr.
when 'JMX3'.
it_final-JMX3 = it_pr_details-kbetr.
when 'JSEP'.
it_final-JSEP = it_pr_details-kbetr.
when 'JVRD'.
it_final-JVRD = it_pr_details-kbetr.
endcase.
endloop.
elseif l_subrc ne 0.
continue.
endif.
append it_final.
clear it_final.
endloop.
endform. " pop_final_tab
*& Form pop_vendor_name
Populate Vendor Name
form pop_vendor_name .
if not it_rfq[] is initial.
Select lifnr
name1
from lfa1
into table it_vendorname
where lifnr eq it_rfq-lifnr.
endif.
<i><b>
"Plz dnt Forget to reward points"</b></i>
Regards,
Mandeep.

Similar Messages

  • Receiving an error in Print Report.vi in the Text Report Example.vi

    I am trying to run the "Text Report Example.vi" example under Windows XP Professional, MS Office 2003 and LV 6.1 and I get an error in the "Print Report.vi" saying that there is an unknown error (-2147452567). I have searched through the Knowledgebase and found a couple of things to try but none of them worked (namely this solution). Is there a known problem with Office 2003 and LabVIEW 6.1? I can run the same example on another computer that is running the same setup except that it has MS Office 2002 SP3 and it prints properly.

    There are several reasons why you could get this error. There was a problem with a DLL change that caused either an invoke node or a property node (sorry, I don't remember which) to need to be replaced or relinked. I think that this is the problem that you linked to.
    The other potential problem is that you could be calling a font that you have on one of the computers but not on the other.
    I hope that this helps,
    Bob Young
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • Identifying standard process & GAPS in QADB with REPORT example.

    Hi all,
    can anyone help me, what is QADB n how to identify GAPS in QADB n standard process with an report example? what is standard process in QADB?can we convert GAPS into standard process?
    <b>PLZ ANSWER REUIRED URGENTLY.....</b>
    Regards,
    Arundhathi

    Hi ,
    This currently seems like a bug , we have encountered this too.
    work around is you have to delete the rtf files from server Siebel\client\temp\XMLP directory and upload them again so that they are not cached any more.
    same on dedicated client you may have to delete relavant files form siebel\client\temp\xmlp directory and upload again.
    Thanks,
    Vamsi

  • Crystal Reports 2008 Customer Details Aging Report Example / Sample

    Hello!
    Anyone willing to send me a customer details aging report example for SAP Business One? (or give me a link?)
    I've been looking all over and have found examples of things, but not specifically for B1.
    Anything would be useful I am pretty flexible, I just want some bones to work from.  In return I can send you back what I build from it.
    Thanks in advance,
    Mike

    Hi Mike, you might have better  replies if you post your question to the B1 forum. They would be familiar with the B1 functioanlity and data sources.

  • New Blog Post - Transposed Report Example

    Hello,
    For anyone that's interested, I just published a blog entry on creating "Transposed Reports".
    http://www.danielmcghan.us/2009/11/transposed-report-example.html
    Regards,
    Dan
    http://danielmcghan.us
    http://www.skillbuilders.com

    While putting CSS into the body tag seems to work without issue I would prefer to put it into the head in its proper place.
    I am using this Javascript to do that:
    var ele = document.createElement("style");
    ele.type = "text/css";
    ele.innerHTML = "CSS CODE"; // Replace with CSS code.
    document.head.appendChild(ele);
    It works in all but IE8 and below (go figure). For IE8 I just left it in the body using IE conditional comments.
    Now if only we could come up with a bit of sorcery for the meta tags! 
    kenneth_rapp said:
    But every single bit of html and css and javascript rendered by our sites ought to be available to edit as we see fit, including what gets put out by the modules.
    I could not agree more. While I can see restricting this to some level there is much more I wish we could have access to and edit.
    Thanks for the Wizardly advice. =>

  • Revised "Generate Excel Report" Example

    I recently answered a question from a Forum user about an error encountered when trying to generate an Excel spreadsheet with the Report Generation Toolkit.  I thought that the example code he was using was "unusual" and overly complex, and just discovered that it was, in fact, the LabVIEW 2013 "Generate Report From Template (Excel)" Example.
    In the spirit of trying to demonstrate how nice the new(er) "Easy Excel" functions are, I rewrote this Example, and have attached it here.  While doing so, I discovered (and have reported to NI) a "bug/feature" of the Excel Insert Graph function.  One of its parameters allows you to position the graph by specifying the Left and Top edges (Left would be the Excel Column, Top would be the Excel Row).  The only problem is that the parameters are reversed -- to put the graph on Row 1, Column G, you specify (0, 6), not (6, 0).  Oops ... 
    Solved!
    Go to Solution.

    Here is a Snippet, in LabVIEW 2012, of the Excel Demo (the Revised Generate Excel Report Example).  If you have LabVIEW 2012 or more recent, you should be able to drag this into a blank Block Diagram and have the VI "magically" created.  If you have an earlier version of LabVIEW, you can at least see a picture of all the VIs and wiring here, and can open LabVIEW and "build it yourself".  There are no Case statements, so nothing is hidden from view.  In case the image is too small, I also attached the PNG file, which you should be able to open with an Image Viewer and potentially print out for yourself.
    Attachments:
    Excel Demo.png ‏108 KB

  • XML PUBLISHER REPORT EXAMPLEs

    Hi,
    Can any body send me the examples for creating RTF's in Oracle Applications.
    Please send me the details in this form:
    1) Business Requirement
    2) PRESENT RTF: If anything needs to be modified or updated.
    3) If we need to develop a new RTF, please mention how the output will look like along with the validations
    Please send me ASAP.
    Thanks in Advance

    Hi,
    Please refer to:
    Oracle XML Publisher User's Guide
    http://download-uk.oracle.com/docs/cd/B25516_14/current/acrobat/115xdoug.zip
    Oracle XML Publisher Report Designer's Guide
    http://download.oracle.com/docs/cd/B40089_10/current/acrobat/120xdorg.pdf
    Oracle XML Publisher Administration and Developer's Guide
    http://download.oracle.com/docs/cd/B40089_10/current/acrobat/120xdoig.pdf
    XML Tutorial
    http://www.oracle.com/technology/obe/obe_bi/xmlp_ebiz/index.html
    Regards,
    Hussein

  • Issue with Carl's Auto Updating Report example

    Hi. I'm trying to figure out how to implement PPR templates into my application. I've looked at Carl's example and thought downloading it to my test workspace and checking it out would be the best way forward. I've created the table per the instructions and am getting an odd error when I try to set the refresh rate:
    Line: 23
    Char: 3
    Error: 'null' is null or not an object
    This is a link to my report:
    http://htmldb.oracle.com/pls/otn/f?p=43812:40:12406459224965513538::NO:RP::
    Does anyone have any tips, common errors, that I can check out?
    Thanks a bunch. Len

    OK. So I see from a previous post that region_id does not have a variable option. To find the region ID if I look at the source code for the page I use the Rnnnnn listed? Then go to the 'Edit Attributes' of the page and change the number in the HTML Header section?

  • Really working Crosstab / Pivot Report example

    try it here:
    http://apex.oracle.com/pls/otn/f?p=20819:2
    Details:
    Create Report - based on PL/SQL ************************************
    DECLARE
    l_return_value VARCHAR2(32000) DEFAULT NULL;
    BEGIN
    l_return_value := PK_PIVOT.PivotSQL('SELECT * FROM TESTDATA', 'country,city,product','FDate', 'SUM', 'amount', nvl(:P2_PAGENUMBER,1) );
    --:P2_PAGENUMBER - Textbox above the report
    RETURN l_return_value;
    END;
    Create Supporting PACKAGE PK_PIVOT ************************************
    create or replace
    PACKAGE PK_PIVOT
    --AUTHID CURRENT_USER
    as
    --code based on famous Tom Kyte's books examples
    --but not copy-pasted from there
    type refcursor is ref cursor;
    type array is table of varchar2(30);
    type array_varchar2 is table of varchar2(255);
    Function PivotSQL (
    p_query in varchar2, --query string which returns data you want to make crosstab on
    p_rowfields in varchar2, --row fields separated by comma
    p_columnfield in varchar2, --one column field
    p_function in varchar2,--aggregate function ('SUM','AVG','COUNT','MIN','MAX')
    p_functionfield in varchar2 --field for aggregate function
    , p_page in number default 1--page from right to left (not all columns can be shown on one page)
    ) return varchar2; --returns query text for crosstab
    example:
    SELECT PK_CROSSTAB.PivotSQL('SELECT * FROM scott.emp','empno','job','sum','sal') FROM SYS.DUAL
    SELECT deptno
    ,sum(DECODE(job,'BOSS',sal,null)) as BOSS
    ,sum(DECODE(job,'FIN',sal,null)) as FIN
    ,sum(DECODE(job,'HR',sal,null)) as HR
    ,sum(DECODE(job,'Sales',sal,null)) as Sales
    FROM (SELECT * FROM scott.emp)
    GROUP BY deptno
    ORDER BY deptno
    end;
    create or replace PACKAGE BODY PK_PIVOT as
    Procedure FormatParam (var_data in varchar2, var_type in number, out_decode in out varchar2, out_col in out varchar2);
    Function PivotSQL (
    p_query in varchar2,--
    p_rowfields in varchar2,
    p_columnfield in varchar2,
    p_function in varchar2,
    p_functionfield in varchar2,
    p_page in number default 1
    ) return varchar2
    as
    l_max_cols number;
    l_query long;
    l_columnnames array_varchar2 :=array_varchar2();
    l_cursor refcursor;
    tmp long;
    --dbms_sql types:
    l_theCursor integer default dbms_sql.open_cursor;--get col types
    l_colCnt number default 0;
    l_descTbl dbms_sql.desc_tab;
    col_num number;
    l_columnfieldtype number;
    --decode names   
    o_decode varchar2(50);
    o_col varchar2(50);
    l_cols_per_page number := 50;
    l_begcol number;
    l_endcol number;
    begin
    --check params
    IF instr(p_columnfield,',')>0 THEN
    raise_application_error (-20001, 'Can use only 1 columnfield');
    ELSIF upper(p_function) not in ('SUM','AVG','COUNT','MIN','MAX') THEN
    raise_application_error (-20001, 'Can use only standard aggregate functions');
    END IF;
    /* analyse query */
    dbms_sql.parse(l_theCursor, p_query, dbms_sql.native);
    /* get described columns for analysed query */
    dbms_sql.describe_columns(l_theCursor, l_colCnt, l_descTbl);
    /* Tom Kyte:
    * Following loop could simply be for j in 1..col_cnt loop.
    * Here we are simply illustrating some of the PL/SQL table
    * features.
    col_num := l_descTbl.first;
    loop
    exit when (col_num is null);
    --find column field type
    if l_descTbl(col_num).col_name=upper(p_columnfield) then
    l_columnfieldtype:=l_descTbl(col_num).col_type;
    --dbms_output.put_line('Col#:'||col_num||' Name:'||l_descTbl(col_num).col_name||' Type:'||l_descTbl(col_num).col_type);
    end if;
    col_num := l_descTbl.next(col_num);
    end loop;
    --return 'test ok';
    -- figure out the column names we must support for horizontal cross
    if (p_columnfield is not null) then
    tmp:='SELECT DISTINCT ' || p_columnfield || ' FROM (' || p_query || ') ORDER BY ' || p_columnfield;
    -- dbms_output.put_line('columns cursor:'||tmp);
    OPEN l_cursor for tmp;
    LOOP
    l_columnnames.EXTEND;
    FETCH l_cursor into l_columnnames(l_columnnames.COUNT);
    --dbms_output.put_line('l_columnnames:'||l_columnnames(l_columnnames.COUNT));
    EXIT WHEN l_cursor%NOTFOUND;
    END LOOP;
    CLOSE l_cursor;
    -- execute immediate 'SELECT DISTINCT ' || p_columnfield || ' FROM (' || p_query || ')' bulk collect into l_columnnames ;
    else
    raise_application_error (-20001, 'Cannot figure out max cols');
    end if;
    -- Now, construct the query that can answer the question for us...
    l_query := 'SELECT ' || p_rowfields ;
    l_begcol:=l_cols_per_page*(p_page-1)+1;
    l_endcol:=l_cols_per_page*p_page;
    if l_begcol>l_columnnames.count-1 then
    l_begcol := l_columnnames.count-1;
    end if;
    if l_endcol>l_columnnames.count-1 then
    l_endcol := l_columnnames.count-1;
    end if;
    --for i in  1 .. l_columnnames.count-1 loop
    for i in l_begcol..l_endcol loop
    FormatParam(l_columnnames(i),l_columnfieldtype, o_decode, o_col);--format params
    l_query := l_query || ',' || p_function || '(DECODE(' || p_columnfield || ',' || o_decode || ','|| p_functionfield ||',null)) as "'|| o_col ||'" ' ; --" для строк с пробелами
    end loop;
    l_query := l_query || ' FROM (' || p_query || ')';
    l_query := l_query || ' GROUP BY ' || p_rowfields || ' ORDER BY ' || p_rowfields;
    /* close cursor */
    dbms_sql.close_cursor(l_theCursor);
    return l_query;
    EXCEPTION
    WHEN OTHERS THEN
    /* close cursor */
    dbms_sql.close_cursor(l_theCursor);
    raise_application_error (-20001,'Error in PivotSQL:' || SQLERRM);
    end;
    --=========================
    Procedure FormatParam (var_data in varchar2, var_type in number, out_decode in out varchar2, out_col in out varchar2)
    --format parameter based on its type - for PivotSQL
    --get parameter and its type
    -- return strings for decode function and column name
    /* dbms_sql.describe_columns types:
    DATE Type:12
    Varchar2 Type:1
    Number Type:2
    IS
    BEGIN
    IF var_data is null THEN
    out_decode:='NULL';
    out_col:='==NULL==';
    ELSIF var_type = 1 THEN -- Varchar2
    out_decode:=''''||var_data||'''';--add quotes
    out_col:=substr(var_data,1,30);
    ELSIF var_type = 2 THEN --Number
    out_decode:=var_data;--do nothing
    out_col:=substr(var_data,1,30);
    ELSIF var_type = 12 THEN --DATE
    out_decode:='to_date('''||var_data||''')';--format as internal date
    out_col:=to_char(to_date(var_data),'YYYY-MM-DD');
    ELSE
    out_decode:='== UNDEFINED TYPE:'||var_type;
    out_col:='== UNDEFINED TYPE';
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    raise_application_error (-20001,'Error in FormatParam:' || SQLERRM);
    END;
    end;

    Hi,
    Thank you for providing such an excellent piece of code. I have used it and it works like a charm. However I faced a problem today and needed your help.
    I am executing this code using the following code :
    SELECT PK_PIVOT.PivotSQL('SELECT sfid.bill_date ,cust.customer_name FROM split_file_detail sfd,customer cust,split_file_invoice_details sfid where sfd.CUSTOMER_SYS_ID=cust.CUSTOMER_SYS_ID and sfid.SPLIT_FILE_DETAIL_SYS_ID = sfd.SPLIT_FILE_DETAIL_SYS_ID'
    ,'cust.customer_name','bill_date','count','cust.customer_name') FROM SYS.DUAL
    Now when I do so I get the following error :
    ORA -20001 : Error in PivotSQL: ORA-06502 and ORA-06512.
    Now I guess the error maybe because:
    1. The p_query parameter is huge and the tmp long type is not able to hold the value.
    2. bill_date holds 200+ values and the ref_cursor is not able to handle it.
    I have tried breaking p_query down to some more bits but I face the problem when I concatenate them back together.
    Can you help me please?

  • Carl's Auto Updating Report example with Apex 3.0

    Hi,
    I'm try to develop a page very similar to Carls' "Auto Updating Report" page and been very new to Apex I find it very hard to work out all the things I need to do from the example pages.
    Is there anywhere I can download a sample application so I can explore the code through APEX to see how everything works and fits together.
    Any help would be most appreciated.
    Anthony

    Carl,
    Thanks I have it working.
    Just one more question is it possible to have two reports on same page to auto update?
    If I simply add another html_PPR_Report_Page with the second report_id I get an Error : "gNode is null or not an object". using IE.
    function mon_Refresh()
    setTimeout("mon_Refresh()",5000);
    html_PPR_Report_Page (null,'R1736701112358007',$x('r_R1736701112358007').getAttribute('htmldb:href'))
    works fine but
    function mon_Refresh()
    setTimeout("mon_Refresh()",5000);
    html_PPR_Report_Page (null,'R1736701112358007',$x('r_R1736701112358007').getAttribute('htmldb:href'))
    html_PPR_Report_Page (null,'R1738006943370690',$x('r_R1738006943370690').getAttribute('htmldb:href'))
    raises an error.
    Anthony

  • I need Jasper Report example

    Hi,
    I need example on how to generate Reports by using Jasper. So if any one having any link pls just send me.
    Thank you in advance

    For Creating Jasper Report u need to import these packages
    import net.sf.jasperreports.engine.JRException;
    import net.sf.jasperreports.engine.JasperCompileManager;
    import net.sf.jasperreports.engine.JasperFillManager;
    import net.sf.jasperreports.engine.JasperPrint;
    import net.sf.jasperreports.engine.JasperPrintManager;
    public boolean compileReport()
    try {
    JasperCompileManager.compileReportToFile("path of fileName.jrxml");
    catch (Exception e) {
    System.out.println("compile exception " + fileName + ", " + e);
    return false;
    return true;
    public JasperPrint fillReport()
    try {
    JasperPrint jasperPrint = JasperFillManager.fillReport("fileName.jasper", <parameters if u use any in Jasper Report Design else give null>, new JRFieldLevelAuditSource(data));
    return jasperPrint;
    } catch (JRException e) {
    return null;
    public void print(JasperPrint jasperPrint) {
    try {
    JasperPrintManager.printReport(jasperPrint, true);
    } catch (JRException e)
    e.printStackTrace();
    }

  • Stress test report example

    Hi guys,
    Anyone has examples about performance and stress tests reports that could provide?
    I’m starting our stress test and I will write a report, but I’m not sure how to do it and I would like to see an example before start.
    If you don’t mind, send me to [email protected]
    Thanks in advance,
    Ricardo.

    Sorry guys, but I mean a document and not SAP transactions

  • Drill through report examples/steps

    Hi Gurus
    I am trying to create report with Drill through functionalities. I want to know the steps to create report with drill through functionalities. I have understood the set up for Drill through but still not able to visualize  how to  use it in evdre() report.
    I will  appreciate if some one can send me steps for using drill through in a cell in evdre() report. may I request  with  example of Drill through in evdre report  please ?
    Thanks in advance
    SN

    Hi Satyanarayana,
    Please refer to page 26 on the below document:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70758bd3-8686-2b10-ea85-cc7c5052fe73?quicklink=index&overridelayout=true
    hope it helps.
    Regards,
    Raghu

  • Reports Examples!

    Hi Friends,
    Can someone send me some materials for manual report creation and i also want the example files for the document number B10602.
    This is a emergency request from my side please help me with this respect.
    Regards,
    Manoj

    Hi,
    Entire A-Z of oracle reports is detailed in the blog with examples
    http://oracleapps4u.blogspot.com/

  • Firefox keeps crashing, crash report example included.

    Hi, for the last two weeks, firefox has constantly been crashing at random intervals, or sometimes just giving me the spinning loading wheel and jamming up.
    I tried three antivirus software, Trend Micro Housecall, AVG, and malwarebytes. Malwarebytes found two trojan agents and got rid of them. Problem is, the crashing problem persists. I've uninstalled/reinstalled. I've tried running firefox in safe mode. I've tried removing/blocking extensions (I only use adblock plus anyway) I even tried running the full scans again - and nothing shows.
    Here is the latest crash report. They all claim the same problem: EXCEPTION_ACCESS_VIOLATION_WRITE (sometimes it says read)
    https://crash-stats.mozilla.com/report/index/68daa063-f70d-4d3f-a3ae-f4a582130808
    If anyone who knows what this report means could tell me/give me advice i would be very grateful. Thank you.
    (by the way, Norton came with the machine, but I use AVG instead, I've used firefox for a year and nothing has gone wrong with it until now)

    That crash appears to be most likely to occur after the computer wakes from sleeping, and to be a Microsoft issue. Until MS fix it you may need to avoid sleeping if you wish to prevent crashes.
    If Firefox continues to crash and NOT shortly after waking from sleeping pleas try to obtain more Firefox crash IDs
    # Navigate to '''''about:crashes''''' by typing that into the address bar as if it were a web location.
    # From the listing select a couple of the most recent Crash ID s and paste them into your next message.
    #*e.g. <nowiki> bp-68daa063-f70d-4d3f-a3ae-f4a582130808 </nowiki>

Maybe you are looking for

  • Drawing in wrong place

    Hello, I have a JFrame with a few text areas. When you click on text area a black border appears. and WHen you click it again, it dissappears. I am putting this code in mouseClicked() method. I am using g.drawRect to draw the border and to specify th

  • Lower than expected sound output from A100

    Hi. I have recently bought a Satellite A100 PSAA9E and have been pretty disappointed with the low sound output from it. It's currently set to the highest volume level and is nowhere near the level I would expect. Is this normal for this machine? All

  • Ken Burns Glitch

    I'm not really used to iMovie but I thought it would be easier to use Ken Burns than do it all in final cut. So I put in all the pictures and applied the effect to it and a notice comes up that says I don't have enough disk space and to empty the tra

  • Error while result recording

    Hi Friends, I have maintained a MIC as qualitative. I have maintained the selected set and codes for this. When i am trying to record results by QE51N i am getting an error "  Value can't be interp. as floating-point number or longer than 22 charac."

  • Tried to download Mountain Lion 10.8 upgrade but it failed even though my card has been charged

    I tried to download Mountain Lion upgrade from Lion but it failed even though my card has been charged