cancel
Showing results for 
Search instead for 
Did you mean: 

item is repating twice in smartforms

Former Member
0 Kudos

Hi All,

In smartfroms item is repating twice when ever page is triggering.please tell me what might be the problem

Eg:

in internal table 12 records are there , first 3 records are printing in first page and in second again 1 line item is repating and again in 4th page also first line item is repating

1st page

10

20

30

2nd page

10

50

60

70

3rd page

80

90

100

4th page

10

120

but this is wrong in 2nd page 40 has to come and in 4th page 110 has to come.

in debugging i found where it is changing ,the item text has decalred has newline and assigned the line type.

the corresponding coding in function module is

CALL FUNCTION 'SSFCOMP_TABLE_NEXT_ROW'

EXPORTING I_LINE_TYPE = 'IT_KOND_WA'

EXCEPTIONS NON_MAIN_OVERFLOW = 1

OTHERS = 2.

before the iitem no. is 40

after control going to above function module the item no is changing to again 10,please help me what might be the problem.

Thanks in advance...

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

DEAR,

YOU ARE DOING IN IDES SERVER OR IN DEVELOPMENT SERVER.

AND WHAT IS YOUR SMARTFORMS NAME.

REGARDS

NAVIN MAHINDRA

Former Member
0 Kudos

Hello,

This is may be because of the variable, which is printing the required information on to the smartform, is definetely present in the loop. So I would suggest plz remove that variable which is present in the text notepad of the smartform and declare it seperately (out of the loop). It will solve your problem & hope it would give the desired results.

Regards,

Akg

Former Member
0 Kudos

Hi Satia

How do you fix this problem? I have the same problem.

Former Member
0 Kudos

Hi ,

Little bit difficult to understand .

Debug the Driver program

Check the internal tale data before calling the smartform..

clear the workareas in processing the final internal table data.

Regards,

Lokesh.

Former Member
0 Kudos

HI Satya,

Use the Event on sort begin in the table for the field and display the line items.

Regards,

Sravanthi

Former Member
0 Kudos

HI.

I am also getting same issue in smartform. Can you please explain a bit more and let us know where to add this event check?

Thanks in advance..

Thanks & best Regards

Sunil.

Former Member
0 Kudos

Hi Satya,

May be u you are nt clearing any work area, try clearing workareas wheerever necessary.

Sripal

alex_m
Active Contributor
0 Kudos

Check your internal table values in debug mode whats the value for all the item? I don't think any problem in smartform but the records might be the issue.