Skip to Content
author's profile photo Former Member
Former Member

Contineus printing of smartforms for invoice

Hi friends,

i need to print all the invoices & cheques contineously. We have used smartforms.Its not printing contineously.For cheques we have used customised page format, still it is taking four cheques (dina4) while printing where in cheque is printing properly but again taking 3 blank cheques with that. So every time need to load the page for printer.

Please guide.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Apr 14, 2008 at 09:02 AM

    Hi, I have not got the problem clearly, can u explain more on the same.

    Using Open_form and Close_form , you can proceed for the code as follows

    ****************

    DATA : lw_output_options TYPE ssfcompop,

    lw_control TYPE ssfctrlop,

    l_fname TYPE rs38l_fnam,

    l_fname1 TYPE tdsfname VALUE c_formname.

    c_checked = 'X'.

    • Open Smartform

    CALL FUNCTION 'SSF_OPEN'

    EXPORTING

    output_options = lw_output_options

    control_parameters = lw_control

    user_settings = space.

    IF sy-subrc <> 0. "#EC *

    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

    ENDIF.

    • Pass Parameter to Control-Parameter

    MOVE :

    c_checked TO lw_control-preview,

    c_checked TO lw_control-no_open,

    c_checked TO lw_control-no_close.

    LOOP AT i_zgotc_custretac_h INTO w_zgotc_custretac_h.

    • Call smartform

    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

    EXPORTING

    formname = l_fname1

    IMPORTING

    fm_name = l_fname.

    IF sy-subrc <> 0. "#EC *

    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

    ENDIF.

    CALL FUNCTION l_fname

    EXPORTING

    control_parameters = lw_control

    output_options = lw_output_options

    w_zgotc_custretac_h = w_zgotc_custretac_h

    l_adrnr = g_adrnr

    EXCEPTIONS

    formatting_error = 1

    internal_error = 2

    send_error = 3

    user_canceled = 4

    OTHERS = 5.

    IF sy-subrc <> 0.

    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

    ENDIF.

    ENDLOOP.

    • Close Smartform

    CALL FUNCTION 'SSF_CLOSE'.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.