2007 Jul 26 5:33 AM
When using at line-selection the case is that the system throws a dump after 20 detail list have opened(clicking on the 20th one) .My question is how can we prevent the system from throwing a dump.For e.g in this small code snippet, what coding i need to do to prevent the same from happening.
*START-OF-SELECTION.
WRITE 'Click me!' COLOR = 5.
*
*AT LINE-SELECTION.
WRITE: / 'You clicked list', sy-listi,
/ 'You are on list', sy-lsind.
IF sy-lsind < 20.
SKIP.
WRITE: 'More ...' COLOR = 5.
ENDIF.
thank's in advance.
2007 Jul 26 5:38 AM
REPORT abc.
START-OF-SELECTION.
WRITE 'Click me!' COLOR = 5.
AT LINE-SELECTION.
WRITE: / 'You clicked list', sy-listi,
/ 'You are on list', sy-lsind.
IF sy-lsind EQ 20.
sy-LSIND = 3. <b> "Reset list to 3 or 1...</b>
WRITE: 'More ...' COLOR = 5.
ENDIF.
Regards,
SaiRam
When using at line-selection the case is that the system throws a dump after 20 detail list have opened(clicking on the 20th one) .My question is how can we prevent the system from throwing a dump.For e.g in this small code snippet, what coding i need to do to prevent the same from happening.
*START-OF-SELECTION.
WRITE 'Click me!' COLOR = 5.
*
*AT LINE-SELECTION.
WRITE: / 'You clicked list', sy-listi,
/ 'You are on list', sy-lsind.
IF sy-lsind < 20.
SKIP.
WRITE: 'More ...' COLOR = 5.
ENDIF.
thank's in advance.
2007 Jul 26 5:35 AM
2007 Jul 26 5:36 AM
2007 Jul 26 5:38 AM
REPORT abc.
START-OF-SELECTION.
WRITE 'Click me!' COLOR = 5.
AT LINE-SELECTION.
WRITE: / 'You clicked list', sy-listi,
/ 'You are on list', sy-lsind.
IF sy-lsind EQ 20.
sy-LSIND = 3. <b> "Reset list to 3 or 1...</b>
WRITE: 'More ...' COLOR = 5.
ENDIF.
Regards,
SaiRam
2007 Jul 26 5:46 AM
hi,
one way is to reset the LSIND to basic list
IF LSIND >= 20 .
LSIND = 1.
ENDIF.
OR use a variable which is incremented by 1 when u click on lsind and code like this.
DATA: INDEX TYPE I.
AT LINE-SELECTION.
................
.........
LSIND = LSIND + 1.
...............
IF LSIND >=21.
MESSAGE 'U CANT GET ANY MORE LISTS' TYPE 'E000'.
ENDIF.
IF HELPFUL REWARD SOME POINTS.
WITH REGARDS,
SURESH ALURI.
2007 Jul 26 5:49 AM
Hi Mithun
you reset the sy-lsind to 1 once it reaches 20
if sy-lsind eq 0.
sy-lsind = 1.
endif.
Regards,
Azhar
2007 Jul 26 5:50 AM
Hi Mithun
you reset the sy-lsind to 1 once it reaches 20
if sy-lsind eq 0.
sy-lsind = 1.
endif.
Regards,
Azhar
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |