cancel
Showing results for 
Search instead for 
Did you mean: 

enquiry in smartform

Former Member
0 Kudos

Hi,

I am using 2 smartform in which second smartforms page no should be the continuation of first smartform pages.Can anyone help me, how to incorporate this page no logic.

Regards,

pooja

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

In Export tab of the Form Interface, u can find the paramater 'DOCUMENT_OUTPUT_INFO' which gives the total no. of pages printed in the smartform. Get this value in a variable(say 'fspages' type SSFCRESPD which is to be declared in the driver prg) from the first smartform call function in ur driver prg.

In the second smartform, declare a variable of type 'SSFCRESPD' in the import tab of the form interface. Pass the variable(fspages) which u got from from the first smartform export parameter to the export parameter of the second smartform calling function in the driver prg.

Now in the window(second smartform) where u display pages, create one program lines node and increment that variable before printing the variable.

This ll make u print the pages no. which is the continuation of the first smartform pages.

Hope this helps u.

Regards,

Prabhu

Former Member
0 Kudos

Hi,

Define a variable in global definitions and before printing the page no assign

Ex :if you have defined A and B as variable in global definitions.

in program lines write like this.

if sfsy-page = 1.

b = b + 1.

endif.

if b > 1.

A = A + sysy-page.

else.

a = sfsy-page.

endif.

instead of sfsy-page print A

Thanks,

NN.

Former Member
0 Kudos

Hi

Create a text element in the window you want this pager no to print and insert the system field &sfsy-page& for the page number to print. You want to display all the pages in the format "page X of Y" for example page 2 of 10, then use the system field &sfsy-formpages&.

Reward Points If Helpful,

Regards,

Vishwa.