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

FAQ



 
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: 1639

PostPosted: Sun Mar 16, 2008 4:40 pm    Post subject: FAQ Reply with quote

Programming in HR pdf course included:
 Brief description of modules in SAP-HR
 Concept of Infotypes
 Infotype Structures
 Creation of infotype
 Enhancement of infotype
 HR Macros
 Use of Provide statement
 Cluster reading for Payroll results
 Example of PA letters infotype (Customer defined)

Infotype structure
An infotype is composed by three elements :
- Database tables
- Programs
- Screens

Generally, tables are named PAXXXX and the structures used in an ABAP programe pXXXX. Where XXXX is the infotype number.
Each infotype has the same bloc at the beginning to store some informations like personnel number, subtype, validity dates...
Each infotype has the bloc (structure) "pshd1". It represents the management fields (last modification, tracking...)
Finally, you have the specific infotype fields which will be displayed and editable by users.
The main infotype program is called "MPXXXX00". Subprograms are included :

MPXXXX10 : Datas declaration
MPXXXX20 : Process Before Output
MPXXXX30 : Process After Input
MPXXXX40 : Routines

Convert a Work Centre to a Personnel Number
P = Personnel number that we need to find from work centre.
Select HROID into X from CRHD where ARBPL = Work Centre and OBJTY = 'A'.
Select SOBID into Y from HRP1001 where OBJID = X and SCLAS = 'S'.
Select SOBID into P from HRP1001 where OBJID = Y and OTYPE = 'S' AND SCLAS = 'P'.

Steps to create a HR Infotype:
1) Go to Transaction PM01.
2) Enter the custom Infotype number which you want to create (Should be a 4 digit number, start with 9).
3) Select the 'Employee Infotype' radio button.
4) Select the 'PS Structure Infotype'.
5) Click on Create... A separate table maintenance window appears...
6) Create a PS structure with all the fields you want on the Infotype
7) Save and Activate the PS structure
8 ) Go back to the initial screen of PM01.
9) Click on 'All' push button. It takes a few moments.
10) Click on 'Technical Characteristics'. Infotype list screen appears
11) Click on 'Change'(pencil) button
12) Select your Infotype and click on 'Detail' (magnifying glass) button
13) Give 'T591A' as subtype table
14) Give 'T591S' as subtype txt tab
15) Give your subtype field as subtype field
16) Save and come back to PM01 initial screen
17) Click on 'Infotype Characteristics' ... Infotype list screen appears
18 ) Click on 'Change' (pencil) button
19) Click on 'New Entries'
20) Enter your Infotype number and short text
21) Here we have to set different Infotype Characteristics as per the requirement. (Better open another session with some standard Infotype's infotype characteristics screen and use as the reference to fill yours)
22) Save your entries.
23) Now the Infotype is created and ready to use.
24) If you want to change the layout of the Infotype as per your requirement...
25) In the PM01 initial screen...Select 'Screen' radio button and give 2000 as the screen name, then click on edit.
26) In the next screen.. Select 'Layout Editor' and click 'Change'.
27) Screen default layout appears...here you can design/modify the screen..change the attributes of the fields..etc.
28 ) Save and activate. (Don't forget to 'Activate at every level)

Subtype Creation :
Transaction PM01 Goto Subtype Characteristics. Click on Append and then subtype. Enter the name and description of subtype on screen.
Then goto technical Characteristics and maintain the details of subtype there. I.e name of subtype i.e. component name defined in PSnnnn. Subtype table is T591A.
Subty.text tab is T591S and time const tab is T591A.
See:
http://help.sap.com/saphelp_46c/helpdata/en/4f/d5268a575e11d189270000e8322f96/content.htm

Enhancement of Infotype
Check the following
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAXX/PYINT_INFOTYP.pdf
https://www.sdn.sap.com/irj/sdn/thread?threadID=492897&tstart=0
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60a7586d-edd9-2910-68a8-8204303835a1
User-Exits for infotypes
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.