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

ldb selection screen pnp.

Former Member
0 Likes
551

hi experts,

i am using ldb pnp.

i would explain my problem through an example:

suppose i enter , cmpny code:1000

personal area/subarea/cost center: 14000002*

"GET pernr" statement returns 13 personal numbers and executes code for personal number one-by-one .

actually i require to display some text related to each execution in the last execution stage.how to do that.

what condition should i put to identify that this is the last personal no.

thanks

1 ACCEPTED SOLUTION
Read only

former_member209703
Active Contributor
0 Likes
524

Hi

One thing you can do is to store de pernr's that GET PERNR sentence is retrieving in an internal table and at the END-OF-SELECTION event loop at that table and execute your logic. That way you're avoiding the problem in executing the same code por each pernr each time in GET PERNR event.


GET PERNR.
 append pernr-pernr to g_t_pernr.

END-OF-SELECTION.
 LOOP AT G_T_PERNR.
..... <== Your logic.
 ENDLOOP.

hi experts,

i am using ldb pnp.

i would explain my problem through an example:

suppose i enter , cmpny code:1000

personal area/subarea/cost center: 14000002*

"GET pernr" statement returns 13 personal numbers and executes code for personal number one-by-one .

actually i require to display some text related to each execution in the last execution stage.how to do that.

what condition should i put to identify that this is the last personal no.

thanks

2 REPLIES 2
Read only

former_member209703
Active Contributor
0 Likes
525

Hi

One thing you can do is to store de pernr's that GET PERNR sentence is retrieving in an internal table and at the END-OF-SELECTION event loop at that table and execute your logic. That way you're avoiding the problem in executing the same code por each pernr each time in GET PERNR event.


GET PERNR.
 append pernr-pernr to g_t_pernr.

END-OF-SELECTION.
 LOOP AT G_T_PERNR.
..... <== Your logic.
 ENDLOOP.

Read only

0 Likes
524

hi jose,

thanks a lot. ur code worked. relieved!!!!