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

get payroll event

Hi All,

How to Read and write payroll result using event GET PAYROLL.

Please provide me some code so that i can get some idea regarding it.

Thanks & Regards,

Amruta.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jan 07, 2008 at 03:30 PM

    Did you take a look at the sample program EXAMPLE_PNP_GET_PAYROLL in your system?

    ~Suresh

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Amruta,

      GET PERNR is an Event used for PA Reports and its significance is

      GET PERNR. " Loop

      ;;;;;;;;;;

      End-Of-Selection. '" Endloop.

      these statments act like a loop and endloop.

      at GET PERNR Statement System reads the First Employee from the Database and all the infotypes data that you declared under INFOTYPES statments related to that perticular employee will be fetched into there corresponding P Internal tables. like 0000(Actions) we have P0000 and so on., Then we can Process the required information to the basiclist.

      This continues till the Last employee and ends at End-of-Selection event.

      CREATE OBJECT pay. No IDEA

      CALL METHOD pay->read_result IMPORTING list = it_rgdir.

      This Function module is used to get the Payroll results into internal table it_rgdir of type PC261 for a Perticular Employee.

      CALL METHOD pay->write_result EXPORTING list = it_rgdir.

      Once the Employee Payroll Results were fetched and for furthur process.

      Executes the code following "GET dbtab LATE." only when all the subordinate tables have been read and processed.

      Regards,

      Narendra.

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.