For all Error In the anoymous blk

Hi all,
when i execute the below query, i got error
the Error file
ORA-06550: line 54, column 1:
PLS-00103: Encountered the symbol "DBMS_OUTPUT" when expecting one of the following:
   . ( * @ % & - + / at mod rem select update <an exponent (**)>
   delete insert ||
The symbol "." was substituted for "DBMS_OUTPUT" to continue.
ORA-06550: line 54, column 95:
PLS-00103: Encountered the symbol ";" when expecting one of the following:
   . ( * % & - + / at mod rem sthe actual query below
SET SERVEROUTPUT ON;
SPOOL /tmp/customer_ext.xls
DECLARE
TYPE tpcustnos IS TABLE OF dw_customer.cust_no%TYPE INDEX BY BINARY_INTEGER;
TYPE tptitles IS TABLE OF dw_customer.title%TYPE INDEX BY BINARY_INTEGER;
TYPE tpsalutations IS TABLE OF dw_customer.salutation%TYPE INDEX BY BINARY_INTEGER;
TYPE tpfirstnames IS TABLE OF dw_customer.first_name%TYPE INDEX BY BINARY_INTEGER;
TYPE tplastnames IS TABLE OF dw_customer.last_name%TYPE INDEX BY BINARY_INTEGER;
TYPE tpcreationtimes IS TABLE OF dw_customer.creation_time%TYPE INDEX BY BINARY_INTEGER;
CURSOR customerdetails(FromCreationTime IN dw_customer.creation_time%TYPE,
                                                ToCreationTime IN dw_customer.creation_time%TYPE)
IS
SELECT dc.cust_no,
           dc.title,
           dc.salutation,
           dc.first_name,
           dc.last_name,
           dc.creation_time
FROM dw_customer dc
WHERE trunc(dc.creation_time) >=  FromCreationTime
        AND    trunc(dc.creation_time) <  ToCreationTime + 1;
lcustnos tpcustnos;
ltitles tptitles;
lsalutations tpsalutations;
lfirstnames tpfirstnames;
llastnames tplastnames;
lcreationtimes tpcreationtimes;
vCount BINARY_INTEGER;
FromCreationTime DATE      := '08-APR-2003';
ToCreationTime DATE      := '08-APR-2003';
BEGIN
DBMS_OUTPUT.PUT_LINE('Opening cursor');
OPEN customerdetails(FromCreationTime => FromCreationTime,
                                                ToCreationTime => ToCreationTime) ;
DBMS_OUTPUT.PUT_LINE('Fetching from the cursor and bulk collecting into table variables');
LOOP
FETCH customerdetails BULK COLLECT INTO lcustnos, ltitles, lsalutations, lfirstnames, llastnames, lcreationtimes;
DBMS_OUTPUT.PUT_LINE('Closing the cursor');
FORALL vCount IN 1..lcustnos.COUNT
DBMS_OUTPUT.PUT_LINE(lcustnos, ltitles, lsalutations, lfirstnames, llastnames, lcreationtimes);
--EXIT WHEN customerdetails%NOTFOUND;
END LOOP;
END;

after i change the coding, it executes fine. but I want to dispplay these columns thru dbms_output(lsalutations, lfirstnames, llastnames, lcreationtimes)... How can we change according to my scenario.
The script below:
DECLARE
TYPE tpcustnos IS TABLE OF dw_customer.cust_no%TYPE INDEX BY BINARY_INTEGER;
TYPE tptitles IS TABLE OF dw_customer.title%TYPE INDEX BY BINARY_INTEGER;
TYPE tpsalutations IS TABLE OF dw_customer.salutation%TYPE INDEX BY BINARY_INTEGER;
TYPE tpfirstnames IS TABLE OF dw_customer.first_name%TYPE INDEX BY BINARY_INTEGER;
TYPE tplastnames IS TABLE OF dw_customer.last_name%TYPE INDEX BY BINARY_INTEGER;
TYPE tpcreationtimes IS TABLE OF dw_customer.creation_time%TYPE INDEX BY BINARY_INTEGER;
CURSOR customerdetails(FromCreationTime IN dw_customer.creation_time%TYPE,
                                                ToCreationTime IN dw_customer.creation_time%TYPE)
IS
SELECT dc.cust_no,
           dc.title,
           dc.salutation,
           dc.first_name,
           dc.last_name,
           dc.creation_time
FROM dw_customer dc
WHERE trunc(dc.creation_time) >=  FromCreationTime
        AND    trunc(dc.creation_time) <  ToCreationTime + 1;
lcustnos tpcustnos;
ltitles tptitles;
lsalutations tpsalutations;
lfirstnames tpfirstnames;
llastnames tplastnames;
lcreationtimes tpcreationtimes;
vCount BINARY_INTEGER;
FromCreationTime DATE      := '08-APR-2003';
ToCreationTime DATE      := '08-APR-2003';
BEGIN
DBMS_OUTPUT.PUT_LINE('Opening cursor');
OPEN customerdetails(FromCreationTime => FromCreationTime,
                                                ToCreationTime => ToCreationTime) ;
DBMS_OUTPUT.PUT_LINE('Fetching from the cursor and bulk collecting into table variables');
LOOP
FETCH customerdetails BULK COLLECT INTO lcustnos, ltitles, lsalutations, lfirstnames, llastnames, lcreationtimes;
DBMS_OUTPUT.PUT_LINE('Closing the cursor');
FOR vCount IN 1..lcustnos.COUNT loop
DBMS_OUTPUT.PUT_LINE(lcustnos(vcount));
--EXIT WHEN customerdetails%NOTFOUND;
END LOOP;
END;

Similar Messages

  • How can i set a global error page for all error cod

    how can i set a global error page for all error code?
    i don't want to leave a long list in the web.xml file.could any one help me?
    thanks

    If u have a common Error JSP named as ErrorPage.jsp
    You need to have the following piece of code in the JSP as :
    <%@ page isErrorPage ="true"%>
    This makes it as the Common Error Page for the Application. Now all you need to do is from other JSP's throw the Exception to teh container. The container will redirect to this Page and process accordingly.
    Thanks and regards,
    Pazhanikanthan. P

  • You do not have sufficient privileges to complete this installation for all users of the machine. Log on as administrator and then retry this installation

    Hi all
    Have seen a couple threads regarding this but unfortunately nothing that solves my problem thus far!
    Right now, our developers are using the Domain Admin account to promote their website code using MSI files.  I'd like to change this as I feel the Domain Admin account should be on lock down and only used when absolutely necessary, pretty common.  The
    same goes for my account too, I would like to absolve as much use of the Domain Admin as I can.
    Problem is, when they run installers from their own accounts, they receive this error: You do not have sufficient privileges
    to complete this installation for all users of the machine. Log on as administrator and then retry this installation
    The accounts they are using are part of the Built In Administrators group and the Domain Admins group... I'm not sure what other permission you'd need in a domain?  We've gone as far as explicitly giving them local admin access on this server and still
    nothing changes.
    Is there a Group Policy or something that I can change to provide install rights and possibly remove these accounts as Domain Admin and more along the line of Power User?
    Thanks much for your help!
    Ryan

    Hi,
    You could use Software Restriction Policies (SRP’s) or Applocker(supported on Windows server 2008 R2/Windows 7 only) to restrict the running
    of the application for specific user.
    Description of the Software Restriction Policies
    http://support.microsoft.com/kb/310791
    HOW TO: Restrict Users from Running Specific Windows Programs
    http://support.microsoft.com/kb/323525
    How to Implement Group Policy Security Filtering
    http://www.windowsnetworking.com/articles_tutorials/Group-Policy-Security-Filtering.htmlPlease remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • HT1660 how can I use one single library for all users on the same laptop?

    how can I use one single library for all users on the same laptop?

    You are most of the way there. Each user having access to hard drive is the key. If users are limited in file privileges this is harder.
    Any files you add to your library and any files she adds to her library are available to the other. Just not automatically. Each user must add the files to their own library using the add file or add folder option from menu bar.
    What I have done is set library location to a location outside of My Documents\My Music. On my network storage I have a folder names s:\itunes. Both accounts iTunes are set to use this location for the library.

  • Can I set an mx control property globaly for all instances of the control.

    Is there a way of setting the value of a variable on a control for all instances of the control in the application? 
    For example, I have several instances of an mx:Label and I want to change the enabled property for all instances at once rather than refer to each one individually by id.

    One way is to subclass Button and change its enabled getter to watch some static property.  You don’t really want to change Button itself because Buttons exist in lots of places like ScrollBars.

  • For all entries changes the order of the itab

    Hi Experts
                 In the following query i have used two internal tables namely it_first and it_zlist.
                The material inwhich the it_zlist is different sorting order
          After executing this query, the order of the material inwhich the it_first is different from the it_zlist.
                 What could be the reason, pls explain me on this.
    select matnr test zsno ztnam from zmaster1
                into corresponding fields of table it_first
                      for all entries in it_zlist
                      where matnr = it_zlist-matnr.
    Thanks in advance.
    Regards
    Rajaram

    for all entries u should specified all primary key.
    sort by u condition.
    Effect
    If the addition FOR ALL ENTRIES is specified before the language element WHERE, then the components comp of the internal table itab can be used as operands when comparing with relational operators.
    The internal table itab must have a structured line type and the component comp must be compatible with the column col.
    The logical expression sql_cond of the WHERE condition can comprise various logical expressions by using AND and OR. However, if FOR ALL ENTRIES is specified, there must be at least one Comparison with a column of the internal table itab, which can be specified either statistically or dynamically (Release 6.40 and higher). In a statement with a SELECTstatement with FOR ALL ENTRIES, the addition ORDER BY can only be used with the addition PRIMARY KEY.
    The whole logical expression sql_cond is evaluated for each individual line of the internal table itab. The resulting set of the SELECT statement is the union of the resulting sets from the individual evaluations. Duplicate lines are automatically removed from the resulting set. If the internal table itab is empty, the whole WHERE statement is ignored and all lines in the database are put in the resulting set.
    Notes
    In Release 6.10 and higher, the same internal table can be specified after FOR ALL ENTRIES and after INTO.
    The addition FOR ALL ENTRIES is only possible before WHERE conditions of the SELECT statement.
    If the additions PACKAGE SIZE or UP TO n ROWS are specified together with FOR ALL ENTRIES, they are not passed to the database system but are applied instead to the resulting set once all selected rows on the application server have been imported.
    With duplicated rows in the resulting set, the addition FOR ALL ENTRIES has the same effect as if addition DISTINCT were specified in the definition of the selection quantity. Unlike DISTINCT, the rows are not deleted from the database system but are deleted on the application server from the resulting set.
    Addition FOR ALL ENTRIES is only possible for WHERE conditions of the SELECT statement.
    Example
    Exporting all flight data for a specified departure city. The relevant airlines and flight numbers are first put in an internal table entry_tab, which is evaluated in the WHERE condition of the subsquent SELECT statement.

  • Please bring to downgrade to iOS 6.1.3! iOS 7 seems like the macintosh ago ... the beginning of the end! Sorry, but then provides for all iPhone lovers, the classic design and unlimited use without fault love the previous version available. It's super tir

    Please bring to downgrade to iOS 6.1.3!
    iOS 7 seems like the macintosh ago ... the beginning of the end!
    Sorry, but then provides for all iPhone lovers, the classic design and unlimited use without fault love the previous version available.
    It's super tiring to work with iOS 7!

    Submit your feedback to Apple here:
    http://www.apple.com/feedback

  • Creating an shortcut for all users on the desktop

    I want to create a shortcut for all users on the desktop that will appear for all users that login to the computer.  How is this done in Windows 7?  In Widows XP this was done at the "All Users" profile, but I cannot find such a profile  in Windows 7. 

    the users have windows vista , 7 or 8 have a chortcut i created and the users have windows xp isn't created on them desktop
    Do you have a question? If so then your best bet is to create a new post (this one is 5 years old and marked as "answered"!) and spell it out there.

  • Print pdf in Acrobat 9 stopped working for all programs (only the pdf converter office add-in works)

    Windows 7 x64 has a problem:
    http://social.answers.microsoft.com/Forums/en-US/w7files/thread/0617cfb6-dd06-4cb6-874d-0c ec97d3a310?prof=required&ppud=4
    To solve that nesting issue, I followed these instructions:
    In  order to accomplish the proper redirection, you need two junctions:
    1)  A Local Settings junction, that will forward programs going to
    %userprofile%\Local  Settings to the new folder.
    2) An Application Data junctions  *inside of the new folder* that points back on itself, to get programs  accessing %userprofile%\LocalSettings\Application Data.
    If you  think about it, it makes sense ... when the program is accessing local  settings, it will get forwarded to the folder it needs to be in,  however, it is also accessing a folder named Application Data *inside of  the correct folder it needs* (since it has already been redirected by  the Local Settings junction), so the Application Data junction has to  point back on itself for things to function properly.
    I would  suggest checking the security settings on your Application Data junction  (C:\users\yourname\appdata\local) (you will need to select show operating system files from folder options in an explorer window).
    Go to the  security tab, click advanced, then edit, and make sure you see a deny  permission for everyone on the list.
    If there isn't one listed,  create one for "Everyone" and check the box under Deny next to "read  folder / list data".
    Once I added "everyone" and "deny", I received 300 error messages, which I all clicked on "continue".
    After each restart, no program worked, and hundreds of error messages popped up.
    So, I removed the "everyone denied" entry again.
    Now, all programs start normally.
    But:
    If I want to say "print to pdf", it goes through the motions, prints something, and opens the pdf dialogue, and at exactly half time of the progress bar says "stopped". No matter if I want to pront from internet explorer, windows explorer, acrobat, word, editor, ...
    Why?
    How can I reverse this?

    I can't open the Form Tools though is what I'm saying. When I open the document in Acrobat 9 Pro I have no form tools.
    I have to go to [Forms] -> [Edit Forms in Designer] in order to open the form tools.
    Only when I select to open in designer I do not get the Acrobat Pro Designer, it automatically opens the document in LiveCycle and I have no option or ability to change the document designer to Acrobat Pro.
    Is there some way I can "Force" the docement to open in Acrobat 9 Pro designer JUST so I can add the print button?

  • Needed  selection screen validation for all entries in the range

    Hi all,
    I'm using the below code for Material validation in selection-screen.
    SELECT SINGLE MATNR FROM MARC INTO MARC-MATNR
      WHERE MATNR IN S_MATNR.
      IF sy-subrc NE 0.
        MESSAGE e000(su) WITH text-035.     "Invalid Material Number
      ENDIF.
    This validation is working only for one record in the range.
    If I give multiple material numbers in the range having a record which doesn't exist in MARC, its not throwing the error.
    Seems like loop should be placed at s_matnr. Is that correct procedure or any pointers on the same would be of great help.
    Regards,
    Vamsee Priya.

    Hi priya
    Use this way,
    REFRESH IT_LIPS. CLEAR IT_LIPS.
      SELECT VBELN
             POSNR
             MATNR
             WERKS
             LFIMG
             ARKTX
             VGBEL
             VGPOS
             BWART
             FROM LIPS INTO TABLE IT_LIPS
             WHERE PSTYV IN
       ('ZZTC', 'ZTAD', 'ZMVN', 'ZCVA', 'ZCVB', 'ZCVC') AND "ASR 18721
                   WERKS IN ('1140', '1143', '1149').
      IF IT_LIPS[] IS INITIAL.
        MESSAGE E000 WITH TEXT-005.
    endif.
    revert back if you need any help..
    Help us to help you, Manas

  • CCMS - Alert for Email-Errors in the SOST

    Hello everybody,
    is there a way to set an Alert in the CCMS for checking Email sent with errors from the transaction SOST?
    We´ve also connected an externe Fax Programm: this service is build over a RFC and functions successfully. We´d like to check all faxes with errors in the CCMS Monitoring, too.
    In our SCOT the Node for the SAPConnect was already activated:
    - Utilities - Alert Monitoring - Start Data Collection Method:
    Data collection method for SAPconnect ran with no errors.
    Now i can see it:
    - Utilities - Alert Monitoring - Display - SAPConnect.
    Into my custom Monitor i´ve put a MTE SAPconnect node, with name:
    - ACTIVE
    RFC system error: Function SMON_COMP_STATE_RETRIEVE is not available
    What does this error mean? How can i easy configure the monitoring of the SOST?
    Do i have to create a custom or is there any method which i can use as analyse method for the checks of the sapconnect?
    PS: the same error appears also if as test i send one fax to a false address: this isn´t the error that i expected to receive.
    Please on reply.
    Thanks as alwalys.
    Alberto

    Hi Gagan,
    thanks for the reply, i had already seen this link in internet but i´d like to know if there´s a way which use only the standard methods in the CCMS, without changes in any programs.
    Not implemented Steps: B, E (autoreaction method not needed for this alert at the moment), F.
    I have also created a analyse method with name SOST and assigned to the node.
    But after starting the Data collection method for SAPconnect i see in CCMS the alert error:
    RFC system error: Function SMON_COMP_STATE_RETRIEVE is not available
    I didn´t send any fax or email yet, i´m still by the the configuration...
    Where does this error come from?
    Thanks.
    Alberto

  • Schedule a Webi XIR2 report to run for all values of the prompt ...

    Hi there,
    Any ideea about if it's possible to schedule a Web Intelligence XIR2 report to automatically run for all  150 different prompt values in the LOV (and have 150 different instances)?
    BOXIR2, Java deployment.
    Many thanks.

    You'd be scheduling the document 150 different times, each for one value of the LOV.
    You'd use the ReportEngine (REBean) SDK to read the LOV values, then use the Enterprise SDK to schedule.
    Here's a bit of code that illustrates how to schedule a Webi doc a single time with specified prompts.  You'd do something similar, but iterate the prompt setting and scheduling:
        IInfoStore iStore  = (IInfoStore) eSession.getService("InfoStore");
        ReportEngine reportEngine =  ((ReportEngines) eSession.getService("ReportEngines"))
                                        .getService(ReportEngines.ReportEngineType.WI_REPORT_ENGINE);
        IInfoObjects objs = iStore.query("Select TOP 1 * From CI_INFOOBJECTS Where "
                                          + " SI_KIND='Webi' And SI_INSTANCE=0 "
                                          + " And SI_NAME = '" + reportName + "'");
        //============================================================================
        // Open Webi document, then get and set Prompts collection
        //============================================================================
        IWebi            webi    = (IWebi) objs.get(0);
        DocumentInstance di      = reportEngine.openDocument(webi.getID());
        Prompts          prompts = di.getPrompts();
        for(int i = 0, m = prompts.getCount() ; i < m ; i++) {
            Prompt prompt = prompts.getItem(i);
            String name   = prompt.getName();
            if("Enter value(s) for State:".equals(name)) {
                Lov lov = prompt.getLOV();
                lov.refresh();
                Values values = lov.getAllValues();
                prompt.enterValues(new ValueFromLov[] { values.getValueFromLov(0),
                                                        values.getValueFromLov(1)});
            } else if ("Enter Shop Id:".equals(name)) {
                prompt.enterValues(new String[] { "261" });
        //===========================================================================
        // Copy prompts over to InfoObject
        //===========================================================================
        PromptsUtil.populateWebiPrompts(prompts, webi);
        //===========================================================================
        // Schedule Webi report to run once now
        //===========================================================================
        webi.getWebiFormatOptions().setFormat(IWebiFormatOptions.CeWebiFormat.Webi);
        ISchedulingInfo schedInfo = webi.getSchedulingInfo();
        schedInfo.setRightNow(true);
        schedInfo.setType(CeScheduleType.ONCE);
        iStore.schedule(objs);
    Sincerely,
    Ted Ueda

  • Create LOV's for all columns at the time of folder creation

    Hi,
    I know we can automatically create the LOV's for all the columns of a database table when creating the folder in the EUL. Is this a good practice or should I create LOV's on demand? What is the disadvantage of creating more LOV's than needs to be used other than the disk storage? I also know it is not a good idea to have an LOV on a field that has a lot of values. I am tempted not to create the LOV's in the beginning, but then it becomes a high maintenance issue if I have to come back and create many LOV's later. Thank you for your input.

    Yes, it is not a good idea to create LOVs for all the columns. LOVS should be created only for the columns where parameters will be used. More the number of LOVs, slower the response in opening up your Discoverer reports and if you are using Disco Viewer, the page might take a long time to open up and frustrate the users.
    Also it is a good practise to have LOVs defined on the lookup tables or where there are distinct values in the table and not from where these values are used in the table.
    regards
    http://www.infocaptor.com <--- Free Discoverer Monitoring Dashboards

  • Creating sequences for all tables in the database at a time

    Hi ,
    I need to create sequences for all the tables in my database.
    i can create individually ,using toad and sqlplus.
    Can any one give me a code for creating the sequences dynamically at a time for all the tables.
    it is urgent ..
    Regards.

    I need to create sequences for majority of the tables that are having ID column
    which is sequences."The majority" is not the same as all. So you probably want to drive your generation script off the ALL_TAB_COLUMNS view...
    where column_name = 'ID'You need to think about this carefully. You might want different CACHE sizes or different INCREMENT BY clauses for certain tables. You might even (whisper it) want a sequence to be shared by more than one table.
    Code generation is a useful technique, but it is a rare application where one case fits all.
    Cheers, APC
    Blog : http://radiofreetooting.blogspot.com/

  • Set date and time for all macs in the network

    Hi,
    I need to set the time and date for all of our Macs in the network, I have tried to have a look at Workgroup manager but I can not see anything.
    Any ideas?
    Thanks in advance,

    Once the ntp setting is initially loaded, it should not need to be changed.  But you know that, of course.
    If you're looking to automate ntp configuration as part of system imaging (SIU, InstaDMG, etc) and client set-up, then that's certainly possible; that sort of discussion is regular fodder on the Mac Enterprise mailing list.  (Check the archives over there for some interesting discussions.)  Here are some related discussions that might interest you, too:
    http://www.afp548.com/forum/viewtopic.php?showtopic=21477
    http://www.afp548.com/forum/viewtopic.php?showtopic=20328
    Also see man systemsetup for some details.
    $ /usr/sbin/systemsetup -getnetworktimeserver
    Network Time Server: time.apple.com
    $
    And here's a slightly-dated intro to client management.

Maybe you are looking for

  • Copy of service plan item SPLA in contracts not working

    Hi, 1. I have created a service plan product SP (item category group SPLA) 2. I copied the standard trans SC -> ZSC and item category SPLA -> ZSPL 3. I then maintained the determination as per the standard. I have not changed any of the attributes of

  • Billing Document Number saved with Preceding Number from Number range...

    Hi Everybody, I am facing with some irregular problem which is as follows : For example, Billing Docs created in the month of January was saved with number series like 10161, 10162, 10163 .....and so on.... But the user has creatd the document in Feb

  • Problem after SP19 Installation

    Hy guys, ich have the following problem after the SP19 INSTALLATION: I cannot see the adapter in Adapter Monitor and no communication channel works. I already read thread about the problem and already imported SAP_BASIS Software components but doesn'

  • When i try and create a combined pdf i get an error failed

    when i try and create a combined pdf i get an error failed

  • Setting Parental Controls by movie

    Hi, I have set up ATV2 correctly and all is working. The problem now is that I have children who know how to use it to start their movies. Is there anyway to restrict movies that I don't want them to be able to watch? Manually, I could put a prefix l