Help me to get the expected output for this procedure

Hi
i wrote a procedure in this way
create or replace PROCEDURE compare_data(tabname in varchar2 default 'VARE_PPP',current_version in integer default 258,previous_version in integer default 253)
is
TYPE table_type IS TABLE OF varchar2(4000)
INDEX BY BINARY_INTEGER;
t1 table_type ;
SUBTYPE max_varchar2_t IS VARCHAR2 (32767);
stmt_col_list max_varchar2_t;
stmt_row_val max_varchar2_t;
col_select_list max_varchar2_t := NULL;
col_list_tab1 max_varchar2_t := NULL;
col_list_tab2 max_varchar2_t := NULL;
col_list max_varchar2_t := NULL;
select_list_ver1 max_varchar2_t :=NULL;
select_list_ver2 max_varchar2_t := NULL;
type t_crs is ref cursor;
c_get_diff t_crs;
procedure get_header(tabname in varchar2) is
col_name varchar2(100);
cursor c_column_list is
select COLUMN_NAME from all_tab_columns WHERE table_name = tabname and column_name not in('VERSION','LAST_MODIFIED_TIMESTAMP','LAST_MODIFIED_USER') order by COLUMN_ID asc;
--stmt_col_list := 'select COLUMN_NAME from all_tab_columns WHERE table_name = '||tabname||' and column_name not like != '||temp1||' and column_name != '||temp2||' and column_name != '||temp3||' order by COLUMN_ID asc' ;
begin
col_select_list := 'tab1.version';
htp.tableheader('Version');
open c_column_list ; --for stmt_col_list;
loop
fetch c_column_list into col_name;
exit when c_column_list%notfound;
htp.tableheader(col_name);
if col_name not like 'LAST_MODIFIED_TIMESTAMP' or col_name not like 'LAST_MODIFIED_USER' then
if col_list_tab1 is null then
col_list_tab1 :='tab1.'||col_name;
col_list_tab2 :='tab2.'||col_name;
col_list := col_name;
elsif col_name not like '%END%' then
--dbms_output.put_line('deepak:'||g_columns (l_index).column_name);
col_list_tab1 :=
col_list_tab1 || '||' ||'tab1.'||col_name;
col_list_tab2 :=
col_list_tab2 || '||' ||'tab2.'||col_name;
col_list :=
col_list || ',' ||col_name;
end if;
col_select_list :=
col_select_list || ', ' ||'tab1.'||col_name;
end if;
end loop;
DBMS_OUTPUT.put_line('col_select_list:'||col_select_list);
DBMS_OUTPUT.put_line('col_list_tab1:'||col_list_tab1);
DBMS_OUTPUT.put_line('col_list_tab2:'||col_list_tab2);
DBMS_OUTPUT.put_line('col_list:'||col_list);
close c_column_list;
end get_header;
procedure get_difference(ver1 in integer,ver2 in integer) is
name_column varchar2(100) ;
begin
select_list_ver1 := 'SELECT '||col_list||' FROM '||tabname||' WHERE VERSION = '||current_version;
select_list_ver2 := 'SELECT '||col_list||' FROM '||tabname||' WHERE VERSION = '||previous_version;
stmt_row_val := 'select '||col_select_list||' from '||tabname||' tab1,('||select_list_ver1||' minus '||select_list_ver2||' ) tab2 where '||col_list_tab1||'='||col_list_tab2||' and tab1.version in ('||current_version||','||previous_version||')';
open c_get_diff for stmt_row_val;
loop
fetch c_get_diff bulk collect into t1;
for cnt in t1.first..t1.last
loop
htp.tabledata(t1(cnt));
dbms_output.put_line(t1(cnt));
end loop;
exit when c_get_diff%notfound;
end loop;
close c_get_diff;
end get_difference;
begin
htp.htmlopen;
htp.bodyopen;
htp.tableopen(cattributes=>'border="2",bordercolor="BLACK",width="60%",align="CENTER"');
htp.tablerowopen;
get_header(tabname);
htp.tableheader('Remark');
htp.tablerowclose;
htp.tablerowopen;
get_difference(current_version,previous_version);
htp.tabledata('New/Modified');
htp.tablerowclose;
htp.tablerowopen;
get_difference(previous_version,current_version);
htp.tabledata('Deleted');
htp.tablerowclose;
htp.bodyclose;
htp.htmlclose;
end compare_data;
no errors are there but i am not getting the proper result mine expected result is
253.00 TT Null 11/1/2006 12/31/2099 Y
258.00 NBK Null 11/1/2006 12/31/2099 Y
but i am getting
258
258
can anyone help me out,why i am not getting the expected result.
values which i am using in the query to execute dynamically are
col_select_list:tab1.version, tab1.PPP_WCC_TYPE, tab1.PPP_WCC_PREFIX_TYPE, tab1.PPP_START_DATE, tab1.PPP_END_DATE, tab1.PPP_INDICATOR
col_list_tab1:tab1.PPP_WCC_TYPE||tab1.PPP_WCC_PREFIX_TYPE||tab1.PPP_START_DATE||tab1.PPP_INDICATOR
col_list_tab2:tab2.PPP_WCC_TYPE||tab2.PPP_WCC_PREFIX_TYPE||tab2.PPP_START_DATE||tab2.PPP_INDICATOR
col_list:PPP_WCC_TYPE,PPP_WCC_PREFIX_TYPE,PPP_START_DATE,PPP_INDICATOR

I wish I knew your application !!!

Similar Messages

  • Can anyone help me with getting the best setting for me system

    can anyone help me with getting the best setting for me system on cpufan it says my temp is 38c but on corecentre it says 42c can anyone help get my system overclocked any more but keeping it stable as well thanx in advance for the help  

    my corecenter temp sometimes says im at 60 cel at idle....and i have the most recent update...i would rely on speedfan for temp control...core center seems to always read 3 degrees higher than speedfan on my pc....
    i wouldnt be too concerned...those temps are pretty low to begin with.

  • Getting error "Unable to find the published output for this request"

    1. Created a Data Template
    2. Created a Data Definition using the above Data Template
    3. Created a RTF template and registered the same in XML Publisher Administrator
    4. Created Concurrent program for the data template using 'XDODTEXE' as executable
    5. Ran the above concurrent program and it completed successfully.
    6. When I click the 'View Output' button in Oracle applications it says "Unable to find the published output for this request".
    7. I can see the XML output in the $APPLCSF/out directory.
    8. Also the short name for concurrent program and data definition code and template code are same.
    I assume the Concurrent Manager’s Output Post Processor is not able to setup the layout template to the generated XML.
    Am I missing something here. Can anyone come across this issue.
    I have the XML publisher 5.6.1 patch on the DB. Do I need to take 5.6.2 Patch to fix this issue.
    Thanks

    I tried again after applying XDO 5.6.2. I am still not able to see the output.
    Here is the logfile info. There is no mention of OPP or PUBLISH section:
    XDO Data Engine ver 1.0
    Resp: 21540
    Org ID : 101
    Request ID: 348042
    All Parameters: p_batch_id=7169
    Data Template Code: AUDRPT
    Data Template Application Short Name: XXCUST
    Debug Flag: Y
    {p_batch_id=7169}
    Calling XDO Data Engine...
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    ------------- 1) PRINT   -------------
    Printing output file.
    Request ID : 348042
    Number of copies : 0
    Printer : noprint
    Finished executing request completion options.

  • Unable to find the published output for this request - problem

    Hi ,
    In the invoice Payables module i modified a report to be open in xml and not text as it was. The program name of this report iis Print Invoice Notice. I did same thing we normally do to register a xml report in ebs.
    The problem is that when i run the report from the invoice form and from the button wich call this raport i get this error:
    Unable to find the published output for this request.
    No output file exist for the request
    and if i see the log file i get this message :
    Arguments
    P_INVOICE_ID='10243'
    APPLLCSP Environment Variable set to :
    XML_REPORTS_XENVIRONMENT is :
    +/oracle/prodora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb+
    XENVIRONMENT is set to  /oracle/prodora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    AMERICAN_ALBANIA.UTF8
    +' '+
    REP-3000: Internal error starting Oracle Toolkit.
    Report Builder: Release 6.0.8.27.0 - Production on Fri Mar 27 02:30:46 2009
    +(c) Copyright 1999 Oracle Corporation. All rights reserved.+
    The thing is that if i run this report from Other ->Request -> Run of the same module this raport runs correctly
    And if i change the output of my report (From concurrent manager) to text its open correctly even from there where i want to open it.
    Can anyone give me any sugestion why i get this error while i try to open this xml publisher report from a button in a form in application?
    PS: i am using ebs 11.5 version
    Thanks in advance,
    Best regards

    Hi,
    REP-3000: Internal error starting Oracle ToolkitThis errors was discussed many times before in this thread, so please search for REP-3000 and fix this error first ( [REP-3000|http://forums.oracle.com/forums/search.jspa?threadID=&q=REP-3000&objID=c84&dateRange=all&userID=&numResults=15] )
    Regards,
    Hussein

  • The bookmarks toolbar is there but has no item buttons on it. How do I get the items back for this toolbar? Also would like to know if the toolbars can be put on the same line to make more room on the page (drag & drop) ??

    The bookmarks toolbar is there but has no item buttons on it. How do I get the items back for this toolbar?
    Also would like to know if the toolbar can be put on the same line to make more room on the page (drag & drop) ?? Like the menu & bookmarks toolbar could/should fit on same line. This would add more page view...
    Floyd Perry
    Thanks

    Check that you still have the "Bookmarks Toolbar items" placed on the Bookmarks Toolbar
    * Make sure that you have the "Bookmarks Toolbar" visible: "View > Toolbars"
    * Check in "View > Toolbars > Customize" that the "Bookmarks Toolbar items" is on the Bookmarks Toolbar
    * If the "Bookmarks Toolbar items" is not on the Bookmarks Toolbar then drag it back from the Customize window onto the Bookmarks Toolbar
    * If you do not see the "Bookmarks Toolbar items" then click the "Restore Default Set" button
    You can only move the content from a toolbar onto other toolbars if all toolbars support that feature. You need to check that in the options of each toolbar.

  • Help require to get the XML output to design template- JDE

    Hi Friends,
    I am asking this question from JDE perspective.I want to design XMLP Template for R40572 Check Printing.
    When I upload an blank template and after attaching RD, When ever I initiate a check from P04572 Application.RThe Write Row exit will lead to check printing which in turn will call a batch R04571 and this batch will call R04572(Which I require the XML output) since it is the second report and we cant direct it to local server I am not able to get the XML output..
    Another think is since its running in server i think its not taking the RD modification we done in loacl because it always fires PDF .

    Hi,
    I assume you're Using XMPOSA for generating the files locally. What I suggest is, you set the application to run with the report definition by default. That way, even when it is called, it will be called along with the report definition. You can take the resultant XML file from P95630
    hope this helps,
    -Domnic

  • Not getting the expected output in report, run throughapps

    hi,
    when i run the report through apps, there are some records missing. But, i executed the same query in TOAD, which is used in the data model of the report, and i got the expected output. But, the same, when run through apps, not giving the result.
    Can anybody please help me in this regard?
    Thanks,
    maschender

    You should probably ask in
    PL/SQL
    Note: Make Sure you post your table structure, your sample query and expected output.

  • What does it mean when you get the notification certificate for this server is invalid

    What does the following mean -the certificate for this server is invalid?

    Hi, Knaresborough. 
    I would recommend checking the date and time on the computer side as this can be the cause of the issue if not set correctly.  However, here are some helpful troubleshooting articles if the issue persists. 
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    iTunes: Advanced iTunes Store troubleshooting
    http://support.apple.com/kb/TS3297
    Cheers,
    Jason H. 

  • I have a digital copy of harry potter and the daethly hallows part 1 on my pc and ipod touch, is it possible to get the iTunes extras for this movie without buying it off iTunes?

    is there any way of helping me out please

    There is no limit to the number of iPods you can sync to one computer, iTunes library, or account. 
    You might want to create a seperate iTunes library for him, perhaps on another user account on the system and move all of his Jazz music over to that new library.  Once you have all of his music moved over to his own library, remove it from your own and then resync both of your iPods to clear his music off.  This is just one way to do it.
    If that was a bit confusing, take a look at this article for a few ways to manage multiple iPods with one computer.
    How to use multiple iPods, iPads, or iPhones with one computer
    B-rock

  • Can we get the raw materials for a classified Material from MSEG table?

    Hi All,
    Can we get the raw materials for a classified Material from MSEG table using Order number?
    If yes How we can find it out for Past month only? As well how we can get the std price for this raw material.
    Please help me out,
    Thanks,
    Ravi

    Field STPRS (Standard price) From Table MBEW.
    Kanagaraja L

  • How to get the .class file for the extended Controller .java file

    Hi,
    I did the below steps.
    1. Created New OAWorkspace
    2. Created New project
    3. Imported the page .xml file
    4. Added new .java file by extending the controller class
    5. Added code in the .java file.
    6. Ran the .xml file
    As I copied all the folders from Unix box, the page was opened.
    But My question was where can I see the .class file the extended controller. It's a .java file. How to compile and get the .class file for this .java file. If I get this .class file, I can go to the page and click the personlize page. and change the Controller name to the new path by ftp ing the new class to the cust.oracle.apps.pos.changeorder.webiui.
    Please let me know how to create the .class file.
    Thanks,
    HP

    All are Java files are stored in JDEV_INSTALL_DIR:\jdevhome\jdev\myprojects\
    In your case the path java would be
    JDEV_INSTALL_DIR:\jdevhome\jdev\ myprojects \cust\oracle\apps\pos\changeorder\webui\
    AND
    Once you compile the java file in Jdeveloper, Class files get generated @ below path
    In your case the path of class would be
    JDEV_INSTALL_DIR:\jdevhome\jdev\ myclasses \cust\oracle\apps\pos\changeorder\webui\
    Duplicate Thread-
    Thanks
    --Anil
    http://oracleanil.blogspot.com/

  • The factory profile for this display could not be found

    Just received a new (mid-2012) macbook air (13"). Started it up from time machine from my old macbook pro.
    The new screen seemed a bit blue so I thought I'd calibrate the display. But I don't seem to be able to. I don't get the Display Calibrator Assistant. I just get 'The factory profile for this display could not be found'. Please help if you can?

    Thanks for the feedback.
    With Pacifist, a search should show everything in a separate search results window. That feature might only be available in the paid mode. If you're reinstalling once a month, you might reconsider how you're using the machine. If you made frequent bootable backups/clones to an ext FireWire HD and also did a Time Machine backup to another disk/volume/partition, you'd probably minimize doing that. I haven't done an A&I installation but once the past six years. That doesn't include purposeful ones done while beta-testing Panther, Tiger, and Leopard.
    See these for other tips on keeping your installation flawless:
    Mac Maintenance Quick Assist,
    Mac OS X speed FAQ,
    Myths of required versus not required maintenance for Mac OS X,
    Macintosh OS X Routine Maintenance
    Essential Mac Maintenance: Get set up
    Essential Mac Maintenance: Rev up your routines,
    Speeding up, and
    Maintaining OS X for information.

  • I have problems in the initiation of the Encore process when opening presents the following error message : "Encore CS6 Cannot Run in Non-Royalty Serialized".... What is the best solution for this problem ?

    Help Me.
    What is the best solution for this problem ?

    Encore is activated when you activate Premiere Pro... so, as Stan asked, how did you install P-Pro?
    Ask for serial number http://forums.adobe.com/thread/1234635 has a FAQ link
    -and a fix for Encore http://forums.adobe.com/thread/1421765?tstart=0 in reply #7
    -plus more Encore http://helpx.adobe.com/encore/kb/cant-write-image-fie-larger1.html

  • The digital signature for this package is incorrect.

    im trying to do a software update and i get    The digital signature for this package is incorrect. The package may have been tampered with or corrupted since being signed by “Apple”. how do i fix it?

    Are you using Software Update, or direct download?
    Which exact one is it?

  • HT1386 i have an iphone 4s. Im getting the iphone 5s for christmas, but i do  not have my phone backed up, and my phone is not working and my screen is covered with blue lines. I need help.

    My iphone is not working, i was planning on getting the iphone 5s for christmas, but i do not have my phone backed up on itunes. On my screen are these blue lines across on my screen, and i cant see anthing and i do not know what to do. I want to back up my phone but i cant see my screen to back it up. I need help badly. Thanks apple hope you can help me in this matter.

    You wouldn't need to see the screen to backup unless you have a passcode on the device. Is that the case? You should be able to plug the device into the computer with iTunes and just select backup now.

Maybe you are looking for

  • CallManager Express TCL Script issue

    Hi, I'm having issues trying to get an AA script working on a CME 4.0 system. What I want to do is quite simple, i just want to play a message to callers and that's it. When I dial the pilot, the call just drops and I get the following error when deb

  • How to vote, add to watch list or comment on a bug in the Java Bug Database

    Sorry, could not fine a better place where to post this question. I'm successfully logged-in but I cannot add a particular bug to my bug watch list, comment on it or vote for it (ok, here I may have already used all my 3 votes but I could also not fi

  • Address Book won't load

    I have a G4 Dual Processor Power Mac running 10.4.8. The Address Book suddenly stopped working. When I click on the icon, it looks like it wants to load, but doesn't. If I try to access the Address Book through Mail, it caused Mail to quit. I've thro

  • How to add "return link" when integrate with other web pages

    I integrate the BI charts use GO url like: http://host:9704/analytics/saw.dll?Go&Path=/Shared/Test/SB2 But when drill down by click the pie chart, we can not got the "return" link. The user must refresh the page to drill up? It is not user friendly.

  • Integrating Presence with multiple AD/Exchange Domains

    We have a single CUCM cluster that support several organizations.  Some of these organizations want to implement CUPS with integration with their Exchange Servers.  Each organization has their own, seperate AD Tree and Exchange server (some integrate