01-28-2008 10:41 AM
Hi ,
I want to add the condition in the below coding.
CONDITION:
If dest="PDF"
form = 'ZPORDERPDF_FORM'
else
form = 'ZPORDER_FORM'
endif.
DEST available in :
call function 'GET_ARCHIVE_PARAMETERS'
exporting in_parameters = arc_params
printer = itcpp-tddest
no_dialog = true
importing out_parameters = arc_params
exceptions others = 1.
I Want to add the condition in this coding.
FORM display_sscript USING l_doc.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
device = 'PRINTER'
dialog = 'X'
form = 'ZPORDERPDF_FORM' -
i want to add here
language = sy-langu
01-28-2008 10:46 AM
if dest = 'PDF*.
FORM display_sscript USING l_doc.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
device = 'PRINTER'
dialog = 'X'
form = 'ZPORDERPDF_FORM'
language = sy-langu.
else.
FORM display_sscript USING l_doc.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
device = 'PRINTER'
dialog = 'X'
form = 'ZPORDER_FORM'
language = sy-langu.
endif