cancel
Showing results for 
Search instead for 
Did you mean: 

loop in smart forms

Former Member
0 Kudos

HI Experts,

I have created an quotation through report programming. Now i have to pass all the data to a smart form. I have also designed a smart form but there is some problem.

My Problem is as follows:

Loop at lt_price1 to ls_price1. "" Contains no. of materials

loop at lt_price1 to ls_price2. "" Same no. of material in material internal table

append ls_price2 to lt_price2.

endloop.

endloop.

Can i write a program line to select same no. of material into lt_price2 and then later on i will use it to print some data which is based on same no of materials in the main material internal table????

OR

Can anyone tell me what is purpose of program lines in internal table????????????????????

Where should i use it ???????????????????????

Thanks and Regards,

Shakun

Edited by: shakun123 on Nov 22, 2010 8:07 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

1) in your second loop, in the where-clause you should put the following code

no_material = ls_price1-no_material

2) The program lines in the internal table are used for program code that is specific for data in those loops. It is just like the code that you write in a normal LOOP. An example of this type of code is selecting additional information for your materials or something like that.

kind regards

Tom