<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Help required. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required/m-p/2657403#M612847</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer this note, may be of some help -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Database Tables in HR&lt;/P&gt;&lt;P&gt;·  Personnel Administration (PA) - master and time data infotype tables (transparent tables).&lt;/P&gt;&lt;P&gt;   PAnnnn: e.g. PA0001 for infotype 0001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·  Personnel Development (PD) - Org Unit, Job, Position, etc. (transparent tables).&lt;/P&gt;&lt;P&gt;   HRPnnnn: e.g. HRP1000 for infotype 1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·  Time/Travel expense/Payroll/Applicant Tracking data/HR work areas/Documents (cluster   &lt;/P&gt;&lt;P&gt;   PCLn: e.g. PCL2 for time/payroll results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cluster Table&lt;/P&gt;&lt;P&gt;· Cluster tables combine the data from several tables with identical (or almost identical) keys &lt;/P&gt;&lt;P&gt;  into one physical record on the database.&lt;/P&gt;&lt;P&gt;. Data is written to a database in compressed form.&lt;/P&gt;&lt;P&gt;· Retrieval of data is very fast if the primary key is known.&lt;/P&gt;&lt;P&gt;· Cluster tables are defined in the data dictionary as transparent tables.&lt;/P&gt;&lt;P&gt;· External programs can NOT interpret the data in a cluster table.&lt;/P&gt;&lt;P&gt;· Special language elements EXPORT TO DATABASE, IMPORT TO DATABASE and DELETE &lt;/P&gt;&lt;P&gt;  FROM DATABASE are used to process data in the cluster tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PCL1 - Database for HR work area; &lt;/P&gt;&lt;P&gt;PCL2 - Accounting Results (time, travel expense and payroll);&lt;/P&gt;&lt;P&gt;PCL3 - Applicant tracking data;&lt;/P&gt;&lt;P&gt;PCL4 - Documents, Payroll year-end Tax data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Database Tables PCLn&lt;/P&gt;&lt;P&gt;· PCLn database tables are divided into subareas known as data clusters.&lt;/P&gt;&lt;P&gt;· Data Clusters are identified by a two-character code. e.g RU for US payroll result, B2 for &lt;/P&gt;&lt;P&gt;  time evaluation result...&lt;/P&gt;&lt;P&gt;· Each HR subarea has its own cluster.&lt;/P&gt;&lt;P&gt;· Each subarea has its own key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Database Table PCL1&lt;/P&gt;&lt;P&gt;· The database table PCL1 contains the following data areas:&lt;/P&gt;&lt;P&gt;  B1 time events/PDC&lt;/P&gt;&lt;P&gt;  G1 group incentive wages &lt;/P&gt;&lt;P&gt;  L1 individual incentive wages&lt;/P&gt;&lt;P&gt;  PC personal calendar&lt;/P&gt;&lt;P&gt;  TE travel expenses/payroll results&lt;/P&gt;&lt;P&gt;  TS travel expenses/master data&lt;/P&gt;&lt;P&gt;  TX infotype texts&lt;/P&gt;&lt;P&gt;  ZI PDC interface -&amp;gt; cost account&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Database Table PCL2&lt;/P&gt;&lt;P&gt;· The database table PCL2 contains the following data areas: &lt;/P&gt;&lt;P&gt;  B2 time accounting results&lt;/P&gt;&lt;P&gt;  CD cluster directory of the CD manager&lt;/P&gt;&lt;P&gt;  PS generated schemas&lt;/P&gt;&lt;P&gt;  PT texts for generated schemas&lt;/P&gt;&lt;P&gt;  RX payroll accounting results/international&lt;/P&gt;&lt;P&gt;  Rn payroll accounting results/country-specific ( n = HR country indicator )&lt;/P&gt;&lt;P&gt;  ZL personal work schedule&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Database Table PCL3&lt;/P&gt;&lt;P&gt;· The database table PCL3 contains the following data areas:&lt;/P&gt;&lt;P&gt;  AP action log / time schedule&lt;/P&gt;&lt;P&gt;  TY texts for applicant data infotypes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data Management of PCLn&lt;/P&gt;&lt;P&gt;· The ABAP commands IMPORT and EXPORT are used for management of read/write to &lt;/P&gt;&lt;P&gt;  database tables PCLn.&lt;/P&gt;&lt;P&gt;· A unique key has to be used when reading data from or writing data to the PCLn.&lt;/P&gt;&lt;P&gt;  Field Name KEY Length Text&lt;/P&gt;&lt;P&gt;  MANDT X 3 Client&lt;/P&gt;&lt;P&gt;  RELID X 2 Relation ID (RU,B2..)&lt;/P&gt;&lt;P&gt;  SRTFD X 40 Work Area Key&lt;/P&gt;&lt;P&gt;  SRTF2 X 4 Sort key for dup. key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cluster Definition&lt;/P&gt;&lt;P&gt;· The data definition of a work area for PCLn is specified in separate programs which comply   &lt;/P&gt;&lt;P&gt;   with fixed naming conventions.&lt;/P&gt;&lt;P&gt;· They are defined as INCLUDE programs (RPCnxxy0). The following naming convention applies:&lt;/P&gt;&lt;P&gt;   n = 1 or 2 (PCL1 or PCL2)&lt;/P&gt;&lt;P&gt;   xx = Relation ID (e.g. RX)&lt;/P&gt;&lt;P&gt;   y = 0 for international clusters or country indicator (T500L) for different country cluster&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exporting Data (I)&lt;/P&gt;&lt;P&gt;· The EXPORT command causes one or more 'xy' KEY data objects to be written to cluster xy.&lt;/P&gt;&lt;P&gt;· The cluster definition is integrated with the INCLUDE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZHREXPRT.&lt;/P&gt;&lt;P&gt;TABLES: PCLn.&lt;/P&gt;&lt;P&gt;INCLUDE: RPCnxxy0. "Cluster definition&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill cluster KEY&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;xy-key-field = .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill data object&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;....&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Export record&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;EXPORT TABLE1 TO DATABASE PCLn(xy) ID xy-KEY.&lt;/P&gt;&lt;P&gt;   IF SY-SUBRC EQ 0. &lt;/P&gt;&lt;P&gt;       WRITE: / 'Update successful'.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exporting Data (II)&lt;/P&gt;&lt;P&gt;. Export data using macro RP-EXP-Cn-xy.&lt;/P&gt;&lt;P&gt;· When data records are exported using macro, they are not written to the database but to a   &lt;/P&gt;&lt;P&gt;  main memory buffer.&lt;/P&gt;&lt;P&gt;· To save data, use the PREPARE_UPDATE routine with the USING parameter 'V'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZHREXPRT.&lt;/P&gt;&lt;P&gt;*Buffer definition&lt;/P&gt;&lt;P&gt;INCLUDE RPPPXD00. INCLUDE RPPPXM00. "Buffer management&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF COMMON PART 'BUFFER'.&lt;/P&gt;&lt;P&gt;INCLUDE RPPPXD10.&lt;/P&gt;&lt;P&gt;DATA: END OF COMMON PART 'BUFFER'.&lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;RP-EXP-Cn-xy.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;    PERFORM PREPARE_UPDATE USING 'V'..&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Importing Data (I)&lt;/P&gt;&lt;P&gt;· The IMPORT command causes data objects with the specified key values to be read from &lt;/P&gt;&lt;P&gt;   PCLn.&lt;/P&gt;&lt;P&gt;· If the import is successful, SY-SUBRC is 0; if not, it is 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT RPIMPORT.&lt;/P&gt;&lt;P&gt;TABLES: PCLn. &lt;/P&gt;&lt;P&gt;INCLUDE RPCnxxy0. "Cluster definition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill cluster Key&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Import record&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IMPORT TABLE1 FROM DATABASE PCLn(xy) ID xy-KEY.&lt;/P&gt;&lt;P&gt;   IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Display data object &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Importing data (II)&lt;/P&gt;&lt;P&gt;· Import data using macro RP-IMP-Cn-xy.&lt;/P&gt;&lt;P&gt;· Check return code SY-SUBRC. If 0, it is successful. If 4, error.&lt;/P&gt;&lt;P&gt;· Need include buffer management routines RPPPXM00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT RPIMPORT.&lt;/P&gt;&lt;P&gt;*Buffer definition&lt;/P&gt;&lt;P&gt;INCLUDE RPPPXD00.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF COMMON PART 'BUFFER'.&lt;/P&gt;&lt;P&gt;INCLUDE RPPPXD10.&lt;/P&gt;&lt;P&gt;DATA: END OF COMMON PART 'BUFFER'.&lt;/P&gt;&lt;P&gt;*import data to buffer&lt;/P&gt;&lt;P&gt;RP-IMP-Cn-xy.&lt;/P&gt;&lt;P&gt;.... &lt;/P&gt;&lt;P&gt;*Buffer management routines&lt;/P&gt;&lt;P&gt;INCLUDE RPPPXM00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cluster Authorization&lt;/P&gt;&lt;P&gt;· Simple EXPORT/IMPORT statement does not check for cluster authorization.&lt;/P&gt;&lt;P&gt;· Use EXPORT/IMPORT via buffer, the buffer management routines check for cluster&lt;/P&gt;&lt;P&gt;  authorization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Payroll Results (I)&lt;/P&gt;&lt;P&gt;· Payroll results are stored in cluster Rn of PCL2 as field string and internal tables. &lt;/P&gt;&lt;P&gt;  n - country identifier.&lt;/P&gt;&lt;P&gt;· Standard reports read the results from cluster Rn. Report RPCLSTRn lists all payroll results; &lt;/P&gt;&lt;P&gt;  report RPCEDTn0 lists the results on a payroll form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Payroll Results (II)&lt;/P&gt;&lt;P&gt;· The cluster definition of payroll results is stored in two INLCUDE reports: &lt;/P&gt;&lt;P&gt;  include: rpc2rx09. "Definition Cluster Ru (I)&lt;/P&gt;&lt;P&gt;  include: rpc2ruu0. "Definition Cluster Ru (II)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first INCLUDE defines the country-independent part; The second INCLUDE defines the country-specific part (US).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· The cluster key is stored in the field string RX-KEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Payroll Results (III)&lt;/P&gt;&lt;P&gt;· All the field string and internal tables stored in PCL2 are defined in the ABAP/4 dictionary. This &lt;/P&gt;&lt;P&gt;  allows you to use the same structures in different definitions and nonetheless maintain data&lt;/P&gt;&lt;P&gt;  consistency.&lt;/P&gt;&lt;P&gt;· The structures for cluster definition comply with the name convention PCnnn. Unfortunately,  &lt;/P&gt;&lt;P&gt;   'nnn' can be any set of alphanumeric characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Key definition&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF RX-KEY.&lt;/P&gt;&lt;P&gt;     INCLUDE STRUCTURE PC200.&lt;/P&gt;&lt;P&gt;DATA: END OF RX-KEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Payroll directory&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF RGDIR OCCURS 100. &lt;/P&gt;&lt;P&gt;     INCLUDE STRUCTURE PC261. &lt;/P&gt;&lt;P&gt;DATA: END OF RGDIR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Payroll Cluster Directory&lt;/P&gt;&lt;P&gt;· To read payroll results, you need two keys: pernr and seqno&lt;/P&gt;&lt;P&gt;. You can get SEQNO by importing the cluster directory (CD) first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZHRIMPRT.&lt;/P&gt;&lt;P&gt;TABLES: PERNR, PCL1, PCL2.&lt;/P&gt;&lt;P&gt;INLCUDE: rpc2cd09. "definition cluster CD&lt;/P&gt;&lt;P&gt;PARAMETERS: PERSON LIKE PERNR-PERNR.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;RP-INIT-BUFFER.&lt;/P&gt;&lt;P&gt;*Import cluster Directory&lt;/P&gt;&lt;P&gt;   CD-KEY-PERNR = PERNR-PERNR.&lt;/P&gt;&lt;P&gt;RP-IMP-C2-CU.&lt;/P&gt;&lt;P&gt;   CHECK SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;LOOP AT RGDIR.&lt;/P&gt;&lt;P&gt;   RX-KEY-PERNR = PERSON.&lt;/P&gt;&lt;P&gt;   UNPACK RGDIR-SEQNR TO RX-KEY-SEQNO.&lt;/P&gt;&lt;P&gt;   *Import data from PCL2&lt;/P&gt;&lt;P&gt;   RP-IMP-C2-RU.&lt;/P&gt;&lt;P&gt;   INLCUDE: RPPPXM00. "PCL1/PCL2 BUFFER HANDLING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Module (I)&lt;/P&gt;&lt;P&gt;  CD_EVALUATION_PERIODS&lt;/P&gt;&lt;P&gt;· After importing the payroll directory, which record to read is up to the programmer.&lt;/P&gt;&lt;P&gt;· Each payroll result has a status. &lt;/P&gt;&lt;P&gt;  'P' - previous result&lt;/P&gt;&lt;P&gt;  'A' - current (actual) result &lt;/P&gt;&lt;P&gt;  'O' - old result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· Function module CD_EVALUATION_PERIODS will restore the payroll result status for a period&lt;/P&gt;&lt;P&gt;   when that payroll is initially run. It also will select all the relevant periods to be evaluated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Module (II)&lt;/P&gt;&lt;P&gt;CD_EVALUATION_PERIODS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'CD_EVALUATION_PERIODS' &lt;/P&gt;&lt;P&gt;     exporting&lt;/P&gt;&lt;P&gt;          bonus_date = ref_periods-bondt &lt;/P&gt;&lt;P&gt;          inper_modif = pn-permo &lt;/P&gt;&lt;P&gt;          inper = ref_periods-inper &lt;/P&gt;&lt;P&gt;          pay_type = ref_periods-payty &lt;/P&gt;&lt;P&gt;          pay_ident = ref_periods-payid &lt;/P&gt;&lt;P&gt;     tables &lt;/P&gt;&lt;P&gt;          rgdir = rgdir &lt;/P&gt;&lt;P&gt;          evpdir = evp &lt;/P&gt;&lt;P&gt;          iabkrs = pnpabkrs &lt;/P&gt;&lt;P&gt;     exceptions &lt;/P&gt;&lt;P&gt;          no_record_found = 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Authorization Check&lt;/P&gt;&lt;P&gt;   Authorization for Persons&lt;/P&gt;&lt;P&gt;·  In the authorization check for persons, the system determines whether the user has the  &lt;/P&gt;&lt;P&gt;   authorizations required for the organizational features of the employees selected with&lt;/P&gt;&lt;P&gt;   GET PERNR.&lt;/P&gt;&lt;P&gt;·  Employees for which the user has no authorization are skipped and appear in a list at the end&lt;/P&gt;&lt;P&gt;   of the report.&lt;/P&gt;&lt;P&gt;·  Authorization object: 'HR: Master data'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Authorization for Data&lt;/P&gt;&lt;P&gt;· In the authorization check for data, the system determines whether the user is authorized to&lt;/P&gt;&lt;P&gt;  read the infotypes specified in the report.&lt;/P&gt;&lt;P&gt;· If the authorization for a particular infotype is missing, the evaluation is terminated and an error&lt;/P&gt;&lt;P&gt;  message is displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deactivating the Authorization Check&lt;/P&gt;&lt;P&gt;· In certain reports, it may be useful to deactivate the authorization check in order to improve&lt;/P&gt;&lt;P&gt;  performance. (e.g. when running payroll)&lt;/P&gt;&lt;P&gt;· You can store this information in the object 'HR: Reporting'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpful replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Aug 2007 07:40:13 GMT</pubDate>
    <dc:creator>amit_khare</dc:creator>
    <dc:date>2007-08-23T07:40:13Z</dc:date>
    <item>
      <title>Help required.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required/m-p/2657401#M612845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts as Payroll data is sensitive data how can we provide Authorization  for that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and What is RGDIR, what does it contain, how to see RGDIR?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to see from SE11 i suppose its not then how see this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the significance of Mode N with T.M? why should we use this only with T.M?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose if you want to see all the Active Employees details of last 10 yrs how could you see?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the Significance of Person Selection and Date selection in the LDB screen ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 07:34:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required/m-p/2657401#M612845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T07:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help required.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required/m-p/2657402#M612846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please have allok at following llink:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/48/efa441d54eae5fe10000000a1550b0/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005vp/helpdata/en/48/efa441d54eae5fe10000000a1550b0/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;besides the special (but simple) payroll object I assume you also will need experience in the HR Authorization.&lt;/P&gt;&lt;P&gt;Why? Payroll reports are LDB reports that obey the HR authorizations.&lt;/P&gt;&lt;P&gt;(Unless you take them out with P_ABAP)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you also check the online help or get the course HR940 and you can have a look at the PDFs that are more or less the online help but in a more readable manner here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://websmp201.sap-ag.de/~form/sapnet?_SHORTKEY=01200252310000076208&amp;amp;" target="test_blank"&gt;https://websmp201.sap-ag.de/~form/sapnet?_SHORTKEY=01200252310000076208&amp;amp;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 07:37:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required/m-p/2657402#M612846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T07:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help required.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required/m-p/2657403#M612847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer this note, may be of some help -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Database Tables in HR&lt;/P&gt;&lt;P&gt;·  Personnel Administration (PA) - master and time data infotype tables (transparent tables).&lt;/P&gt;&lt;P&gt;   PAnnnn: e.g. PA0001 for infotype 0001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·  Personnel Development (PD) - Org Unit, Job, Position, etc. (transparent tables).&lt;/P&gt;&lt;P&gt;   HRPnnnn: e.g. HRP1000 for infotype 1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·  Time/Travel expense/Payroll/Applicant Tracking data/HR work areas/Documents (cluster   &lt;/P&gt;&lt;P&gt;   PCLn: e.g. PCL2 for time/payroll results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cluster Table&lt;/P&gt;&lt;P&gt;· Cluster tables combine the data from several tables with identical (or almost identical) keys &lt;/P&gt;&lt;P&gt;  into one physical record on the database.&lt;/P&gt;&lt;P&gt;. Data is written to a database in compressed form.&lt;/P&gt;&lt;P&gt;· Retrieval of data is very fast if the primary key is known.&lt;/P&gt;&lt;P&gt;· Cluster tables are defined in the data dictionary as transparent tables.&lt;/P&gt;&lt;P&gt;· External programs can NOT interpret the data in a cluster table.&lt;/P&gt;&lt;P&gt;· Special language elements EXPORT TO DATABASE, IMPORT TO DATABASE and DELETE &lt;/P&gt;&lt;P&gt;  FROM DATABASE are used to process data in the cluster tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PCL1 - Database for HR work area; &lt;/P&gt;&lt;P&gt;PCL2 - Accounting Results (time, travel expense and payroll);&lt;/P&gt;&lt;P&gt;PCL3 - Applicant tracking data;&lt;/P&gt;&lt;P&gt;PCL4 - Documents, Payroll year-end Tax data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Database Tables PCLn&lt;/P&gt;&lt;P&gt;· PCLn database tables are divided into subareas known as data clusters.&lt;/P&gt;&lt;P&gt;· Data Clusters are identified by a two-character code. e.g RU for US payroll result, B2 for &lt;/P&gt;&lt;P&gt;  time evaluation result...&lt;/P&gt;&lt;P&gt;· Each HR subarea has its own cluster.&lt;/P&gt;&lt;P&gt;· Each subarea has its own key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Database Table PCL1&lt;/P&gt;&lt;P&gt;· The database table PCL1 contains the following data areas:&lt;/P&gt;&lt;P&gt;  B1 time events/PDC&lt;/P&gt;&lt;P&gt;  G1 group incentive wages &lt;/P&gt;&lt;P&gt;  L1 individual incentive wages&lt;/P&gt;&lt;P&gt;  PC personal calendar&lt;/P&gt;&lt;P&gt;  TE travel expenses/payroll results&lt;/P&gt;&lt;P&gt;  TS travel expenses/master data&lt;/P&gt;&lt;P&gt;  TX infotype texts&lt;/P&gt;&lt;P&gt;  ZI PDC interface -&amp;gt; cost account&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Database Table PCL2&lt;/P&gt;&lt;P&gt;· The database table PCL2 contains the following data areas: &lt;/P&gt;&lt;P&gt;  B2 time accounting results&lt;/P&gt;&lt;P&gt;  CD cluster directory of the CD manager&lt;/P&gt;&lt;P&gt;  PS generated schemas&lt;/P&gt;&lt;P&gt;  PT texts for generated schemas&lt;/P&gt;&lt;P&gt;  RX payroll accounting results/international&lt;/P&gt;&lt;P&gt;  Rn payroll accounting results/country-specific ( n = HR country indicator )&lt;/P&gt;&lt;P&gt;  ZL personal work schedule&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Database Table PCL3&lt;/P&gt;&lt;P&gt;· The database table PCL3 contains the following data areas:&lt;/P&gt;&lt;P&gt;  AP action log / time schedule&lt;/P&gt;&lt;P&gt;  TY texts for applicant data infotypes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data Management of PCLn&lt;/P&gt;&lt;P&gt;· The ABAP commands IMPORT and EXPORT are used for management of read/write to &lt;/P&gt;&lt;P&gt;  database tables PCLn.&lt;/P&gt;&lt;P&gt;· A unique key has to be used when reading data from or writing data to the PCLn.&lt;/P&gt;&lt;P&gt;  Field Name KEY Length Text&lt;/P&gt;&lt;P&gt;  MANDT X 3 Client&lt;/P&gt;&lt;P&gt;  RELID X 2 Relation ID (RU,B2..)&lt;/P&gt;&lt;P&gt;  SRTFD X 40 Work Area Key&lt;/P&gt;&lt;P&gt;  SRTF2 X 4 Sort key for dup. key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cluster Definition&lt;/P&gt;&lt;P&gt;· The data definition of a work area for PCLn is specified in separate programs which comply   &lt;/P&gt;&lt;P&gt;   with fixed naming conventions.&lt;/P&gt;&lt;P&gt;· They are defined as INCLUDE programs (RPCnxxy0). The following naming convention applies:&lt;/P&gt;&lt;P&gt;   n = 1 or 2 (PCL1 or PCL2)&lt;/P&gt;&lt;P&gt;   xx = Relation ID (e.g. RX)&lt;/P&gt;&lt;P&gt;   y = 0 for international clusters or country indicator (T500L) for different country cluster&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exporting Data (I)&lt;/P&gt;&lt;P&gt;· The EXPORT command causes one or more 'xy' KEY data objects to be written to cluster xy.&lt;/P&gt;&lt;P&gt;· The cluster definition is integrated with the INCLUDE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZHREXPRT.&lt;/P&gt;&lt;P&gt;TABLES: PCLn.&lt;/P&gt;&lt;P&gt;INCLUDE: RPCnxxy0. "Cluster definition&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill cluster KEY&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;xy-key-field = .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill data object&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;....&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Export record&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;EXPORT TABLE1 TO DATABASE PCLn(xy) ID xy-KEY.&lt;/P&gt;&lt;P&gt;   IF SY-SUBRC EQ 0. &lt;/P&gt;&lt;P&gt;       WRITE: / 'Update successful'.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exporting Data (II)&lt;/P&gt;&lt;P&gt;. Export data using macro RP-EXP-Cn-xy.&lt;/P&gt;&lt;P&gt;· When data records are exported using macro, they are not written to the database but to a   &lt;/P&gt;&lt;P&gt;  main memory buffer.&lt;/P&gt;&lt;P&gt;· To save data, use the PREPARE_UPDATE routine with the USING parameter 'V'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZHREXPRT.&lt;/P&gt;&lt;P&gt;*Buffer definition&lt;/P&gt;&lt;P&gt;INCLUDE RPPPXD00. INCLUDE RPPPXM00. "Buffer management&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF COMMON PART 'BUFFER'.&lt;/P&gt;&lt;P&gt;INCLUDE RPPPXD10.&lt;/P&gt;&lt;P&gt;DATA: END OF COMMON PART 'BUFFER'.&lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;RP-EXP-Cn-xy.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;    PERFORM PREPARE_UPDATE USING 'V'..&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Importing Data (I)&lt;/P&gt;&lt;P&gt;· The IMPORT command causes data objects with the specified key values to be read from &lt;/P&gt;&lt;P&gt;   PCLn.&lt;/P&gt;&lt;P&gt;· If the import is successful, SY-SUBRC is 0; if not, it is 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT RPIMPORT.&lt;/P&gt;&lt;P&gt;TABLES: PCLn. &lt;/P&gt;&lt;P&gt;INCLUDE RPCnxxy0. "Cluster definition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill cluster Key&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Import record&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IMPORT TABLE1 FROM DATABASE PCLn(xy) ID xy-KEY.&lt;/P&gt;&lt;P&gt;   IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Display data object &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Importing data (II)&lt;/P&gt;&lt;P&gt;· Import data using macro RP-IMP-Cn-xy.&lt;/P&gt;&lt;P&gt;· Check return code SY-SUBRC. If 0, it is successful. If 4, error.&lt;/P&gt;&lt;P&gt;· Need include buffer management routines RPPPXM00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT RPIMPORT.&lt;/P&gt;&lt;P&gt;*Buffer definition&lt;/P&gt;&lt;P&gt;INCLUDE RPPPXD00.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF COMMON PART 'BUFFER'.&lt;/P&gt;&lt;P&gt;INCLUDE RPPPXD10.&lt;/P&gt;&lt;P&gt;DATA: END OF COMMON PART 'BUFFER'.&lt;/P&gt;&lt;P&gt;*import data to buffer&lt;/P&gt;&lt;P&gt;RP-IMP-Cn-xy.&lt;/P&gt;&lt;P&gt;.... &lt;/P&gt;&lt;P&gt;*Buffer management routines&lt;/P&gt;&lt;P&gt;INCLUDE RPPPXM00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cluster Authorization&lt;/P&gt;&lt;P&gt;· Simple EXPORT/IMPORT statement does not check for cluster authorization.&lt;/P&gt;&lt;P&gt;· Use EXPORT/IMPORT via buffer, the buffer management routines check for cluster&lt;/P&gt;&lt;P&gt;  authorization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Payroll Results (I)&lt;/P&gt;&lt;P&gt;· Payroll results are stored in cluster Rn of PCL2 as field string and internal tables. &lt;/P&gt;&lt;P&gt;  n - country identifier.&lt;/P&gt;&lt;P&gt;· Standard reports read the results from cluster Rn. Report RPCLSTRn lists all payroll results; &lt;/P&gt;&lt;P&gt;  report RPCEDTn0 lists the results on a payroll form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Payroll Results (II)&lt;/P&gt;&lt;P&gt;· The cluster definition of payroll results is stored in two INLCUDE reports: &lt;/P&gt;&lt;P&gt;  include: rpc2rx09. "Definition Cluster Ru (I)&lt;/P&gt;&lt;P&gt;  include: rpc2ruu0. "Definition Cluster Ru (II)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first INCLUDE defines the country-independent part; The second INCLUDE defines the country-specific part (US).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· The cluster key is stored in the field string RX-KEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Payroll Results (III)&lt;/P&gt;&lt;P&gt;· All the field string and internal tables stored in PCL2 are defined in the ABAP/4 dictionary. This &lt;/P&gt;&lt;P&gt;  allows you to use the same structures in different definitions and nonetheless maintain data&lt;/P&gt;&lt;P&gt;  consistency.&lt;/P&gt;&lt;P&gt;· The structures for cluster definition comply with the name convention PCnnn. Unfortunately,  &lt;/P&gt;&lt;P&gt;   'nnn' can be any set of alphanumeric characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Key definition&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF RX-KEY.&lt;/P&gt;&lt;P&gt;     INCLUDE STRUCTURE PC200.&lt;/P&gt;&lt;P&gt;DATA: END OF RX-KEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Payroll directory&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF RGDIR OCCURS 100. &lt;/P&gt;&lt;P&gt;     INCLUDE STRUCTURE PC261. &lt;/P&gt;&lt;P&gt;DATA: END OF RGDIR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Payroll Cluster Directory&lt;/P&gt;&lt;P&gt;· To read payroll results, you need two keys: pernr and seqno&lt;/P&gt;&lt;P&gt;. You can get SEQNO by importing the cluster directory (CD) first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZHRIMPRT.&lt;/P&gt;&lt;P&gt;TABLES: PERNR, PCL1, PCL2.&lt;/P&gt;&lt;P&gt;INLCUDE: rpc2cd09. "definition cluster CD&lt;/P&gt;&lt;P&gt;PARAMETERS: PERSON LIKE PERNR-PERNR.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;RP-INIT-BUFFER.&lt;/P&gt;&lt;P&gt;*Import cluster Directory&lt;/P&gt;&lt;P&gt;   CD-KEY-PERNR = PERNR-PERNR.&lt;/P&gt;&lt;P&gt;RP-IMP-C2-CU.&lt;/P&gt;&lt;P&gt;   CHECK SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;LOOP AT RGDIR.&lt;/P&gt;&lt;P&gt;   RX-KEY-PERNR = PERSON.&lt;/P&gt;&lt;P&gt;   UNPACK RGDIR-SEQNR TO RX-KEY-SEQNO.&lt;/P&gt;&lt;P&gt;   *Import data from PCL2&lt;/P&gt;&lt;P&gt;   RP-IMP-C2-RU.&lt;/P&gt;&lt;P&gt;   INLCUDE: RPPPXM00. "PCL1/PCL2 BUFFER HANDLING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Module (I)&lt;/P&gt;&lt;P&gt;  CD_EVALUATION_PERIODS&lt;/P&gt;&lt;P&gt;· After importing the payroll directory, which record to read is up to the programmer.&lt;/P&gt;&lt;P&gt;· Each payroll result has a status. &lt;/P&gt;&lt;P&gt;  'P' - previous result&lt;/P&gt;&lt;P&gt;  'A' - current (actual) result &lt;/P&gt;&lt;P&gt;  'O' - old result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· Function module CD_EVALUATION_PERIODS will restore the payroll result status for a period&lt;/P&gt;&lt;P&gt;   when that payroll is initially run. It also will select all the relevant periods to be evaluated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Module (II)&lt;/P&gt;&lt;P&gt;CD_EVALUATION_PERIODS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'CD_EVALUATION_PERIODS' &lt;/P&gt;&lt;P&gt;     exporting&lt;/P&gt;&lt;P&gt;          bonus_date = ref_periods-bondt &lt;/P&gt;&lt;P&gt;          inper_modif = pn-permo &lt;/P&gt;&lt;P&gt;          inper = ref_periods-inper &lt;/P&gt;&lt;P&gt;          pay_type = ref_periods-payty &lt;/P&gt;&lt;P&gt;          pay_ident = ref_periods-payid &lt;/P&gt;&lt;P&gt;     tables &lt;/P&gt;&lt;P&gt;          rgdir = rgdir &lt;/P&gt;&lt;P&gt;          evpdir = evp &lt;/P&gt;&lt;P&gt;          iabkrs = pnpabkrs &lt;/P&gt;&lt;P&gt;     exceptions &lt;/P&gt;&lt;P&gt;          no_record_found = 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Authorization Check&lt;/P&gt;&lt;P&gt;   Authorization for Persons&lt;/P&gt;&lt;P&gt;·  In the authorization check for persons, the system determines whether the user has the  &lt;/P&gt;&lt;P&gt;   authorizations required for the organizational features of the employees selected with&lt;/P&gt;&lt;P&gt;   GET PERNR.&lt;/P&gt;&lt;P&gt;·  Employees for which the user has no authorization are skipped and appear in a list at the end&lt;/P&gt;&lt;P&gt;   of the report.&lt;/P&gt;&lt;P&gt;·  Authorization object: 'HR: Master data'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Authorization for Data&lt;/P&gt;&lt;P&gt;· In the authorization check for data, the system determines whether the user is authorized to&lt;/P&gt;&lt;P&gt;  read the infotypes specified in the report.&lt;/P&gt;&lt;P&gt;· If the authorization for a particular infotype is missing, the evaluation is terminated and an error&lt;/P&gt;&lt;P&gt;  message is displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deactivating the Authorization Check&lt;/P&gt;&lt;P&gt;· In certain reports, it may be useful to deactivate the authorization check in order to improve&lt;/P&gt;&lt;P&gt;  performance. (e.g. when running payroll)&lt;/P&gt;&lt;P&gt;· You can store this information in the object 'HR: Reporting'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpful replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 07:40:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required/m-p/2657403#M612847</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-08-23T07:40:13Z</dc:date>
    </item>
  </channel>
</rss>

