Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Rows repeating themselves, without incrementing row count

Well, here's my problem. As the title says, some of my data's repeating itself. I first thought it might come from loops, but it quickly became obvious that it wasn't the case. It's especially strange since my table count doesn't take in consideration the repeated lines.

Here's the part of my code that interests us :

While Not rs.EOF
    package = New Package(cnn, CLng(rs.Fields("No_Package").Value))
    nbModules = nbModules + package.get_nb_modules

    dataset.item.AdditemRow("PACKAGE NO." & package.get_id)
    dataset.item.AdditemRow("Has " & package.get_nb_modules & " modules")
    dataset.item.AdditemRow("Date : " & package.get_date_creation)
    dataset.item.AdditemRow("Actual nb of rows : " & dataset.item.count)

    rs.MoveNext()
End While

It should get me something like this :

PACKAGE NO.X
Has X modules
Date : [some date]
Actual nb of rows : 3

[and so on]

But here's what I get :

PACKAGE NO.X
PACKAGE NO.X
Has X modules
Has X modules
Date : [some date]
Date : [some date]
Actual nb of rows : 3   [<-- odd]

[and so on]

If it's a known bug or issue, I'd really like to know how to solve it. In any case, I haven't modified any parameters regarding my fields, report or printer.

Thanks.

Edited by: carle_al on Apr 27, 2009 11:45 PM

Former Member
Not what you were looking for? View more on this topic or Ask a question