2011 Nov 24 5:38 AM
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
2011 Nov 24 8:45 AM
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
2011 Nov 24 8:45 AM
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.
2011 Nov 24 9:31 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |