Hi All,
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.
Yes it is possible to use both the FM's in conjunction. First create the IT0015 using the HR_INFOTYPE_OPERATION, if it is successful then you can create PDSNR assignment using the primary key of your IT0015 for ASSHR table. Then the same PDSNR reference can be used to create Cost center assignment in ASSOB table.