Long text in table control lines

If i put long text  buttons on the  table control coulum, when the line  is deleted  from the table, the text for tha line  are permenantly deleted before the screen is saved in the user command. how do i correct the problem ?
regards
Rendani

Use the FM for text delete when u press save button and not at table control delete command.
physically delete the line from table control and put it in internal table which can be used for deletion purpose at time of actual deletion...

Similar Messages

  • Long text in table control

    Hi SDN, Rich Please respond ..! <b>ITS VERY URGENT</b>
    i need a longtext in one of the table contol of my customised screen. the purpose of the screen is to create RFQ's where in user can enter LT ( just like the transaction IW32 - > Operations Tab - > LT Column. actually the LT in that table control is a button, pressing on which will take the user to an editor like SAP Script editor )
    <b>how do i save this into my customised tables so taht i display the LT in the display screen for RFQ's</b>
    This same LT created in RFQ Creation screen should be displayed to the users in another customised screens of RFQ Display / Change where the same functionality is needed.
    Please help me in achieving this, i have been struggling from past few days, and this is very urgent.
    i have been tryin the same with the fm's edit_text and read_text, but am not clear on these fm's related to HEADER in the importing parameters of the fm.
    is this wrong? or is there any other way to achieve my requirement?
    Please HELP
    Pratyusha

    Hi,
    Check this code..To display the text in a text editor control..
    First you have to create a custom control in your screen painter and name it as CONTAINER1..
      Then apply this code..
    TYPES: BEGIN OF type_text,
             line(70),
           END OF type_text.
    DATA: t_texttable1 TYPE STANDARD TABLE OF type_text.
    DATA: custom_container TYPE REF TO cl_gui_custom_container,
          editor TYPE REF TO cl_gui_textedit,
          repid LIKE sy-repid.
    repid = sy-repid.
    CALL SCREEN '0100'.
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE status_0100 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
      PERFORM delete_container.
    *- Container franchise codes
      IF editor IS INITIAL.
        repid = sy-repid.
        CREATE OBJECT custom_container
           EXPORTING
              container_name = 'CONTAINER1'
           EXCEPTIONS
            cntl_error                  = 1
            cntl_system_error           = 2
            create_error                = 3
            lifetime_error              = 4
            lifetime_dynpro_dynpro_link = 5
            others                      = 6.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        CREATE OBJECT editor
             EXPORTING
                parent = custom_container
              wordwrap_mode = cl_gui_textedit=>wordwrap_at_fixed_position
               wordwrap_mode = cl_gui_textedit=>wordwrap_at_windowborder
                wordwrap_position = '38'
                wordwrap_to_linebreak_mode = cl_gui_textedit=>true.
    *- Eliminate toolbar
        PERFORM toolbar.
      ENDIF.
      PERFORM load_data.
    Load TextEdit control with texts
      CALL METHOD editor->set_text_as_r3table
        EXPORTING table = t_texttable1.
      IF sy-subrc > 0.
      Display an error message
        EXIT.
      ENDIF.
      CALL METHOD cl_gui_cfw=>flush.
    ENDMODULE.                 " STATUS_0100  OUTPUT
          FORM delete_container                                         *
    FORM delete_container.
      IF NOT editor IS INITIAL.
        CALL METHOD editor->delete_text.
        CALL METHOD cl_gui_cfw=>flush
              EXCEPTIONS
                OTHERS = 1.
        IF sy-subrc > 0.
    Errormessage: Error in flush
        ENDIF.
      ENDIF.
    ENDFORM.                    " delete_container
          FORM toolbar                                                  *
    FORM toolbar.
      DATA: lv_toolbar_mode TYPE i VALUE 0.
      CALL METHOD editor->set_toolbar_mode
        EXPORTING
          toolbar_mode = lv_toolbar_mode.
      CALL METHOD cl_gui_cfw=>flush.
      IF sy-subrc > 0.
    Errormessage: Error in flush
      ENDIF.
    ENDFORM.                    " toolbar
    *&      Form  LOAD_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM load_data.
      DATA: gwa_line TYPE type_text.
    gwa_line-line = 'HELLO HOW ARE YOU!!!!!'.
    APPEND gwa_line TO t_texttable1.
    ENDFORM.                    " LOAD_DATA
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE user_command_0100 INPUT.
      DATA: T_SAVE_TEXT TYPE STANDARD TABLE OF TLINE.
      DATA: S_SAVE_tEXT TYPE TLINE.
      DATA: S_TEXT TYPE TYPE_TEXT.
    Load TextEdit control with texts
      CALL METHOD editor->get_text_as_r3table
        IMPORTING table = t_texttable1.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    Hope this helps...
    Thanks,
    Naren

  • Tcode FV50: How to find long text in FI Document line item Before Saving.

    Hi,
    How to find long text in FI Document line item.
    During Parking of the FI document through Tcode FV50 i m giving the some text in the long text not in the text field.
    I would like to validate the Long Text Before Saving in user exit "U300" under  the  "Sunstitution" .
    Please anybody can be help me out where exactly this long text is going to be stored or in which internal table or memory id.
    Please give me the answer as soon as possible .
    Note:- Read_Text function module is not useful. Because Read_text useful after saving document.

    Hi Amit,
    In application area FINANCIAL ACCOUNTING , go for node LINE ITEM. Here create a step & maintain the prerequisite as per your requirement & in the check you can mention the code or you can direct it to a custom program like ZFI_RGGBR000.
    Here while maintaining the check you will get structures BKPF & BSEG in which you will get the desired field you are looking for.
    Just try to explore in your system how the other validations are maintained.
    After you are done with all your code, you have to run the regeneration program RGUGBR00.
    Here utmost care should be taken while running regeneration program, you should select all the checkboxes in the selection screen except  GENERATE SETS, GEN SUBSTN ROUTNS IN ALL CLNTS  & TRACE PROG. GENERATE CALLS .
    Hope this make your doubt clear.
    Regards
    Abhii

  • Table control line selection issue

    HI im facing a problem in table control.
    I have a table control with selection column ( single ).
    First time when i select a row its is marked X in the internal table,
    Now again when i select another row .. The old row still holds the value X and the new row is gettign marked as X.
    The problem here is the old selection is not getting cleared in the internal table.
    This is the statement used in PAI
    MODIFY gt_header INDEX tbl_header-current_line FROM wa_header .
    Here the previous value is not getting cleared.

    KSD,
    During PAI Loop, the screen flow logic loops only through the visible table control lines. In your case, the user has scrolled down and seeing line 30 to 40 (say for example) after selecting a line in first page view. This is very common with any table control.
    Now user is viewing 1 to 10 lines of the TC and have selected 3rd line. User then scrolls down by pressing page-down - now PAI is triggered and the internal table's 3rd line is modified with MARK='X'. User then views lines 30 to 40 and selects 33rd line. Now table control will automatically clear the MARK in 3rd line in the Table Control only. But it is the responsibility of the developer written code to clear the same in the Internal Table.
    So within PAI Table Loop, you have to check the MARK which is coming from Screen to ABAP program every-time and if it is 'X', you have to clear any other line's MARK. Remeber you should not do this for multi-select. There is an attribute of the table control LINE_SEL_MODE. The above logic of clearing other lines' MARK should be implemented only after checking this attribute.
    So incidentally your solution was the appropriate one.
    Cheers,
    Suresh

  • Wraping text in table control

    Dear All,
    is there way to wrap the text in Table control.
    regards

    Basically, no. Can you elaborate a little more on your need.
    Regards

  • Problem with Table control lines

    Hi Friends,
    This is the problem with table control lines:
    I have screen with table control and I would like change the table control lines dynamicaly.
    Exp:
    In my PBO the Internal table which I am using to loop the TC is havig 7 records and its displayed with 7 records, now I have added one more record into my ITAB and now ITAB is having 8 records, when I am looping this ITAB with TC its taking the TC lines 7 only.
    here is the code:
    Initial values in gt_scr400 = 8
    Initial values in tc_scr400 = 8
    Now added one more recor into gt_scr400 , now gt_scr400  = 9.
      LOOP AT   gt_scr400
           INTO wa_scr400
           WITH CONTROL tc_scr400
           CURSOR tc_scr400-current_line.
      ENDLOOP.
    I have used this logic :
      DESCRIBE TABLE gt_scr400 LINES g_rec_300 .
      tc_scr300-lines = g_rec_300.
    but its not modifying the lines in my table control.
    How to change the TC lines based on ITAB total records.
    Thanks,
    Sridhar

    there is a field in TableViewName-xxx
    don't remember the exact field name for (total no of records)
    you can check it in debug.  when you add records in Internal table, u need to modify this field which is set at the first time when table control is populated.

  • How to determine actual table control line

    Hi experts,
    How can I determine the table control line in case of scrollable table control.
    I tried this one, but did not worked correctly:
        GET CURSOR LINE l_line_fc2.
        l_line = l_line_fc2 + ctrl_mod-top_line - 1.
    Everytime I try to catch the top_line of the table control its value is always 1. Is it possible?

    Hi,
    Current table control line will be found in SY-STEPL.
    Regards
    Mohammad Shaik.

  • Table control lines cannot be controlled in Batch Input session ?

    I am using a program which creates Batch Input sessions for the transaction FCHR (Online cashed checks) . The second screen is that of a table control where the check number is entered.
         I observed that while doing SHDB, if we tick the default size then changing the desktop resolution has no effect on the number of lines in table control - we see 14 lines in both cases.However, when the batch input session is processed, the number of table control lines varies according to the resoution(9 lines for 800600 and approx 15 for 1024768). Selecting the 'Dynpro standard size' option while processing the session has no effect.
      I know call transaction with 'default' parameter in optparam will take care of this problem. But I want to know whether Batch Input Session is known to have a problem with different resolutions.

    HI..
    i had the same problem once.... i dealt in the following way
    while entering values in table control
    1) enter value in the first line
    2) look for button on application toolbar using which you can increment line
    3) you will not find difference for first line but you will find it when you insert second line and go for next line.
    4) now for every increment you will get table conrol as (02) if you are going for recording.
    this will surely solve all issue related to table control as it solved for me
    regards
    Edited by: Mohit Kumar on Feb 19, 2009 12:04 PM

  • How can i change the color of table control'  lines?

    Such as the subject. Thanks in advance!

    Hi,
    Please check,
    TABLE CONTROL LINES COLOR CHANGE
    color rows in table control
    Regards,
    Hema.
    Reward points if it is useful.

  • TABLE CONTROL LINES COLOR CHANGE

    <i>Hi Friens.,
    I need small help ie.,
    Let us assume we have table control like this.,
    col1 |  col2  |  group |
    a1   |   b1   |  1
    a2   |   b2   |  1
    a3   |   b3   |  2
    a4   |   b4   |  2
    a5   |   b5   |  3
    a6   |   b6   |  3
    1) User need differentiation between groups to look and feel.,thats why I want to change the Line colors based on Group.,
    2) I am getting this one .,but I made case on Sy-stepl.,  while scrolling it is not showing correct .,
    3) Is there any good way to do this., like in ME21   CONDITIONS TAB at Item level</i>
    If any body have Idea., share with me.,
    <b>Thanks.,</b>
    <i><b>Surendher Reddy.Baddam</b></i>

    Re: TABLE CONTROL LINES COLOR CHANGE
    Posted: Nov 5, 2004 6:47 AM        Reply      E-mail this post 
    PBO >>>like thise.,
    LOOP AT itab WITH CONTROL tc4_400 CURSOR tc4_400-current_line.
    MODULE check_rej_hld_400.
    MODULE radio_checkbox_400.
    ENDLOOP.
    >>>
    MODULE radio_checkbox_400.
    DATA : l_stf TYPE i.
    DATA : l_hyd TYPE i,l_knr TYPE i.
    l_hyd = 1.
    LOOP AT SCREEN.
    IF screen-name = 'ITAB-BATCHNO'.
    IF itab-group = l_hyd. " this is group
    screen-intensified = 1.
    MODIFY SCREEN.
    ELSEIF
    screen-intensified = 0.
    MODIFY SCREEN.
    ENDIF.
    ENDIF.
    ENDLOOP.
    ADD 2 TO l_hyd
    ENDMODULE.
    I made logic like this.,
    Thanks.,
    Surendher Reddy.Baddam

  • How to show long text in TextView control in formatted form?

    Hi,
    I have requirement to show long text from backend text edit control to WD application. I am using READ_TEXT Fm to read the long text and passing it to text view UI element.
    The text is shown in simply one long line but I want it to show in the same format as stored in backend textedit control.
    If I take textedit UI control then it shows the text in formatted form.
    Could you please let me know how to achieve these for TextView control? My requirement is that I have to use only TextView control.
    Thanks,
    Chandra

    Hi,
    The Problem solved to some extend but still the exact formatting is not happening though i am using cl_abap_char_utilities=>newline.
    for eg. if the long text is as below.
    "To display the external component, you can now embed an interface view of any window of this component in a window of your current embedding a view of oneu2019s own component. By setting up navigation from one outbound plug of a view of your inbound plug of the inter external component, you enable the external component to be displayed. New line ."
    and if in backend the Last line " New line ." is on next line, on WD it is not displayed on next line.
    Thanks,
    Chandra

  • Header text in table control

    Hi all,
    Can i have two lines in the header text of a table control.
    for example:.
           valid         (1st line)
       date    time      (2nd line)
    (column1)(column2) 
    Please send ur suggestions,
    Rajesh.

    hi rajesh,
    it is not possible.
    just look on ALV.
    sometimes it may have that option.
    rgds
    anver

  • Dynamic header text in table control - Dialog programming

    Hi All,
    I have a table control on one of my dialog screens.  I need to dynamically change the column header texts on this control in my PBO.  Does anyone know how to do this?  I have found all kinds of ways to modify the other characteristics of the fields at run time in the PBO (active, input/output, invisible, etc.) - but not to change the header text!  Any help is appreciated.
    thanks,
    Matt

    Hi Hymavathi,
    I appreciate your help!  This didn't solve the issue, however,...I have used the method you'd mentioned before (many times) for setting it inside the loop at screen:
    %_<screenname>_%_APP_%-TEXT = <text something>.
    - but only in ABAP reports.  It doesn't seem to recogize it (the table control column header text) within a dialog program.  I keep getting a compile error. (saying that the %_<screenname>_%_APP_%-TEXT doesn't exist.
    I tried the suggestion that you stated below (from lateesh) - yet it only let me place i/o field in title text area (not the column header text).  Am still searching...

  • Table control: Line selection single issue

    Hi experts,
    I have created a table control and in the screen painter I have defined the line selection as "Single" for table control.
    The table control can display upto 20 lines in a screen and i can select a single record only which pertains to my requirement. if I try to select two records it will not allow.
    Issue: consider  i select a single record from the first 20 lines displayed in screen, then i scroll the records in the table control so that it displays the records from 21 to 40. if I select a single record now from line 21 to 40, the first record that i selected is not getting deselected. That is, totally two lines are getting selected.
    How to overcome this issue
    Thanks in advance
    Regards
    Anand

    Ok
    The "problem" is here:
    Types: Begin of ty_ic,
      ic(20),
      desc(20),
      sel(1)                                 <--------------------------------
    End of ty_ic.
    You've ha a field for selected line and that field is used in table control definition as you've written:
    "Note: wa_ic is the structure used in table control and wa_ic-sel is the mark field defined the table control attributes"
    So you're using the structure WA_IC as header line of internal table IT_IC and also as input/put field of your table control (I mean the screen fields of table control are based on WA_IC).
    You don't need any code in PBO to move the data from internal table to table control, because the headerline of IT_IC and field of table control are the same, infact you've implemented only the code in PAI to save the data from table control to IT_IC:
    Loop at it_ic.
    Modify it_ic from wa_ic index tc_ic-current_line
    Endloop
    t's a good solution if it needs to transfer all data to table control automatically: it doesn't need any code in PBO
    but, of course, there'll be a problem when you don't need to display something, in this case you have to think a solution, I mean you have to write a code in order to avoid to display those data.
    It's the case of the selected line: in your situation all selected lines keep the selection, because the code to clear IT_IC-SEL is missing: only the user can deselect a line, but if he doesn't do it, the line will remain selected after navigation.
    So you make to be sure to clear all selected lines are not displayed.
    You need to create a code in PAI out of the loop of table control where you clear the flag SEL, in order to do it you need to consider:
    - The index of the first record displayed in table control is stored in field TC_IC-TOP_LINE
    - The index of the last record displayed in table control can be calculated: the variable SY-LOOPC indicates how many rows can be displayed in table control, so the last record will be: TC_IC-TOP_LINE + SY-LOOPC.
    So you need to clear the field SEL for all records not displayed, a code like this:
    PROCESS PAI.
      LOOP AT IT_IC.
         MODULE GET_LOOPC.
      ENDLOOP.
      MODULE CLEAR_SEL.
      MODULE GET_LOOPC..
          TOT_LINE_DISPLAYED = SY-LOOPC.
      ENDMODULE
      MODULE CLEAR_SEL.
    * Here you need to clear the selection of the records before of TOP_LINE
           IF TC_IC-TOP_LINE > 1.
              LOOP AT IT_IC INTO WA_IC  TO TC_IC-TOP_LINE.
                 CLEAR WA_IC-SEL.
                 MODIFY IT_IC FROM WA_IC.
              ENDLOOP.
         ENDIF.
    * Here you need to clear the selection of the records after the last one:
          LAST_INDEX = TOT_LINE_DISPLAYED + TC_IC-TOP_LINE.
         DESCRIBE TABLE IT_IC LINES SY-TABIX,
         IF SY-TABIX > LAST_INDEX.
              LOOP AT IT_IC INTO WA_IC  FROM LAST_INDEX.
                 CLEAR WA_IC-SEL.
                 MODIFY IT_IC FROM WA_IC.
              ENDLOOP.
         ENDIF.
      ENDMODULE.

  • GR Page headers empty for 1st page for Long Text greated than 26 lines

    Gurus,
    I have this wierd problem on my GR. I added the following code and corresponding fetches in the printprogram to include PO Item long texts in the GR.
    /: INCLUDE &T166P-TXNAM& OBJECT &T166P-TDOBJECT& ID &T166P-TDID& LANGUAGE E PARAGRAPH Z8 NEW-PARAGRAPH Z8 
    When the text is upto 26 lines, everything seems fine. But when it is more than 26 lines and usually a new page needs to be created, all the dynamic texts like PO number, Buyer name, Plant name etc. in the header of the 1st page is blank. But all the details in the second page seem to apprear fine.
    Any suggestions on where to or what to look for to solve this problem?
    I'd appreciate any help with this problem.
    Thanks
    L

    Yes...the way the current print program works is that the header and footer contains information like PO number dat, buyer, isuued by etc and these will print on each page that is created. These are populated prior to the area where write forms for Main are issued.
    The main page contains the Item related information. I have added a code where the long text is also obtained before all the write forms. I then issue write form in the same subroutine where other Main-related write forms are coded.
    L

Maybe you are looking for

  • Webdynpro for ABAP - Textdirection top - bottom ???

    Hi all, is there any ui-element which enables textdirection top -> bottom or supprts HTML tags to realize this simple requirement ???? Thx !!!

  • Interview preparartion...

    Hi, I am a two years experience in SAP R3 4.7, ECC 5.0 and ECC 6.0. and i am looking for a job change. So plz suggest me suitable documents and sites to so that I can prepare for the interview. What wouold be the most obious questions asked in a inte

  • I cannot see the background color and borders when exporting

    I created a 10 page document with a background color and borders around the images (I am usiong InDesign 5.5), when I export it to PDF I only see white pages with my images, what am I doing wrong?

  • Save imageSnapshot to Server

    Hello all. I am trying to make a little component that allows a user to take a picture using their webcamera and then save it to a server.  I have the application so far allowing the user to take a picture and its creating a bitmap.  I then have anot

  • Batch File Naming - not working

    In Automate > Batch... can someone tell me how to make File Naming work? I put in my name info, but PS is ignoring it and saving the new file with the original file name. Thx, Steven OS X 10.4.11 PS 10.0.1 (CS3), 867 MHz PowerPC G4 Quicksilver with 1