Skip to Content

Pessoal,

Venho compartilhar uma forma simples de se recuperar o Cluster HR referente aos resultados da folha de pagamento Brasil através da utilização de MACROS.

Com Esta implementação você terá acesso aos Clusters: RGDIR VERSC WPBP ABC RT CRT BT C0 C1 V0 VCP ALP DFT GRT LS STATUS ARRRS BRPROV  GRORD  GRDBT  GRPAY  GRREC  BRSOC  BRPRVVDDNTK  ACCR  BENTAB  AB  FUND  AVERAGE  MODIF  CODIST LIFL LIDI BRIRRF BRCONT BRDEP BRCGC BRTAX BRCUM BRZL BRAVERAGE BRDBT 9LREDTA 9LRERSL LADIV


TABLES: pernr, pcl1, pcl2, pc260.
INCLUDE:
rpc2rx09,           "Cluster RP data definition internat. part
rpc2cd09,           "Cluster CD data definition
rpppxd00,           "Data definition buffer PCL1/PCL2
rpppxd10,           "Common part buffer PCL1/PCL2
hbrpaymacro,    "Include da Macro Brasil
hbrpaydata_o,   "Declaração da Macro Brasil
pc2rxbr0,             "Declaração da Macro Brasil
rpppxm00.           "Buffer handling routine
START-OF-SELECTION.
GET pernr.
   CLEAR rp-imp-cd-subrc.
   cd-key-pernr = pernr-pernr.
   rp-imp-c2-cu.
   CHECK rp-imp-cd-subrc = 0.
   READ TABLE rgdir WITH KEY fpper = pn-begda(6)
                             ocrsn = space.
   IF sy-subrc EQ '0'.
   
     CLEAR rx-key-pernr.
     CLEAR rx-key-seqno.
     rx-key-pernr = pernr-pernr.
     rx-key-seqno = rgdir-seqnr.
     rp-imp-c2-br.    "MACRO to Import BR Cluster
  
     CHECK sy-subrc = 0.
     LOOP AT rt.
       WRITE rt-lgart.
     ENDLOOP.
   
   ENDIF.

    

Att.

Paulo Campos

SAP ABAP Certified Professional

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply