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

HR Programming for Infotype 0041.

Hello,

The data come from infotype 0041.

The Date is stored in the field DATxx when DARxx is equal to ‘05’. [xx can have the values from 01 to 12].

Can anyone suggest that how to to the retrieval for this.

Best Regards,

Pramod Upadhyay

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 05:55 AM

    Hi Pramod,

    Infotype 0041 is a Repetitive Structure.

    u can use Macro RP-PROVIDE-FROM-LAST P0041 "Sapce" PN-BEGDA PN-ENDADA.

    after that u can use DO loop.

    FROM P0041-DAR01

    NEXT P0041-DAR12.

    Try this & Revert.....!!!

    Reward Points if useful...!!!

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      If u want to Retrieve all the values of that infotype ...

      use Do or any other Loop statement....!!!

      Becoz it is a Repetitive Structure ...so use Do statement for Loop ..!!!

      U can code like that:

      do 12 times varying DARXX

      from it_extract-p0041-dar01 next it_extract-p0041-dar02

      varying DATXX it_extract-p0041-dat01 next it_extract-p0041-dat02.

      case DARXX

      when '05'.

      Take the value of DATxx ...

      endcase.

      enddo.

      .

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 05:59 AM

    Hi

    Retrive the data from this infotype similar to 008 infotype data in which similar type of fields are there

    see the sample code

    Report Zabc.

    tables:pernr.

    infotypes:0008.

    data: begin of wagetypes,

    lga like pa0008-lga01,

    bet like pa0008-bet01,

    anz like pa0008-anz01,

    end of wagetypes.

    get pernr.

    rp_provide_from_last p0008 space pn-begda pn-endda.

    do 20 times varying wagetypes

    from p0008-lga01 next p0008-lga02.

    if not wagetypes-lga is initial.

    write:/ wagetypes-lga, wagetypes-bet, wagetypes-anz.

    endif.

    enddo.

    Regards

    Anji

    Add a comment
    10|10000 characters needed characters exceeded

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.