7.31.2008

FAQ, Hints, Tips and tricks in HR, Do & not to do (Warnings)

FAQ:

1. What exactly is an infotype? Why are infotypes only required in HR?

A. An infotype is a collection of logical and/or business-related characteristics of an object or person. I don't know exactly how to answer the second question but it is safe to say that items such as materials have similar structures that act like infotypes. The one outstanding difference that I really see is the concept of time constraints that infotypes use for interpreting data during a specified period.

2. List the HR Process

i) Hiring
ii) Transfer
iii) Promotions
iv) Leaving

3. We use clocking machine for recording employee clock-in/out. All the data is stored in a 'flat' file, which is supposed to be uploaded into SAP. When tried to pen
and read the flat file using OPEN DATASET and READ DATASET commands, the Sy-
subrc value returned is 8 and the error message 'the specified file not found' is
displayed. We checked the path and the file is in the correct location. What is missing?..........

3. We use clocking machine for recording employee clock-in/out. All the data is
stored in a 'flat' file, which is supposed to be uploaded into SAP. When tried to open
and read the flat file using OPEN DATASET and READ DATASET commands, the Sy-
subrc value returned is 8 and the error message 'the specified file not found' is
displayed. We checked the path and the file is in the correct location. What is missing?

A: Check the path once again. Check the upper and lower cases. Define you parameter file
name like filename-file extern. Depending on the place where the flat file resides, the
procedure varies. OPEN DATASET is used for upload of file from the host system. If your flat
(text) file is on the PC, you can use the function WS_UPLOAD that will upload your text file
into an internal table. This internal table data can be loaded into SAP. The syntax is as follows:
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
FILENAME = pcfile
IMPORTING
FILELENGTH = fileleng
TABLES
DATA_TAB = internal table name
Please note that you have to specify the pcfile of length 128.

4. What are the logical Databases that we use in the HR? And the difference between
them.

A.1. PCH: Organizational Data
2. PNP: For personnel Data
3. PAP: Application Data

5. We want to make a copy of an organizational structure from one plan variant to
another. This copy should include all assignments like purchasing groups to
organizational units made in PFOM. Can we do this?

A: Make sure that the plan number is established through the IMG. (And that it is not the
active plan.)
Go Human Resources -> Organizational Management Tools -> Plan version -> Copy.
It runs RHCOPL00. All or any portion of the plan maybe copied and manipulated and then
copied back in to the active plan.

6. What are the infotypes that you cannot enhance?

A. Infotype 0000 Single Screen, Time management Infotypes

7. We have a requirement to calculate leave entitlement at the anniversary year not
calendar year. The leaves have both paid and unpaid components. The paid
component is based on time worked. The unpaid component is based on years of
service. Leave taken is reduced from both entitlements depending on employee's
request. We are using a Schema based on TM04, which calls Cycles TS15, TS10. What
is the best way to handle this?

A: You can use field 'DAUER' for seniority based vacation entitlement in the VAC01->VAC99
features. Time worked is not part of the feature structure (PME03). However you may create
your own source code to make a decision on any field even if it does not belong to the feature
structure. Check feature VAC01.

8. What are the ways to process infotypes?

A. We can read an infotype using macros and provide and end provide commands

9. We have multiple ORGs as we have many subsidiaries of our Parent company.
These subsidiaries are defined as ORG and are assigned an ORG-ID. Within each ORG,
we have Divisions (e.g. Human Resources, Finance, and Materials etc.) and within
each division we have Departments (e.g. Payroll, Labor Relations, etc.). We plan to
use Personnel Development (PD). What is that we have to consider in this case?

A: You have to consider how the company wants to see its reports while designing the HR
organizational structure in PD. You have addressed the question: for headcount or regulatory
reports to which level does the company need to report, to the division, department, and
group or team level. You have to design the SAP organizational structure to support the
lowest level required. Lower the more levels of detail, the more maintenance required.

10. When you create an infotype it creates screens, on what basis it creates the
screen elements?

A. On the basis of the PS structure that we create while creating an infotype.


11. How can we configure the options for the Assgn Form. No. field on Infotype 210.
It is the alternate formula to assign tax field and we have been unable to locate the
table in the IMG to edit the options.

A: Options for the BSI Tax Formula cannot be configured.
Possible entries are available in BTXFORM, and they depend on the 'tax authority' (BTXAUTH)
and the 'tax type' (BTXTAXT). Use data dictionary to check existing entries. This data comes
from BSI. Tax calculations are done in the
BSI programs (via RFC from the USTAX function in the payroll schema).

12. How many types of screens are created while you create an infotype

A. 1. Single screen, 2. List Screen

13. We are using the US HR/PAYROLL module. We are able to create the entry to
credit the accrued payroll account. But our check writing process does not produce
any accounting entries when we create a paycheck or run our EFT process
(RFFOUS_T). Should RFFOUS_C produce an accounting entry to debit the payroll
payable account and credit the cash account?

A: RFFOCUS_C does not produce any accounting entries. During the FI/CO interface run, 559
wage types may be posted to your cash account

14. We have approximately 10000 zip codes. We want to relate the eligibility group
to the zip code. We do not want to create 20000 eligibility groups. Which is the best
way to configure basing eligibility for HMO's on zip codes?

A: Try to group the zip codes by the HMO's they belong to. Then create benefit groups and
programs for the unique combinations. You can create as many benefit groups as required
and use the employee zip code to select the benefit group the employee is eligible for. You
may also look at user exit 2.

15. We are using the PAI user exit in MP000800 screen 2000 to modify the BET01
field. After modifying the value, the value is not re displayed. However the updated
value is saved on commit. Why the value is not displayed after modification?

A: Yes. It is true. You may have to apply OSS

16. I have a requirement in which I have to display the free text associated with an
entry in infotype 0028. Until now I've just gone nuts debugging the code. Can you
please let me know how to do it?

A. Can you be more specific here? I have never used 0028 but in investigating a system with
PCC loaded, none of the subtypes have free text associated with them. Is it possible that you
are speaking of something attached via object services? If so I can give you code that will read
those items (hint: look at table SRRELROLES and SOOD). If it is not that then please tell me
which subtype you are looking at and what screen field the free text is in. I can give you the
answer at that point.

17. I have copied report HRBEN0074 and now I want to change the currently
displayed amount coverage from bi-weekly to monthly. How can I do that?

A. I assume you mean bi-weekly costs since coverage does have a biweekly or monthly
amount. A quick look at the program tells me that you would need to modify ALV_ITAB
around line 260 and change the field you wish to convert into the correct amount. The field
you are looking for is probably either ERCST or ACCST.

18. SAP doesn't allow two actions on the same day. There are occasions where a
person could be ending maternity leave and starting a career break on the same day.
Any suggestions on how to overcome this?

A. SAP cannot store two infotypes of time constraint 1 with the same subtype on the same
day, because the date delimitation is the same. One of the infotypes would be overwritten.
Because there are many occasions when an employee may experience multiple personnel
actions on the same day, SAP created "Additional Actions" (infotype 0302) to capture these
additional actions. This infotype cannot be maintained directly, but it is located for viewing at
the bottom of the Actions infotype (0000). To take advantage of this functionality, you need
to set it up using the following IMG path:
Personnel Management -> Personnel Administration -> Customizing Procedures -> Actions -
>Set up personnel actions
Activations "Additional Actions" should be activated for all personnel number ranges. This will
allow SAP to process multiple actions on the same day.


Tips:

1. EXAMPLE_PNP_GET_PAYROLL (report): Example program to read the payroll data using
the GET PAYROLL.
If you need to do a form to report wages and the data is stored in the PCL4 Cluster.
You can look at this example report or form that retrieves data from this cluster based on
several parameters that are entered when the report is executed online (like employee number
and tax year).

2. A small Program to retrieve the Cumulative data from the cluster

TABLES: PERNR,
PCL2.
*----------------------------------------------------------------------*
* INCLUDE ZHR_PCL2_CU_DATA - Payroll results. *
*----------------------------------------------------------------------*
* Data declarations for the IMPORT of database PCL2 for cluster RU. *
*----------------------------------------------------------------------*
DATA: CD_NEXT_SEQ TYPE I, "Next available seq number
CD_LAST_PAY TYPE D. "Last payroll run date
DATA: BEGIN OF OCD_VERSION.
INCLUDE STRUCTURE PC201. "Technical Version
*DATA: molga LIKE t001p-molga. "Country identifier
DATA: END OF OCD_VERSION.
DATA: BEGIN OF RGDIR OCCURS 100.
INCLUDE STRUCTURE PC261. "(For Export and Import of Payroll Res
DATA: END OF RGDIR.
* Key for database PCL2 cluster RU
DATA BEGIN OF RX_KEY.
INCLUDE STRUCTURE PC200. "Payroll Results Key
DATA: END OF RX_KEY.
* Country dependent
DATA: BEGIN OF RU-VERSION.
INCLUDE STRUCTURE PC201. "Technical Version
DATA: END OF RU-VERSION.
DATA: BEGIN OF ORU_VERSION.
INCLUDE STRUCTURE PC201. "Technical Version
DATA: END OF ORU_VERSION.
* Cumulated-result table
DATA: BEGIN OF CRT OCCURS 30.
INCLUDE STRUCTURE PC22Y. "Cumulated result table (USA)
DATA: END OF CRT.
GET PERNR.
IMPORT CD_VERSION TO OCD_VERSION
CD_LAST_PAY
CD_NEXT_SEQ
RGDIR
FROM DATABASE PCL2 (CU) ID PERNR-PERNR.
CHECK SY-SUBRC EQ 0.
* This is where you select the particular period you are searching. The
* selection will change based on what dates you are looking for.
LOOP AT RGDIR WHERE FPPER EQ P_PERIOD
AND INPER EQ P_PERIOD
AND (RUNDT GT Z_RUNDT
OR (RUNDT EQ Z_RUNDT
AND RUNTM GT Z_RUNTI ))
AND SRTZA = 'A'
AND PAYTY = ' '
AND VOID NE 'V'.
CHECK SY-SUBRC = 0.
MOVE PERNR-PERNR TO RX_KEY-PERNR.
MOVE RGDIR-SEQNR TO RX_KEY-SEQNO.
IMPORT RU-VERSION TO ORU-VERSION
CRT
FROM DATABASE PCL2(RU) ID RX_KEY.
CHECK SY_SUBRC = 0.
LOOP AT CRT.
Process crt data.
ENDLOOP.
ENDLOOP.

3.Any changes that are done to infotypes can be known by running the programming
RPUAUD00

When you execute this program and specify the employee code and infotype in the selection
screen, it gives us details of when the data was changed, who changed the data and what
data was changed in a particular infotype.

There are few standard infotypes like 0000, 0001, 0002 and few of your own created
infotypes starting with 9 (9XXX) for which you are able to see the log through this program.
But there are certain other infotypes like 0008, 0581 for which this log is not coming.
There are some configurations or customizing is to be done so that this log starts generating
for these infotypes and RPUADU00 can read it.

The IMG menu path is:

Personnel Management > Personnel Administration > Tools > Revision > Set up
change document

When you execute this node choose ’HR Documents - infotypes to be logged'
Add entries in this table to audit more infotypes.

Transaction class A is for HR master data, class B is for applicant data.

4. TEM - Deleting Business Events after Historically Recording

Assuming that one of your team users was testing in production After having a problem with
the automated correspondence The user created a business event, booked people into the
event, and then followed up on the event. Unfortunately, the user also historically recorded
the event.

If this happened, you need to delete the event because it will give the people which the user
booked credit for having

attended an invitation only type of leadership seminar.
Using report RHRHDL00 (menu path in 4.6C: Human Resources / Training and Event
Management / Tools / Database / Delete database records), you can delete data
records from the Personnel Planning Database.
Of course, be careful while making the selections for deletion and do a test run first

5. Change of Employee Position

During the course of a person employment, the employee may changes positions, cost
centers, or is moved to another subsidiary and the organizational assignment need to be
change.
Do take note that you cannot change the employee’s payroll area for a period for which the
employee’s payroll has already run. You can only change the payroll area at the end of the
payroll period.

In Personnel Actions, PA40: -
1. Input the Personnel Number
2. Select Organizational reassignment and click the execute button
3. Input the Start date for the reassignment
4. Click the save button and the Position Change screen will appear
5. Save your entries

6. Deleting personnel numbers in SAP HR

If you have some duplicated, personnel numbers on the system and the data is not
complete.

You try to delete these and get the message "record cannot be deleted (time constraint 1)".
The fastest and simplest way to delete employees is to use program RPUDELPN.
Either that or from PA30, click to Utilities -> Delete Personnel Number.

Certain infotypes have the time constraint set so that you cannot delete them which is why it
is giving you the message.

To avoid problems, use the above methods.

7. Find out the transaction codes used for SAP HR

Execute the program RPDTRA00 to list all HR Transactions




Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl