‎2008 Apr 09 1:51 PM
Hi Gurus,
I am performing an action in PA40 for employee transfer.
While I change the Payroll Area for the employee from SL to BW in IT0001, I require both new and old values for Payroll Areas.
The old value (SL) could be captured from the table itself.
How can I capture the new value i.e., BW ?
I asked someone regarding this and he mentioned me the below method.
I just wanted to know what is the value of s_innnn ? Is it that this value is captured from run time.
Or something else needs to be done for this.
CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
EXPORTING
prelp = s_innnn
IMPORTING
pnnnn = s_i0001.
Please reply. This is really urgent.
Regards,
Binay.
‎2008 Apr 09 2:17 PM
Hi,
Why dont you use FM Hr_Infotype_Operation
OR
HR_MAINTAIN_MASTERDATA
REWARD IF USEFUL
‎2008 Apr 09 2:17 PM
Hi,
Why dont you use FM Hr_Infotype_Operation
OR
HR_MAINTAIN_MASTERDATA
REWARD IF USEFUL
‎2008 Apr 09 2:28 PM
Hi,
Thanks for your reply.
I require the newly added Payroll area (ABKRS) to be captured and neither of the FMs have such a parameter.
Could you let me how to get the newly provided payroll area in IT0001 while performing the action for transfer for an employee.
Regards,
Binay.
‎2008 Apr 10 5:32 AM
Hi,
Both the values are getting stored in table PA0001, you can retrive it from thr..
See when you do transfer a new record is created and old record will the thr always. i.e both the records are available.
REWARD IF USEFUL
‎2008 Apr 10 7:37 AM
Hi,
While making the changes in IT0001 by performing actions via PA40, until the changes are saved in the infotype, the newly entered record values wont be available in the table PA0001. I need to capture the newly entered payroll area value before it is saved in table PA0001, so that I can compare it with existing one and then only move ahead to store in table PA0001.
Just like we capture the pernr value by using the structure PSPAR (_pspar-pernr gives the employee no if some actions are being performed on it_).
Am I confusing you ?
Please reply.
Regards,
Binay