Skip to Content
author's profile photo
Former Member

Table control

Hi all

How to create a table with no limited of row for user to enter the record.

Any code?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Posted on Sep 28, 2007 at 08:43 AM

    When ever you append a record into the table control, increase the table control rows by a particluar number.

    Then the user can always have a fixed number of empty rows to be entered in the table control

    for ex : you have a table control and the user enters one records and press enter or saves it.

    then in the PBO of the screen do this

    itab is the internal table that is contained in the table control.

    itab lines type I (integer)

    tabctrl is the name of the table control placed on your screen.

    describe table itab lines itab_lines.
    tabctrl-lines = itab_lines + 10. " 10 or some big number

    Regards

    Gopi

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      My program need similar function of a table control

      1) go to /ose11

      2) select the view

      3) Enter any view name

      4) click display

      5) select the selection conditions tab

      I need this selection condition tab of the table for my program.

      All the function in this table for my program.

      Somehow i want to mock this table out. Anyway can i do it?

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 08:48 AM

    hi

    good

    go through this link which ll give you detail idea about the table control,and code

    http://www.sapdesignguild.org/resources/MiniSG/3_Managing/3_Functions_Table_Control.htm

    thanks

    mrutyun^

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 08:49 AM

    We have to use LOOP ... ENDLOOP in PAI so that data can transfer fro table control to ABAP program. If we want to write changes to the data we should

    call a module between the LOOP ... ENDLOOP. The MODULE call to process user commands (SY-UCOM) should be called after the ENDLOOP statement.

    e.g.

    PROCESS AFTER INPUT

    MODULE mod AT EXIT-COMMAND.

    LOOP AT itab_table or LOOP "depending on whether we are using AT int_table

    MODULE modify_int_table.

    ENDLOOP.

    MODULE user_command.

    In the MODULE call modify_int_table we can use

    MODIFY int_table FROM workarea INDEX tab_con-CURRENT_LINE

    or we can use

    int_table-field_name = screen_field_name.

    go through this link

    http://sap.niraj.tripod.com/id29.html

    ***************

    In table control if some rows disabled, after pressing the insert button , they are enabled.Just check the link.

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/table%20control%20in%20abap.pdf

    Regards

    Vasu

    Add comment
    10|10000 characters needed characters exceeded