Whenever I get opportunity I convert sapscripts to smartforms and this function module SSF_MAP_ITCPO_TO_SFOPTIONS comes in handy to convert sapscript ‘Print Options’ into smartforms control parameters. It make life easy by automatically filling values in smartforms control parameters based on existing sap script ‘Print Options’.
DATA : itcpo type itcpo ,
ssf_device TYPE tddevice ,
output_options TYPE ssfcompop,
control_parameters TYPE ssfctrlop .
CALL FUNCTION 'SSF_MAP_ITCPO_TO_SFOPTIONS'
EXPORTING
i_itcpo = itcpo
i_device = ssf_device
IMPORTING
e_output_options = output_options
e_control_parameters = control_parameters.