Application Development 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: 

Open / close smartforms spool

Former Member
0 Kudos

Hi,

Could you advise me using FM SSF_OPEN / SSF_CLOSE instead of NO_OPEN/NO_CLOSE parameters of structure SSFCTRLOP. I would like to see it as an example.

I have some difficulties using FMs SSF_OPEN/SSF_CLOSE . How are they connected to the FM, calling the smartform. Is there any interface between the 3 FMs.

Thanks,

Svetlin

3 REPLIES 3

Former Member
0 Kudos

Hello,

Please refer the following site.

Regards,

Elvis

Former Member
0 Kudos

Hi Svetlin,

I'm sorry but I've no solution with your FM, but a tip with NO_OPEN/NO_CLOSE parameters of structure SSFCTRLOP.

Take a look at the following piece of code, it works fine in all cases :



describe table t_list_all lines w_lines.

  loop at t_list_all.

    st_ssfctrlop-no_open  = 'X'.
    st_ssfctrlop-no_close = 'X'.

    at first.
      st_ssfctrlop-no_open  = ' '. '' overwrite values
      st_ssfctrlop-no_close = 'X'.
    endat.

    at last.
      st_ssfctrlop-no_open  = 'X'. '' overwrite values
      st_ssfctrlop-no_close = ' '.
    endat.

    if w_lines eq 1.
      st_ssfctrlop-no_open  = ' '. '' overwrite values
      st_ssfctrlop-no_close = ' '.
    endif.


    call function nom_fonction
        exporting
*     ARCHIVE_INDEX              =
*     ARCHIVE_INDEX_TAB          =
*     ARCHIVE_PARAMETERS         =
      control_parameters         = st_ssfctrlop
*     MAIL_APPL_OBJ              =
*     MAIL_RECIPIENT             =
*     MAIL_SENDER                =
      output_options             = st_ssfcompop
      user_settings              = ' '
...

Hope it helps,

Regards,

Erwan.

Message was edited by: Erwan LE BRUN