SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

Reading payroll results



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> HR
View previous topic :: View next topic  
Author Message
admin
Администратор
Администратор



Joined: 01 Sep 2007
Posts: 1640

PostPosted: Wed Aug 13, 2008 1:17 pm    Post subject: Reading payroll results Reply with quote

The table RGDIR is stored in the cluster CU. This table contained all the payroll results of an employee. In this table, there is ,for each payroll, the key of the area containing the table results of this payroll run (RT, CRT...). All these tables are stored in a cluster RF.

Code:
*------------------------------------------*
* Reading table RGDIR of an employee
*------------------------------------------*
call function 'CU_READ_RGDIR'
   exporting
      persnr          = pernr-pernr
   tables
      in_rgdir        = rgdir
   exceptions
      no_record_found = 1
            others          = 2.
      

" Reading all payroll of the month
loop at rgdir where fpper = d_paie_m and inper = d_paie_m.
      " Extracting tables
      perform read_clusters.
endloop.



*------------------------------------------*
* Reading cluster RF
*------------------------------------------*
form read_clusters.
  if sy-subrc <> 0.
    clear df_paye.
  else.
    rx-key-pernr = pernr-pernr.
    rx-key-seqno = rgdir-seqnr.

    perform import.                 

    if sy-subrc <> 0.
      clear df_paye.
    endif.
  endif.
endform.                               " READ_CLUSTERS





*---------------------------------------------------*
* Importing tables stored in the cluster RF
*---------------------------------------------------*
form import.
  " Delete current content
  clear   : crt, rt, wpbp.
  refresh : crt, rt, wpbp.

  " Importing tables
  import    crt  rt wpbp
  from database pcl2(rf)
  id rx-key using pcl2_exp_imp .

  if sy-subrc <> 0.
    clear   : crt, rt, wpbp.
    refresh : crt, rt, wpbp.


  endif .
endform.


Source: http: //lyriance-labs.com/sap/dev/dev-hr/115-sap-dev-hr-some-usefull-codes/132-sap-dev-hr-reading-payroll-results
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> HR All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.