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

Set Print Parameters in samrtforms

Former Member
0 Likes
593

Hello All,

I want to Specify Print settings for Smartform in ABAP program itself.

so that i do not need to choose option print settings again and again.

VALUE(OUTPUT_OPTIONS) TYPE SSFCOMPOP OPTIONAL

VALUE(JOB_OUTPUT_OPTIONS) TYPE SSFCRESOP

are there which one are we supposed to use.

Thanks & Regards,

Gaurav sood

3 REPLIES 3
Read only

Former Member
0 Likes
510

output_options- Before u call ur form--has things like Printer/No of copies/Print immediately..etc

Job_output_INFO-After you printed/Called the form-things like spool no, otf data

JOB_OUTPUT_OPTIONS-also after your form printed/called

Just go thru the structures, filed names which should be self explanatory.

Regards,

Siva

Message was edited by:

Siva K

Read only

Former Member
0 Likes
510

Yes you will need to populate the OUTPUT_OPTIONS.

Also I believe you want USER_SETTINGS = SPACE.

I do something like this:

CALL FUNCTION 'WFMC_PREPARE_SMART_FORM'

EXPORTING

PI_NAST = NAST

PI_REPID = SF_REPID

PI_SCREEN = US_SCREEN

IMPORTING

PE_RETURNCODE = V_RETCODE

PE_ITCPO = SF_ITCPO

PE_DEVICE = SF_DEVICE.

IF V_RETCODE = 0.

MOVE-CORRESPONDING SF_ITCPO TO OUTPUT_OPTIONS.

CONTROL_PARAMETERS-DEVICE = SF_DEVICE.

CONTROL_PARAMETERS-PREVIEW = US_SCREEN.

CONTROL_PARAMETERS-GETOTF = SF_ITCPO-TDGETOTF.

CONTROL_PARAMETERS-LANGU = NAST-SPRAS.

ENDIF.

Read only

0 Likes
510

Thanks it Worked,

Rgds,