Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Page Break in Smartforms

0 Kudos

Hi all,

I am getting one problem in smart form. I have selection Creteril like this

Flight Number(Range)

Dep.Time

:

Each flight information should come on new page.

I tried by made COMMAND node, selected checkbox,go to next page, but I couldn't over come my problem.

can anyone please help me in this concept?

Regards,

vasu

8 REPLIES 8

Former Member
0 Kudos

Hi Vasu,

Try this

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = g_form

IMPORTING

fm_name = g_fm_name

EXCEPTIONS

no_form = 1

no_function_module = 2

OTHERS = 3.

loop at flight number.

CALL FUNCTION g_fm_name

EXPORTING

control_parameters = g_control

output_options = g_output

user_settings = ' '

pass your variable here from the print program that you want in layout.

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

endloop.

Former Member
0 Kudos

Hi,

put within your main window node a page-node and right after that an new-page command and print your line per page.

Cheers,

Stefan.

0 Kudos

Dear Stefan,

Thank you for your kindly response. I am papulating internal table with all data( Multiple Flight numbers) and passing to smartform at once.

My internal table structre is like this

________________________________________________

flnum Aircode Date Pax number

________________________________________________

1001 US01 10/12/2005 Pds32

1001 US01 10/12/2005 Pds32

1002 US01 10/12/2005 Pds32

1002 US01 10/12/2005 Pds32

In smartform I have to display flnum 1001 in first page,

1002 fligt information on second page.

Can you please give me detail idea, how to over come this?

Warm Regards,

Vasu

Former Member
0 Kudos

HI

GOOD

YOU HAVE NOT GIVEN ANY SAMPLE CODE,I HOPE YOU R GETTING SOME PROBLEM IN PAGE BREAK,SO HERE I AM GIVING SOME TIPS IN PAGE BREAK,JUST GO THROUGH THEM.

PAGE BREAK=>

Create a loop around the table. Put a Command node before the table in the loop that forces a NEWPAGE on whatever condition you want. Then only loop through a subset of the internal table (based on the conditions in the Command node) of the elements in the Table node.

GO THROUGH THIS LINK

http://72.14.203.104/search?q=cache:SstA1qI1DEYJ:myweb.dal.ca/hchinni/sap/smartforms/SmartForms.docPAGEBREAKINSMARTFORMS,+SMARTFORMS&hl=en&gl=in&ct=clnk&cd=9

THANKS

MRUTYUN

Former Member
0 Kudos

Hi Vasu,

In smarforms, create a window in the new page and put the datas to be displayed in that window. Create a loop for that window.

That should work fine.

Balaji

0 Kudos

Dear Stefan,

Thank you for your kindly response. I am papulating internal table with all data( Multiple Flight numbers) and passing to smartform at once.

My internal table structre is like this

________________________________________________

flnum Aircode Date Pax number

________________________________________________

1001 US01 10/12/2005 Pds32

1001 US01 10/12/2005 Pds32

1002 US01 10/12/2005 Pds32

1002 US01 10/12/2005 Pds32

In smartform I have to display flnum 1001 in first page,

1002 fligt information on second page.

Can you please give me detail idea, how to over come this?

Warm Regards,

Vasu

0 Kudos

Dear Stefan,

Thank you for your kindly response. I am papulating internal table with all data( Multiple Flight numbers) and passing to smartform at once.

My internal table structre is like this

________________________________________________

flnum Aircode Date Pax number

________________________________________________

1001 US01 10/12/2005 Pds32

1001 US01 10/12/2005 Pds32

1002 US01 10/12/2005 Pds32

1002 US01 10/12/2005 Pds32

In smartform I have to display flnum 1001 in first page,

1002 fligt information on second page.

Can you please give me detail idea, how to over come this?

Warm Regards,

Vasu

Former Member
0 Kudos

Hi Vasu,

Did got any solution for this problem. Even, I too need a solution for the same type.

If u got any solution, pls let me know. My mail id is vincent_as2004@yahoo.com

Regards,

MARK K