cancel
Showing results for 
Search instead for 
Did you mean: 

SMARTFORMS

Former Member
0 Kudos

Hi,

I have one doubt in Smartforms, I want to print customer details along with the orders for the particular customers. I want to print each customer in different page. How can I do this. When ever new customer number comes it should print in a new page. Can any one help me in this regard.

Thank you

Rajesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi..

U need to run the finction module generated in a loop.

Take the header data into a table and loop it before the function nodule..

Try to declare table types for both the header and details data..

Or refer to SF_EXAMPLE_03..

it shows how to use the select-options in smartforms..

If u are not clear i will send u the code..

Reward points if useful..

Thanks

Arun

Answers (1)

Answers (1)

Former Member
0 Kudos

the internal table<b> Customer</b> will have customer list .

<b>P_form</b> is the form of the customer details along with the orders for the particular customers

 loop at customers 
call function 'SSF_FUNCTION_MODULE_NAME'
       exporting  formname           = p_form
*                 variant            = ' '
*                 direct_call        = ' '
*      importing  fm_name            = fm_name
       exceptions no_form            = 1
                  no_function_module = 2
                  others             = 3.

  endloop.

reward points if it is usefull ....

Girish