How to display text in item 4000 bytes in size

Hi,
I have a table with CLOB column and I am fetching this data and displaying it in page item. But the limitation with page item is the size, it can't hold more that 4000 bytes. But I have some rows in the table with more than 64K bytes.
Alternatively If I create PL/SQL dynamic content region with htp.p, it can hold upto 32K bytes as varchar2 support only this limit.
What will be the solution if I want to display that data on the page?
Thnx
-Smith

Smith
Try this
  CREATE OR REPLACE PROCEDURE buffer_print(p_text IN CLOB) IS
  BEGIN
    FOR i IN 1..CEIL((LENGTH(p_text))/10)
    LOOP
      htp.prn(SUBSTR(p_text,(i-1)*10+1,10));
    END LOOP;
  END; Cheers
Ben

Similar Messages

  • How to display text on last but one page in SAPSCRIPTS

    how to display text on last but one page in SAPSCRIPTS

    u have create one Foooter window , this has to be called in  only One Page.So hardcode /assign this window to only one PAGE number.
    regards
    Prabhu

  • How to display texts automatic. besides entered value for a field in Trans.

    How to display texts automatically besides the entered value for a field in a standard transaction screen. For example you have a value table and a text table associated to it. Then on entering the value field and pressing enter the text associated should get displayed immediately besides the value. Like if you have 'LOC' as the value and 'Location' as the text associated to it, on entering this value 'LOC', you automatically get the text 'Location' printed besides it automatically in a transaction screen ?
    Message was edited by: Sarika Kedia

    Hi sarika,
    Welcome to SDN.
    1. first of all, such display of text,
       is not automatic.
       (it appears to be automatic)
    2. At design time,
       a) take one extra field for text
         and mark it as OUTPUT ONLY
    3. Then in PBO coding,
        call some module, and in that module
        write code
    4. The code should be to
       select from TEXT Table
       into the work area.
    EG. THE SCREEN TEXT FIELD NAME IS
    T510A-FIELDNAME.
    CLEAR t510a.
      SELECT SINGLE * FROM t510a INTO t510a
      WHERE trfar = FIELVALUE.
    5. This will take care of
       displaying the text value of that field.
    regards,
    amit m.

  • How to display text on last but one page

    how to display text on last but one page

    Hi Preeti,
      If u r working on a smartform then click on th window go to the condition tab there
      at the end u will find events click on the the event on which u want to trigger the 
      print.
      If u r working on a script then create a text element and call this text elemtn at
    the end of processing of the main window, this will make sure that thetext element
    is triggered only at the end.
    I hope that helps u , if not pls let me know.
    Regards,
    Vaibhav B Gawali.

  • How to display text file in JSP?

    Hi,
    I am new to servlet/JSP/java programming.
    I have been able to download a file using ftp. I dont know who to display it in JSP.
    Here is my code. Any help will be appreciated...
    <%@ page import="java.util.*" %>
    <%@ page import="java.lang.*" %>
    <%@ page import="java.net.*" %>
    <%@ page import="java.io.*" %>
    <%@ page import="com.dmhistory.*" %>
    <html>
    <head>
    <title>Untitled</title>
    </head>
    <body>
    <%
    byte[] bytes = new byte[4096];
    URL theUrl = new URL("ftp://user:passwd@host/migr/Movers_for_Ora8/BG/logs/FLD-PAC3-20020311.log");
    BufferedInputStream in = new BufferedInputStream(theUrl.openStream());
    BufferedOutputStream outstream = new BufferedOutputStream(new FileOutputStream( new File( "D:/temp/log.txt" )));
    int pos = in.read( bytes );
    while ( pos != -1) {
    outstream.write( bytes, 0, pos );
    pos = in.read( bytes );
    %>
    <%
    in.close();
    %>
    DONE!!!
    </body>
    </html>
    How can i display this downloaded file in the browser?
    I want to display it in the original format i.e which new line and carriage returns...line by line..
    Thanks,

    Hi,
    I finally go it to display. but now I have new problem. The browser shows the text without the /n/r.
    But when I view the source using 'view->source', if see that the text has got proper format with newline and carriage returns.
    Any ideas how to display it correctly in the browser?
    <%
                   URL theUrl = new URL("ftp://user:pwd@host/migr/Movers_for_Ora8/BG/logs/FLD-PAC3-20020311.log");
                   //URL theUrl = new URL("ftp://dbcmaint:[email protected]/migr/Movers_for_Ora8/SNP/logs/SNP-PAC2-20020314.log");
                   URLConnection uc = theUrl.openConnection();
                   InputStream content = uc.getInputStream();
                   BufferedInputStream in = new BufferedInputStream (content);
                   LineNumberReader lnr = new LineNumberReader (new InputStreamReader (in));
                   String tempStr = "";
                   String str = "";
                   while ((tempStr = lnr.readLine()) != null) {
                   str += (tempStr);
                        %>
                        <%=tempStr%>
                        <%tempStr = "";
                        %>
                   <%
                   in.close();
                   lnr.close();
              %>
    Thanks

  • How to display TEXT vertically in SMART FORM

    Hai,
    I need to display the column name of a table vertically (readable from bottom to top) in smart form.
    Could any one please tell me how to do this?
    Thanks & Best Regards,
    Maniyam Bhaskar.

    Hi,
    Go through these threads for the discussions happened on similar issue... hope it helps you..
    how to print text vertically in smart forms
    vertical and horizontal printing in same page with smartforms or sapscript
    Good luck
    Narin

  • How to display TEXT more than 500 char in a report as multiple lines.

    Hi Friends,
    i have a requirement like i should display Texts of length more than 500 Characters in a report( ALV LIST) as multiple lines
    I am fetching the data Using FM READ_TEXT
    the output im currently geeting with 150 Char in lenth as a single line
    How we can split the text into multiple lines in a report
    first i would like to know is it possible? if possible please give your valuable suggitions if not is there any alternative way to do this task.
    Thanks & regards
    kumar.

    Hi,
    This is possible but the Solution might not look Standard/Appropriate to you.
    In ALV, you can have Multiple Line Output...There is a Field in the Field Catalogue..called as Row_position...this is by default 0...which means Single row/Line ALV output....You can have this Value in the Range of 0 to 3.......A ALV field with row_position 1, will be displayed in the second line for every record...i.e. you will have multiple line for a single record of ALV.
    In your case......you can use this but you need to split your field in two fields.....but you may end up spliting a single word....but for that also you can design the logic of splitting the Fiel value at SPACE only......
    This may work.......and Sorry if not work......

  • How to display Cleared/open item symbol' in alv?

    Hi Experts,
                 I am developing ALV report like faglb03,additionaly including some fields as per user requirement.here i want to display " Cleared/open item symbol' in alv.Can anyone tel me how to do this.In which and how it is stored in table?
    Thanks in Advance!

    [Formatting Column Contents|http://help.sap.com/saphelp_nw04/helpdata/en/ff/4649a6f17411d2b486006094192fe3/frameset.htm]
    check the documentation for ICON , check the table ICON for more symbols
    [Sample code of alv list|http://www.sap-img.com/abap/regarding-icon-display-in-alv.htm]]

  • How to display text in script as same as text in news paper

    Hi Expets
    I have a requirement i need to display text in script as same as text displayed in news paper
    with out creating any windows. iie ( Abcdef should be in one cloum after some space i need to display 1234)
    please let me know how can i achieve this
    Ex
    1.
    hi abcdef           12345
        abcedf          12345
    abcedf            12345
    Regards
    Suresh
    Edited by: suribabu124 on Jun 15, 2010 7:55 AM

    Hi,
    If you need to print a form like news paper you need go for multiple main windows.We know that we can use 99 main windows in one page.first create one main window and then leave a space then create one more window and select window type as mainwindow.
    while populating data,after completion of one main window the control will move to next main window,which is in the same page.
    Like this you need to analyse and code according to your requirement.

  • How to hide text field item based on true or false cases in oracle apex

    Hi,
    I have a set of text Field items in oracle apex:
    Order Number
    Revision Number
    When we open the report, revision should be hidden.
    Only when the user enters unique order number (non-duplicate order numbers), revision number should be visible.
    If he enters duplicate order number, revision number should be hidden.
    Please help.

    Hi 2932464,
    2932464 wrote:
    Hi,
    I have a set of text Field items in oracle apex:
    Order Number
    Revision Number
    When we open the report, revision should be hidden.
    Only when the user enters unique order number (non-duplicate order numbers), revision number should be visible.
    If he enters duplicate order number, revision number should be hidden.
    Please help.
    Giving you example how to achieve this.
    Step 1. Create three Page Items
        1) P1_ORDER_NO - Text Field
        2) P1_REVISION_NO - Text Field
        3) P1_ENABLE_DISABLE_REVNO  - Hidden,Value Protected - No
    2. Create 3 Dynamic Actions
    1) Disable revision number on page load
        Event - Page Load
        Action - Disable
        Fire When Event Result Is  - True
        Selection Type - Item
        Item - P1_REVISION_NO
      2) Check duplicate order number
        Event - Change
        Selection Type - Item(s)
        Item(s) - P1_ORDER_NO
        Condition - is not null
        Action - Execute PL/SQL Code
        Generate opposite false action - Unchecked
        Fire When Event Result Is  - True
        Fire on page load - Unchecked
        Stop Execution On Error - Checked
        Wait for Result - Checked
        PL/SQL Code -
    declare
    l_count number;
    begin
      select count(*) into l_count
        from emp
       where empno = :P1_ORDER_NO;
    if l_count > 0 then
      :P1_ENABLE_DISABLE_REVNO := 1;
    else
      :P1_ENABLE_DISABLE_REVNO := 0;
    end if;
    end;
    Page Items to Submit = P1_ORDER_NO
    Page Items to Return  = P1_ENABLE_DISABLE_REVNO
    3 ) Enable and Disable Revision Number
        Event - Change
        Selection Type - Item(s)
        Item(s) - P1_ENABLE_DISABLE_REVNO
       condition - greater than or equal to
       value  - 1
       Action - Disable
       Fire on Page Laod - Unchecked
       Generate opposite false action - checked
       Selection Type = Item(s)
       Item(s) - P1_REVISION_NO
    Hope this helps you,
    Regards,
    Jitendra
    DER_NO

  • How to create Text Web item based on characteristics text!

    Hi
      In a template, I have a hierarchy object Region which is in the left panel, then on the right i have table displaying with dataprovider.
    When the user select the hierarchy Region say Australia , then on the right I add the text web item, based on which the user selected, my text on righ side becomes australia, if they select Europe, then it should display europe.
    Give me some solutions
    Thanks
    BI Learner

    No one answered...

  • How to display text in custom control?

    Im doing a module pool program. There I have a Input field ,if user input there, some text I have to show in custom control. I have created custom control . But how to display some text there? what method I have to use?
    I have use this code for creating custom control.
    CREATE OBJECT EDITOR_CONTAINER
          EXPORTING
            CONTAINER_NAME              = 'TEXTEDITOR'
          EXCEPTIONS
            CNTL_ERROR                  = 1
            CNTL_SYSTEM_ERROR           = 2
            CREATE_ERROR                = 3
            LIFETIME_ERROR              = 4
            LIFETIME_DYNPRO_DYNPRO_LINK = 5.
        CREATE OBJECT TEXT_EDITOR
          EXPORTING
            PARENT           = EDITOR_CONTAINER
            WORDWRAP_MODE    = CL_GUI_TEXTEDIT=>WORDWRAP_AT_FIXED_POSITION
            WORDWRAP_POSITION          = LINE_LENGTH
            WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=>TRUE.

    Hi,
    You will have to use the method 'set_text_as_r3table' to display your text in the object.
    The text will have to be passed as an internal table to the method.
    Regards,
    Ankur Parab

  • How to display text in reverse order ?

    I was wondering how to display data [text-numbers...etc] in the reversed order.
    E.g.
    if the data is as follows:
    ORACLE
    it should be displayed as:
    ELCARO
    thanx in advance !

    An alternative would be a MODEL clause solution:Nice!
    Here another alternative with only one measure:
    SQL> create table t
      2  as
      3  select 'bocajijA' col1 from dual union all
      4  select 'ORACLE' from dual union all
      5  select null from dual
      6  /
    Tabel is aangemaakt.
    SQL> select old_col
      2       , col1
      3    from t
      4   model
      5         partition by (col1 old_col)
      6         dimension by (0 i)
      7         measures (col1)
      8         rules iterate(10000) until (iteration_number = length(col1[0])-1)
      9         ( col1[0]
    10           = substr(col1[0],1,iteration_number) ||
    11             substr(col1[0],length(col1[0]),1) ||
    12             substr(col1[0],iteration_number + 1, length(col1[0])-iteration_number-1)
    13         )
    14  /
    OLD_COL  COL1
    bocajijA Ajijacob
    ORACLE   ELCARO
    3 rijen zijn geselecteerd.Regards,
    Rob.

  • How to display a line item in the billing calculation ?

    Hi Experts,
    My client requirement is to just display a line item in billing without affecting the total invoice amount. ( line item should just show up, no calculation should be included).
    Regards,
    Farooq

    i agree on the rate step fr the calculation you would like to see the line item check the variant control, it usually has the option to write a line item.  depending on the variant.
    bobby r.

  • How to display text dynamically

    hello,
                                  i am working in dialog programing i need to display text which is save in a file and i want that whenever each new call screen i should display a text message from my flat file on the new screen ..... is there is a funda of xml?

    If the text is same for all the screens then copy it into a string or variable type c and write it on all the screens

Maybe you are looking for

  • Cannot add file to Documentum. "Create" operation failed for object id=null

    Upgraded ro Frame 11 recently and now I cannot add a new document to Documentum. I get the following error. I still have Frame 10 installed and can check in the document with it, but Frame 11 does not recognize it as a FrameMaker file.

  • Loss of Mouse Scroll Wheel Function

    I took a leap and a leap of faith upgrading from Firefox 3.something to 11.0. I'm working through the little annoying differences in the user interface, but I'm having a problem with scrolling. I can't put my finger on any particular web site or page

  • Last PO Price

    Hi Can anyone please help me with the below question: Std SAP proposes moving average price when a PR is created and last PO price when PO is created. The reason for this is that for a Req. we still do not know the source of supply. Can you please le

  • Setting the preferred width or height of a ListView using css ?

    Is it possible to set the preferred width and height of a Node (a ListView) using css ? Just in case I tried with: .my-list {      -fx-pref-width: 130;      -fx-pref-height: 100; but it does not seem to work.

  • MBDOCin CRM IDOC in ECC

    I want to transfer my sales order details in sap crm to an IDOC in ECC to create a TC. I have the IDOC as Tradingcontract01 to which i want to post data from CRM. Could you please help me the detaied steps to do the same.