03-13-2007 8:37 AM
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
03-13-2007 8:46 AM
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
03-13-2007 9:05 AM
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.
03-13-2007 9:06 AM