Skip to Content
avatar image
Former Member

Table control

hi i have an table control, the user is enetering the data through a screen which is being generated thru a web transaction.

now i want that the user should be able to enter at the max 20 lines only. how can i restrict that.

one more thing how can we make a table control as invisible so that it doesnot show up onh the screen although it is present there?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 17, 2008 at 06:05 AM

    Hi,

    First of all I am giving you the solution of hiding your table control.

    You said that no to show the table control although it is there , but should it apear if someone clicks a button say 'INSERT'.???

    If yes then you can do like this...

    
    Your requirement can be solved by creating another subscreen .
    Let us assume ur main screen is 1000 , in that you place a blank subscreen area. you make  subscreen 2000 (which is blank) and 3000 in which you place the tablecontrol.
    
    Now place the following codes :
    In the top include you declare...
    
    data :    var TYPE sy-repid VALUE '2000'.
    
    
    
    Now in your main screen i.e. 1000 in the PBO part you call the subscreen like this :
    
    PROCESS BEFORE OUTPUT.
      MODULE status_1000.
      CALL SUBSCREEN sub INCLUDING sy-repid VAR.
    
    
    
    At this moment var is 2000 i.e.your blank subscreen.
    
    Now when you press the button 'INSERT' in the PAI part you write:
    
    CASE ok_code1000
        WHEN 'INSERT'.
              var = '3000'.
    
    
    
    This will completely solve your rerquirement...
    

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 17, 2008 at 06:37 AM

    Hi,

    For restricting there is system field sy-stepl use that.,

    Thanks,

    Thiru.

    Add comment
    10|10000 characters needed characters exceeded