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 printer problem

Former Member
0 Likes
701

Hello,

I open a smartform from a custom print programm using control_parameters and output_control with values from the message control table NAST. The parameter user_settings is set to SPACE.

I fill the parameter output_control-tddest explicitly from NAST, but however, the formular is always printed on one particular printer, our development printer.

Are there any settings which override the FM parameters?

Kind regards,

Hans

4 REPLIES 4
Read only

Former Member
0 Likes
594

Dear Hans,

Though it is a basic concept,

First- Please confirm that your Default printer in your system is the one which you are expecting the output.

Second-

in Transaction SU01 check whether Default output device is set.

It will override the FM parameters.

Hope to see your problem solved.

regards,

Lijo Joseph

Read only

Former Member
0 Likes
594

Hey Hans,

In SAP each printer has a short and long name associated with it. You might wanna check TSP03 table to get an idea.

Now check in NAST table what kind of name (Shor or long) is being stored.

If its short then assign

SSFCOMPOP-tddest = NAST-VALUE

ELSE

SSFCOMPOP-TDPRINTER = NAST-VALUE

And as you rightly did, user_setting should be space, so that it doesnot pick printer from user settings.

Inacse you still having the problem try deleting any default printer name from your user profile via SU01.

Let me know if you still have problems.

Regards,

Jeet

Read only

0 Likes
594

Hi Jeet,

in NAST I get the short name tddest (DW54) and I also assign it to the output_options (SSFCOMPOP).

I do not have any default printer in my user profile but I still get the formular on our development printer (D500).

Another formular (SAPScript), which is printed by another output type at the same time is printed on the correct printer.

Is there any options to specify a default printer to a whole system?

Thanks,

hans

Read only

Former Member
0 Likes
594

Jeet's information worked great for me. Knowing NAST has the short name for our output, I tried setting SSFCOMPOP-TDDEST to the short name of a printer other than my user default printer. With USER_SETTINGS space passed with the function module call this worked great (USER_SETTINGS defaults to 'X' in my SmartForm but is evidently overridden). From a similar note I had hardcoded the long name of the printer which had not worked.

Thanks Jeet!

Jim Shupe,

IT Logistics, Eastman Chemical Company