I need a code for below given problem.
I have A custom table with the goals for certain jobs.which will be used as input for the Performance Screen creation.
table format:
Template ID Job Title Code Goal Type Criteria Goal Text
60003201 70001011 40002739 Make 106% of Plan
Table layout :
Template ID Numc, 8 (HRP1000, OBJID VA Object)
Job title code Numc, 8 (HRP1000, OBJID C Object)
Criteria(Goal type) Numc,8 (HRP1000, OBJID VC Object)
Goal text Char, 1000
Logic to determine goals from custom table:
I have to Read infotype 0001 to get PA0001-STELL based upon PERNR of user.
Then Read table-Template ID to locate templates specific to Performance Screen and the users job title code PA0001 STELL based upon their PERNR to obtain goals of each type to be populated in the users Performance Screen document.
o Load goals into Performance Screen document in the notes text box of the particular Criteria (VC) for goals of the appropriate goal-type.