cancel
Showing results for 
Search instead for 
Did you mean: 

To give the printer option at selection screen level to print a form

Former Member
0 Kudos

I want to select the printer at selection screen level and i want to skip the screen which asks for the printer after selection selection screen smartform. Please anser it ASAP

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

To skip the screen after the selection screen just use the following code.

Data: control type ssfctrlop.

start-of-selection.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = 'Z8AC_SF_RANGES'

  • 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.

control-no_dialog = 'X'.

And in the function module generated pass the value of control as --

CALL FUNCTION '/1BCDWB/SF00000253'

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

CONTROL_PARAMETERS = control

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

  • OUTPUT_OPTIONS =

  • USER_SETTINGS = 'X'

head_info = head

details_info = details

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO =

  • JOB_OUTPUT_INFO =

  • JOB_OUTPUT_OPTIONS =

  • EXCEPTIONS

  • FORMATTING_ERROR = 1

  • INTERNAL_ERROR = 2

  • SEND_ERROR = 3

  • USER_CANCELED = 4

  • OTHERS = 5

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Answers (1)

Answers (1)

Former Member
0 Kudos

just check the OPTIONS paramters of that FM .

Regards

Peram

Former Member
0 Kudos

Thanks the options is helpful. But please specify which fields i should select at Output_options. to directly giving print from the selection screen.

Former Member
0 Kudos

hi krishna,

use usr01-spld as select options...

hope this may be helpfull,,,

please reward incase useful...

regards,

prashant