Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Take input from table control using wizard

Former Member
0 Likes
391

Dear experts,

I am trying to take data from table control into internal table using wizard.

In main report program i defined the internal table and used wizard after that.

I could see internal table there and i picked the fields i wanted.

Also i defined a workarea of same time.Further i made a push button.

In PAI user command module i specified

loop at itab. (one used for table control data)

endloop.

Here i put break point and find that no data is coming from grid.

With wizard what additional i have to do ?

2 REPLIES 2
Read only

Former Member
0 Likes
358

Hi

PROCESS AFTER INPUT.

 MODULE USER_COMMAND_2209.  "do processing
loop at itab.
   module UPDATE.                           "read from tbl ctl into db table using wa.
 endloop.

DATA:   itab TYPE TABLE OF YSTUDENT WITH HEADER LINE,
            WA LIKE LINE OF ITAB.

MODULE UPDATE INPUT.

WA-ID = YSTUDENT-ID.
WA-NAME = YSTUDENT-NAME.

 INSERT YSTUDENT FROM WA.   

ENDMODULE.

Instead of Insert into table, you can write: APPEND WA TO ITAB.

Also YSTUDENT-ID is the name of the column in your tbl ctrl.

Make sure your PBO also loops thro the itab:

loop at itab with control tab1.

endloop.

Hope this helps

Regards,

Jayanthi.K

Read only

Former Member
0 Likes
358

Hi,

Try inserting the values from the table control as follows

 MODULE GET_TABLEDATA INPUT.


  wa_shop-num = return_no. "wa_shop is work area
  wa_shop-zuser_id = id.
  
  insert into zshop_info values wa_shop. "zshop_info is table name

PROCESS AFTER INPUT.

 loop at itab_mat.
    MODULE GET_TABLEDATA .
 endloop.

 MODULE USER_COMMAND_0500.

Hope this helps.

Regards,

Deepthi

Edited by: Deepthi S on Feb 9, 2009 2:05 PM