cancel
Showing results for 
Search instead for 
Did you mean: 

form using script

Former Member
0 Kudos

im working in journal voucher..using script.and it is came in the form of landscape

and i want to change in the portrait form..

when i decrease the alingment of layout then layout comes in proper way but report data is not

coming in proper way..can anybody help me how to set alingment that data comes in proper way..

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Each form may only have a single orientation but you can create two forms and include them in the same spool output.

In your ABAP program:

1. call function 'OPEN_FORM', don't pass a value in 'FORM'

2. call function 'START_FORM', include parameter 'FORM' passing the name of your first form

3. call function 'WRITE_FORM' as normal to output each element

4. call function 'END_FORM'

5. call function 'START_FORM', include parameter 'FORM' passing the name of your second form

6. call function 'WRITE_FORM' as normal to output each element

7. call function 'END_FORM'

8. call function 'CLOSE_FORM'

Repeat the 'START_FORM' ... 'END_FORM' sequence as required.

Hope this works for you.

Thanks.......

Former Member
0 Kudos

hi,

if you mean the layout is still landscape.

That is a setting in header- tab basic data.

If you mean the data is not good aligned anymore

then you have to do a lot of work.

Decreasing the linesize is not easy.

It is difficult to get it fit in a shorter line.

you have to work very secure. Mostly you have to build

the whole layout again.

suc6.

Gr., Frank

Former Member
0 Kudos

hiii..

now layout is coming in portrait form...but the values of table like date, debit amt, credit amt is not coming in proper place...like date is coming in debit amt place..and debit amt is coming in the place of credit amount..please help me,how to solve?

Advance thanks..