i want to print multiple purchase orders in smart form
i have two windows in smart form layout
header window and main window
in header i need to print few header details
and in main window i need to display correspoinding line items
I need every po to be start in new paper or new form
In driver se 38 program
I_header - contains all header info
i_lineitems - contains all item info ofPO'S
iam confused whether i have to call SSF_FUNCTION_MODULE_NAME
between loop of i_header .
loop at i_header.
if this right how do you want me to pass the info to smart form
in form interface i would declare a table similar to item
and header info right i need only one row right?
call function 'SSF_FUNCTION_MODULE_NAME'
formname = 'ZTEST'
VARIANT = ' '
DIRECT_CALL = ' '
fm_name = fm_name
no_form = 1
no_function_module = 2
others = 3
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
CALL FUNCTION FM_NAME