Process :
The process is that Manager triggers Leaver action through MSS Portal ,here no update happens in backend infotype.
Later two custom based programs gets executed in sequence first for OM infotypes updation and second for PA infotypes updation.
Issue :
After the custom programs are executed then for some random employees Org. unit and cost center values gets deleted completely.
Observation where program has no issue:
I tried executing OM update program manually and observed that position becomes '99999999' and cost center ,org. unit becomes '00000000'
Later I executed PA update Program and observed that org. Unit and cost center values are restored back as previous.
In this case program is working fine but for some random employees in production it has issue.
We were not able to replicate the scenario in Dev or Test system as per production issue, also there is no custom updation done on org. unit ,cost center values in OM and PA update programs.
Assumption to solve the issue:
1) To skip all Leaver Action code (i.e updating OM infotypes) in OM update program and write the same in PA update program after all PA infotypes are executed.
2) I assume Org. unit and Cost Center value updates are happening via some standard badi whenever OM infotypes are executed , which in turn deletes org. unit and cost center values.
If any one has any idea about this issue, kindly share your thoughts.