cancel
Showing results for 
Search instead for 
Did you mean: 

SCRIPT error "Maintain an output device in your user master record." ?

Former Member
0 Kudos

Experts,

I am trying to create a simple script in our newly given sap sand box.

the below is my driver program. And when I execute my driver program ...give 'LOCL' in print pop up.... I am getting below error.

"Maintain an output device in your user master record."

My driver program :

REPORT YDEMO_HELLOWORLD.

----


TABLES: VBAP.

PARAMETERS: FORM LIKE RSSCF-TDFORM DEFAULT 'YDEMO_HELLOWORLD'.

*ARAMETERS: form LIKE rsscf-tdform DEFAULT 'YDEMO_TALLY'.

START-OF-SELECTION.

************************************************************************

  • Open the SapScript Form with the "form" *

************************************************************************

CALL FUNCTION 'OPEN_FORM'

EXPORTING

  • APPLICATION = 'TX' " this is SapScript Appl

DEVICE = 'PRINTER' " allow output to printer

  • DIALOG = 'X' " printer dialog requested

FORM = FORM " name of form (SE71)

  • LANGUAGE = SY-LANGU

  • OPTIONS = ' '

EXCEPTIONS

CANCELED = 1

DEVICE = 2

FORM = 3

OPTIONS = 4

UNCLOSED = 5

MAIL_OPTIONS = 6

OTHERS = 7.

************************************************************************

  • Execute the element "HELLO" in window MAIN

  • - Nothing happens if /E HELLO is not declared in MAIN

************************************************************************

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = 'HELLO' "execute element /E HELLO

  • FUNCTION = 'SET'

TYPE = 'BODY' "normal output

WINDOW = 'MAIN' "to window MAIN

  • IMPORTING

  • PENDING_LINES =

EXCEPTIONS

ELEMENT = 1

FUNCTION = 2

TYPE = 3

UNOPENED = 4

UNSTARTED = 5

WINDOW = 6

BAD_PAGEFORMAT_FOR_PRINT = 7

OTHERS = 8.

************************************************************************

  • Close the current SapScript Form

************************************************************************

CALL FUNCTION 'CLOSE_FORM'

EXCEPTIONS

UNOPENED = 1

BAD_PAGEFORMAT_FOR_PRINT = 2

OTHERS = 3.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

By assigning the printer LOCL in the user master, check if that resolves the error: 1. Goto Transaction SU3. 2. Select Defaults Tab. 3. Specify LOCL as Output Device.

Answers (0)