Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

how effectively a loop-endloop can be used in ui programming

0 Likes
364

hello friends,

i am supposed to develop a dynpro for goods receipt for a given po, i have two screens. in the first screen i have few dictionary fields like po number, vendor des., plant code etc.

in the seond screen the screen has fields like line item, storage location, quantity etc. and it has push buttons like save, next, post etc.

let us assume for a given po, there are 10 line items. when i come to the second screen first time after entering po number and all in the first screen first line item has to be displayed. here in second screen, it has a pushbutton called 'next'. when i use this button, the data that contained by the respective screen fields have to be saved temporarily and next line item of the given po to be displayed in the second screen as happend for the first line item. the process continues till the last line item is reached.

how effectively a loop-endloop can be used to achieve this process, if there is any solution kindly post it.

regards,

karteek.k

1 REPLY 1
Read only

Former Member
0 Likes
335

Hi Karteek,

Since you are displaying only one line item at a time on the next screen you do not even need to do a loop .. endloop.

use read table with index.

Create a local variable say lv_index and increment this variable whenever NEXT is clicked. then use READ TABLE INDEX LV_INDEX.

Thanks,

Abhishek