cancel
Showing results for 
Search instead for 
Did you mean: 

issue in sap script: first line item is repeated twice

0 Kudos

Hi Experts,

When working with Sap Script , if we  loop a table in the main window without using Text element  the first line item is repeated twice.

I done enough searching on it, but didn't got any answer.

Pls let me know why this is happening.

Thanks In advance,

Raj..

Accepted Solutions (0)

Answers (3)

Answers (3)

VijayCR
Active Contributor
0 Kudos

Hi nagraj,

Ensure you always give the text element other wise it cannot recognise the first row of the table.

Thanks ,

vijay.

Former Member
0 Kudos

You should include a text element and loop your table, otherwise it will print twice.

0 Kudos

Hi Shimbu, I agree with your answer,

I just wanted to know why it is printing twice only the first line item.

former_member230486
Contributor
0 Kudos

Hi,

You just read these line,

  • The system outputs named text elements only if the print program explicitly calls them in the function module WRITE_FORM. But it outputs nameless text element automatically whenever it processes the corresponding window.

  • The nameless text element of the MAIN window appears only once at the beginning of the main window. It does not appear on the subsequent pages of the form which also contain the main window.
  • The nameless text elements of all other windows (except MAIN) appear each time.
0 Kudos

Hi sir/madam (sap abap),

Can u give me a brief explanation of ur reply.

(i already read it in sap library and didn't understand it).

Former Member
0 Kudos

Actually main windows repeats itself.So if didnt give the text element it displays it twice

Former Member
0 Kudos

Pls put the screen shot

0 Kudos

Hi karthik,

here is the screen shot.

Former Member
0 Kudos

U may not used the write_form method in scripts so it may be doing like that