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: 

2 output in 1 page using SAPSCRIPT

Former Member
0 Kudos

1 records consume half of the page, i need to output 2 records in 1 page what should i do?

thanks.

donna

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Why dont you try

/: PROTECT.

.......

Code

.......

/: ENDPROTECT.

Place your code in between the above syntax so that it will try to place in 1 page.

I hope it will work.

CHEERS

5 REPLIES 5

Former Member
0 Kudos

hi,

i couldn't understand your question correctly.

how you are calling write_form

record = record1

call write_from

record = record2

call write_form

it is in main window or not?

cheers,

sasi

0 Kudos

yes it is in the main window.

example

PDDRF No:

Vendor No:

PONO:

Date:

--this only consumes half of the page. how would i make like this.

PDDRF No:

Vendor No:

PONO:

Date:

PDDRF No:

Vendor No:

PONO:

Date:

---only in 1 page or 1 coupon bond

0 Kudos

Hi

you should call the text element of main twice:

MAIN

/E MY_ELEMENT

PDDRF No:

Vendor No:

PONO:

Date:

So if your program

CALL FUNCTION WRITE_FORM

ELEMENT = 'MY_ELEMENT

WINDOW = 'MAIN'

CALL FUNCTION WRITE_FORM

ELEMENT = 'MY_ELEMENT

WINDOW = 'MAIN'

Max

0 Kudos

hi,

can i assume like if you have 10 PDDREF no means you get 10 pages each page has filled only half.

1. what is the main window size ( increase the main window size )

or

loop at itab

call function 'write_form

endloop

once the content of the first page is filled than only it will go to next page

cheers,

sasi

Former Member
0 Kudos

Hi,

Why dont you try

/: PROTECT.

.......

Code

.......

/: ENDPROTECT.

Place your code in between the above syntax so that it will try to place in 1 page.

I hope it will work.

CHEERS