TRYING TO PRINT THE OUTPUT ON SCREEN.

Hi,
I am trying to print the out put to the screen. what am i doing wrong.
CREATE OR REPLACE PROCEDURE "WRITESHIPPING"
is
p_Shipid VARCHAR2(40);
p_OrderID VARCHAR2(10);
p_ShippingMethodId NUMBER(10);
p_ShippingMethodName VARCHAR2(50);
p_ShippingAmount NUMBER(19,6);
p_GiftBoxMessage VARCHAR2(40);
CURSOR c_SHIP IS
SELECT SHIPPING_INFO.SHIPPING_INFO_ID, PRODUCT_ORDER.ORDER_ID,
SHIPPING_METHOD.SHIPPING_METHOD_ID, SHIPPING_METHOD.SHIPPING_METHOD_NAME,
SHIPPING_RATE.CHARGE, SHIPPING_INFO.SEND_AS_GIFT_FLAG
FROM FXWEB01.SHIPPING_INFO@STG, FXWEB01.PRODUCT_ORDER@STG , FXWEB01.SHIPPING_METHOD@STG ,
FXWEB01.SHIPPING_RATE@STG
WHERE ((PRODUCT_ORDER.ORDER_ID = SHIPPING_INFO.ORDER_ID) AND
(SHIPPING_METHOD.SHIPPING_METHOD_ID = SHIPPING_INFO.SHIPPING_METHOD_ID) AND
(SHIPPING_METHOD.SHIPPING_METHOD_ID = SHIPPING_RATE.SHIPPING_METHOD_ID));
BEGIN
FOR C_SHIP_REC IN C_SHIP loop
BEGIN
DBMS_OUTPUT.PUT_LINE ();
END LOOP;
END;
END;
EXCEPTION
WHEN NO_DATA_FOUND THEN
DBMS_OUTPUT.PUT_LINE('no_data_found');
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('***ERROR: OTHER ERROR DURING WRITING TO THE TABLE ');
END WRITESHIPPING;
null

<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Mnemon R ([email protected]):
I believe you have to define implicitly what you want to display on the screen. Something like this procedure:
CREATE OR REPLACE PROCEDURE "WRITESHIPPING"
is
p_Shipid VARCHAR2(40);
p_OrderID VARCHAR2(10);
p_ShippingMethodId NUMBER(10);
p_ShippingMethodName VARCHAR2(50);
p_ShippingAmount NUMBER(19,6);
p_GiftBoxMessage VARCHAR2(40);
CURSOR c_SHIP IS
SELECT SHIPPING_INFO.SHIPPING_INFO_ID, PRODUCT_ORDER.ORDER_ID,
SHIPPING_METHOD.SHIPPING_METHOD_ID, SHIPPING_METHOD.SHIPPING_METHOD_NAME,
SHIPPING_RATE.CHARGE, SHIPPING_INFO.SEND_AS_GIFT_FLAG
FROM FXWEB01.SHIPPING_INFO@STG, FXWEB01.PRODUCT_ORDER@STG ,
FXWEB01.SHIPPING_METHOD@STG ,
FXWEB01.SHIPPING_RATE@STG
WHERE ((PRODUCT_ORDER.ORDER_ID = SHIPPING_INFO.ORDER_ID) AND
(SHIPPING_METHOD.SHIPPING_METHOD_ID = SHIPPING_INFO.SHIPPING_METHOD_ID) AND
(SHIPPING_METHOD.SHIPPING_METHOD_ID = SHIPPING_RATE.SHIPPING_METHOD_ID));
BEGIN
FOR C_SHIP_REC IN C_SHIP loop
BEGIN
DBMS_OUTPUT.PUT_LINE (c_ship_rec.SHIPPING_INFO_ID&#0124; &#0124;','&#0124; &#0124;c_ship_rec.PRODUCT_ORDER.ORDER_ID&#0124; &#0124;','&#0124; &#0124;c_ship_rec.SHIPPING_METHOD_ID&#0124; &#0124;','&#0124; &#0124;c_ship_rec.SHIPPING_METHOD_NAME&#0124; &#0124;','&#0124; &#0124;c_ship_rec.CHARGE&#0124; &#0124;','&#0124; &#0124;c_ship_ rec.SEND_AS_GIFT_FLAG);
END LOOP;
END;
END;
EXCEPTION
WHEN NO_DATA_FOUND THEN
DBMS_OUTPUT.PUT_LINE('no_data_found');
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('***ERROR: OTHER ERROR DURING WRITING TO THE TABLE ');
END WRITESHIPPING;<HR></BLOCKQUOTE>
null

Similar Messages

  • How to print the output of the screen in Dialog Programming

    Hi,
    Could anybody help how to print the output of a screen in the dialog programming. i can select 'Hard Copy' option in the 'Custumizing of Local Layout' Icon in the standard tool bar. but that prints the whole screen with the toolbar. i want to print only the output which is displayed on the screen. Please help..
    Regards,
    Swathi

    Hi Swathi,
        Ok. Do One thing. Go to menu bar and select Systems -> Own pool Request -> here you get the spool number. Select it and select the option "Print Directly" in tool bar.
    Thanks.

  • Any means to print the output from an abap report immediately

    Hi,
    I would like to know if there are any means to print the output of an abap program immediately. Our user wants to execute the program online and once the result list is displayed on screen, user wants the same list to be printed simultaneously without the need to press the 'Print' button.
    Thanks in advance for your help and advises.
    Francis

    Hi
      We can print the list while displaying using NEW-PAGE PRINT ON.
      below is the syntax for this.
         NEW-PAGE PRINT ON [NEW-SECTION]
                    [<params> | PARAMETERS <pripar>]
                    [ARCHIVE PARAMETERS <arcpar>]
                    [NO DIALOG].
    Regards
    Ramanjaneya Reddy.
    [email protected]

  • How to print the Module pool screen using a push button in the screen

    Hi Every one,
                         i have developed a module program , which have a selection screen and it display the output in a structured way.
    output includes boxes, texts etc...
    my problem is :---
    How to print the Module pool screen using a push button in the screen.

    When the "Print" button is pressed:
    leave to list-processing and return to screen 100.  "(current screen)
    Call a transaction that runs your print program.
    Rob

  • I am using Adobe XI Pro and in various parts of the document there is brown / biege lettering when on the document it shows as black.  My printer guy has been in and checked it out top to bottom and that part is fine.  I have tried to print the same docum

    I am using Adobe XI Pro and in various parts of the document there is brown / biege lettering when on the document it shows as black.  My printer guy has been in and checked it out top to bottom and that part is fine.  I have tried to print the same document and it comes out fine.  Any ideas ?   Using Windows 7 Service Pack 1

    Sorry my bad.  I have tried to print the same document on another printer and all the formatting is fine. 

  • OEM 10G -- how to print the output of a table in a html report

    Hi everyone,
    I am trying to print the out of a particular table from the DB using OEM but having some hard time to do so, does any one know the way. Thanks for reading.
    Oracle version: 10.2
    OS: Windows xp
    Regards,
    katheri

    after login to the OEM ,
    you want the rows of the table or structure of the table?
    you can find administration tab top of the page,
    again you database objects -> tables
    new web page will open -> there you have to enter schema name and table name -> you will get the list of table and then click to view , data types and sizes and all..

  • I am trying to display the output from my ipod touch on apple tv. i can get the audio but no video. please help

    i am trying to display the output from my ipod touch on apple tv. i can get the audio but no video. Thank you for any advice.

    What output are you trying to get to your tv?

  • How make "Scanner" not printing the output in a new line?

    Hi!
    I'm Jordi from Barcelona and I'm new on Java and on this Forum. I have a question to you. I'm developing a testing application that uses the "Scanner".
    Before using it, the app asks a question to the user:
    String strInput;
    Scanner sc = new Scanner(System.in);
    System.out.print("* Please, write your name: ");
    strInput = sc.next();Running this, the app asks me for the options and after pressing "Enter" prints the input string in a new line like this:
    * Please, write your name:
    Jordi
    And I would to get the next:
    * Please, write your name: Jordi
    Does anybody know how to make the "Scanner" print the output in the same line as the question?
    Thanks for your help!
    Jordi

    Running the code,
    import java.util.Scanner;
    public class Test {
        public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            System.out.print("* Please, write your name: ");
            System.out.println("* Hi, "+sc.next());
    }results in the following output:
    * Please, write your name: Bart
    * Hi, BartWhere the first "Bart" is the input I gave.
    If this is not the case, then it has something to do with your IDE or perhaps you didn't recompile and it previously was
    System.out.println("* Please, write your name: "); // println instead of printbut it's all guesses.
    Good luck.

  • Trying to print the date arrays in reverse order....

    Hi,
    I'm trying to print the dates in the arrays in reverse order using the for loop, but its not working and i think ive got something in the wrong order perhaps the constructor or method. Or do i need to define 'a', because i tried it and i couldn't unless, probably because i was putting the wrong code for it.
    Thanks for your help
    public class Array
      public static void main(String[] args)
              a[0] = new Date(2, " January ", 2005)
              a[1] = new Date(3, " February ", 2005)
              a[2] = new Date(21, " March ", 2005)
              a[3] = new Date(28, " April ", 2005)
                                   printDate();
    class Date
      public int day;
      public String month;
      public int year;
      public Date(int d, String m, int y)
        day = d;
        month = m;
        year = y;
      public void printDate()
      for (int i = a.length - 1; i >= 0; i--)
                  System.out.println(a);

    I don't see where this 'a' variable is declared anywhere, so what did you expect it to do? Also, you can't just call Date's printDate method from your Array class like that. You really need to start with the java tutorials or take a course. The forums aren't going to effectively teach you the very basics.

  • Runtime.getRuntime().exec hangs and doesn't print the output

    Hi,
    I have written the following code to execute the command "psexec ipaddress -u userid -p password -l -c execute.exe >> c:/25_showoutpout.txt" and print the output in 25_showoutpout.txt file.
    import java.io.*;
    public class ExecTest{
         public static void main(String args[]) throws IOException{
         String args1 = "psexec ipaddress -u userid -p password -l -c execute.exe >> c:/25_showoutpout.txt";
         try{
         Process p=Runtime.getRuntime().exec(args1);
    int i = p.waitFor();
         System.out.println("Done.with time "+i);
         }catch(Exception e){
              System.out.println("The error is "+e);
    But this program hangs and creates a blank 25_showoutpout.txt file.In the process list I can see the process running, but it doesn't redirect the output in the txt file.When i run the command from the command line it runs fine.Please help me.
    Thanks in advance

    Hi,
    I have written the following program to get the output.But still the required output is not coming in the console file.Only the messages that gets printed in the parent console that is coming in the file.But the expected output is to get the messages from the child window which gets executed while the .exe runs.
    import java.io.*;
    public class RuntimeExecTest{
    public static void main(String args[]){
    String s = null;
    String result= null;
    int count =0;
    try{
              // read the output from the command
    String cmd = "cmd.exe /c D:/installer/PsTools.zip/PsTools/psexec.exe ipaddress -u userid -p password -l -c excute.exe >> C:/RuntimeExec_25.txt";
         Process p = Runtime.getRuntime().exec(cmd);
         InputStream is = p.getInputStream();
         // Get the std in to the process.
         OutputStream os = p.getOutputStream();
         // Get the std err from the process.
         InputStream es = p.getErrorStream();
         // Create readers for those streams.
         BufferedReader reader = new BufferedReader(new InputStreamReader(is));
         BufferedReader errReader = new BufferedReader(new InputStreamReader(es));
         String line;               
         // Read STDOUT into a buffer.
         // If no STDOUT check STDERR.
         while((line = errReader.readLine()) != null){
              // Do something with data here if you wish.
         System.out.println( line );
         while((line = reader.readLine()) != null){
              // Do something with data here if you wish.
         System.out.println( line );
         System.exit(0);
    catch( Exception ex )
    ex.printStackTrace();
    }

  • Trying to install the output module for Bridge CC but there is no extensions folder for Windows

    I am trying to install the output module for Bridge CC on a Windows system, but there is not an extensions folder in my Bridges CC folder. I have seen several discussions about this issue for Mac's but nothing on a PC. Suggestions that I could use to remedy this situation? - Thanks!

    For installing it please download the package as listed in the below mentioned link and follow the install instructions.
    http://helpx.adobe.com/bridge/kb/install-output-module-bridge-cc.html
    Make sure that you have the most recent version of Bridge CC(6.0.1) installed.
    Please follow the below mentioned steps:
    Copy the Adobe Output Module folder (not the AOM_Package_[OS] folder) into the Bridge CC Extensions folder in the appropriate location as mentioned:
    Windows 64-bit:                Go to C:\Program Files (x86)\Common Files\Adobe\Bridge CC ExtensionsWindows 32-bit:
                   Go to C:\Program Files\Common Files\Adobe\Bridge CC Extensions
    2.   Copy the AdobeOutputModule.workspace file into the Workspaces folder under the Bridge CC Extensions folder (location as mentioned in Step 1).
    Do let me know if this helps.
    Regards,
    Ashutosh

  • I have an epson T50 shared network, which is connected to a computer that runs on Windows 7 64-bit. The 10 days Apple has updated the printer drive and since then has been trying to print the following message: / Library/Printers/EPSON/InkjetPrinter2/Filt

    I have an epson T50 shared network, which is connected to a computer that runs on Windows 7 64-bit. The 10 days Apple has updated the printer drive and since then has been trying to print the following message: / Library/Printers/EPSON/InkjetPrinter2/Filter/rastertoescpII.app/Contents/MacOS/ rastertoescpII failed.
    What should I do?

    The first thing you should do is re-write your post to make it a bit more understandable. I got you have an Epson printer connected to your PC, however after that  your post doesn't make any sense. Are you attempting to print from your iMac, if so then you need to download and install Bonjour for Windows on your Windows machine. Then set Windows so it has printer sharing turned on and then on the iMac simply follow Apple's instructions for adding a printer.
    http://support.apple.com/kb/DL999
    http://support.apple.com/kb/HT4670

  • Placed an image in a new Illustrator document.  Tried to change the Output Mode in the Output Dialog but could not select "Separations Mode".

    Placed a DCS2 document image in a new Illustrator document. 
    Tried to change the Output Mode in the Output Dialog but could not select "Separations Mode".

    I would check with the makers of ULTRASEPS.
    I never heard of it, just checked their website, I don't think they support Illustrator:
    What do I need to use UltraSeps?
    UltraSeps requires Adobe Photoshop version CS2 or higher on Windows and Macintosh.
    Its also 100% compatible with Photoshop Creative Cloud and Creative Cloud 2014.

  • Have new iMac OSx10.8.2, and when I connected my Epson Stylus pro3880, loaded printer drivers, and tried to print, the printer utility opens, then crashes. Any ideas? (it worked fine on my last iMac)

    Have a new imac OSx10.8.2, and when I connected my Epson Stylus pro 3880, loaded print drivers, and tried to print, the printer utility opened and then crashed; happened several times. Any ideas? (it worked fine on my older imac)

    I believe so. the driver version I have is 8.64
    The person gave me the instructions to reset the printing system and I followed it. That's what corrected the printing drop down windows.
    I am also having trouble finding the downloaded icc profiles for the papers I use. I see them in the Color Sync Utility, but not in the drop down window for Color Management. There is a thread on this forum relating to that, but I don't understand how to "copy" the profiles and put them elsewhere.

  • Trying to print the calendar.

    I have synced my I-pad with Microsoft outlook through I-cloud. I am trying to print the calendar in monthly format. When I print from Outlook, it prints with no content. When I print the I-cloud calendar, just a column of "stuff" is printed. Any ideas?
    WS

    Hello Ginny12,
    You may need to contact Google about that.  They are the ones that manage that app.
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

Maybe you are looking for

  • I tried taking some songs off my phone, I deleted them from the library on my computer but they're still showing up on my phone?

    I tried to take some songs off my phone that I no longer wanted. I unchecked them just in case I wanted them back on later, but they would not remove. So I just deleted them from my library on my computer, but for some reason they are still showing u

  • Selecting Text in a JTable

    Hi, I have an application that uses a JTable with editable cells. When the user clicks a cell, I would like the cell's data to become highlighted. In other words, I don't just want the cell to get focus, I want the existing text within the cell to be

  • Re Post: Http server cannot start after running the following JSP

    Hi, I have 9iAS 1.0.2.2 and it has been working fine. My http server was running fine until I ran the following Jsp. Now I cannot start the Http server at all. I check the Oracle home and the path and make sure they match (i.e. if my Oracle Home is i

  • External Cash Desk FI-CA

    Hi gurus,            We recently activate the External cash Desk E/S in a Utility company with ECC Ehp3, now we are working in a University with the HER Campus management, I`ll like to know if the External Cahs Desk is avaible for Campus Management.

  • Alternatives to WAD for displaying BI Queries / Views in Enterprise Portal

    Hello experts, we have been using WAD 3.5 extensively for displaying BI Querys in a web-capable form within our Enterprise Portal. Since our users are not BW-familiar in general, we have the requirement to provide a very easy GUI and navigation. Actu