Skip to Content

Calling Multiple Smartforms from the Print Program

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    author's profile photo
    Former Member
    Sep 30, 2005 at 09:38 AM
    11

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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

  • author's profile photo
    Former Member
    Sep 30, 2005 at 10:24 AM

    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

    Add comment
    10|10000 characters needed characters exceeded