Skip to Content
0
Former Member
Sep 11, 2007 at 04:35 PM

Multiple smart form outputs

13 Views

Hi all,

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 .

like this

loop at i_header.

PERFORM SMARTFORM_FM.

endloop.

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?

FORM SMARTFORM_FM.

call function 'SSF_FUNCTION_MODULE_NAME'

exporting

formname = 'ZTEST'

  • VARIANT = ' '

  • DIRECT_CALL = ' '

importing

fm_name = fm_name

exceptions

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.

endif.

CALL FUNCTION FM_NAME

ENDFORM.

Thanks