Application Development 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: 

How to View archived renumeration data

former_member435556
Participant
0 Kudos

Hi All,

We archived all the payroll results before 2010, now our client have a requirement to view the archived remuneration statement program data, My archived object is "pa_calc" i have tried to make customized program to get the archived data but couldn't succeed,Does any one have an idea how to view archived remuneration statements data?


We can view the payroll data from PC_PAYRESULT transaction code but customer needs to view archived remuneration statements data?

Please help as I have already searched google but didn't find any solution.

3 REPLIES 3

Former Member
0 Kudos

Hi David,

          you can go through this

Steps :

First get you no-archive data into ITAB then call


1)  call function 'AS_API_INFOSTRUC_FIND'

2)   call function 'AS_API_READ'

3)   loop e_result

    

4) call function 'ARCHIVE_READ_OBJECT'

             get l_handle

5) call function 'ARCHIVE_GET_TABLE'

        exporting

          archive_handle          = l_handle

          record_structure        = 'PA_CALC'

          all_records_of_object   = 'X'

          automatic_conversion    = 'X'

        tables

          table                   = ct_vbrk

        exceptions

          end_of_object           = 1

          internal_error          = 2

          wrong_access_to_archive = 3

          others                  = 4.

6) append ct_vbrk into ITAB.


   clear ct_vbrk.

  endloop

0 Kudos

Hi Dayaram,

Thanks for your valuable inforamtion,

I still have some confusion,

First my archive object PA_CALC has no associated info-structure, therefore i created manually by first creating the field-catalog of PCL2, then create the respective info-structure, but when i tried to give the selection criteria in call function 'AS_API_READ' i didn't  find a field pernr in my field-catalog to give selection criteria, because field-catalog consist of PCL2 table fields,

My requirement is that i just gave the personal number and fetch the archived data just like in

Remuneration statement which gets the data from tables

Former Member
0 Kudos

Hi,

Have you found any solution yet?