In Reports6i is "srw.do_sql" still applicable?

Hi guys,
I just want to know if in Oracle Reports6i the "srw.do_sql" still applicable? In report trigger afterform i have problem with this line.
srw.do_sql('create table owner.tablename (column1 char(6), column2 (varchar2(50))');
Can anyone help me solve this problem. Thank you.
Regards,
Lala

I think you forgot to write tha actual owner name !!
or does your user has the rights for DDL statements ??
SRW.DO_SQL ('CREATE TABLE ' || :owner||'.'||:tname || ' (COL1 NUMBER
NOT NULL, COL2 NUMBER (10,2))' );
Edited by: Dora on Dec 7, 2009 12:42 PM

Similar Messages

  • Controling Date Parameters using SRW.DO_SQL in Reports!

    Hello Friends,
    I Need to Control the Date Parameters in Reports.
    (Dev/2000 rel2.1) In SRW.Do_SQL package
    For Example:
    'Insert into x
    select * from Y
    where Y.date between f_date and t_date';
    Here: X,Y are two tables
    f_date and t_date are two different date parameters in
    format (dd-mm-yyyy).
    NOTE: Without these two date parameters, the Query is working
    fine. But I need to Use these Parameters. Could You Please find a
    solution for Me. Thanks in advance.
    Regards
    Manoj (India)
    (Dt:18thNov'99)
    null

    Manoj (guest) wrote:
    : Hello Friends,
    : I Need to Control the Date Parameters in Reports.
    : (Dev/2000 rel2.1) In SRW.Do_SQL package
    : For Example:
    : 'Insert into x
    : select * from Y
    : where Y.date between f_date and t_date';
    : Here: X,Y are two tables
    : f_date and t_date are two different date parameters
    in
    : format (dd-mm-yyyy).
    : NOTE: Without these two date parameters, the Query is working
    : fine. But I need to Use these Parameters. Could You Please
    find a
    : solution for Me. Thanks in advance.
    : Regards
    : Manoj (India)
    : (Dt:18thNov'99)
    Hi Manoj
    your goal is to supply all three as dates (y.date, f_date,
    t_date). if some of them are not date but char, varchar, ...
    then use to_date conversion function with proper format mask.
    hope this helps.
    null

  • Question about SRW.DO_SQL

    This is my problem..
    I cannot insert a record when I run the report.
    I used the before report trigger.
    Please help. What do you think is the problem?
    Thanks. Really appreciate all the help.
    function BeforeReport return boolean is
    begin
    srw.do_sql('CREATE table RUNREPORT_VLC
         (DATE_RUN DATE,
         USER_RUN VARCHAR2(10),
         COMMENTS VARCHAR2(80))');                              
    srw.do_sql('INSERT INTO RUNREPORT_VLC (DATE_RUN,USER_RUN,COMMENTS)
         VALUES(SYSDATE,USER,'STARTING POINT')');
    commit;
    return (TRUE);
    EXCEPTION
    WHEN SRW.DO_SQL_FAILURE then
         srw.message(100,'Table already exist!');
         raise srw.program_abort;     
    end;
    ERROR
    Line 9, column 30
    Encountered the symbol "STARTING" when expecting one of the following:
    .(),*@%&|=.+</> in mod not range rem =>..
    an exponent (**)<>or!=or~=>=<=<> and or like between
    using is null is not || is dangling

    I think its because the entire doSQL clause is a string, and when you type in 'STARTING VALUES', Oracle thinks you are ending the string.
    You need to put STARTING VALUES in 2 single quotes on each side. Do this for each string inside a string.
    IE: (note 2 single quotes, not 1 double quote)
    ....''STARTING POINT''

  • How to use nvl to parameter in SRW.DO_SQL  in oracle report

    Hi all,
    I am creating view runtime where i want to pass parameter to which i need to handle NVL
    below is my code
    SRW.DO_SQL('create view '||view_name11||' as
    select moqv.subinventory_code subinv,
    moqv.inventory_item_id item_id,
    moqv.item_cost item_cost,
    0 source_type1,
    0 source_type2,
    0 source_type3,
    0 source_type4,
    0 source_type5,
    0 other,
    --decode('||selection||',1,sum(transaction_quantity),sum(transaction_quantity * NVL(moqv.item_cost,0)))                           cur_qty_val,
    sum(transaction_quantity) cur_qty,
    sum(transaction_quantity) target_qty,
    moqv.organization_id
    from mtl_onhand_qty_cost_v moqv
    where moqv.organization_id = ''nvl'||'('||var_org||','||'moqv.organization_id'||')''
    group by moqv.subinventory_code, moqv.inventory_item_id, moqv.item_cost' );
    thanks in advance

    And your problem is?
    I see a lot of quotes, so I guess that is your problem. Just fix it with the right amount of quotes.

  • Report6i is getting hanged when i am using truncate command in srw.do_sql

    Hi All,
    I am using Reports 6.0.8.18.0 and oracle 9.2.0.1 on Windows XP with SP1.
    I am having a report in which i have used "truncate table <tablename>" command using SRW.do_sql command. some times report is getting hanged and some times it is giving an error as given below
    18:26:52 ERR REP-1425: 'afterpform': Error running DO_SQL package - 'Error parsing the SQL statement.
    ORA-04021: timeout occurred while waiting to lock object <object name >
    When i checked with the Oracle 8.1.7 database it is working fine.
    is there any patches are requried at database side ?
    Can any body help me in this.
    Regards,
    Gouri

    First: you should get a new keyboard. Seems your shift-key is stuck.
    Second: A header of a post is a header and not for a summary of your question
    Third: This is the forum for the tool SQL Developer. Please mark this question as answered and post again in Forms
    Forth: When you expect an answer, the least would be to include the errormessage and your forms version.
    Regards
    Marcus

  • SRW.DO_SQL

    Hi to everyone:
    When I generate a report. What can I do to avoid the creation of the following line?
    SRW.DO_SQL('alter session set NLS_DATE_FORMAT=''YYYY/MM/DD HH24:MI:SS''');

    In the module definition of report, open the "Windows" branch to display the defined Window for report. In this definition you can create a "BeforeReport" event in "Application Logic/Events" branch. In the event creation wizard you can override the preset logic that causes generation of the line you want to omit.

  • SRW.DO_SQL PROBLEM

    Hi All,
    Can i use SRW.DO_SQL package like this :
    SRW.DO_SQL('@xyz.sql')
    if 'YES' then where shell i keep the sql file ? i mean in orant\bin directory or in the directory where my report file exists.
    And if 'No' then how can i run a batch file in my report ?
    TIA
    Manish

    hello,
    srw.do_sql ( sql_stmt varchar2 )
    so it only takes a string as parameter not a filename.
    regards,
    the oracle reports team

  • Hi! The cable for my ipod broke(6mos after purchase from the states). Is the warranty still applicable in the apple stores here in the Philippines?

    So my cousin bought me an ipod 5th gen and sent it here in the Philippines. 6 months later, the cable became unusable. It doesn't charge my ipod anymore. I'm wondering, since it wasn't bought at the apple store here in the Philippines, is the warranty still applicable? Can I still exchang my cable for a new one through the apple stores here in the country? Help!

    It is hardly Apple's fault that Epson can't/won't update their driver, but at least Epson suggest that you use the Gutenprint driver, which in any case is far better that what Epson offer.
    You can get it here:
    http://gimp-print.sourceforge.net/
    You can download the latest version from here:
    http://sourceforge.net/projects/gimp-print/
    Have you downloaded the recent Apple update to Epson drivers?
    http://support.apple.com/kb/DL1398

  • PB G4 Battery Exchange - Still Applicable?

    Hi everyone.
    My wife has a 12" Powerbook G4 that she purchased in America in 2005. After that she got busy travelling internationally and missed the last battery recall.
    I've checked the serial numbers with the Battery Program page and the page says the computer and battery are still eligible. But when I call a Local Service Provider here in Malaysia, they inform me that the computer is already out of warranty and I'll have to pay for a new battery.
    So I'm confused. If warranty is a prerequisite for eligibility, shouldn't the Battery Program page just tell me that my wife's computer is no longer eligible?
    Thanks and regards.

    One of the Discussions hosts has confirmed for me that the exchange program for 12" PB batteries is still in effect and should be honored. But he goes on to say,
    I honestly have no idea where I could direct the customer other than the AppleCare number for Malaysia, which is 1-800-803-638 per http://www.apple.com/support/contact/phone_contacts.html
    Whoever you talk to, you should reference the URL for the Battery Exchange Program for your Powerbook:
    https://depot.info.apple.com/batteryexchange/
    and point out that it says nothing whatsoever about needing warranty coverage and is a safety-related recall.
    If you speak with someone in person, such as another AASP, take along printouts of that page and of the "yes, you are eligible" message that you get when you enter your serial numbers into that page.
    Good luck.

  • REP-1425 report formula DO_SQL error putting value into column

    Hi all
    I have opened a report 2.5 in Oracle9i Reports Developer and, it converted ok. However, when I run the report (paper layout), the message
    rep-1425 report formula DO_SQL error putting value
    into column. Column may not be referenced by parameter
    triggers
    appears. There are several report level formula columns and corresponding placeholder columns that are the cause of this error. The formula has the following :
    SRW.DO_SQL('SELECT RPAD(''DAILY TABLE AUDIT REPORT'',60,''.'')||TO_CHAR(SYSDATE,''DD-MON-YYYY'') INTO :REPORT_TIT FROM DUAL');
    COMMIT;
    RETURN('');
    I can't work out what this error message really means as the column, report_tit is a placeholder column and, the formula column is not a parameter trigger!! The report_tit placeholder is used as a source for a layout field. I noticed that the layout field is defined as a placeholder column in the converted report but in the reports 2.5 version, it is defined as a layout field.
    I can do a work around by replacing the SRW.DO_SQL statement with a normal PL/SQL SELECT statement. However, I wonder if anyone else has had the same problem and, if anyone can help provide an answer as to what this error really means and, also, how I can retain the SRW.DO_SQL statement and/or an alternative work around to the one that I have described.
    Thanks.
    Therese Hughes
    Forest Products Commision

    Hi again
    The firewall proved to be the problem after all! The firewall set in Reports config-files is not used for WebServices, it has to be set within the stub:
    Properties prop = System.getProperties();
    prop.put("http.proxyHost","yourProxyServer");
    prop.put("http.proxyPort","youProxyServerPort");
    I inserted this in my java-code and after some problems (see below), restarting Report Builder turned the trick, the report works now.
    Cheers
    Tino
    Here there mail I set up before I found that restarting Report Builder helped:
    Thanks for your answer, putting in the proxy-settings actually helped some - the same error message is
    popping up, but instantly and not after 10 seconds like before:
    My proxy lines look like this, I also tried "http://proxy.ch.oracle.com", but "proxy.ch.oracle.com" proved to
    be the correct syntax:
    public Float getRate(String country1, String country2) throws Exception
    Float returnVal = null;
    Properties prop = System.getProperties();
    prop.put("http.proxyHost","proxy.ch.oracle.com");
    prop.put("http.proxyPort","8080");
    URL endpointURL = new URL(endpoint);
    Call call = new Call();
    I tested the new proxy-entries by disabling the proxy preference in JDeveloper, so I could verify the added
    proxy-lines in the code work - they do. If I change the proxy to some incorrect value like
    "proxyy.ch.oracle.com", they fail.
    After unsuccessfully trying recompile and re-import of Java classes, I rebuild the report from scratch and
    stumbled over the same problem. Now the question is, whether I'm still doing something wrong with the
    proxy or whether there is another problem after passing the firewall....
    -------------------------------------------------------------------------------------------------------------

  • Text coded with conditional build tags still showing up in TOC even if tag is "excluded"

    I am using TCS2, Windows XP.
    After creating a book in FM and coding with conditional build tags, I imported into RH. When I generate, I have the output tag set:
    NOT NoOUtput AND NOT Internal AND NOT Print - I want to generate my External, Online Help webhelp. And it works like a charm. Except that:
    In the TOC, I can still see headings for things that are "internal" - when I click on it, they don't go anywhere... but I don't want them to appear in the TOC!!
    It seems to be excluded from the index and the search. I am sure I am just missing a step or something...
    In looking through the forums I found this... http://forums.adobe.com/message/751847#751847 -- I don't know if it is still applicable since it seems to be referring to RH6 (which is a bit away from RH 8 that I am using)...
    Any help is appreciated!
    TIA,
    Adriana

    Hi Daggins,
    Thanks - that is good info to have. But as we all agree, that does take away from the point of single-sourcing.
    You aren't misunderstsanding exactly... I am doing all my conditional tagging in FM and it works like a charm in terms of the PDFs that I generate from FM, and even the conditionally tagged text in RH shows/hides correctly. The issue is I am also importing my index and TOC from FM... and even if I have an entire file in FM tagged as conditional (all the text is tagged as conditional, I don't know if you can tag a file as conditional), the file name as a heading it still appears in the RH TOC. There is no text... but in my view it shouldn't appear in the TOC either (it looks like just a broken link when I generate my online help) - this is not ideal.

  • Still can't generate an index ...

    I'm still unable to actually generate an index in CS3. I've read and tried all the suggestions I can find, particularly this thread
    http://www.adobeforums.com/webx?128@@.3c057e81
    and have adopted the method of converting all my separate book chapters into a single document and indexing that. That certainly helps the marking up process go more quickly and stops the crashing and any subsequent corruption. I've tried the trick of clicking 'preview' which does indeed order the entries properly so that in the palette I haven't got p. 135 before p. 2, and gets rid of the 'empty' entries.
    But the ****** things still won't generate. Ever the optimist, I try every time but all I get is a loaded cursor and the spinning pizza of death. I've gone away and left it thinking about it for an hour, but as I can't do anything else in InD while it's musing that really isn't practical.
    Is there anything I'm missing? Anything else I can try? At the moment, I'm having to create my index document, make a book out of the indexed document plus the index and then type every entry into the index by copying it from the palette.
    2 x 2.66 GHz Dual-Core Intel Mac, running 10.4.11, Indesign CS3 v. 5.0.2.

    Support says:
    Since you’re unable to generate PDF in RoboHelp 7, here
    are the possible
    troubleshooting steps that we could do:
    1. Make sure that you are already running on the latest
    version of
    RoboHelp 7 (7.0.2). To check, go to Help > About RoboHelp
    HTML. If
    you’re not running on 7.0.2 yet, please download the
    patch from the link
    below:
    http://www.adobe.com/support/robohelp/downloads.html
    2. Open Microsoft Word 2003. Go to Tools > Macro >
    Security and change
    Security Level to Low.
    3. Launch RoboHelp and generate PDF.
    4. Single Source Layouts Pod in RH, right click on Printed
    Documentation
    and choose New layout. Save the new layout and generate from
    there. See
    if you would still get the same behavior.
    5. If issue still persists, it’s possible that you have
    a corrupted
    project. Please delete the xpj and the cpd file of your
    project. For
    additional information about this, please refer to the link
    below:
    Opening a Corrupt HTML Help Project
    http://www.adobe.com/go/rb_34906
    The step for RH X5 is still applicable for RH7.
    Do you have administrator user account on your machine? Do
    you have any
    previous version of RoboHelp installed on the same machine?

  • On 9926 but still suffering the lock screen bug (KB3016725)

    How can I fix the lock screen bug on 9926? The update doesn't want to download on this version. Anyone have a direct link to the patch? Is the patch still applicable to 9926?
    TIA!

    According to KB Article :"To apply this update, you must have Windows 10 Technical Preview build 9879 installed."
    So I doubt if this KB Article fix is applicable for later Preview build (eg.9926).
    I shall suggest you to try a system restore to fix the current issue.
    S.Sengupta, Windows Entertainment and Connected Home MVP

  • Oracle report 10g srw package.

    hi,
    i want to know about srw package in that srw.do_sql where it should be placed?

    you can check for SRW.DO_SQL built-in procedure in Reports online help.

  • Will iPhone's warranty still work overseas?

    Hi, I would like to ask that if I brought an contract-free iPhone in Hong Kong and I decided to use it in Canada with a SIM card, will the iPhone's warranty still applicable in the case that I didn't brought the Apple Care extended warranty?

    Not typically.  The iphone warranty is generally only good in the country of original purchase.

Maybe you are looking for

  • Windows Update no longer works after using Lenovo Enhanced Recovery

    Using the system recovery backup disk I created when I first got my T500, I performed a recovery to a new larger HD that I'm upgrading to.  All went well, windows booted up and I got the "Starting Windows for the first time" message and then I went t

  • Just snipping wires to remove a completely broken display

    I know there's been a bunch of topics posted on repairing/replacing a broken screen, but... I've got a Powerbook Ti with a completely inop screen and two broken hinges (yes, I dropped it badly!). The laptop works fine with an external monitor. The on

  • IMovie - add arrow to highlight video

    I am trying to add arrows to highlight my daughter in a sports recruiting video. I saw the information on this topic: http://discussions.apple.com/message.jspa?messageID=12391949#12391949\ I was able to add one arrow to my project by following Karste

  • Dac not generating paramter files for unspecified mapping in one workflow

    Hi, We are facing a problem with DAC while generating parameter files.I have a task in DAC which is calling a workflow(It contains two sessions,1.SILOS mapping,2.SILOS_UNSPECIFIED mapping). Both are using the same parameter file. During Development D

  • PCMCIA Performance problem on T61?

    I use Compact Flash to PCMCIA card adapter to transfer the images onto my laptop. The transfer rate is around 1 mb/s. I tested the same on other laptops and I get 30Mb/s. Is there anything wrong with T61 PCMCIA card slots? Please advise