cancel
Showing results for 
Search instead for 
Did you mean: 

HR-ABAP issue

Former Member
0 Kudos

Hi All,

my requirement is :

1.I am getting L_SOBID form HRP1001 table.

2.then get the personnal number form custom table where OBJID=L_SOBID.

3.if pernr is not intial.

4.get the person name and mail id.

else.

5.get the reporting position of that position(l_sobid).

repeat the above 2,3,4. steps

endif.

My problem is how repeat the loop.

any one suggest me which loop can i use.

Thanks,

CK Kumar.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

r u using ldb?

then it'll loop automatically.

otherwise just use simple loop endloop.

shafiq_rehman3
Active Contributor
0 Kudos

you will need to SELECT records from HRP1000 into an internal table, and then loop on that internal table.

something like:


SELECT * FROM HRP1000 into it_1000 WHERE begda<= sy-datum and endda >= sy-datum.

Loop at it_1000.

*your logic here

Endloop.