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: 

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

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

Hi sky ,

I think in one form you cannot set portrait and landscape .

i think you have to develop two layouts one for landscape and one for protrait you call this layout through an if condition , it might work

Thanks

Former Member
0 Kudos

Hi,

By using ITCPO we cann't set the information about portrait and land scape .

We can set it through the form's header information.

In <b>Basic settings</b> we can change the <b>orientation</b> to <b>land scape</b> or <b>portrait</b>.

It applicables to the entire layout. In one layout we cann't have portrait as well as land scape.

Regards

Sandhya.

Former Member
0 Kudos

OH...IC it's just the only way...THX!!