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

Fetch the data from Table control to Internal table

Former Member
0 Likes
445

Dear Friends,

This is very simple query and most of you might have solved number of times.Though I found couple of answers in SDN but non of them clarified properly so could not able to get the right solution.

u

Highly appreciate if any of you could help me in this.

Query-->

I have a table control name Table.

I have taken the field from Internal table it_ztable for the each field in Table control.

Whenever I am entering multiple line of data in the table control I want to read those line item and pass them to Internal table it_ztable.

Note-->Here my it_ztable is completely blank and I am not selecting any data from any database table.I just want to update this internal through the field values enter in the Table Control.

Thank you very much in advance.

Regards

Jay


Dear Friends,

This is very simple query and most of you might have solved number of times.Though I found couple of answers in SDN but non of them clarified properly so could not able to get the right solution.

u

Highly appreciate if any of you could help me in this.

Query-->

I have a table control name Table.

I have taken the field from Internal table it_ztable for the each field in Table control.

Whenever I am entering multiple line of data in the table control I want to read those line item and pass them to Internal table it_ztable.

Note-->Here my it_ztable is completely blank and I am not selecting any data from any database table.I just want to update this internal through the field values enter in the Table Control.

Thank you very much in advance.

Regards

Jay


1 REPLY 1
Read only

PeterJonker
Active Contributor
0 Likes
403

Just a little bit from the sap Help (f1 on table control), for more info do f1 as well:

LOOP - WITH CONTROL

Syntax

LOOP [AT itab [INTO wa] [CURSOR top_line]
[FROM n1] [TO n2]]

     WITH
CONTROL contrl.

  ...
ENDLOOP.

Variants:

1. LOOP WITH CONTROL contrl.

2. LOOP AT itab CURSOR cur [INTO wa]
       [CURSOR top_line] [FROM n1] [TO n2]

       WITH CONTROL contrl.