This website is not affiliated with, sponsored by, or approved by SAP AG.

Page No (SMARTFORMS) ???

Development SAPscript/ Smartforms

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Page No (SMARTFORMS) ???

Postby sat » Thu May 22, 2003 4:46 am


I have a problem in getting Page nos in SFs. My problem is that, I want to print multiple docs ie SELECT-OPTION case.

Here each doc has N no of pages. I want to print Page 1 of N for each doc. I used SFSY-PAGE / SFSY-FORMPAGES but its giving total no of pages. I want my page no has to reset for each doc.

Ex.. DOC 1 .... Page 1 of 3, 2 of 3 etc.
DOC2 .... Page 1 of 5 etc.
DOC3 .... Page 1 of 1 etc.

but its printing 1 of 9, 2 of 9 etc.

Plz help me in this reg.

Thanx in advance.

sat/shiva ...
Posts: 36
Joined: Tue Apr 15, 2003 1:53 am
Location: Hyderabad, India

Re: Page No (SMARTFORMS) ???

Postby zahidhameed » Tue Mar 15, 2011 12:28 am

decalar a variable with type sfsy-page in your smartform global data e,g
data: cnt_page type sfsy-page.

*1. Accoding to your need.
*2. You think that your page will end at some point.
*3. right click and creat program lines.
*4. declare cnt_page in input and output parameter.
According 2 my scenario I have been using this code in the table control footer.
*5. move: sfsy-page to cnt_page.
*6. in your window where you have been writing the page no in the text-element.
This is at the end of the table.
*7. insert program lines below the text.
*8. clear: cnt_page.
clear: sfsy-page.
sfsy-page = 1.

this will work.
in text declare the variables like that.
Page: &cnt_page& of &sfsy-page&
Posts: 3
Joined: Tue Mar 15, 2011 12:10 am

Return to SAPscript/Smartforms

Who is online

Users browsing this forum: No registered users and 4 guests

This website is not affiliated with, sponsored by, or approved by SAP AG.