Skip to Content
author's profile photo Former Member
Former Member

HR-ABAP issue

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2008 at 12:42 PM

    r u using ldb?

    then it'll loop automatically.

    otherwise just use simple loop endloop.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.
      

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.