cancel
Showing results for 
Search instead for 
Did you mean: 

How to insert a new page when data don't fill in the principal page?

former_member384574
Active Participant
0 Kudos

Hi to everybody!!

I don't know how to do this, I have, in the main window a table with a loop, the loop is this

XFORM INTO ZXFORM (where Xform is type PC408) and in line to line I put the line for example 25 to 30.

Under this table I have another table to another type of data....

The problem is that in the case the data exceed the 25 to 30 lines...where I can see this data? How can I make a new page with the exceed data and how I can retrieve?

Thanks and regards

Rebeca

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member196280
Active Contributor
0 Kudos

Try this, it will help you to close the thread.

for displaying new page

Inside you form

/E POS_NEWPAGE "Element

/: NEW-PAGE

Inside your driver program...

----


  • Calls a New Page

----


CALL FUNCTION 'WRITE_FORM'

EXPORTING

element = 'POS_NEWPAGE'

EXCEPTIONS

OTHERS = 1.

Regards,

SaiRam

former_member384574
Active Participant
0 Kudos

But, inside the smartform...where I put that code? Sorrry, I'm new in this...

Thanks very much

Regards,

Rebeca

Former Member
0 Kudos

Hi,

In the the loop put one counter, when the counter value is at 25

WRITE_FORM

COMMAND = NEW-PAGE.

it automatically call next page.

Bye

former_member384574
Active Participant
0 Kudos

Ok, How can I make a counter?!

Thanks a lot and regards

Rebeca

Former Member
0 Kudos

hi..is it a smartform or a sap script ??

former_member384574
Active Participant
0 Kudos

In a smartform...

Thanks