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

how to call Smartfrom in loop

Dear All,

I have to call smartform in a loop .

Does any one have idea, How to print

all the pages continuously one after other wihout

pressing the print button again and again.

Thanks

Manish

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 10, 2008 at 08:32 AM

    Hi,

    You neednt call a smarform inside a loop, you can loop your internal table inside the smartform itself to cater your requirement.

    Just pass your int table to the smartform and use the loop functionality.

    Regards,

    Narendra.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 10, 2008 at 08:41 AM

    hi,

    Just clarify one thing u want to call the Smartform For Mutiple Header data?

    then

    Follow the step

    Hi,

    For this do one thing in Driver program before SSF_FUNCTION_MODULE_NAME

    declare like this.

    data: gst_control_parameters type ssfctrlop,
            gst_output_options type ssfcompop,
            gt_job_output_info type ssfcrescl,
            gt_output_options type ssfcresop.
    

    Then before callingSmartform Generated Fm

    write like this-->

    gst_control_parameters-no_dialog = 'X'.
    gst_control_parameters-getotf = 'X'.
    gst_control_parameters-preview = 'X'. "Print preview will not Come
    

    Then in the Fm pass the parameter as

    control_parameters = gst_control_parameters
    output_options = gst_output_options
     
     job_output_info = gt_job_output_info
    job_output_options = gt_output_options
    

    For detailed info See the link below:--

    http://help.sap.com/saphelp_nw2004s/helpdata/en/71/9ccd9c8e0e11d4b608006094192fe3/frameset.htm

    Regards

    Sandipan

    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.