Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Function module & Abap Program

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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