cancel
Showing results for 
Search instead for 
Did you mean: 

How to end a text element

Former Member
0 Kudos

Hi,

Iam having a text element which holds the data of an internal table which has 15 records and it prints those records in the main window. Once all these 15 records got printed i need to print a standard text.

for me what happens is it prints one record and then it prints standrad text then 2nd record and standard text klike this it goes for all 15records. Can any one tell me why this happend and how to correct it.

the code which i have written is

/E E1

P1 &IT_BKPF-BELNR& &IT_BKPF-BLDAT& &IT_BKPF-BUDAT&

/: INCLUDE ZTEXT_TEST OBJECT TEXT ID ST LANGUAGE EN.

Please help.Thanks

Regards,

Rose.

Edited by: camila phyrose on Feb 18, 2009 7:08 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Camila

Include bottom and end bottom.

(or)

In the print program

At last.

call function 'write_form'.

Call the text element . It prints the text at end of all the records

Regards,

Sravanthi

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Create a window below main window and write the standard text there.

After every record,it will write the standard text there as u have written in the text editor

without any condition.

This is bcoz, the text elements only ends when there is another text element.

If u are sure that only after 15 records it should print the text,then give condition.

/E E1

P1 &IT_BKPF-BELNR& &IT_BKPF-BLDAT& &IT_BKPF-BUDAT&

/: If &w_temp& eq 15.

/: INCLUDE ZTEXT_TEST OBJECT TEXT ID ST LANGUAGE EN.

/: Endif.

Former Member
0 Kudos

HI,

there is no specific command to end a text element.

the start of the other text element is the end of the previous one.

so keep the standard text in another text element and call it again in the driver program with write_form.

(or)

you can do as sravanthi said.

regards

sarves