How to control the display of table control

hi,
If I dont find any entry in the internal table to be displayed in table control then I should not display the blank table in the screen.
I tried using if not itab[] is initial in PBO but there(PBO) 'if' is not recognised and it gives syntax error.
Even if I tried to put the code of table control 'loop at itab[] into wa_tab contrl....'this part in a module and there to put the If condition it gives error to put where after wa_tab.
Thanks,
mohan

hi,
As i told i had put the if part in the module but then it is the error with syntax check of table control as shown below
PBO
module pbo_100.
loop at itab into wa with contril Tc cursor tc-lines.
endloop
pai
module pai_100
but here if i create a new module in PBO say module check_table and put the code for table control as
if not itab is initial
loop at itab into wa with contril Tc cursor tc-lines.
endloop
endif.
then here error comed with syntax of loop at itab into wa has to be 'where' condition.
So the problem is i dont want to display the table control in 1st but after some input on the screen then only the table control is to be displayed .
Let me know if this is clear.
thanks,
mohan

Similar Messages

  • Reg:How to delete the column in table control also from database table.

    Hi Experts,
    Once again thank u all for giving the responses.
    one more doubt is how to delete the columns of table control and also the record shold delete from ztable.
    With Regards,
    Saroja.P.

    Hi,
    If you want to delete the rows in the table control and simultaneously delete it from the database table, then you can implement a 'DELETE' functionality specific to your table control. Have a MARK field (you will find that in the screen attributes of the table control -> give a name for the MARK field, you will find an additional MARK column at the beginning of your table control). You can check whatever rows you want to delete from the table control, call the delete module.
    "This portion of code inside the LOOP...ENDLOOP.
    IF sy-ucomm eq 'F_DELETE'.
       gt_itab2-check = mark.  " Store the MARK field status into your internal table's correspoding field 'check'
      MODIFY gt_itab INDEX tabcontrol-current_line.
    ENDIF.
    iF sy-ucomm eq 'DELETE1'.
      DELETE gt_itab WHERE check eq 'X'. "Your internal table does not have rows that you want to delete
    ENDIF.
    Now you can modify your database table using the MODIFY statement.
    MODIFY ZDB FROM TABLE gt_itab.

  • How to delete the row in table control with respect to one field in module pool programming?

    Hi,
    Can I know the way to delete the row in table control with respect to one field in module pool programming
    Regards
    Darshan MS

    HI,
    I want to delete the row after the display of table control. I have created push button as delete row. If I click on this push button, the selected row should get deleted.
    I have written this code,
    module USER_COMMAND_9000 input.
    DATA OK_CODE TYPE SY-UCOMM.
    OK_CODE = SY-UCOMM.
    CASE OK_CODE.
         WHEN 'DELETE'.
            LOOP AT lt_source INTO ls_source WHERE mark = 'X'.
                APPEND LS_SOURCE TO LT_RESTORE.
                DELETE TABLE LT_SOURCE FROM LS_SOURCE.
                SOURCE-LINES = SOURCE-LINES - 1.
            ENDLOOP.
    But I'm unable to delete the selected rows, It is getting deleted the last rows eventhough I select the other row.
    So I thought of doing with respect to the field.

  • How to clear the contents of table control

    Hi All,
              How to clear the contents that are present in a Table control. If there is any code Please Let me know.
    I will assign full marks to the correct code.
    Pradeep Kumar Kota.

    Hi
    U need to clear the contenents of internal table used to store the record displayed by table control.
    Every time the PBO is triggered the table control is automatically cleared, so you need only not to transfer any data from internal table to table control.
    So you should show how your PBO if you want a right answer.
    Max

  • HOW TO MAKE THE FIELDS ON TABLE CONTROL SCREEN FIXED!!

    Dear all,
    Can you please tell me as to how to make the fields on the table control screen fixed (not respond to the scroll bar) i.e. simillar to MC88 screen , the first two fields are fixed and don't respond to the scroll.
    Please Help!!!!
    Vj

    Hi
    In TC, goto attributes and set 'Fixed columns' as 2. This will fix the first 2 columns.
    Regards
    Navneet

  • How to color the records in table control.

    Hi,
    I have created a table control in which i want to add colors to it.
    It is possible in reporting,but is it possible in table control.

    You can do it,
    Just follow the code,...
    In PBO...
    PROCESS BEFORE OUTPUT.
    MODULE STATUS.
    LOOP WITH CONTROL TABCTRL.
    MODULE MODIFY_100.
    ENDLOOP.
    MODULE MODIFY_100 OUTPUT.
    DATA wa_tabctrl TYPE cxtab_column .
    LOOP AT TABCTRL-COLS INTO WA_TABCTRL.
          IF WA_TABCTRL-INDEX =  '1'.       "1- Your Respective Field Column's index
            WA_TABCTRL-SCREEN-COLOR = '2'. "Give your colour
            MODIFY TABCTRL-COLS FROM WA_TABCTRL.
          ENDIF.
    ENDLOOP.
    ENDMODULE.

  • SAPUI5: How to set the appearance of Table control?

    Hi there,
    I have a table on my app UI. Now I want simply show the table grid lines (currently, the vertical lines between columns are not shown). Any idea?
    Furthermore, how to set the width of the bord lines or even teh color of the lines?
    Thanks very much in advance!
    Dong Zhu

    Hi,
    The demo link provided by Chandra uses Blue Crystal theme, hence it shows the vertical lines between the columns of the table. If you are using Gold Reflection theme, then to get the vertical lines, you need to play with CSS. Add the below snippet of CSS between <head></head> of your html file.
    <style>
    .sapUiTableTr>td {
                  border-right: 1px solid #cccccc !important;
    </style>
    Thanks & Regards,
    Vishwa

  • Status control icon  display in table control

    Hi,
    In the workarea the field of status control icon is showing Red/green/yellow that is ok but when i am modifying the internal table from this work area then text(Red or green something...) is coming insted of status Icon.
    So how to modify internal table from this workarea so that i can display icon in my table control's internal table ?Your input is highly appreciated..
    Thanx
    Prince  Raja

    DATA : c_green(4) TYPE c VALUE '@08@',
           c_red(4) TYPE c VALUE '@0A@'.
          IF flag = 'X'.
            READ TABLE it_output INTO is_output WITH KEY
                                      bukrs = is_final-bukrs
                                      anln1 = is_final-anln1
                                      anln2 = is_final-anln2
                                      BINARY SEARCH.
            IF sy-subrc = 0.
              is_output-c_icon  = c_green.
              is_output-leabg_n = is_final-leabg.
              is_output-message = it_return-message.
    * Modify the output internal table with the changed new values
              MODIFY it_output FROM is_output
                               TRANSPORTING c_icon leabg_n message
                               WHERE bukrs = is_output-bukrs
                                 AND anln1 = is_output-anln1
                                 AND anln2 = is_output-anln2.
            ENDIF.
    Regards
    Gopi

  • How to delete and refresh the contents of table control..

    how to delete particular row in table control .consider we r having three rows i wish to delete the third row.while on debugging the third row gets deleted successfully.but that is displayed in table control.then how to refresh the table control...

    hi,
    try like this....
    USER_COMMAND of PAI
    MODULE user_command_9000 INPUT.
      CASE ok_code.
        WHEN 'BACK' OR 'UP' OR 'CANCEL'.
          LEAVE PROGRAM.
        WHEN 'DEL'.
          GET CURSOR LINE lin_no.
          f1 = 1.
       ENDCASE.
    ENDMODULE.                 " USER_COMMAND_9000  INPUT
    and in Module in which u fetching data in PBO, write like
    MODULE get_data OUTPUT.
      IF f1 <> 1.
        SELECT kunnr name1
        INTO CORRESPONDING FIELDS OF TABLE mytab
        FROM kna1.
      ENDIF.
      IF f1 = 1.
        DELETE mytab INDEX lin_no.
        FREE lin_no.
        FREE f1.
      ENDIF.
    ENDMODULE.                 " get_data  OUTPUT
    reward if useful...

  • How to display a table control in a report

    hi
    how to display a table control in a report

    create a screen in your report.
    Call that screen in your report.
    While designing your screen, use Table control creation wizard to create table control on that screen.
    http://www.planetsap.com/online_pgm_main_page.htm

  • How can I change the size of table control in table maintenance re-gen?

    Hello Experts,
    I hv created a maintenance view and after generated table maintenance view for it.
    now it adjusts the size of table control in table maintenance generation.
    I want to change the size (width) of table control and again re-generate the table maintenance.
    But when re-generation occurs, table control size is set to initial.
    why it is happening? and wt to do to solve this issue? any user exit?
    I need the changed size of table control even if its re-generated.
    Regards,
    R.Hanks

    Hello Ronny,
    Goto SM30, Enter your table name for which you have maintained your table maintainence generator .
    When the maintainence screen appears for your table name , Goto System->Status->Screen Program name.
    Copy that program name from there.
    Open that module program through SE80,this is the program name of your SM30 screen which appears when we enter our table name in SM30 transaction.
    In SE80,click the layout of the module program name you have entered there.
    Its layout will display you the table control(of SM30) present to enter your your enteries.
    In the change mode you can change its size , savee it and activate that program.
    Now goto to SM30 again and enter your table name, it will show you the changed size of the table control used to take the enteries.
    Note:This changed size is only for your table name and it will remain of its previous size for other table enteries.
    Hope it helps you.
    Thanks Mansi

  • How to make editable the colums of table control in the PBO

    Hello Experts!
    I`m using the table control in dynpro, and i want to make editable some colums depending of some values.
    How can i do that?
    Thanks!

    Hi
    U need to change the screen attributes of colunm by statament LOOP AT SCREEN/ENDLOOP into the loop of table control in PBO:
    PROCESS PBO.
       LOOP AT ITAB ......
            MODULE LOOP_SCREEN_TC.
      ENDLOOP.
    MODULE LOOP_SCREEN_TC.
      IF ITAB-FIELD1 = .........
         LOOP AT SCREEN.
            IF SCREEN-NAME = 'ITAB-FIELD2'.
               SCREEN-INPUT = 0.
               MODIFY SCREEN.
            ENDIF.
        ENDLOOP.
      ENDIF.
    ENDMODULE.
    Max

  • How to select all the rows of table control in BDC

    Hi All,
    While I am doing BDC for Transaction Code MC88, After the first screen I will get another screen with tabble control, Here I need to select all the rows of table control, I am assignng the 'X' to the first field of Table Control which is the indicator for selection.
    Here I am getting message called Indicator field is not in program and screen.
    While doing Recording I am not able to record the indicator, Please any one let me know how to record the Entire table control selection.
    Thanks in advance..

    Sorry about that lakshmi. Here is my code.
        PERFORM dynpro USING : 'X'   'SAPMMCP6'          '0105',
                               ' '   'RMCP2-MATNR'       t_matnr,
                               ' '   'RMCP2-WERKS'       t_werks,
                               ' '   'BDC_OKCODE'        '=AKTV'.
        PERFORM dynpro USING : 'X'   'SAPLMCPA'          '0707',
                               ' '   'BDC_OKCODE'        '=MRKE'.
        PERFORM dynpro USING : 'X'   'SAPLMCPA'          '0707',
                               ' '   'BDC_OKCODE'        '=GRAO

  • Push button in one of the columns of Table Control

    Hi,
    I have a requirement, where i have to display a push button in one of the columns of table control for long text. When user clicks on the control, a pop up has to be appeared in which user should be able to enter some meaning ful description and save it. please suggest me how to do this requirement.
    Best Regards,
    Phani Kumar. S

    Hai,
      You can drag n drop a button to the required column in the table control and give the required parameters like ok_code , name etc.
    You can now place a text field as the heading of the column.
    Now when the user clicks the the button in a row, read the corresponding line in which he has clicked.For that u can use
    get cursor lines wrk_line.
    now u'll  get the data in that row using
    Read table it_tab into wa_tab index wrk_line.
    now u can call the text editor (using FM's READ_TEXT ,EDIT_TEXT and CREATE_TEXT in which the user can enter the meaningful description and save it.
    When u save the text entered save it with a key part of the row that was read earlier(keep it as the text name).
    So now if u need to get the description which was entered earlier u can easily read the text (using READ_TEXT ).
    I hope this will be helpful for u .
    Thanks
    Neeraj

  • Controlling the margins on table footnotes

    How do I control the margin on table footnotes? In FrameMaker, the table and the footnote are indented 1.5 in. When the table is converted in RoboHelp, I am able to set the table margin to no indent through the CSS. The tables appear correctly. However, the table footnotes are still indented. I can edit the paragraph style for footnote text, but not the margin.
    FrameMaker 10
    RoboHelp 9
    --mlr

    This is happening because of the Push button Assignment properties. This can be changed from the Menu path of PF-STATUS GOTO ->Attributes -> Push button Assignment.
    If Hide all is selected, it will not be displayed. If Display all is selected, then it will be displayed but disabled.
    Regards,
    Lakshmi.

Maybe you are looking for

  • OBJECT tag is not working in jsf

    Hello, I am trying to add an object tag in jsp page. it is working fine with html page but it is not recognize by the jsf. JDeveleoper is 12c Thank you.

  • How do i keep the foxclocks status bar at the bottom of the page ?

    I have just recently changed over to the latest version of firefox 4.01 .... I use the foxclocks add onn to which on this latest version of Firefox i have to keep on going into the settings - Tools - Options - Display In - to display the status bar a

  • I want to simply multiply 2 adjacent cells using Numbers

    I'm new to numbers. I've discovered how to add up columns, but cannot for the life of me work out how multiply 2 adjacent cells. All i want to do is multiply cell C33 by cell D33 and get the answer in cell E33. I know that the multiplication key is *

  • What is the best way to add multiple images with links into an email signature?

    I created an email signature with five linked images by: * creating new message • attached the image • adding link to the image • copied new email signature • under Preferences/Signature added the new signature It all works, but some of the emails bo

  • IPad Air Spontaneous Reboots?

    While I love my new iPad Air, I've had a number of spontaneous reboots over the past month, and wondered whether anyone else was experiencing anything like this.  Tonight's most recent incident occurred less than six hours after performing a reset to