02-09-2007 5:07 AM
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
02-09-2007 5:14 AM
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
02-09-2007 5:16 AM
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.
02-09-2007 5:17 AM
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.
02-09-2007 5:19 AM
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!!
02-09-2007 5:21 AM
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.....
02-09-2007 5:23 AM
Hi,
under the node window goto create-> flowlogic->loop.
goto tab data.
give the internal table name and wa ,
hope this helps u,
keerthi