cancel
Showing results for 
Search instead for 
Did you mean: 

Text Repeating twice in main window?

Former Member
0 Kudos

Hello,

when i am running my script i am getting the main window text twice i mean same thing is repeatedly printing.

Where i am going wrong please resolve my problem.

Thks

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi

you write the text before u write code for displaying boxes.then only u donot get that text repeatedly..

<C1>DOC NO,,,,ITEM NO,,,,DEL.ITEM ,,CHANGE ,,,,MAT NO.,,,,NETVAL.</>

BOX WIDTH '18.91' CM HEIGHT '5.7' CM FRAME '10' TW INTENSITY '15'

BOX YPOS '0.5' CM WIDTH '18.91' CM HEIGHT 0 CM FRAME '10' TW

.

..

<C1>&wa_ekpo-ebeln&</><C1>,,,,&wa_ekpo-ebelp&,, &wa_ekpo-loekz&,,,,,,,,,, &wa_ekpo-aedat&,,,,&wa_ekpo-matnr& ,,,,&wa_ekpo-netwr&</>

Former Member
0 Kudos

hi

use elements in the text editor of the script

agin call that element in the main window or write form .

/E text " maintain it in script

********do it in the print program

call fuction write_form

element = 'text'

regards

sachhi

valter_oliveira
Active Contributor
0 Kudos

Hello.

How do you mean repeating MAIN window text? All the window text elements? Or some of them?

In your print program, check the WRITE_FORM FM statements. Debug it to see what can be happening.

If you want post here relevant part of code.

Best regards.

Valter Oliveira.

Former Member
0 Kudos

Sir,

Not getting the exact error even in debugeer.

What ever text i am right in main window i am getting it repeated.

Thks

Former Member
0 Kudos

Hi,

Are you using an internal table?? If yes try refreshing it...

valter_oliveira
Active Contributor
0 Kudos

Hello again.

It's a good point. Internal table could be the reason if not well used.

However, to clear it out, tell us 2 things:

. the structure of MAIN window, i.e, composed by only text element, or texts without text elemten (/E), or both

. in print program, check all the WRITE_FORM FM's used, related to MAIN window and it's text elements.

This way you can trace if the print program is calling MAIN elements twice.

Best regards.

Valter Oliveira.