Parameter more than 45 characters in selection-screen

Hi All,
I requre help for displaying a parameter of visible length 75 characters in selection screen. By default it is displaying 45 characters.
Thanks in advance.
Regards,
Rohit Goel

Hello,
Use the line screen element to do it. Follow an example and you can get the positions like described in the SAP Help Documentation
SELECTION-SCREEN: BEGIN OF LINE,
                  PUSHBUTTON 2(10) push USER-COMMAND fcode,
                  POSITION 16.
PARAMETERS para TYPE c LENGTH 20.
SELECTION-SCREEN: COMMENT 40(40) text,
                  END OF LINE.
INITIALIZATION.
  push = 'Push'.
  text = '<--- Fill field, then push button!'.
Regards.

Similar Messages

  • ABAP Programming to display more than 255 characters in the screen

    Hi
       I want to display more than 255 characters in the screen after executing a report but i cant able to do that.
    Please help me to find out the solution.
    Thanks
      Mrutyunjaya Trpathy

    Hai tripathy,
    when the output of a report contains columns extending more than 255 characters in length.  In such cases, this set of ALV functions can help choose selected columns and arrange the different columns from a report output and also save different variants for report display. This is a very efficient tool for dynamically sorting and arranging the columns from a report output. The report output can contain upto 90 columns in the display with the wide array of display options.
    The commonly used ALV functions used for this purpose are;
    1.REUSE_ALV_VARIANT_DEFAULT_GET
    2.REUSE_ALV_VARIANT_F4
    3.REUSE_ALV_VARIANT_EXISTENCE
    4.REUSE_ALV_EVENTS_GET
    5.REUSE_ALV_COMMENTARY_WRITE
    6.REUSE_ALV_FIELDCATALOG_MERGE
    7.REUSE_ALV_LIST_DISPLAY
    8.REUSE_ALV_GRID_DISPLAY
    9.REUSE_ALV_POPUP_TO_SELECT
      hope u can try in this way.
    REGARDS,
    PRABA.

  • How to declare and read a variable more than 255 characters

    Hi Friends,
          Actually i want to declare a variable which can accepts more than 255 characters as input and the same manner i want to read the data and pass the data as a output length more than 255 characters.
      So how can i delcare the data as a field in the table.
    Thanks & Regards
    Gupta

    Hi Raj,
       Thanks for your reply, please privide the further clarification actually by declaring a variable as string i can able to pass 1023 characters form selection screen like that i passed the data to the three varibles and i concatenated those three varibles in to single varible now is there any way to pass the result into the smartform.
      Please give me some techincal stuff on this
    Regards
    Gupta

  • I want to display message more than 50 characters

    hi experts
    i want to display message more than 50 characters, and the fm 'POPUP_DISPLAY_MESSAGE' can display just 50characters, my message maybe much long, what other fm can i use?
    btw, i cann't use POPUP_TO_CONFIRM to let user select, the popup screen should only have one button to let user type in.

    thanks for ur reply,
    but 'POPUP_TO_DISPLAY_TEXT' just has two lines(every line has character limit), my message to be displayed may be much long.
    why i need the fm is that, i want to display error message when user made error operation, if i use 'message msg type 'E' ', the message display in the status bar at the left-down place and cann't display the whole message if the message is to long.
    so i had like to find a fm like 'POPUP_TO_CONFIRM' which can display multipul lines and just with one button(which is the user required...).

  • How to enter more than 132 characters in a Parameters Field

    Hi Everyone,
    I have a field of type file_table-filename as Parameters in my Selection-screen. The size of the filename is 1024 characters as declared in the structure file_table. But when i am trying to enter the path into this field, its allowing not more than 132 characters....how is it possible to enter more characters? Even in debugging mode the maximum value we can scroll is upto 128/132 characters..if we want more then we should use the Offset option...but how to enter more than 132 chars into this field?
    Best regards,
    rama

    Hai,
    I did the same in my program...i get the filename along with the path into this field...but then there is a chance that the User wants to say edit the filename..here comes the problem.
    Best regards,
    rama

  • How to show more than one image on my screen at same time?

    I recently upgraded to PS-CS4 from CS3 and notice that I can only view one image on my screen. Is there a way to view more than one image on the screen at the same time? I cannot seem to find a way to change this feature.
    Thanks, Richie

    John Joslin wrote:
    In addition, if you don't like the tabs, select Float All in Windows from the Arrange Documents drop-down in the Menu bar up top.
    Or keep pressing the F key.
    The drop-down bar also has a conveneint way of fitting multiple images on the screen. See the illustration below:

  • How to call the same query more than once with different selection criteria

    Hi,
    Please do anybody know how to solve this issue? I need to call one query with the fixed structure more than once with different selection criteria. For example. I have following data
    Sales organization XX
                         Income 2008  Income 2009
    Customer A       10                 20
    Customer B        30                  0
    Sales organization YY
                         Income 2008  Income 2009
    Customer A        20                5
    Customer B        50                10
    Now, I need this. At the selection screen of query, user fill variable  charakteristic "Sales organization" with interval  XX - YY, than I need to generate two separate results per sales organization, one for Sales Organization XX and the second for SO YYwhich will be displayed each on separate page, where result for SO YY will be dispayed under result for SO YY. Are there some options how to do it for example in Report Designer or WAD or with programming? In Report Designer is possible to use one query more than once, but I dont know how to force each query in RD to display result only for one Sales Organization, which will be defined in selection screen.
    Thank you very much
    J.

    Hello,
    thanks to all for cooperation. Finally we solved this issue with the following way..
    User fill appropriate SO on the selection screen, which is defined as range. This will resulte, that selected SO are listed in report below each othe (standard behavior). Required solution we achieved with the Report Designer, we set page break under each Result row of RD. This caused, that report is divided into required part per SO, which are stated each on separate page.
    J.

  • More than 255 characters in a table text field

    Dear experts,
    i am facing a problem (in WD Alv too) that i can not display more than 255 characters in a single text field.
    I want to display a table containing a description field without a limitation of its length. As soon as providing a (formatted) string longer than 255 characters of length, no interactive form is shown on screen.
    Debugging a while, the following error message occurs;
    ADS: com.adobe.ProcessingException: com.adobe.ProcessingException: XMLFM Exception - PDF render operation exception, reason code: 0 : InvalidXDPException: Xml parsing error: reference to invalid character number (error code 14) ...
    Does anybody have similar problems to mine?
    Did anyone resolve the issue to show more than 255 characters in a table in interactive form?
    Regards,
    Florian Royer
    Edited by: Florian Royer on Feb 11, 2010 2:48 PM

    CALL METHOD lr_service_manager->retrieve
            EXPORTING
              iv_bo_name       = 'cPro_Project' "lv_bo_name "cPro_Project
    *      iv_bo_name      = cl_dpr_api_co=>sc_bo_cprojects "
              iv_bo_node_name =  'Longtext.Root' "lv_bo_node_name "Longtext.Root
              it_keys         = lt_ltext_key
              iv_edit_mode    = '0' "iv_edit_mode "0
            IMPORTING
              et_data         = lt_longtext_mast
              et_failed_keys  = lt_ltext_key_fail.
          READ TABLE lt_longtext_mast INTO ls_longtext_mast INDEX 1.
          MOVE ls_longtext_mast-longtext TO ls_action_item-zz_description.
    This is how i get the text with format (line feeds).
    zz_description is type string.
    My table is on a page, wrapped in a subform. and zz_description is type text field.
    Yes, i maintained "allow multiple lines" and did not limit length somehow.
    The problem arises in portal, pressing the preview button of a zform. providing a string <255 characters of length, everything works fine.
    Edited by: Florian Royer on Feb 11, 2010 3:10 PM

  • Using Cast('' to XML) when my stringb is more than 8000 characters

    I have some sql code that is generated dynamically to build a grid.  the xml string that is put together in my sp is dynamic and it just so happens I have a situation where the xml string it put together is more than 8000 characters so when I run my
    query I get 'Msg 9413, Level 16, State 1, Line 1 XML parsing; Line 1, character 8000, A string literal was expected.'
    below is the sql that my sp has built.  any ideas on how I can get it to work? 
    The problem line is the one with '</xs:schema>'as xml)'
    Thanks
    SELECT CAST('<xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop"  attributeFormDefault="qualified"
    elementFormDefault="qualified">' + 
    '<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">' +
    '<xs:complexType>' +
    '<xs:choice minOccurs="0" maxOccurs="unbounded">' +
    '<xs:element name="BOMVerifyValue">' +
    '<xs:complexType>' +
    '<xs:sequence>' +
    '<xs:element name="BOMVerifyValueID" type="xs:int" minOccurs="0" msprop:Visible="0" msprop:Mandatory="1" />' +
    '<xs:element name="Row" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" type="xs:integer" minOccurs="0" msprop:Mandatory="1" />' +
    '<xs:element name="BOMVerifyID" msprop:State="0" msprop:Visible="0" msprop:BestFitColumnMode="2" type="xs:string" minOccurs="0"  msprop:Mandatory="1" />' +
    '<xs:element name="SizeX" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" type="xs:decimal" minOccurs="0"  msprop:Mandatory="1" />' +
    '<xs:element name="SizeY" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" type="xs:decimal" minOccurs="0"  msprop:Mandatory="1" />' +
    '<xs:element name="SizeZ" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" type="xs:decimal" minOccurs="0"  msprop:Mandatory="1" />' +
    '<xs:element name="HasErrors" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" type="xs:boolean" minOccurs="0"  msprop:Mandatory="1" />' +
    '<xs:element name="Warning" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" msprop:ReadOnly="true" type="xs:boolean" minOccurs="0"  msprop:Mandatory="1"
    />' +
    '<xs:element name="RMK" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4041" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4046" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NTK" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4051" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ROT2" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4071" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FR-TK" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4076" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NoDoors" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4081" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NoDrawers" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4086" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NoDFBox" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4091" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FHD" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4096" type="xs:string" minOccurs="0" />' +
    '<xs:element name="OneDrawer" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4121" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BT" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4126" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDF" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4136" type="xs:string" minOccurs="0" />' +
    '<xs:element name="EL" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4161" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ER" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4166" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FE-L" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4191" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4196" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK-Back" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4206" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BTBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="7979" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ELBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8024" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ERBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8032" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDEPLeft" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8190" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDEPRight" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8195" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDEPRightButt" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8413" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDEPLeftButt" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8480" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDFBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="9204" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FHDBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="9262" type="xs:string" minOccurs="0" />' +
    '<xs:element name="OneDrawerBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="9304" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NoDoorsFHD" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="9408" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NTKFE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="10151" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NTKFE-L" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="10172" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK-FE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19191" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK-FE-L" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19195" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK_FrontBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19199" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK_BackFE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19203" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK-BackFE-L" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19207" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ROTOneeachside" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19422" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FHDSendDoorsLoose" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19733" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FHDSendDoorsLooseOne" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19737" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ELFE-LBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="20199" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ERFE-RBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="20203" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ELFE-L" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="20335" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ERFE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="20339" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTKFE-LFE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="20703" type="xs:string" minOccurs="0" />' +
    '</xs:sequence>' +
    '</xs:complexType>' +
    '</xs:element>' +
    '</xs:choice>' +
    '</xs:complexType>' +
    '</xs:element>' +
    '</xs:schema>'as xml)
     SELECT * FROM (
     SELECT ROW_NUMBER() OVER (ORDER BY [bomvv].[BOMVerifyID]) as Row 
         , [BOMVerifyValueID] 
         , [bomvv].[BOMVerifyID] 
         , [bomv].[Size_X] + [SizeX] as [SizeX] 
         , [bomv].[Size_Y] + [SizeY] as [SizeY] 
         , [bomv].[Size_Z] + [SizeZ] as [SizeZ] 
         , [HasErrors] 
         , CASE WHEN ISNULL([bomvtl].[BOMVerifyTransactionLogID], 1) <> 1 
                THEN CASE WHEN ISNULL([csp].[CabinetServiceProcessID], 1) <> 1 
                          THEN '0' 
                          ELSE CASE WHEN ISNULL([bomvv].[UpdateDate], '1/1/2001') > ISNULL([bomvtl].[DateAdded], '1/1/2001') THEN 0 ELSE 1 END 
                     END 
                ELSE '0' 
                END as [Warning] 
         , CASE WHEN CHARINDEX( '4041',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [RMK]
         , CASE WHEN CHARINDEX( '4046',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FTK]
         , CASE WHEN CHARINDEX( '4051',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [NTK]
         , CASE WHEN CHARINDEX( '4071',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [ROT2]
         , CASE WHEN CHARINDEX( '4076',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FR-TK]
         , CASE WHEN CHARINDEX( '4081',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [NoDoors]
         , CASE WHEN CHARINDEX( '4086',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [NoDrawers]
         , CASE WHEN CHARINDEX( '4091',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [NoDFBox]
         , CASE WHEN CHARINDEX( '4096',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FHD]
         , CASE WHEN CHARINDEX( '4121',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [OneDrawer]
         , CASE WHEN CHARINDEX( '4126',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [BT]
         , CASE WHEN CHARINDEX( '4136',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [BDF]
         , CASE WHEN CHARINDEX( '4161',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [EL]
         , CASE WHEN CHARINDEX( '4166',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [ER]
         , CASE WHEN CHARINDEX( '4191',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FE-L]
         , CASE WHEN CHARINDEX( '4196',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FE-R]
         , CASE WHEN CHARINDEX( '4206',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FTK-Back]
         , CASE WHEN CHARINDEX( '7979',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [BTBack]
         , CASE WHEN CHARINDEX( '8024',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [ELBack]
         , CASE WHEN CHARINDEX( '8032',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [ERBack]
         , CASE WHEN CHARINDEX( '8190',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [BDEPLeft]
         , CASE WHEN CHARINDEX( '8195',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [BDEPRight]
         , CASE WHEN CHARINDEX( '8413',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [BDEPRightButt]
         , CASE WHEN CHARINDEX( '8480',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [BDEPLeftButt]
         , CASE WHEN CHARINDEX( '9204',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [BDFBack]
         , CASE WHEN CHARINDEX( '9262',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FHDBack]
         , CASE WHEN CHARINDEX( '9304',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [OneDrawerBack]
         , CASE WHEN CHARINDEX( '9408',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [NoDoorsFHD]
         , CASE WHEN CHARINDEX( '10151',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [NTKFE-R]
         , CASE WHEN CHARINDEX( '10172',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [NTKFE-L]
         , CASE WHEN CHARINDEX( '19191',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FTK-FE-R]
         , CASE WHEN CHARINDEX( '19195',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FTK-FE-L]
         , CASE WHEN CHARINDEX( '19199',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FTK_FrontBack]
         , CASE WHEN CHARINDEX( '19203',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FTK_BackFE-R]
         , CASE WHEN CHARINDEX( '19207',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FTK-BackFE-L]
         , CASE WHEN CHARINDEX( '19422',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [ROTOneeachside]
         , CASE WHEN CHARINDEX( '19733',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FHDSendDoorsLoose]
         , CASE WHEN CHARINDEX( '19737',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FHDSendDoorsLooseOne]
         , CASE WHEN CHARINDEX( '20199',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [ELFE-LBack]
         , CASE WHEN CHARINDEX( '20203',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [ERFE-RBack]
         , CASE WHEN CHARINDEX( '20335',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [ELFE-L]
         , CASE WHEN CHARINDEX( '20339',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [ERFE-R]
         , CASE WHEN CHARINDEX( '20703',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FTKFE-LFE-R]
      FROM [CabinetDesigner].[BOMVerifyValue] bomvv 
     INNER JOIN [CabinetDesigner].[BOMValue] bomv 
     ON [bomv].[BOMID] = [bomvv].[BOMID] 
     AND [bomv].[EndDate] IS NULL 
     LEFT OUTER JOIN [CabinetDesigner].[BOMVerifyTransactionLog] bomvtl 
     ON [bomvtl].[BOMID] = 9143
     AND [bomvtl].[Processed] = 0 
     LEFT OUTER JOIN [CabinetService].[CabinetServiceProcess] csp 
       ON [csp].[BOMVerifyTransactionLogID] = [bomvtl].[BOMVerifyTransactionLogID] 
      AND [csp].[BOMVerifyID] = [bomvv].[BOMVerifyID] 
     WHERE [bomvv].[BOMID] = 9143
     AND [bomvv].[EndDate] IS NULL 
     ) xx 
     FOR XML PATH('BOMVerifyValue'), TYPE)
     FOR XML PATH('NewDataSet')

    Each of those segments is a varchar with some number up to 8000 and when you concatenate it, you get a varchar(8000).
    If you remove the single quotes and plus signs and create a single string, you will get a varchar(max) which works.
    Or you can concatenate an empty varchar(max) variable:
    declare @t varchar(max) = ''
    SELECT CAST(@t + '<xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">' +
    '<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">' +
    '<xs:complexType>' +
    '<xs:choice minOccurs="0" maxOccurs="unbounded">' +
    '<xs:element name="BOMVerifyValue">' +
    '<xs:complexType>' +
    '<xs:sequence>' +
    '<xs:element name="BOMVerifyValueID" type="xs:int" minOccurs="0" msprop:Visible="0" msprop:Mandatory="1" />' +
    '<xs:element name="Row" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" type="xs:integer" minOccurs="0" msprop:Mandatory="1" />' +
    '<xs:element name="BOMVerifyID" msprop:State="0" msprop:Visible="0" msprop:BestFitColumnMode="2" type="xs:string" minOccurs="0" msprop:Mandatory="1" />' +
    '<xs:element name="SizeX" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" type="xs:decimal" minOccurs="0" msprop:Mandatory="1" />' +
    '<xs:element name="SizeY" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" type="xs:decimal" minOccurs="0" msprop:Mandatory="1" />' +
    '<xs:element name="SizeZ" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" type="xs:decimal" minOccurs="0" msprop:Mandatory="1" />' +
    '<xs:element name="HasErrors" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" type="xs:boolean" minOccurs="0" msprop:Mandatory="1" />' +
    '<xs:element name="Warning" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" msprop:ReadOnly="true" type="xs:boolean" minOccurs="0" msprop:Mandatory="1" />' +
    '<xs:element name="RMK" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4041" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4046" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NTK" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4051" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ROT2" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4071" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FR-TK" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4076" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NoDoors" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4081" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NoDrawers" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4086" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NoDFBox" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4091" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FHD" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4096" type="xs:string" minOccurs="0" />' +
    '<xs:element name="OneDrawer" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4121" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BT" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4126" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDF" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4136" type="xs:string" minOccurs="0" />' +
    '<xs:element name="EL" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4161" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ER" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4166" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FE-L" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4191" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4196" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK-Back" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4206" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BTBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="7979" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ELBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8024" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ERBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8032" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDEPLeft" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8190" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDEPRight" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8195" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDEPRightButt" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8413" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDEPLeftButt" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8480" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDFBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="9204" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FHDBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="9262" type="xs:string" minOccurs="0" />' +
    '<xs:element name="OneDrawerBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="9304" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NoDoorsFHD" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="9408" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NTKFE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="10151" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NTKFE-L" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="10172" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK-FE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19191" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK-FE-L" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19195" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK_FrontBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19199" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK_BackFE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19203" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK-BackFE-L" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19207" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ROTOneeachside" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19422" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FHDSendDoorsLoose" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19733" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FHDSendDoorsLooseOne" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19737" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ELFE-LBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="20199" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ERFE-RBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="20203" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ELFE-L" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="20335" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ERFE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="20339" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTKFE-LFE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="20703" type="xs:string" minOccurs="0" />' +
    '</xs:sequence>' +
    '</xs:complexType>' +
    '</xs:element>' +
    '</xs:choice>' +
    '</xs:complexType>' +
    '</xs:element>' +
    '</xs:schema>'as xml)
    Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com

  • NCLOB variable declared used in procedure cannot store more than 33317 characters.

    Hi,
    I tried to use NCLOB variable to create a procedure dynamically and while constructing the procedure inside NCLOB variable, if more than 33317 characters are put into the variable, then when I try to print this variable, it is not returning anything.
    It works till 33317 characters. But not above it.
    Is there any way I can overcome this restriction. Thanks in advance.

    The iPod shuffle is a music player. The iPods with screens have always been more than that. If the iPod didn't have a calendar, contacts, and notes I wouldn't have considered buying one. Music playing is nice, but I certainly didn't want to carry around multiple devices needlessly. The iPod and a simple cell phone are enough. When the iPhone comes out maybe I'll be down to one device.
    As for the Palm, having been a Newton user at the time I was never impressed with anything about Palm except its size. The same people who bought cheap PC's instead of Macs bought cheap Palms instead of Newtons. Quantity rather than quality won out.
    Apple learned from that and made the iPod a good size to begin with, otherwise it might have suffered a similar fate.
    The only PDA capability the iPod lacks is the ability to edit its content independently of the computer. That would be handy, but it turns out hasn't been a critical need for me. More often than not I need to look something up not change something while away from my office. There is a good side to this though, if I lost the iPod I would not have to worry a bit about losing any Contacts, Calendar events, or Music. Notes though, well that is a different matter, those I backup.
    I guess one person's music player is another person's PDA.
    Regards

  • Column with more than 4000 characters

    Hi,
    Version: 10.2.0.4.0
    I have a requirement to display more than 4000 characters (clob, long data type) through sql.
    Though this can be achieved through pl/sql, I am not able to get the output in sql statements. Is it possible to get this done through sql?
    I can use intermediate pl/sql processing if needed.
    Thanks for your help.

    Preta wrote:
    Though this can be achieved through pl/sql, I am not able to get the output in sql statements. Is it possible to get this done through sql?Yes, what did you try? - Hopefully not LONG
    SQL> drop table t purge;
    Table dropped.
    SQL> create table t (c clob);
    Table created.
    SQL> insert into t values (rpad(to_clob('x'),4001, 'x'));
    1 row created.
    SQL> set long 5000
    SQL> set pages 100
    SQL> select c from t;
    C
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxx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xxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    x
    SQL>Regards
    Peter

  • Parameter longer than 4000 characters

    The java layer calls a EXEC_DDL stored proc that does a EXECUTE IMMEDIATE on the VARCHAR2 parameter string passed in. SInce the java layer is passing more than 4000 characters DDL statement we get an error about cannot bind long ..... What datatype should I use as a parameter instead of VARCHAR2 inside the EXEC_DDL stored proc. Steven Feuerstein advises against using LONG in his PL/SQL book. All the LOB types are for objects either INSIDE or OUTSIDE of the database but I just want the java code to be able to pass a DDL string greater than 4000 chars. I want to use the simplest approach.
    Thanks in anticipation

    a SUBSTR or a DBMS_LOB.SUBSTR works. This is the final working version of the EXEC_DDL proc. We used the DBMS_LOB package in case we needed to overload with other types of LOB parameters.
    procedure exec_ddl (
    pi_ddl_string IN CLOB
    ,po_status OUT PLS_INTEGER
    AS
    PRAGMA AUTONOMOUS_TRANSACTION;
    -- AUTHID CURRENT_USER will be added after exception handling is packaged
    v_clob_buff VARCHAR2(500);
    BEGIN -- outer block
    EXECUTE IMMEDIATE pi_ddl_string;
    po_status := PKG_SNAPIT.pk_success;
    EXCEPTION
    WHEN OTHERS THEN
    v_clob_buff := DBMS_LOB.SUBSTR(pi_ddl_string,500,1);
    insert into exception_log values(sysdate,'COMPILE ERROR IN : ' || v_clob_buff,'pkg_dynamic_sql'
    ,'exec_ddl');
    COMMIT;
    pkg_snapit.Log_Errors ( 'Error_Stack...' || Chr(10) || DBMS_UTILITY.FORMAT_ERROR_STACK() );
    pkg_snapit.Log_Errors ( 'Error_Backtrace...' || Chr(10) || DBMS_UTILITY.FORMAT_ERROR_BACKTRACE() );
    po_status := SQLCODE;
    RAISE;
    END exec_ddl;
    Edited by: user4900730 on Mar 11, 2010 2:00 PM

  • Displaying more than 4000 characters

    Hi
    I have a report which would display a CLOB field having text of length around 32000 characters.
    I tried to use DBMS_LOB.SUBSTR(<field_name>,32000,1) on the query so that it shows the text at least till 32000 characters on the report but it keeps returning an error ORA-06502 PL/SQL: numeric or value error string - character string buffer too small whenever it is more than 4000 characters in that particular field.
    Can anyone pls suggest any solution ASAP?
    Thanks
    Arnab

    You can split your clob in varchar2 4000 drop table tab1;
    create table tab1 (
      clsplit_id                   number(10)        NOT NULL,
      clsplit_type1val          CLOB                 NULL,
      clsplit_type2val          CLOB                 NULL
    drop type some_list;
    drop type my_t;
    create type my_t as object
          id1 number,
          clob_type number,
          no_clob_lines      number,
          clob_line      number,
          clob_data      varchar2(80)
    show errors
    create type some_list as table of my_t
    show errors
    insert into tab1 values(1, 'a0123456789b0123456789c0123456789d0123456789e0123456789f0123456789leftover',
          'a9876543210b9876543210c9876543210d9876543210e9876543210f9876543210leftover');
    insert into tab1 values(2, '0aaaaaaaaaa1bbbbbbbbbb2cccccccccc3dddddddddd4eeeeeeeeee5ffffffffff',
          'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
    insert into tab1 values(3, 'first has data, second null', null);
    insert into tab1 values(4, null, 'first null second has data');
    insert into tab1 values(5, 'short lob', 'short lob');
    commit;
    create or replace function some_func return some_list pipelined is
          num_allowed_chars      number      := 4000;
          clob1_len                  number;
          clob2_len                  number;
          loop_counter            number;
          col_name                  varchar2(100);
          current_line            number;
          i                              integer;
            out_rec my_t := my_t(NULL,NULL,NULL,NULL,NULL);
    begin
          for c1 in ( select clsplit_id, clsplit_type1val, clsplit_type2val from tab1 )
          loop
                -- get first clob
                if c1.clsplit_type1val is not null then
                      clob1_len := dbms_lob.getlength(c1.clsplit_type1val);
                      if clob1_len > num_allowed_chars then
                            for i in 1..ceil(clob1_len/num_allowed_chars) loop
                                  out_rec.id1 := c1.clsplit_id;
                                  out_rec.clob_type := 1;
                                  out_rec.no_clob_lines := ceil(clob1_len/num_allowed_chars);
                                  out_rec.clob_line := i;
                                  out_rec.clob_data := substr(c1.clsplit_type1val,( i * num_allowed_chars ) - num_allowed_chars + 1,num_allowed_chars);
                                  pipe row(out_rec);
                            end loop;
                      else
                                  out_rec.id1 := c1.clsplit_id;
                                  out_rec.clob_type := 1;
                                  out_rec.no_clob_lines := 1;
                                  out_rec.clob_line := 1;
                                  out_rec.clob_data := c1.clsplit_type1val;
                                  pipe row(out_rec);
                      end if;
                end if;
                -- get second clob
                if c1.clsplit_type2val is not null then
                      clob2_len := dbms_lob.getlength(c1.clsplit_type2val);
                      if clob2_len > num_allowed_chars then
                            for i in 1..ceil(clob2_len/num_allowed_chars) loop
                                  out_rec.id1 := c1.clsplit_id;
                                  out_rec.clob_type := 2;
                                  out_rec.no_clob_lines := ceil(clob2_len/num_allowed_chars);
                                  out_rec.clob_line := i;
                                  out_rec.clob_data := substr(c1.clsplit_type2val,( i * num_allowed_chars ) - num_allowed_chars + 1,num_allowed_chars);
                                  pipe row(out_rec);
                            end loop;
                      else
                                  out_rec.id1 := c1.clsplit_id;
                                  out_rec.clob_type := 2;
                                  out_rec.no_clob_lines := 1;
                                  out_rec.clob_line := 1;
                                  out_rec.clob_data := c1.clsplit_type2val;
                                  pipe row(out_rec);
                      end if;
                end if;
          end loop;
          return;
    end;
    show errors
    select * from
    table(select some_func() from dual)
    order by 1,2,4;

  • Need to create Table Maintenance with more than 400 characters

    I need to create table maintenance in which one filed have more than 400 characters. CHAR type support between 1-255 & STRING type not supported by Table Maintenance. Is there any alternative type or solution for that?

    Hi,
    If  you assign TMG to the table, it will throw error as unable to display the field on screen. why because it can able to display upto 255 char length only.
    For this requirement you have 2 solutions :
    1) Create multiple fields and your Z table, split the data and store them as required.
    2) Create a TEXT ID and store it as a long text using FM CREATE_TEXT.
    or
    This type of text should be treated as Long Text.
    And the steps are:
    1. Create Text Object Using SE75.
    2. Create Text ID Using SE75.
    3. Now you have to Save the text with FM SAVE_TEXT.
    For example:
    The Most simple solution for it can be that Divide the field REMARKS of size 1000 in multiples of 200 characters like REMARK1, REMARK2....REMARKn.
    Now you can create two FMs :
    zset_data: To Store 1000 char long data in Table
    Here you will divide the data of Variable (type char1024) in multiples of 200 and will store in REMARK1, REMARK2.....
    zget_data: To Get 1000 char long data back from Table
    Here you will concatenate REMARK1, REMARK2..... and will store in Variable of Type char1024.
    This is the best solution if Table is not going to be maintained by Table Maintenance Generator.
    regards,
    ravi

  • More than 255 characters required in excel send as attachment in mail.

    Hi Experts,
    I have a requirement to send displayed list in an ALV report as attachment in excel through mail. I have used FM SO_DOCUMENT_SEND_API1. Now the problem is my excel data in more than 255 characters in a line. It is about 400 characters.But it is taking upto 255 characters in the internal table which is passed to parameter contents_bin . This is because the internal table is of type SOLISTI1. But the excel should hold atleast 400 characters as per my requirement. How to overcome this issue ? Please suggest me...
    Regards,
    SURYA

    Say your records are exactly 400 length (I am saying 400 for sake of simplifying things, in reality record lengths can be variable and have to be calculated using STRLEN)
    You will cut the first record at 255 length and put it in first row. You will put next 145 characters in 2nd row, followed by newline characters (hex 0D and 0A) at positions 146 & 147 (which indicates end of record for excel, so that it puts next record in a new excel row).
    The second record will start from 148th character in second row till 255, that is 108 characters and will extend into 3rd row till 400 - 108 = 292th character followed by newline characters (hex 0D and 0A) at postions 293 & 294, followed by contents of 3rd record and so on and so forth.
    If you records are of variable length you can also think of always blank padding them to create a record of such a fixed length that always your records are lesser than that and fit into it. This will leave some blank spaces at the end of each record in excel, which may be fine.

Maybe you are looking for

  • Why are my pages different in browser from within muse and preview

    this is how it looks in browser.this is how it looks in muse.

  • While exporting the Report to Excel Records are showing two times

    Hello Gurus When im trying to export a report from NW Portal to Excel,  data is showing double times, even variable selections screen, records are  showing two tmes. What would be the problem, does we need any SP. Thanks in advance. Regd Lajwanth

  • Upgrade from Tiger 10.4.11 to Snow Leopard 10.6.5

    I have a MAC desktop with Tiger 10.4.11 and just recently bought another MAC desktop with Snow Leopard 10.6.5. I want to buy the Microsoft Office Home/Student 2011 for MAC 1 user with 3 license. Question: The older 10.4.11 will not support the 2011 e

  • Need Help .... (JNI)

    Dear Well, i try to learn about JNI so i try stegostick, u can get stegostick at http://sourceforge.net/projects/stegostick i can understand this application until this problem appear T_T Java interface and C++ library have done and i try to call lib

  • BT turning speed down and latency up ??

    BT turning speed down and latency up ?? Hi All & Happy new year Wanted to see if anyone else has seen the same issues as I have. Right 4 ISP's in the last 18 mths. 1. Zen internet - perfect but expensive, 7mb down speed. 2. Newcall (resold Tiscali ie