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: 

HELP REQUIRED FOR AMRTFORMS...

Former Member
0 Kudos

Hi

I have a requirement ..

in the smartform application..user doesnt want the print pre-view screen.

The requirement is ,after F8 control directly goes to the printer..from the program. and Printer Priview screen doesnot appears in between..

Thanks in advance.....

Regards...

lakhan.......

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Refer te example SF_EXAMPLE_03 for checking how to do it.


output_options-TDNEWID = 'X'.
output_options-TDDEST = 'LP01'.
output_options-TDIMMED = 'X'.

and 

control_param-NO_DIALOG ='X'.   " You need to set this one to suppress the pop up

my function module of smartform is 

CALL FUNCTION fmname
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = control_param
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
OUTPUT_OPTIONS = output_options
* USER_SETTINGS = 'X'
imp_lifnr = '100073'
validity_date = sy-datum
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
* EMAILID =
* EXCEPTIONS
* FORMATTING_ERROR = 1
* INTERNAL_ERROR = 2
* SEND_ERROR = 3
* USER_CANCELED = 4
* OTHERS = 5.

Regards

Sudheer

2 REPLIES 2

Former Member
0 Kudos

Hi,

Refer te example SF_EXAMPLE_03 for checking how to do it.


output_options-TDNEWID = 'X'.
output_options-TDDEST = 'LP01'.
output_options-TDIMMED = 'X'.

and 

control_param-NO_DIALOG ='X'.   " You need to set this one to suppress the pop up

my function module of smartform is 

CALL FUNCTION fmname
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = control_param
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
OUTPUT_OPTIONS = output_options
* USER_SETTINGS = 'X'
imp_lifnr = '100073'
validity_date = sy-datum
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
* EMAILID =
* EXCEPTIONS
* FORMATTING_ERROR = 1
* INTERNAL_ERROR = 2
* SEND_ERROR = 3
* USER_CANCELED = 4
* OTHERS = 5.

Regards

Sudheer

Former Member
0 Kudos

In the FM which you use in the driver program,

Check the NO-DIALOG eq 'X'.

Regards,

Pavan