Download to excel - long text in single row using gui_download

Hi Experts,
I want to download the long text (read_text) (500-600 characters) to excel in single row. the column width should be 60.
i am using the gui_download FM as in my report i m using one gui_download for header data and 2nd one for details using APPEND . Can u suggest me the solutions for the same. Can i use word wrap option and if yes , then how to use it?
For eg.
Customer Satisfaction
There are no escalations / adverse feedback from the customer
Customer uses him/her for benchmarking others
Regular status update to customer
Proactively understands future needs of customer
Increases customer's confidence so that there is an increase in quality / quantity of work
This whole text should appear as single row.
Thanks,
Edited by: Khushi p on Nov 12, 2010 10:44 AM

I tried alot to put this in a legible format by usingcode...code but still it is not putting the code in a correct format.May be some mentor will put it in a good format so that you can understand.Below is a wraper progrm which meets your objective.
REPORT  ZSCRATCHPAD.
TABLES:EKPO.
TYPE-POOLS:slis.
TYPES : BEGIN OF ty_ekpo,
         ebeln TYPE ekko-ebeln,
         ebelp TYPE ekpo-ebelp,
         txz01 TYPE ekpo-txz01,
         matnr TYPE ekpo-matnr,
         werks TYPE ekpo-werks,
         loekz TYPE ekpo-loekz,
         oic_ptrip TYPE ekpo-oic_ptrip,
         menge TYPE ekpo-menge,
         meins  TYPE ekpo-meins,
         umrez TYPE ekpo-umrez,
         umren TYPE ekpo-umren,
         text  TYPE string,
        END OF ty_ekpo.
TYPES : BEGIN OF ty_text ,
        tdformat TYPE tline-tdformat,
        tdline TYPE tline-tdline,
        END OF ty_text.
data:  g_t_ekpo TYPE STANDARD TABLE OF ty_ekpo WITH HEADER LINE,
       g_repid TYPE sy-repid,
       g_ebeln(15),
       l_fieldname1 LIKE ibipparms-path,
       l_fieldname2 TYPE string,
       g_objectid LIKE cdhdr-objectid,
       g_t_text TYPE STANDARD TABLE OF ty_text WITH HEADER LINE,
       g_t_text1 TYPE STANDARD TABLE OF ty_text WITH HEADER LINE.
data:g_fieldcat type slis_t_fieldcat_alv with header line,
     g_events type slis_t_event,
     wa_events like line of g_events,
     g_listheader type slis_t_listheader,
     walistheader like line of g_listheader,
     g_layout type slis_layout_alv,
     g_top type slis_formname,
     g_sort type slis_t_sortinfo_alv with header line,
     g_sort1 type slis_sortinfo_alv,
     g_printparams type slis_print_alv,
     g_variant type disvariant,
     g_title type lvc_title,
     g_excluding type slis_t_extab,
     g_grid TYPE REF TO cl_gui_alv_grid.
field-symbols: <fs> type lvc_title.
SELECT-OPTIONS:P_EBELN FOR EKPO-EBELN NO INTERVALS.
PARAMETERS:p_r1 radiobutton group grp1,
           p_r2 radiobutton group grp1.
SELECT ebeln
       ebelp
       txz01
       matnr
       werks
       loekz
       oic_ptrip
       menge
       meins
       umrez
       umren
       INTO TABLE g_t_ekpo
       FROM ekpo
       WHERE ebeln IN p_ebeln
       AND loekz NE 'L'.
IF sy-subrc <> 0.
  CLEAR g_t_ekpo.
ENDIF.
define m_fieldcat.
  g_fieldcat-fieldname = &1.
  g_fieldcat-col_pos = &2.
  g_fieldcat-seltext_l = &3.
  g_fieldcat-do_sum = &4.
  g_fieldcat-outputlen = &5.
  g_fieldcat-checkbox = &6.
  append g_fieldcat to g_fieldcat.
  clear  g_fieldcat.
end-of-definition.
if p_r1 = 'X'.
PERFORM summary_display.
else.
perform download.
endif.
FORM summary_display .
  concatenate 'Test' ' ' into g_title separated by space.
  assign g_title to <fs>.
  g_repid = sy-repid.
  m_fieldcat 'EBELN'     ''  'EBELN'     ''  10   ''.
  m_fieldcat 'EBELP'     ''  'EBELP'     ''  05   ''.
  m_fieldcat 'TXZ01'     ''  'TXZ01'     ''  40   ''.
  m_fieldcat 'MATNR'     ''  'MATNR'     ''  10   ''.
  m_fieldcat 'WERKS'     ''  'WERKS'     ''  04   ''.
  m_fieldcat 'LOEKZ'     ''  'LOEKZ'     ''  01   ''.
  m_fieldcat 'OIC_PTRIP' ''  'OIC_PTRIP' ''  16   ''.
  m_fieldcat 'MENGE'     ''  'MENGE'     ''  13   ''.
  m_fieldcat 'MEINS'     ''  'MEINS'     ''  03   ''.
  m_fieldcat 'UMREZ'     ''  'UMREZ'     ''  05   ''.
  m_fieldcat 'UMREN'     ''  'UMREN'     ''  05   ''.
  g_layout-zebra = 'X'.
  g_layout-colwidth_optimize = 'X'.
  call function 'REUSE_ALV_GRID_DISPLAY'
    exporting
      i_callback_program       =  g_repid
*     i_callback_pf_status_set = 'SET_PF_STATUS'
      is_layout                =  g_layout
      i_callback_user_command  =  'LIST1'
      i_grid_title             = <fs>
*     i_callback_top_of_page   = ' '
      it_fieldcat              = g_fieldcat[]
*     it_excluding             = g_excluding
      i_save                   = 'A'
*     is_variant               = ITVARIANT
      it_events                = g_events[]
*     is_print                 = ITPRINTPARAMS
*     it_sort                  = itsort[]
    tables
      t_outtab                 =  g_t_EKPO[]
      exceptions
      program_error           = 1
      others                  = 2.
  if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  endif.
  clear:g_fieldcat.
  refresh:g_fieldcat.
ENDFORM.                    " summary_display
form list1 using r_ucomm like sy-ucomm rs_selfield type slis_selfield.
  case r_ucomm.
    when '&IC1'.
      REFRESH g_t_text.
      if rs_selfield-fieldname = 'EBELN'.
        READ TABLE g_t_ekpo INDEX rs_selfield-tabindex.
        CONCATENATE g_t_ekpo-ebeln  g_t_ekpo-ebelp  INTO g_ebeln. "CRQ94538-Capture text
        SHIFT g_ebeln LEFT DELETING LEADING space.
        PERFORM read_text USING g_ebeln g_t_text[].
        IF g_t_text[] IS NOT INITIAL.
          PERFORM pop_up_with_table .
        ENDIF.
      endif.
    when 'OTHERS'.
      leave to screen 0.
  endcase.
endform.                                                    "list1
FORM read_text  USING    p_ebeln   p_t_itab LIKE g_t_text1[].
  PERFORM fill_readtext USING p_ebeln 'EKPO' 'F01' p_t_itab.
ENDFORM.                    " f0008_read_text
FORM fill_readtext  USING    p_vbeln
                             p_object
                             p_textid
                             pt_itab  LIKE g_t_text[] .
  DATA: ls_itab LIKE LINE OF g_t_text,
        l_header LIKE thead,
        l_tdname LIKE thead-tdname.
  CLEAR pt_itab.
  REFRESH pt_itab.
  MOVE p_vbeln TO l_tdname.
  CALL FUNCTION 'READ_TEXT'
    EXPORTING
      client                  = sy-mandt
      id                      = p_textid
      language                = sy-langu
      name                    = l_tdname
      object                  = p_object
    IMPORTING
      header                  = l_header
    TABLES
      lines                   = pt_itab
    EXCEPTIONS
      id                      = 1
      language                = 2
      name                    = 3
      not_found               = 4
      object                  = 5
      reference_check         = 6
      wrong_access_to_archive = 7
      OTHERS                  = 8.
endform.                    "fill_readtext
FORM pop_up_with_table .
  CALL FUNCTION 'POPUP_WITH_TABLE'
    EXPORTING
      endpos_col   = 82
      endpos_row   = 20
      startpos_col = 10
      startpos_row = 10
      titletext    = ' '
    TABLES
      valuetab     = g_t_text
    EXCEPTIONS
      break_off    = 1
      OTHERS       = 2.
  IF sy-subrc NE 0.
    CLEAR g_t_text.
  ENDIF.
ENDFORM.                    " f4000_pop_up_with_table
FORM download .
  if g_t_ekpo[] is not initial.
    loop at g_t_ekpo.
*      concatenate text-001 g_t_ekpo-matnr into g_t_ekpo-matnr.
      PERFORM convert_table_to_string.
      modify g_t_ekpo.
      clear g_t_ekpo.
    endloop.
  endif.
  CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
      filename                = 'C:/KKVT/TEST.XLS'
      filetype                = 'ASC'
      write_field_separator   = 'X'
    TABLES
      data_tab                = g_t_ekpo
    EXCEPTIONS
      file_write_error        = 1
      no_batch                = 2
      gui_refuse_filetransfer = 3
      invalid_type            = 4
      no_authority            = 5
      unknown_error           = 6
      header_not_allowed      = 7
      separator_not_allowed   = 8
      filesize_not_allowed    = 9
      header_too_long         = 10
      dp_error_create         = 11
      dp_error_send           = 12
      dp_error_write          = 13
      unknown_dp_error        = 14
      access_denied           = 15
      dp_out_of_memory        = 16
      disk_full               = 17
      dp_timeout              = 18
      file_not_found          = 19
      dataprovider_exception  = 20
      control_flush_error     = 21
      OTHERS                  = 22.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  else.
  message: 'file downloaded' type 'S'.
  ENDIF.
ENDFORM.                    " download
FORM convert_table_to_string .
  DATA: str TYPE string,
        len TYPE i,
        tot_len TYPE i.
  FIELD-SYMBOLS <fs1> TYPE ANY.
  IF g_t_ekpo-ebeln IS NOT INITIAL.
    CONCATENATE g_t_ekpo-ebeln  g_t_ekpo-ebelp  INTO g_ebeln. "CRQ94538-Capture text
    SHIFT g_ebeln LEFT DELETING LEADING space.
    PERFORM read_text USING g_ebeln g_t_text[].
    IF g_t_text[] IS NOT INITIAL.
      CLEAR: len,
             tot_len,
              str.
      DO.
        ASSIGN COMPONENT sy-index OF STRUCTURE g_t_text TO <fs1>.
        IF sy-subrc NE 0.
          EXIT.
        ENDIF.
        DESCRIBE FIELD <fs1> LENGTH len IN CHARACTER MODE.
        ADD len TO tot_len.
      ENDDO.
      CALL FUNCTION 'CONVERT_TABLE_TO_STRING'
        EXPORTING
          i_tabline_length = tot_len
        IMPORTING
          e_string         = str
        TABLES
          it_table         = g_t_text[].
      IF sy-subrc = 0.
        g_t_ekpo-text = str.
      ENDIF.
    ELSE.
      CLEAR: g_t_ekpo-text,
             tot_len,
             len,
             str.     .
    ENDIF.
  ENDIF.
ENDFORM.                    " convert_table_to_string
Edited by: Kiran K on Nov 18, 2010 5:21 AM

Similar Messages

  • Mutiple Rows from a Single Row using SQL

    How can i get Multiple rows from a single row using sql ?
    Example : one row contains the complete address separated by delimiter say comma (,) as address1,address2,city,state,zip,country
    I want to split this row and get the output in multiple rows as address1 address2 city state zip country using sql query.
    Thanks,

    Hi,
    The solution above assumes that the |-delimited entries always contain at least one character. If you have a string like
    1 Elm Street|||Sioux City|IA||it will think 'Siuox City' is address2.
    If you have empty entries, like that, then you need something a little more complicated:
    INSERT INTO table2
    (       address1
    ,     address2
    ,     address3
    ,     city
    ,     state
    ,     postal
    ,     country
    SELECT     SUBSTR (REGEXP_SUBSTR ('|' || txt, '\|[^|]*', 1, 1), 2)     -- address1
    ,     SUBSTR (REGEXP_SUBSTR ('|' || txt, '\|[^|]*', 1, 2), 2)     -- address2
    ,     SUBSTR (REGEXP_SUBSTR ('|' || txt, '\|[^|]*', 1, 3), 2)     -- address3
    ,     SUBSTR (REGEXP_SUBSTR ('|' || txt, '\|[^|]*', 1, 4), 2)     -- city
    ,     SUBSTR (REGEXP_SUBSTR ('|' || txt, '\|[^|]*', 1, 5), 2)     -- state
    ,     SUBSTR (REGEXP_SUBSTR ('|' || txt, '\|[^|]*', 1, 6), 2)     -- postal
    ,     SUBSTR (REGEXP_SUBSTR ('|' || txt, '\|[^|]*', 1, 7), 2)     -- country
    FROM     table1
    ;

  • Display the  long text in alv by using function modules

    Hi all,
    How to display the  long text in alv by using function modules ?
    Send me any sample code.
    Thanks in advance
    krupali.

    Hello KR,
    Use READ_TEXT and concatenate the first lines of the text.
    CALL FUNCTION 'READ_TEXT'
         EXPORTING
              id       = 'F01'
              language = sy-langu
              name     = lv_name " purchase order with leading zeroes
              object   = 'EKKO'
         TABLES
              lines    = t_lines
         EXCEPTIONS
              OTHERS   = 8.
    You can loop at t_lines and concatenate header in to some other field.
    Best Regards,
    Sasidhar Reddy Matli.
    Edited by: Sasidhar Reddy Matli on Aug 13, 2008 12:25 PM

  • How to download and upload long text for project, WBS , Network,

    Hi all,
    I have two isssues.
    1) I am extracting Projects, WBS , Network , Network activity and network activity element from a SAP 4.7 system using bapi's
    BAPI_PROJECTDEF_GETDETAIL
    BAPI_PROJECT_GETINFO
    BAPI_NETWORK_GETINFO
    BAPI_BUS2054_GETDATA
    I am able to get all the details except long text. I want to know how do i extract the long text other than getting it manually by using select_text and Read_text Function module, is there any bapi to achieve this.
    The reason why i am not using Function modules Read_text and Write_text is, object name( TDNAME ) value stored in STXH table for project, wbs and network are the project, wbs and network itself so i dont have any issues with this but the TDname value for activity and activity element are completely different ( Routing number and counter is stored respectively ) which i am not getting as the part of the bapi(BAPI_NETWORK_GETINFO) output.
    2)  I have to upload the extracted Project and it sub object data to ECC 6.0 system , i am able to achieve this by using BAPI's BAPI_PROJECTDET_CREATE, BAPI_PROJECT_MAINTAIN and BAPI_NETWORK_MAINTAIN. I am not able to load the longtext for the same, is there any way to load the long text .
    All help will be greatly appreciated and rewarded.
    Thanks & Regards,
    Rajanidhi Rajasekeran.

    I don't think there is any BAPI to do it.
    We are doing it by read_text & edit_text . required fields for text name can be fetched by following select
      if not e_activity[] is initial.
        select aaufnr aaufpl baplzl bobjnr b~vornr
          into corresponding fields of table t_longtext
          from afko
            as a
        left join afvc
            as b
            on aaufpl = baufpl
           for all entries in  e_activity
           where a~aufnr = e_activity-network
           and a~aufnr is not null.
      endif.
          txtname = wa_longtext-objnr.
          replace c_nv in txtname with sy-mandt.

  • How to send long text  in a mail using FM : SO_NEW_DOCUMENT_SEND_API1

    Hi All,
    In my BSp application user can enter long text   ( can be more than 300 char ) in TextEdit.
    problem is as below:
    1) i am getting all the text in oninput processing ...
    2) using the FM READ_TEXT to   get mail template built in SO10.
    3) Replacing all dynamic variables in mail template with user enterd text.
    4) then passing the data to FM SO_NEW_DOCUMENT_SEND_API1.  this FM has table parameter with 255 char ( please check once )
    i am able to send the data  in mail.   But long text more than 256 char is not comming as single paragraph.
    For expamle  ...user enter the following  text in text edit.
    Responsible for the development, implementation, and maintenance of human resource information systems (HRIS) associated with the collection, retrieval, accessibility, and usage of employee information for Human Resource department planning and activities.  Maintains internal database files and tables, and develops custom reports to meet the requirements of Human Resource management and staff.
    in inbox i am getting as below:
    Job Description for    : Responsible for the development, implementation, and maintenance of human resource information systems (HRIS) associated with the collection, retrieval, accessibility, and usage of employee information for Human Resource depa
      Maintains internal database files and tables, and develops custom reports to meet the requirements of Human Resource management and staff.
    Job Description for is fixed text from SO10 templete.   and  remainning text is user text.
    some data is missing in mail.
    SO10 template  is as below  :
    Job Description for : &INSTRUC1&
    &INSTRUC2&
    help to solve the above issue.
    Regads,
    Kishan
    Edited by: kishanrao.sap on Oct 11, 2010 3:12 PM

    Hi Krishna,
      Please use the object_type parameter of tthe FM as 'HTM'.
    Then divide the text by append them into the lines of the object_content. In the begining and end make sure you have
    <p> --  in the begining
    </p>-- in the end
    if i want to type the text in one para " My name is Imran and i am an ABAP developer".
    CLEAR: WA_OBJECT_CONTENT.
      WA_OBJECT_CONTENT-line = '<html>'<body><p> My name is Imran.
      APPEND WA_OBJECT_CONTENT TO T_OBJECT_CONTENT.
    CLEAR WA_OBJECT_CONTENT.
      WA_OBJECT_CONTENT-line = ' and i am an ABAP developer</p></body><html;>'.
      APPEND WA_OBJECT_CONTENT TO T_OBJECT_CONTENT.
    Hope this helps you.
    Regards
    Imran.

  • Long Text display in WebI using transient provider

    Hi,
    I need to display the long text (about 5000 characters) in WebI report  in one column. I have created a transient provider and query with 84  (5000/60) InfoObject . when i tried to create the WebI query with all 84 dimensions,  got error
    "Termination message sent  ABEND RSBOLAP (000): Program error in class  CL_RSBOLAP_QV_RESULT_SET
    method : TOO_MANY_DRILL_DOWN_OBJECTS
    MSGV1: CL_RSBOLAP_QV_RESULT_SET  MSGV3: TOO_MANY_DRILL_DOWN_OBJECTS (WIS 00000)"
    I think more than 50 fields can not be fetched and displayed.
    So to over come this I created 2 WebI queries having 42 fields each. I concatenated 42 dimensions from each query in to 2 variables. But when I tried to concatenate these 2 variables system does not allow that it gives #DATASYNC error. Could you please help here, how to archive this?
    Regards,
    Amit

    Hi,
    you can do this by using workbooks.
    Check the below link very useful:
    /people/sap.user72/blog/2006/05/27/long-texts-in-sap-bw-modeling
    last read creation of orkbooks in the above link.
    /people/sap.user72/blog/2006/06/05/long-texts-in-sap-bw-displaying-in-bex-analyzer-introduction-to-excel-workbooks-formatting-part-i
    /people/sap.user72/blog/2006/06/05/long-texts-in-sap-bw-displaying-in-bex-analyzer-introduction-to-excel-workbooks-formatting-part-ii
    Reg
    Pra

  • To Make the Long text field as required using OA Framework Personalization

    Hi All
    In IProcurement requisition, we have long text field called 'Justification' a long text field. I have made this field as mandatory by setting the required property as 'Yes' at site level. This works for Most of the cases. However if the user just presses Enter key and skip without entering something in this field . So how to stop the user without entering something except spaces or enterkey to proceed further.
    Regards
    Rajkumar

    Hi,
    Very Interesting question, I never thought of it.
    In your case you may try to extend the controller of that page and in the controller trim the text and set that value to the text.
    In other way, You can try in USER hook function : POR_CUSTOM_PKG package, check if you are getting that value.
    Regards
    Apurba K Saha

  • Problem in Getting Long Text After uploading LT using CREATE_TEXT in CORS

    Hi Gurus,
    i am uploading long text for Reason for cancellation in CORS Transaction through CREATE_TEXT.
    after uploading this text by using this FM CREATE_TEXT i am seeing the long text what ever i uploaded through CREATE_TEXT , i am unable to see first 40 characters of that long text.
    if anybody faced this problem earlier please guide me to resolve this problem.
    Thanks & Regards
    Venkata Ramesh J

    Hi,
    can you please check this link
    Replacing the text created in create_text
    Thanks
    durga.K

  • No long text in message after using after using DSWPNOTIFCREATE

    Hi,
    After creating a message by using the BSP DSWPNOTIFCREATE the long text is not visable in the message. When I display the massage in solutions manager the system Data, short text is visable in the message, but not the longtext.
    Richard

    Hi,
    After creating a message by using the BSP DSWPNOTIFCREATE the long text is not visable in the message. When I display the massage in solutions manager the system Data, short text is visable in the message, but not the longtext.
    Richard

  • How to save long text for IA01 Transaction using BDC

    Hi All,
    In my requirement I have to create a Task List Equipment and Task List Functional Location using BDC.Here I need to upload the long text for both IA01 and IA11 transactions.I am using SAVE_TEXT function module to save the text and COMMIT_TEXT also after save text.But I am not able to see the text in IA12 and IA02 transactions.But using READ_TEXT I am able to get the text what updated using SAVE_TEXT.
    Please answer for this if any one worked on this requirement <Priority normalized by moderator>
    Thanks,
    Satya.
    Edited by: Vinod Kumar on Jan 2, 2012 9:02 PM

    Hi Satya,
    There is a simple way to update the long text. There is  direct input object in the LSMW for long text.
    Object            : 0001
    Method          : 0001
    Program type : D
    SImply go and create the LSMW with first option and follow the steps. No need to call the function modules separately. This standard program will take care of every thing.
    If you have multiple lines to populate in the equipment master at the header level then you need two set of files. Then key will be equipment number with leading zeros if it will not be alpha numeric.
    1) First file with field EQUNR.
    2) Second file will be
    EQUNR                          C(018)    Technical identification number
    TXPARGRAPH                     C(002)    Tag column
    TXLINE                         C(072)    Text editor text line
    TEXT_MARK                      C(001)    Description Indicator for RIIBIP00 (IBIP) Processing
    Please let me know if you need more in detail.
    Thanks,
    Satheesh

  • Add at least single row using collection

    Hi all,
    Iam using Apex 3.2
    I have two regions.
    one region contains master data and
    second region contains child data in updatable report.
    in scond region i have created updatable report using apex items.
    While saving it should show the message if zero rows found in updatble report.
    how do I write the javascript validation if zero rows in report.
    the updatable report code is
    select
    'Delete' delete_checkbox,
    APEX_ITEM.Hidden(2,x.ASSIGN_SEQ_ID,'f02_#ROWNUM#') as "ASSIGN SEQ ID",
    APEX_ITEM.DISPLAY_AND_SAVE(2,x.ASSIGN_SEQ_ID,'f02_#ROWNUM#') as "ASSIGN SEQ ID_D_LINK",
    APEX_ITEM.SELECT_LIST_FROM_QUERY(3,x.CRITERIA_SEQ_ID,'select CRITERIA_NAME, CRITERIA_SEQ_ID from PRFD_MMS_VENDOR_CRIT_MSTR order by CRITERIA_SEQ_ID',null,'YES','0','--Select Criteria--','f03_#ROWNUM#',null,'NO') as "Criteria",
    APEX_ITEM.TEXT(4,x.WEIGHT_FACTOR,10,15,'onKeypress="if(!isNS4){if(event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;}else{if(event.which < 45 || event.which > 57)return false;}"','f04_#ROWNUM#') as "Weight Factor"
    from PRFD_MMS_ASSIGN_VENDOR_CRIT x
    where supplier_id = v('P522_SUPPLIER')
    and   PROJECT_NO  = v('P522_PROJ_NO') 
    UNION
    select
    'Delete' delete_checkbox,
    APEX_ITEM.hidden(2,null) as "ASSIGN SEQ ID",
    APEX_ITEM.DISPLAY_AND_SAVE(2,null) as "ASSIGN SEQ ID_D_LINK",
    APEX_ITEM.SELECT_LIST_FROM_QUERY(3,null,'select CRITERIA_NAME, CRITERIA_SEQ_ID from PRFD_MMS_VENDOR_CRIT_MSTR order by CRITERIA_SEQ_ID',null,'YES','0','--Select Criteria--','f03_#ROWNUM#',null,'NO') as "Criteria",
    APEX_ITEM.TEXT(4,null,10,15,'onKeypress="if(!isNS4){if(event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;}else{if(event.which < 45 || event.which > 57)return false;}"','f04_#ROWNUM#') as "Weight Factor"
    from dual
    WHERE  :REQUEST = 'ADD_ROWS'
    connect by level <= 1please give the solution.
    Thanks in advance
    balu
    Edited by: Balu K on Dec 15, 2010 1:40 AM
    Edited by: Balu K on Dec 15, 2010 1:42 AM
    Edited by: Balu K on Dec 15, 2010 1:55 AM
    Edited by: Balu K on Dec 15, 2010 1:59 AM

    Hi Gus,
    try to execute
    select count(*) from dual where exists (select  MAX(1)
          , sysdate
          , 'Gus'
    from  dual
    where 1 = 2
    group by sysdate, 2)in SQL Developer. The above statement is generated by APEX for an "Exists (SQL query retruns at least one row)". Can't test it, because I don't have a 10.2.0.4.0 at hand.
    Does SQL Developer now show the same behavior?
    Patrick
    My APEX Blog: http://www.inside-oracle-apex.com
    The APEX Builder Plugin: http://builderplugin.oracleapex.info/
    The ApexLib Framework: http://apexlib.sourceforge.net/

  • Long Text creation of Delivery using DELVRY03

    Hi Gurus,
        I'm using Delvry03 basic type to create ASN in SAP. It is an Inbound processing. Here the problem as I'm not able to create HEADER text's using the segment E1TXTH8. wghen i try to create using SAVE_Text function module texts are getting created, Also i didn't find any E1TXTH8 realated code in the inbound function module idoc_input_delvry. is there any way to create header text without going for user-exits.
    Thanks&Regards,
    Naren.

    hi naren,
                 to say in detail about ur doubt i need ur code.u can send ur code to my mail-id [email protected]

  • Unable to reorder/change column names on interactive single row view

    I have created an interactive report and grouped my columns to display nicely in a single row view report. However, once I initially add the columns to a group, I am unable to reorder them. I can move them up and down the list, but the changes don't save. Also, I have gone through column by column and unchecked the box that says Use Same Text for Single Row View and expanded the column name. However, the single row view still displays what is in the master report. I've tried closing out my browser completely and reopening, but I am still not seeing my changes. Any suggestions?

    I also just stumbled about the "Use Same Text for Single Row View" option actually doing nothing - in Single Row View I still get the label text from "Column Heading", no matter what I enter in "Single Row View Label".
    I had to adjust a column width using a span tag in the heading (as this seems to be the only way to do that - any other suggestions I found adding style information to the region header had no effect), and now that tag is displayed in the Single Row View label.
    I can live with that for now, but it's not really nice.
    Is this a known bug? Didn't find anything else in the forum regarding this problem so far.
    Holger

  • Interactive Report's Column Definition - Single Row View Label Bug?

    Hello,
    I have an Interactive report that I've added a Blue background to certain column headings (done by giving Column Heading a background color), this works fine except for the Single Row view - it displays the &lt;....&gt; code I used to get the background color and the column heading. I've tried to change the Single Row View Label by unchecking the 'Use Same Text for Single Row View' on the Column Definition and giving a different label, it just ignores whatever I put in and shows the Column Heading with the &lt; .... &gt; code. Is this a Bug or am I doing something wrong?
    Thanks,
    Anna

    Hi Anna,
    I believe that it is a bug.
    If the 'Use Same Text for Single Row View' checkbox is unticked and some text is entered in the 'Single Row View Label' field it gets ignored completely when viewed in the single row view and the existing value in 'Column Heading' is used.
    I wanted to do something similar to you, colouring some of the Interactive Report column headers, and it works fine in the IR report itself but shows the code (span style:color etc) in the single row query. I am using Apex 3.1.1 and the Sand Theme.
    I created a simple application on apex.oracle.com using the red theme and in single row view it still ignores the 'Single Row View Label' but interestingly shows the Column Heading text without the code. This indicates that there could be a work-around by altering the theme.
    Regards,
    Chris

  • How to store long text in db

    Hello experts,
    I want to store long text field into database using abap oops, any valuable inputs?
    I guess i can use internal table and breakup lines to multiple lines, but not sure this would help, any suggestions?
    Thanks in advance.
    Viral

    hii,
    SELECT single tdtxtlines
                  from stxh
                  into v_textline
                  where tdid = 'Z01A'
                  and   tdname = p_vbeln
                  and   tdobject = 'VBBK'.
    if v_textline ne 0.
      L_NAME = P_VBELN.
      CALL FUNCTION 'READ_TEXT'
       EXPORTING
         ID                            = 'Z01A'
         LANGUAGE                      = SY-LANGU
         NAME                          = L_NAME
         OBJECT                        = 'VBBK'
       TABLES
         LINES                         = IT_TLINE
      EXCEPTIONS
        ID                            = 1
        LANGUAGE                      = 2
        NAME                          = 3
        NOT_FOUND                     = 4
        OBJECT                        = 5
        REFERENCE_CHECK               = 6
        WRONG_ACCESS_TO_ARCHIVE       = 7
        OTHERS                        = 8.
    ENDIF.
    If you want continous text u can use Loop under this.
    Regards,
    Sridhar.V

Maybe you are looking for