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

smartform clarification

Former Member
0 Likes
980

Hi experts,

where we setup the printer for an output type in smartforms, can you please help me in this.

Thanks & Regards

Ahammad.shaik

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
958

Hi,

After creating the smartform, whenver ur will execute it, a popup will automatically come asking for printer.

If u want the printer to be always same then u can use Function GET_PRINT_PARAMETRS to define the print parameters in ur code.

Regards,

Himanshu

10 REPLIES 10
Read only

Former Member
0 Likes
959

Hi,

After creating the smartform, whenver ur will execute it, a popup will automatically come asking for printer.

If u want the printer to be always same then u can use Function GET_PRINT_PARAMETRS to define the print parameters in ur code.

Regards,

Himanshu

Read only

0 Likes
958

Hi,

I got requirement like this for this can you give me clarification.

For print,

The invoice ouput batch job (see below) points to output type Z120,

which seems to be setup to print on the Tustin printer. Do we need to

setup another output type for Mexico or can we setup a condition based

on the plant?

Thanks & Regards

Ahammad.shaik

Read only

0 Likes
958

Hi Ahmmad,

I think there is no need to setup a new output type. U can place conditions based on the plant.

Regards,

Himanshu

Read only

0 Likes
958

Hi,

When you execute teh smart form, it will give a popup and there you can enter your printer (say "LOCL or any printer where you want the printout)

Regarding output, you may not require 2 output types.

You canuse the same output type Z120 for printing on any printer in the network.

based on the plant, you can pas the printer name to the GET_PRINT_PARAMTER FM.

sachin

Read only

0 Likes
958

Hi,

You gave me answer for one printer we call that funciton .

If the printer is different which funcion we have to call which parameters we have to give.Help me.

Thanks

Read only

0 Likes
958

Hi,

What u can do is that if plant is say X then Use function GET_PRINT_PARAMETERS to set up the print parameters for Printer X1

elseif pant is Y the use the same function but set the parameters for Printer Y1.

What this will do is that when u enter the plant X, then the output will be shown on the printer X1 else if plant is Y then on Y1.

Hope this helps u.

Regards,

Himanshu

Read only

0 Likes
958

Hi,

Please clarify me that , where we setup the printer for an output type.

Thanks

Ahammad

Read only

0 Likes
958

Hi,

U can do this using SPRO.

e.g. if for a Sales Order and Output Type BA00 u need to setup a printer them u goto SPRO --> SAP Reference IMG --> Sales and Distribution --> Basic Functions --> Output Control --> Define Print Parameters .

Similarly for ur requirement u need to define the print parameters in SPRO in the appropriate scenario.

Regards,

Himanshu

Read only

Former Member
0 Likes
958

Hi Ahammad,

When u execute ur driver program.A pop up comes ,where u can set the printer settings.

or use can while calling smartform function module

data: output_options TYPE ssfcompop.

output_options-TDDEST = 'CTR7'.

CALL FUNCTION '/1BCDWB/SF00000001'

EXPORTING

OUTPUT_OPTIONS = output_options

TABLES

IT_PALLET_LABELS = ct_label4.

IF SY-SUBRC <> 0.

To set the printer by default :

Go to the menu bar -> System -> User Profile -> Own Data.

Then click on the Defaults tab and give the default name there.

However, when the funcition is called, the print that appears by default is the predefined user printer.

Reward points if helpful.

Regards,

Hemant

Read only

0 Likes
958

Hi,

For setting defalut printer you gave me answer. I have to set one more printer.

Can you please help me in this to set some other printer connectivity.

Thanks