Application Development and Automation 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: 
Read only

Page Break in Smartforms

arvind_soni
Participant
0 Likes
847

Hi Experts,

I am new to smartforms and Have an issue.

I have passed an internal table to the smartform that has different POSNR in it . I want the each new POSNR data to be printed on separate pages .

I tried to use the command node but I am not able to get the results

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
817

Hi Arvind,

Refer the following links:

/message/486808#486808 [original link is broken]

Regards,

Ravi

Hi Experts,

I am new to smartforms and Have an issue.

I have passed an internal table to the smartform that has different POSNR in it . I want the each new POSNR data to be printed on separate pages .

I tried to use the command node but I am not able to get the results

7 REPLIES 7
Read only

Former Member
0 Likes
818

Hi Arvind,

Refer the following links:

/message/486808#486808 [original link is broken]

Regards,

Ravi

Read only

0 Likes
817

Hi ravi ,

I am displaying data in a table. I kept the following code in the programlines in the main window above the table.

LOOP AT ITAB.

AT NEW POSNR .

IF SY-TABIX > 1 .

V_FLAG2 = 'X'.

ENDIF.

ENDAT.

ENDLOOP.

And beneath the programlines i placed a command node with condition V_flag2.

Please let me know how to achieve it .

Read only

Former Member
0 Likes
817

hii

look at these

based on condition go to new page

/: IF &mseg-bwart& NE 631 .

/: IF &MKPF-TCODE2& NE 'MB01' AND &MKPF-TCODE2& NE 'MIGO_GR'

I1 ,,&MSEG-WEMPF&

For New Page.

/: NEW-PAGE

/: ELSE

I1 ,,&MSEG-EBELN&

/: ENDIF

/:ENDIF

Regards

Naresh

Read only

Bema
Active Participant
0 Likes
817

Insert a command and enter GO TO NEXT PAGE.

Read only

Former Member
0 Likes
817

Hi Arvind,

check this:

regards,

keerthi.

Read only

Former Member
0 Likes
817

Hello...

Use the Command Node which have the option of - Page Break.. Use one Flag variable to control the page break for the first time....

Hope this solves ur problem

Give the numbers accordingly...

Bye

[email protected]

Read only

Former Member
0 Likes
817

Hai

Table control will draw lines till last record only.

You can do like this... Use table control but do not use the lines of table control... Make all the borders invisible... and use a overlap window in that draw a template...

Thanks & regards

Sreeni