‎2006 Nov 13 10:45 AM
Hi Frnd's,
I have a screen with 5 fields displayed only one is input field all other datas are displayed frm a internaltable.the internal table contains 10 rows.
at the initial the first row values is displayed in screen and after that if i press enter the next row data should be diplayed in screen.
how this can be done.
Thanks in advance
Suganya
‎2006 Nov 13 10:49 AM
In the PBO module you can define to display the records via reading the internal table with an index value.
READ TABLE ITAB INDEX lindx.
For the first case initialise the lindx to 1.
And in PAI, on each enter you can increment the lindx count.
Regards
Anurag
‎2006 Nov 13 10:49 AM
In the PBO module you can define to display the records via reading the internal table with an index value.
READ TABLE ITAB INDEX lindx.
For the first case initialise the lindx to 1.
And in PAI, on each enter you can increment the lindx count.
Regards
Anurag
‎2006 Nov 13 10:53 AM
after incrementing whther
each time the process goes back to PBO.
‎2006 Nov 13 10:56 AM
‎2006 Nov 13 10:52 AM
Hi
U can use a counter:
PROCESS PBO
MODULE SHOW_ITAB.
PROCESS PAI.
MODULE USER_COMMAND.
MODULE SHOW_ITAB.
IF COUNTER = 0.
COUNTER = 1.
ENDIF.
READ TABLE ITAB INDEX COUNTER.
* Move the data from itab to input/output fields
ENDMODULE.
MODULE USER_COMMAND.
CASE OK_CODE.
WHEN SPACE. COUNTER = COUNTER + 1.
ENDCASE.
CLEAR OK_CODE.
ENDMODULE.Max