I need to know how we can do cost assignment while creating info type using FM HR_INFOTYPE_OPERATION.
I am able to create a record in info type table as well as cost assignment related main tables ASSOB & ASSHR by creating a new PDSNR.
Everything is going fine. But when I see the record using PA20, cost assignment tab is coming as grey out.
I explored and found that we need to pass REFEX as 'X' in info type structure but when I am doing so, I am getting an error KI178 - Enter a true
account assignment relevant to cost accounting though FM HR_INFOTYPE_OPERATION.
Your assistance will be highly appreciable.