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

PO13 and 0001 infotype (HR_INFOTYPE_OPERATION + badi HRBAS00INFTY

Hello Friends,

We have cretaed a position description subtype and assigned it to 1002 infotype.

Query: 1) Adding 2 customer fields(Subtype and description) to infotype 0001 (This is done using PM01).

2) Using Po13, they assign a subtype(position description) for a particular Position.

Now the requirement is When they assign subtype to a postion in PO13 and save then these subtype

and subtype description should be stored in 0001 infotype.

the position should use to locate the employee and once the employee have been located update 0001.

for ths I have implemented a PO13 badi HRBAS00INFTY(IN updating method) and inside the BADI we are calling

HR_INFOTYPE_OPERATION' to update the eMPLOYEE(0001 INFOTYPE).

Problem: Now the problem is , when we open PO13 in change mode to assign a subtype to Position ,sap creates a lock entry and when svae we are call

HR_INFOTYPE_OPERATION' to update the eMPLOYEE(0001 INFOTYPE).but HR_INFOTYPE_OPERATION' also internally tries to lock the position but raising a

message "You have already locked object/infotype S50000024".

Pleae find below function and follwoing parameter I am suing for updating the person(0001 infotype) .

I dont understand why HR_INFOTYPE_OPERATION is trying to lock position when I pass Pernr and 0001 as a parametr.

CALL FUNCTION 'HR_INFOTYPE_OPERATION'

EXPORTING

infty = c_infty

number = wa_pernr-pernr

  • SUBTYPE =

  • OBJECTID =

  • lockindicator = 'X'

validityend = wa_pernr-endda

validitybegin = wa_pernr-begda

  • RECORDNUMBER =

record = it_0001

operation = 'MOD'

tclas = 'A'

dialog_mode = '0'

  • NOCOMMIT =

  • VIEW_IDENTIFIER =

  • SECONDARY_RECORD =

IMPORTING

Please help me .

Thanks In advance

Best Regards

Trupthi

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 Apr 20, 2011 at 12:18 PM

    Hi,

    HR_INFOTYPE_OPERATION will not work in this BADI as it is internally calling commitwork. Please check the example code in the interface class:IF_EX_HRBAS00INFTY. Write code accordingly.

    Thanks and Regards,

    Chandra

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 23, 2011 at 02:26 PM

    Hi chandra madapati ,

    Thank you for the support.

    Regards

    Trupthi

    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.