Skip to Content
0
Former Member
Mar 13, 2007 at 08:37 AM

how can I choose the layour of ASAP scription portrait / landscape

20 Views

HI. I have a question that i want to do in program

have selection to choose print portrait or print landscape ABAP Script Form

if choose portrait, then call the same form with portrait layout

if choose landscape, then call the same form with landscape layout

how to write in program ? i couldn't find and table which is stored that information, that can let me to choose

I've just found the similar table structure : ITCTA-TDPAGEORTN

but don't know how to do ...

I have a program have function

FORM OPEN_FORM.

DATA: A LIKE ITCPO.

CALL FUNCTION 'OPEN_FORM'

EXPORTING

APPLICATION = 'TX'

  • ARCHIVE_INDEX = ' '

  • ARCHIVE_PARAMS = ' '

  • DEVICE = 'PRINTER'

DIALOG = 'X'

FORM = 'Z_VOUCHER3'

LANGUAGE = SY-LANGU

OPTIONS = A

IMPORTING

RESULT = OPEN_RESULT

EXCEPTIONS

CANCELED = 1

DEVICE = 2

FORM = 3

OPTIONS = 4

UNCLOSED = 5

OTHERS = 6.

ENDFORM. "OPEN_FORM

  • but where can be inserted the statement to show

anyone can help ...

thx a lot