Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Method

Former Member
0 Likes
675

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
635

Hi,

Why dont you use FM Hr_Infotype_Operation

OR

HR_MAINTAIN_MASTERDATA

REWARD IF USEFUL

4 REPLIES 4
Read only

Former Member
0 Likes
636

Hi,

Why dont you use FM Hr_Infotype_Operation

OR

HR_MAINTAIN_MASTERDATA

REWARD IF USEFUL

Read only

0 Likes
635

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.

Read only

Former Member
0 Likes
635

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

Read only

0 Likes
635

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