Application Development and Automation 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: 
Read only

How to avoid Priner prompt while calling smartform

Former Member
0 Likes
897

Hi All,

I am calling smartform FM from my program. I am passing following settings in Output-Options and Control-Parameters:

wa_outputoptions-tddest = 'LP01'. "Printer name

wa_outputoptions-tdnewid = 'X'. "New request

wa_controlpara-device = 'PRINTER'. "Device

wa_controlpara-no_dialog = 'X'. "No dialog

Even after these settings I am getting prompt which asks printer name and other details.

Please tell me how I can avoid the prompt which asks printer name and other settings such as new spool request and print immediately.

Thanks in Advance.

Regards,

Vijay

Hi All,

I am calling smartform FM from my program. I am passing following settings in Output-Options and Control-Parameters:

wa_outputoptions-tddest = 'LP01'. "Printer name

wa_outputoptions-tdnewid = 'X'. "New request

wa_controlpara-device = 'PRINTER'. "Device

wa_controlpara-no_dialog = 'X'. "No dialog

Even after these settings I am getting prompt which asks printer name and other details.

Please tell me how I can avoid the prompt which asks printer name and other settings such as new spool request and print immediately.

Thanks in Advance.

Regards,

Vijay

4 REPLIES 4
Read only

kanthimathikris
Advisor
Advisor
0 Likes
601

wa_controlpara-PREVIEW= space. Can you try this too?

Read only

0 Likes
601

Hi Krishnan,

I tried giving "wa_controlpara-PREVIEW= space" as well.

But still I am getting printer prompt.

Read only

former_member195698
Active Contributor
0 Likes
601

Hi,

Set the parameter TDNOPREV of wa_outputoptions to 'X'.

Reward if useful

Regards,

Abhishek

Read only

Former Member
0 Likes
601

hi,

try this....

DATA : control TYPE ssfctrlop.

control-no_dialog = ''.

control-preview = ''.

control-no_open = 'X'.

control-no_close = 'X'.

CALL FUNCTION 'SSF_OPEN'

EXPORTING

  • ARCHIVE_PARAMETERS =

  • USER_SETTINGS = 'X'

  • MAIL_SENDER =

  • MAIL_RECIPIENT =

  • MAIL_APPL_OBJ =

  • OUTPUT_OPTIONS =

control_parameters =<b> control</b>

  • IMPORTING

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