Application Development 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: 

SAP Script Global variable for printer name

Former Member
0 Kudos

Dear experts,

I have a scenario where my driver program is a standard one SAPM07DR whereas my SCRIPT is a custom one. Now I have already done some customization via subroutine inside my SCRIPT form.

Now I need to display Printer name mapped to a variable in a spool. Although spools by standard display printer name on the right top, my functional need it in a variable in the spool.

But I run out of any global structure which pass through the SCRIPT with the printer name. I have tried few structures in SCRIPT debugger but of no use. Any suggestions please?

Please note that I am not going to touch standard program at all. I just need the printer name in my SCRIPT form.

Thanks in advance.

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor
0 Kudos

I don't understand what you mean: "need [the printer name] in a variable in the spool"?

You may use the printer name from within your sapscript form by using the symbol &ITCPO-TDDEST& (short name of 4 characters of the output device ID) in your SAPscript texts.

You may also get it from your driver program by declaring:

TABLES itcpo.
1 REPLY 1

Sandra_Rossi
Active Contributor
0 Kudos

I don't understand what you mean: "need [the printer name] in a variable in the spool"?

You may use the printer name from within your sapscript form by using the symbol &ITCPO-TDDEST& (short name of 4 characters of the output device ID) in your SAPscript texts.

You may also get it from your driver program by declaring:

TABLES itcpo.