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

smartforms

Former Member
0 Likes
1,113

Hi,

I have developed a smartforms.It is for only viewing purpose.If they wish they will take printout.But when i execute that it is asking output device in a popup window,and then in the bottom its showing the print preview button.

But i need to see the output directly..So what i want to do.Any body help me with a sample code

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,078

Hi

Put LOCL in the output device and click on the print previw.

Aditya

10 REPLIES 10
Read only

Former Member
0 Likes
1,079

Hi

Put LOCL in the output device and click on the print previw.

Aditya

Read only

Former Member
0 Likes
1,078

Hi,

In CONTROL_PARAMETERS(SSFCTRLOP-NO_DIALOG) of smartform while calling it specify NO_DIALOG = 'X'

and also specify the output device (ex locl) in that OUTPUT_OPTIONS(SSFCOMPOP-TDDEST) of smartform function module while calling it.

Then it will now ask for output device (dialog box will not be displayed) and it will take the printer type that u have specified in the function module paramters.

Edited by: Ravi Kumar Banala on Jul 31, 2008 12:36 PM

Read only

0 Likes
1,078

But its not displaying the output also..

I need to make disappear the dialog box..its disappeared and no output has been displayed..

can u givwe a sample code

Read only

0 Likes
1,078

HI Mahesh,

Put controls-preview = 'X'., and try. Look that you have given valid output device (printer) to SSFCOMPOP-TDDEST properly.

I will create one and i will send it to you... Wait for a while.

The below code is working fine... I just created and ran it.

REPORT zcall_smartform.

DATA: s_control TYPE ssfctrlop,

s_output TYPE ssfcompop.

s_control-no_dialog = 'X'.

s_control-preview = 'X'.

s_output-tddest = 'LOCAL'.

CALL FUNCTION '/1BCDWB/SF00000346'

EXPORTING

control_parameters = s_control

output_options = s_output

.

Read only

0 Likes
1,078

Mahesh

take reference from example sf_example03!!!!!!!!!!!1

It will help you a lot!!!

with regards

pardeep sharma

Read only

0 Likes
1,078

Hi,

I have given the same thing..But it not working.Its again asking the output device...

I am working in 4.6c..

So there is no example like sf_example_03..

Read only

0 Likes
1,078

HI,

I think you forgot to put s_control-preview = 'X', check it once.

Read only

0 Likes
1,078

buts its present in my system

its SF_EXAMPLE_03!!!!!!!!!!!

look it once again in se38

Read only

Former Member
0 Likes
1,078

hi,

in form interface there is a structure called SSFCTRLOP.

IN THAT STRUCTURE U CAN FIND A FIELD NO_DIALOG

MAKE IT 'X'.

UR PROBLEM WILL BE SOLVED.

Rgds.,

subash

Read only

Former Member
0 Likes
1,078

use function ssf_open, then ssf_file_name, ssf_close..

take reference from example sf_example_03.

you will also do coding as under.

controls-no_dialog = 'X'.

controls-preview = 'X'.

controls-no_open = 'X'.

controls-no_close = 'X'.

dont forget to see the example!!!!!!!!!!!

with regards

pardeep sharma