cancel
Showing results for 
Search instead for 
Did you mean: 

Selecting Printer

Former Member
0 Kudos

HI Experts,

Here i have the requirement that i have to send the details to printer depending on the IP, which i will get from Thirdparty(JAVA)

So iam using the field PALPDHOST(IP Address) of Table TSP03D and iam taking the value of PADEST(from the same table) and assinging the value to the parameter

w_compop-TDDEST.

But iam not getting proper results.

I requet all to help me that what is te difference between

Control parameter DEVICE(ctrl_param-device) and

Output options TDDEST( w_compop-TDDEST).

And what exact values i have to assign to them.

Thanks in advance,

Ravi.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ravi,

You have to pass the below details to output_options.

output_options-tddest = printer (Eg: LOCL).

Then select the corresponding name from SH_PRIN table. Pass the printer name.

SELECT SINGLE lname

FROM sh_prin

INTO aux_printer

WHERE kname = passed_data-printer.

IF sy-subrc = 0.

options-tdprinter = aux_printer (Eg: Local).

ENDIF.