Application Development 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: 

LOOP AT IT_TAB INTO WA

Former Member
0 Kudos

Plz anybody can tell me

how to use LOOP AT IT_TAB INTO WA. in program line of SMARTFORMS.

from begening of Definition.

thanks,

RP

6 REPLIES 6

Former Member
0 Kudos

Hi

It depends on what you need to do.

U have to insert IT_TAB (and WA if it's defined as global data) in the INPUT or OUTPUT parameter.

Max

Former Member
0 Kudos

Hi,

1. you need to define the IT_ITAB in global data.

2. YOu can use that Itab in TABLE Control or

3. In the loop.

while using in the loop you have to specify IT_ITAB as Input and WA as Output.

Hope this will help you.

Former Member
0 Kudos

1) Clicn on Form Interface,Tab -Tables,declare ur ITab there as -

itab like pa0006. (for e.g)

2) click on Global Definitions and tab types ,declare Wa as say -

types : begin of wa_customer .

include structure pA0006.

types end of wa_customer.

then tab Global Data,give variable name as Wa type Wa.

3)Double clik on Main window of page, select tab DATA and there u have to use -

Itab into wa.

former_member188827
Active Contributor
0 Kudos

hi,

if u r usin the LOOP command in smartforms , then in OUTPUT options give wa & in INPUT options give Itab. & if u want to write the loop statement in program lines then use it in the same way as we do on editor.

rgds.

plz reward points if it helps!!

Former Member
0 Kudos

plz go thorough it-

create a loop and inside the loop go to the tab strib data and then click the operand check box. And in the first text put the table name and in another text put the WA . And in the second text field choose the command INTO.

EX- d_vbrk into wa_VBRK

PLZ REWARD POINTS IF ITS USEFULL TO YOU.....

Former Member
0 Kudos

Hi,

under the node window goto create-> flowlogic->loop.

goto tab data.

give the internal table name and wa ,

hope this helps u,

keerthi