Skip to Content
author's profile photo Former Member
Former Member

Method

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 09, 2008 at 01:17 PM

    Hi,

    Why dont you use FM Hr_Infotype_Operation

    OR

    HR_MAINTAIN_MASTERDATA

    REWARD IF USEFUL

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • author's profile photo Former Member
    Former Member
    Posted on Apr 10, 2008 at 04: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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.