How to Print this as it is

can somebody kindly suggest me a way to print the value of the variable 'str' in the code part.Thanking in advance for your great solutions.
code:
====
set serveroutput on;
declare
str varchar2(2000);
begin
str := 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa';
dbms_output.put_line(str);
end;
declare
ERROR at line 1:
ORA-20000: ORU-10028: line length overflow, limit of 255 chars per line
ORA-06512: at "SYS.DBMS_OUTPUT", line 35
ORA-06512: at "SYS.DBMS_OUTPUT", line 133
ORA-06512: at line 5

You can do something like this:
set serveroutput on;
declare
i number := 1;
str varchar2(2000);
begin
str := 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa';
while i <= length(str) loop
dbms_output.put_line(substr(str, i, 200));
i := i + 200;
end loop;
end;
/

Similar Messages

  • How to print this date format: eg. 14-Aug-2002 01:26:36 PM?

    Can anyone tell me exactly how to print this format?

    This is how we can produce the output you specified.
    import java.util.*;
    import java.text.*;
    //14-Aug-2002 01:26:36 PM?
    class Test
         public static void main(String args[])
              //Date b=new Date();
              //System.out.println(b.toString());
              // Format the current time.
              SimpleDateFormat formatter = new SimpleDateFormat ("dd-MMM-yyyy ' ' hh:mm:ss a");
              Date currentTime_1 = new Date();
              String dateString = formatter.format(currentTime_1);
              System.out.println(dateString);
    }//end of Test.

  • How to print this output. (Array)

    Hi all. I have two String array:
    String[] a = { "a", "b", "c", "d", "e" };
    String[] b = { "b", "d" };
    I want to print this two array into this output:
    Output:
    a
    bb
    c
    dd
    e
    Anybody can help me how to get this output. I have try with a for loop, but it's not working.

    try this,
    boolean found=false;
    for(int i=0; i<a.length;i++)
             found=false;
             for(int j=0;j<b.length;j++)
                     if(a.equals(b[j])
    found=true;
    if(found==true)
    System.out.println(a[i]+a[i]);
    else
    System.out.println(a[i]);

  • How to print this?

    i need help. if someone could tell me how to print the following pattern
    thank you

    Try having below code snippet in ur program.
    int i=1;
    for(;i<5;i++)
    for(int j=1;j<=i;j++)
    System.out.print("*");
    System.out.print("\n");
    Regs
    Jounty

  • How to Print this as it is- In Detail

    can somebody kindly suggest me a way to print the value of the variable 'str' in the code part.Thanking in advance for your great solutions.
    to explain in detail I have a select query inside this str variable(which now contains 'aaaa....aa' ),and later I want to pass str as an argument to a function,which will execute that query and spool the output of the query into a file....can anybody suggest a solution or an alternative way to this to be achieved...
    code:
    ====
    set serveroutput on;
    declare
    str varchar2(2000);
    begin
    str := 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa';
    dbms_output.put_line(str);
    end;
    declare
    ERROR at line 1:
    ORA-20000: ORU-10028: line length overflow, limit of 255 chars per line
    ORA-06512: at "SYS.DBMS_OUTPUT", line 35
    ORA-06512: at "SYS.DBMS_OUTPUT", line 133
    ORA-06512: at line 5

    Hi ,
    Try this
    SQL> set serveroutput on size 1000000;
    SQL>SQL> ed
    Wrote file afiedt.buf
    1 declare
    2 str varchar2(32000);
    3 begin
    4 str := 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    5 for i in 0 .. length(str)/250 Loop
    6 dbms_output.Put_line(substr(str, i*250+1, 250) );
    7 end loop;
    8* end;
    SQL> /
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    aaaaaaaaaa
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    aaaaaaaaaa
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.02
    Thanks
    Suni

  • How to print report from JSP Page

    Hi Everybody,
    I am developing a simple project in JSP with MS Access. I hav some tables and reports for them. I hav a JSP page which gets inputs from user and save it in the table. Its working fine. But my problems are,
    1) I hav a button called "SAVE & PRINT" in that bottom of the page, if i click that button, the currently entered data has to save in the table and the same data has to print from the MS Access report. I dont know how to print this report from JSP page.
    2) Another button called "REPRINT". If i click that button, it has to ask a number to print the report page, that number is nothing but a field in that report.
    Could anyone help me to solve this problem.

    Hi Everybody,
    I am developing a simple project in JSP with MS Access. I hav some tables and reports for them. I hav a JSP page which gets inputs from user and save it in the table. Its working fine. But my problems are,
    1) I hav a button called "SAVE & PRINT" in that bottom of the page, if i click that button, the currently entered data has to save in the table and the same data has to print from the MS Access report. I dont know how to print this report from JSP page.
    2) Another button called "REPRINT". If i click that button, it has to ask a number to print the report page, that number is nothing but a field in that report.
    Could anyone help me to solve this problem.

  • How to Print the Attachment in Reports

    Hi,
    I am having a Custom form which captures information related to Items. User is attaching Picture of the Item as Attachments. I will generate the information what the User entering in this form.
    Now, my question is, how to print this Item Picture attached as attachments in the report.
    Regards/Prasanth

    You can use a distribution file to define an attachment, have a look at http://download.oracle.com/docs/cd/B14099_17/bi.1012/b14048/pbr_dist.htm#i1006076

  • How to print new line in webdynpro

    Friends,
    I want to print a success message in new line, the below shown is a one singe line and want to split two lines.
    I used this:
    wdComponentAPI.getMessageManager().reportSuccess("Example : this is the test message i would like to print in two lines, some how it is not working please help me how to "+
    "/n/n print this in two new lines.")
    when i execute the above code it is displaying on screen as succsess message as below shown in one line:
    Example : this is the test message i would like to print in two lines, some how it is not working please help me how to print this in two new lines.
    But my requirement expecting  some thing below shown:
    Example : this is the test message i would like to print in two lines, some how it is not
    working please help me how to print this in two new lines.

    really? how?   Ó.o

  • How to print PDF file with PLD

    Hi Experts,
    We have three Annexure copy in PDF and wants to print with sales quotation PLD.
    Pls tell me how to print this.
    Regards,
    Datta Kharat

    Hi Jennifer,
    I dont want to print the PLD in PDF.
    I have Annexture copy in PDF which has to along print with PLD at the end of PLD print.
    I have stored this PDF in attachment folder on B1_SHR.
    and given the link option in UDF on Sales Quotation.
    Now I want If i click on PLD print first PLD should be print then automatcally the PDF has to print which has to attached with UDF.
    Regards,
    Datta kharat

  • How to print BAR CODE in SAP SMART FORMS

    Hi,
    I want to print inspection lot's BAR CODE in the smart form, but i dont know the way how to print this into the smartform.
    if anyone have any idea, please suggest me how to print this as it is urgent for me to complete the object.
    Thanks in advance.
    Best Regards,
    Abnish Jain

    Hello Abnish,
    Welcome to SDN.
    We are able to print barcodes from smartforms. Doing this way, we print barcodes on laser printers.
    We are also printing from sap to zebra printers using two ways:
    1. Download the data to an excel sheet, then creating a macro that opens the printer port and sending the commands to the printer through this "file". All this is done via vb script provided with excel)..
    2. The second way is creating a vbscript (an ascii file from sap) with the printer commands and then runing it using ws_execute.
    You need a barcode reader to read the barcodes, and this scanner acts like a keyboard, it sends the data scanned to the active field on screen. (which might be a notepad, word, excel or an input field or ... ).
    From 4.6c on, you can use smartforms to print barcodes without buying any barcode.dll software nor hardware extention like Bardimm on any laser/inkjet printer (Please Note that I haven't mentioned Zebra printers here!). To do this, you have to create a smartstyle -> character format with the desired barcode font (defined within sap). Then in the smartform, create a window, put the field and associate it the character format. That's all (I mean, that's all we do at least :-). I think, you have to consider the barcode specifications before sending the barcode value to the smartform (Just an example, if you're using 3 of 9, the code should start and end with an asterisk - '*' -) We're printing an interleaved 2 out of 5 barcode in our invoices due to a legal requirement, and we did it this way.
    3. If you have a barcode scanner, then you should not need reading the barcode into an ascii file to get the data read in an standard or custom screen field. You can read it directly to the field you want. (unless... you have complex data coded in the barcode - for example if you're using an ean-ucc 128 compliant code and you're sending several fields in a single code ... In this case, an interface is almost mandatory because you must interpret the data fields according to the ucc standard, split the code into several fields .... and .... pure programming logic ).
    To put it clear: if you have to read, for example, a barcode that holds the legal number of an invoice using a barcode scanner and this number should be sent to migo-> bktxt then you don't need an interface. The scanner itself acts like a fast operator entering the characters using a keyboard and filling in the field.
    We're reading barcodes in several places (when we finish each pallet, when we receive an invoice, and so on. Each case is a different screen. We arent using an ascii file to read these barcodes. Furthermore, we read the invoice legal number into migo bktxt field (Head Text).
    http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
    Regards
    Naren

  • How to print onto a legal size paper

    I'm trying to print a document sent to me as an original PDF 8.5 x 16 document onto a legal size page (8.5 x 14).  I don't have the advanced skills necessary to print in Adobe beyond the basics, and don't have the time to take a course or read the confusing help instructions (e.g., "tiling", "scaling").  I'm hoping someone on this board can simply tell me how to print this document step-by-step.  I have Windows XP with Acrobat Pro 9.0
    Your assistance is greatly appreciated!

    Using AA9, these are the steps I just used to create a 8.5X14 page from another PDF (Note: any bookmarks and links will be lost and would have to be replaced):
    1. Opened the PDF in Acrobat.
    2. Select FILE>Print
    3. Select the Adobe PDF printer.
    4. Select printer properties.
    5. On Adobe PDF Settings tab, you may select the press (Press Quality) or print (High Quality Print) job options.
    6. On either of the other tabs select the Advanced button.
    7. Under Paper/Output>Paper Size, select Legal.
    8. OK back to the print menu and select Page Scaling=>Fit to Printable Area.
    9. OK to print -- select the file name and location, hopefully with successful results. (I checked the PDF I created from a Letter size and it was 8.5X14)

  • How to print continue Line Numbers  in PLD  Differen repetitve areas.

    Hi,
    We need to print line numbers continues in different Repetitive areas.
    Ex. Repetitve Area 0 we have item Discriptions
          Repetitve Area  Footer1 we created sotvalue() here it will display servicetaxes
          Repetitve Area Footer1 we created one text roundoff
    we need output like
    Ex:1. Dell        **Repetitve Area 0****           
          2.Mouse     **Repetitve Area 0****           
          3.Laptop      **Repetitve Area 0****             
          4.servicetax   **Repetitve Area Footer1****           
          5.cess             **Repetitve Area Footer1****           
          6.Hcess             **Repetitve Area Footer1****           
          7.Roundoff           **Repetitve Area Footer1****    as a text field       
      for above all we need to print Line numbers sequence how we can print sequence numbers for differen  areas.if i  assigned Linenum( ) in Repetitve Area 0 it will display one for Repetitve Area 0 only.and i applied Gouplinenum also it's not printing. please guide me how to print this.
    regds,
    sampath kumar devunuri.

    Hi,clint pow.
    Please we did what you said but we are not retreiving data.please tell me how we can get serieal numbers for different repetitve areas.
    regds,
    sampath.

  • How to print the InputStream

    I got InputStream from the HttpServlet.post()
    Now i want print it to console
    Please help me how to print this.
    code Snippet
    class Listner extends HttpServlet
    public void doPost( HttpServletRequest req, HttpServletResponse res )
    InputStream _inputStream =req.getInputStream();
    //here I want to print this stream to console
    }

    Read from the stream and write to the console. Check InputStream API.
    Mike

  • How to print remark on excise invoice

    Dear All,
    Very soon we will have dispatches Exempted from Excise duty. For this new series of Excise Invoice is required to be started with the following remark on the invoice.
    `` E D Exempted vide Sr.No.91 of Notification No.6/2006 dtd.01/03/2006.u2019u2019
    So how to print this remark on the excise invoice. Please help
    Thanks and Regards
    Subu SD

    Dear Subu
    Some of the options are
    -  Maintain the text in VOTXN for billing and from there, you can fetch to excise invoice
    -  apply user exit J_1I7_USEREXIT_EXCISE_BEF_SAVE
    -  in your existing routine itself, the text can be hard coded
    thanks
    G. Lakshmipathi

  • How to print SO line item seperately on four part of paper

    Hi all,
    My client has following requierment.
    if we take A4 size paper and make four equal part  then we will have four part as follows
    part1 (top left),part2(top right),part3(bottom left) and part4(bottom right)*
    In sales order if there are 4 line item then i want to print
    1st line item,desc,qty,whs code,so number,cust name  on part1
    similarly for
    2nd line item,desc,qty,whs code,so number,cust name on part2
    3 line item,desc,qty,whs code,so number,cust name  on part3
    4th line item,desc,qty,whs code,so number,cust name  on part4
    order of printing is as follows
    following is A4 size  paper ,which is divided in to four parts   first line item will be printed on first part
    second line item will be printed on second part
    third line item will be printed on third part
    fourth line item will be printed on fourth part
    and so on 
    printer automaticaly print this  in there customised old ERP now they want this in the SAp B1..
    they tear this paper in four part and while despatching the item they attach this to the Item
    hope i have given proper information about my question..
    Can any body have idea how to print this in above format....
    thanx in advance.
    regards,
    Chetan.

    Hi chetan,
    I tried your require PLD but did not display the Sales Order line item seperately on four part of paper.
    Try this,
    ->> Open the PLD.
    ->> Create 1 Database field on the top Left half of page and 1 Database field on the top Right half of page in Page Header.
    ->> Create 1 Database field on the Bottom Left half of page and 1 Database field on the bottom Right half of page in
    End of Report.
    Result:
    Top Left half of page ->> 1st Row Item Description
    Top Right half of page ->> 1st Row Item Description
    Bottom Left half of page ->> (Last)4th Row Item Description
    Bottom Right half of page ->> (Last)4th Row Item Description
    Because First 2(Left & Right)Database Fields are in Page Header and both 2 fields are in page header so it will be display only the First Row Item Descrition.
    Second 2(Left & Right)Database Fields are in End of Report and both 2 fields are in End of Report so it will be display only the Last Row Item Descrition.
    so, Try this.
    ->> Create 1 Database field on the top Left (or) Right half of page in Page Header.(Display the 1st row Item Description )
    ->> Create 1 Database Field and Assign the Item Description then Create 1 formula field put formula ( LineNum()==2 )field in Repetetive Area0.
    ->> (Item Description)DB field is Link to Formula field ID.(Display the 2nd row Item Description )
    ->> Top of the menu Clcik the Print Layout Designer -> Repetetive Area -> Add.
    ->> Create 2 Database Field and Assign the Item Description then Create 1 formula field put formula ( LineNum()==3 )field in Repetetive Area1.
    ->> 1st (Item Description)DB Field put hide and 2nd DB field is Link to Formula field ID.(Display the 3rd row Item Description )
    ->> Create 1 Formula field and Paste the Item Discription (Hide) Field ID on the Bottom Left (or) Right half of page in End of Report.(Display the Last(4th) row Item Description )
    Regards,
    Madhan.

Maybe you are looking for

  • Xsl-fo template and pdf attachments

    I'm using BI-Publisher and xsl-fo template to create my pdf reports. I need to attach a static pdf file to that report. Is that possible? I see it can be done using apache fop, how it can be done here? Thanks

  • Why does my macbook pro say no airport card

    help

  • Hierarchy Value

    Crystal Report was developed on top of SAP BW Query. In the BW Query, we have defined the 0ProfitCentre as Hierarchy, and we have variable assigned to this so user can select the Hierarchy. In Crystal Report, I have Variable appears under the Paramet

  • I need an economical product to insert/remove pages and convert PDF to PDF/A-1a

    I need an economical product (under $100) to insert/remove pages and convert PDF to PDF/A-1a (or, if it can create PDF/A-1a directly from my scanner, that's good too). There's something for $50 but it only supports PDF/A-1b. Any suggestions?

  • Lost 9100EM admin name and password

    I stupidly lost my admin name and password on my Westell 9100EM.  Is there any way to reset the password?  I believe that the name is still 'admin".  If not, how do I reset the 9100EM to factory defaults and does that change anything other than the c