Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

scrolling in step loops

I have to work with Step Loops. with all the research I found

LOOP AT ITAB CURSOR CL INTO WA.

ENDLOOP.


in flow logic in the PBO event will transfer the content from internal table to the screen field automatically and it enable scrolling. when scrolled the PAI event is triggered, and in PAI,

LOOP AT ITAB.

ENDLOOP.


will automatically take care of scrolling. This kind of method display as many table rows that my screen can contain. I found these with Transaction TZ61.

Now the Problem is In my output screen I need to control how many table rows is displayed. so I made these addition.

PROCESS BEFORE OUTPUT.

LOOP AT ITAB CURSOR CL INTO WA FROM N1 TO N2..

ENDLOOP.

PROCESS AFTER INPUT.

LOOP AT ITAB.

ENDLOOP.

N1 of type I has value 1 , N2 of type I has value 5, CL of type I has value 1.

Now In output I managed to get 5 table rows as required but the scrolling event is not triggering. please guide me what are all the changes that I need to do If I made the additions FROM N1 TO N2.

when I scroll the contents are not scrolling. only the first 5 rows from the internal table is displayed. but my internal table has 100 rows.

please guide me at the earliest. I had referred sap technical and help.sap.com but I couldn't find any solution. please help.

Tags:
replied

i solved the issue by myself. As Aditya Jangid said FROM addition is to control the number of records in Internal table. so i increased the number value to 60.

To control the number of records displayed on the screen i just made the Dynamic step loop to be a Fixed step loop with 5 number of records.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question