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

Calling Multiple Smartforms from the Print Program

arunkumar_yerram
Participant
0 Likes
2,766

Hi,

I've created 4 Smartforms and using a single Print Program to call all the 4 forms.

When I execute the PrintProgram, the first form is being displayed when clicked on the Print Preview.

Now, <b>inorder to view the 2 form, I would need to go back using F3 and then use print preview again inorder to see the next form.</b>

Is there any way that this could be avoided so that I get to see 4 forms page after page soon I executed the Print Program.

Any help on this is Highly <b>APPRECIATED</b>.

Thanks & Regards

Arun

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,146

Hi

You have to get out the opening/closing of prints from fm of smartforms. You can do it by fm SSF_OPEN/SSF_CLOSE

So the flow of your program should be:

DATA SSFCTRLOP LIKE SSFCTRLOP.

CALL FUNCTION 'SSF_OPEN'

.....

SSFCTRLOP-NO_OPEN = 'X'.

SSFCTRLOP-NO_CLOSE = 'X'.

CALL FUNCTION SMART1

EXPORTING

CONTROL_PARAMETERS = SSFCTRLOP

CALL FUNCTION SMART2

EXPORTING

CONTROL_PARAMETERS = SSFCTRLOP

CALL FUNCTION SMART3

EXPORTING

CONTROL_PARAMETERS = SSFCTRLOP

CALL FUNCTION SMART4

EXPORTING

CONTROL_PARAMETERS = SSFCTRLOP

CALL FUNCTION 'SSF_CLOSE'

Max

4 REPLIES 4
Read only

Former Member
0 Likes
1,147

Hi

You have to get out the opening/closing of prints from fm of smartforms. You can do it by fm SSF_OPEN/SSF_CLOSE

So the flow of your program should be:

DATA SSFCTRLOP LIKE SSFCTRLOP.

CALL FUNCTION 'SSF_OPEN'

.....

SSFCTRLOP-NO_OPEN = 'X'.

SSFCTRLOP-NO_CLOSE = 'X'.

CALL FUNCTION SMART1

EXPORTING

CONTROL_PARAMETERS = SSFCTRLOP

CALL FUNCTION SMART2

EXPORTING

CONTROL_PARAMETERS = SSFCTRLOP

CALL FUNCTION SMART3

EXPORTING

CONTROL_PARAMETERS = SSFCTRLOP

CALL FUNCTION SMART4

EXPORTING

CONTROL_PARAMETERS = SSFCTRLOP

CALL FUNCTION 'SSF_CLOSE'

Max

Read only

0 Likes
1,146

Hi Max,

Thank you very much for your timely response.

My issue has been resolved after making the changes you suggested.

<b>Might need more such help from People like YOU! THANK YOU!</b>

Thanks & Regards,

Arun

Read only

Former Member
0 Likes
1,146

hi,

check with this

SSFCTRLOP-NO_DIALOG = 'X'.

SSFCTRLOP-PREVIEW = 'X'.

when you press back it will goto next page with out dialog box

cheers,

sasi

Read only

0 Likes
1,146

Hi Sasi,

Thank you very much for the information provided.

Though this is not my requirement, the information is quite helpfull.

Have awarded points for YOU too!

Thanks,

Arun