cancel
Showing results for 
Search instead for 
Did you mean: 

displaying the records double.

Former Member
0 Kudos

Hi,

In smartforms i have one window which display's invoice date and invoice no. to display this data i have used loop. and i also have used table in the main window where a loop is used.

both the internal tables are the same.

my prblm is when i select 2 rows from reports and go for display, it displays me 4 records.

and also the invoice no and invoice data im getting 2 records.

Please tell me whats going wrong here.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Poonam,

Delete the loop node from the main window check if it is printing only 2 records as per your requirement

Regards,

Sravanthi

Former Member
0 Kudos

Hi,

I think you are double looping in your smartforms. I 'm wondering what you get if you select 3 lines.

Do get 6 lines or do you get 9 lines.

In case of 6 you have two loops behind each other

In case of 9 you have a nested loop.

Let me know.

Gr., Frank.

Answers (2)

Answers (2)

Former Member
0 Kudos

hi.

as u told both the internal tables are same.

i think may be it is due to same name of tables. plz change the names of table and once u have

print the record , then also clear ur work area.

Former Member
0 Kudos

When you have created the table....

Give the header details in the header part itslef...

And give the work area looping detals in main window.

I think you would have given the same details twice and that is the reason you are getting the records displayed twice

Former Member
0 Kudos

i have given the headings in the header part of main window. and in main area i have defined the workarea.

and i have defined one more window which has the invoice date and number, which also has loop.

Former Member
0 Kudos

Hey you got the output????

Let me explain you clearly

When you create a table...it triggers looping by itself.What you need to do is just creare a line in the main area of the table and give the work area fields. Before doing this, you need to assign the looping internal table details and work area details in the DATA section of the table created node.

Try this, you will get the output perfectly as u needed.

Hope the explanation is clear

Former Member
0 Kudos

you are not getting me...

that part what you are telling is working fine.

i have also defined one more window, where i have used loop to display the invoice date and number

Former Member
0 Kudos

I am sorry. I didnt read ur quest perfectly.

Anways now I got the question.

Do one thing. Debug the smartform.

Put the following statement by creating program lines before the place where two internal tables are used.

BREAK <USERNAME>.

Atleast you would be able to get some clue whats happening to the internal table data and why they are getting displayed as duplicates.

Former Member
0 Kudos

Do you still face the problem?

Former Member
0 Kudos

yes. still the same