‎2007 Apr 24 10:35 AM
Hi all,
i have an issue while displaying output using interactive list.
LOOP AT it_tab1 INTO wa_tab1.
WRITE:/ wa_tab1-field1,
wa_tab1-field2.
AT LINE-SELECTION.
IF SY-LSIND = 1.
WRITE 'THE DETAILS ARE:'.
-
-
using this code, when i am double-clicking the output data generated by wa_tab1, the next page appears because of the AT LINE-SELECTION.
THE ISSUE IS THAT WHEN I AM DOUBLE-CLICKING "THE DETAILS ARE:",
THE NEXT PAGE APPEARS, WHICH NOT BE.
please help me in resolving this issue.
‎2007 Apr 24 10:39 AM
hi <b>remove the</b> at line-selection from the loop
IF SY-LSIND = 1. it is not required.
<b>at line-selection</b> it self increments the <b>SY-LSIND value by 1</b>.
and where is the <b>endloop</b>.
u r code may write like this
<b>LOOP AT it_tab1 INTO wa_tab1.
WRITE:/ wa_tab1-field1,
wa_tab1-field2.
ENDLOOP.
AT LINE-SELECTION.
IF SY-LSIND = 1.
WRITE:/ 'THE DETAILS ARE:'.
ENDIF.</b>
reward if it helps u
vijay pawar
‎2007 Apr 24 10:40 AM
Can you post the total code, if yo uhave done what you have said, then it should not behave the way you have explained.
This works absoultely as expected for me:
write:/ 'Page 1'.
at line-selection.
if sy-lsind = 1.
write:/ 'Page 2'.
endif.Regards,
Ravi
‎2007 Apr 24 10:46 AM
Hi ravi,
I have sent you the whole code via mail.
please help me resolving the issue.
regards
vivek
‎2007 Apr 24 10:47 AM
Hi,
Don't write ai line selectioni n loop.
and also use hide to write all the details.
LOOP AT it_tab1 INTO wa_tab1.
WRITE:/ wa_tab1-field1,
wa_tab1-field2.
<b>hide wa_tab1-field1.</b><b>endloop.</b>
AT LINE-SELECTION.
IF SY-LSIND = 1.
WRITE 'THE DETAILS ARE:'.
endif.
Hope it helps.
Regards,
Sonika