Skip to Content

SAP Script Global variable for printer name

Nov 13, 2016 at 08:05 AM


avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Sandra Rossi Nov 13, 2016 at 08:42 AM

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.
10 |10000 characters needed characters left characters exceeded