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

Regarding time infotype updation

Hi all can i update update time infotypes using FM: Hr_infotype_operation.

here i am facing problem with infotype 2001 updation.

with regards

Anand

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 May 26, 2009 at 11:47 AM
    can i update update time infotypes using FM: Hr_infotype_operation

    Yes, You can.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 26, 2009 at 12:16 PM

    Hi ,

    Please go through below coding it ill help you out .

    • lock the Emp

    CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'

    EXPORTING

    NUMBER = WA_ZHR_TIME-L_PERNR

    IMPORTING

    RETURN = E_RETURN.

    • create absence for that day for a perticular emp

    CALL FUNCTION 'BAPI_ABSENCE_CREATE'

    EXPORTING

    EMPLOYEENUMBER = WA-PERNR

    VALIDITYBEGIN = WA-begda

    VALIDITYEND = WA-endda

    • START = BEGIN_TIME

    • END = BEGIN_TIME

    ABSENCETYPE = T_ABSENCE-SUBTY

    • ABSENCEHOURS =

    • NOCOMMIT =

    IMPORTING

    RETURN = RETURN

    • EMPLOYEENUMBER =

    • SUBTYPE =

    • OBJECTID =

    • LOCKINDICATOR =

    • VALIDITYBEGIN =

    • VALIDITYEND =

    • RECORDNUMBER =

    .

    • update the record

    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

    • EXPORTING

    • WAIT =

    • IMPORTING

    • RETURN =

    .

    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.