cancel
Showing results for 
Search instead for 
Did you mean: 

Repalcing text in the blank lines for script

Former Member
0 Kudos

Hello All,

I am using Scripts. I have defined a window and using a element for handling. The window length is upto 6 lines. In this window i have wriiten text upto 2 lines and the other 4 lines are empty.When i print the form the 2 lines should be placed at the bottom of this window of the last two lines.If i have 6 lines text it is ok for me.

Can anybody help me out. I will reward you with points.

Thanks,

Indrakaran

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

Use BOTTEM and ENDBOTTEM command lines

may be your problem will solve

Regards

Jagadeesh

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

In this text element, just insert lines which are blank and assign some paragrap formats to it. It would be displayed as blank lines.

Nayan

Former Member
0 Kudos

if u have the lines in an itab

do 4 times

CALL FUNCTION 'WRITE_FORM'

  • EXPORTING

  • ELEMENT = 'TE1'

  • FUNCTION = 'SET'

  • TYPE = 'BODY'

  • WINDOW = 'WIN'

enddo

do 2 times for ur 2 lines.or 6 times as per ur requirement)

CALL FUNCTION 'WRITE_FORM'

  • EXPORTING

  • ELEMENT = 'TE2'

  • FUNCTION = 'SET'

  • TYPE = 'BODY'

  • WINDOW = 'WIN'

enddo.

Inside the window WIN:

/E: TE1

write a blank line using SPACE or whatever

/E: TE2

Your data line

I hope u got the picutre...

Former Member
0 Kudos

Hi,

use this command:

/: BOTTOM

/: ENDBOTTOM