cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

output device not defined

Former Member
0 Likes
7,268

Hi,

I've the following code in my program control:

DATA: control TYPE ssfctrlop,"Smart Forms: Control structure
             output_options TYPE ssfcompop,"Smart Composer (transfer) options
             v_fm TYPE rs38l_fnam,"Form Name
             itab TYPE STANDARD TABLE OF mara."Table to be passed to form
   DATA :
     gs_control_parameters TYPE SSFCTRLOP,
     gs_output_options TYPE SSFCOMPOP.

   gs_control_parameters-no_dialog = 'X'.
   gs_output_options-tddest   = 'ETIQUETAS'.
   gs_output_options-tddelete = 'X'. "Delete after print
   gs_output_options-tdimmed  = 'X'. "Print immediately

The output device ETIQUETAS exists and works properly. But If I run the control program I get the error "output device ETIQ not defined"  and I don't know why. In fact the ETIQ output device isn't defined in the SPAD. I need to send the result thru ETIQUETAS.

Can anybody help me?

Thanks in advance.

Regards.

Accepted Solutions (1)

Accepted Solutions (1)

RaymondGiuseppi
Active Contributor
0 Likes

TDDEST is the short name for output device (length 4) check via SPAD for the correct value associated to 'ETIQUETAS' which is the Long device name.

You can programmatically check table TSP03D, fields NAME and PADEST.

Regards,

Raymond

Former Member
0 Likes

The short name is ETQS and not ETIQ which is the name into the error screen.

Sincerely, I don't know from where does it come. It seems as if it was stored in somewhere into de control program..

RaymondGiuseppi
Active Contributor
0 Likes

it comes from

gs_output_options-tddest   = 'ETIQUETAS'. 

where it gets truncated "ETIQ", code should be

gs_output_options-tddest   = 'ETQS'. 

Change the hard coded value, or look at FM like RSPO_R_CONVERT_TO_LS or CONVERSION_EXIT_SPDEV_INPUT.

Regards,

Raymond

Former Member
0 Likes

Thanks a lot for your help.

Regards.

Answers (0)