Professional Documents
Culture Documents
Infotypes - Introduction
Logical Grouping of different attributes each field has to be created individually and grouped together based on the business requirements Total number of infotypes 612 Central check table PP & PA T777D E.g., Infotype 0002 Personal Data IMG contains all available and usable infotypes Enhancement standard way , Function module exit , BAdi Mode N suppress filling internal table at the GET pernr events
Copyright, Hexaware Technologies
www.hexaware.com
Number range 0000 - 0999 1000 - 1999 2000 - 2999 4000 - 4999 9000 - 9999
www.hexaware.com
With LDBs provide & end provide statement; macros; function modules Without LDBs select & end select; read; loop & end loop; update command PNP - tables: pernr; get pernr; get payroll PNPCE - concurrent employment - tables: pernr; nodes: peras; get peras PCH tables: objec; gdstr; get objec
www.hexaware.com
PNP include DBPNCOM; PCH include DBPCHCOM Function modules: Are the procedures with coding stored inside special ABAP programs, type F function groups
www.hexaware.com
www.hexaware.com
BAPI_EMPLOYEE_DEQUEUE :You can use the DEQUEUE method to unlock an employee so that the records stored for this person can be accessed. If an employee is locked using the ENQUEUE method, the user who set the lock can access this employees records. Other users are denied access to these records. The DEQUEUE method removes the lock. HR_INFOTYPE_OPERATION :This function module enables you to maintain master data for employees and applicants. You can transfer one data record. All validation checks take place that would take place in the individual maintenance screens in the dialog. If necessary, the module returns an error message. The error messages are the same as the error messages in the dialog, that is, the individual maintenance screen error messages are transferred rather than interpreted by this module. HR_PSBUFFER_INITIALIZE :This function module initializes the buffer, i.e clears the buffer
www.hexaware.com
CATS_CHECK_EMPLOYEE_ACTIVE :This function module checks whether he is an active employee or not. If he is not present then the exceptions are thrown. RP_GET_HIRE_DATE :This function module gives the exact hire date of the employee. CD_READ_RGDIR:This function module is used to determine the sequence number for passing to the payroll results function module. Input parameter is PERNR. PYXX_READ_PAYROLL_RESULT:This function module is used to extract the complete payroll results (i.e. for all country versions, from PCL2 or from the puffer) for a individual employee. By exporting PERNR and Sequence number, the payroll result is obtained as a structure.
www.hexaware.com
DATE_COMPUTE_DAY:The function module determine the day of the week for a date. The date must be passed with a valid date. BAPI_CATIMESHEETMGR_INSERT:This method is used to insert time data recorded in external systems or applications in the SAP Time Sheet. BAPI_CATIMESHEETMGR_DELETE:This method is used to delete time data recorded in external systems or applications in the SAP Time Sheet. READ_EXCHANGE_RATE:The exchange rate valid on the specified date is read from table TCURR according to the currency key and the exchange rate type. The ratios for the currency units from table TCURF are transferred to the calling program in addition to the exchange rate determined. if exchange rate fixing is defined for the exchange rate type TYPE_OF_RATE, this information is transferred to the calling program.
www.hexaware.com
CATS_CHECK_EMPLOYEE_ACTIVE :This function module determines whether a PERNR is active or not by reading the SY-SUBRC field. RS_SET_SELSCREEN_STATUS:This function module allows you to set your own status on a selection screen and exclude function codes from your own or from a standard status. FILE_GET_NAME:This function module is used to determine the physical file name by exporting the logical file name as input. HR_TIME_RESULTS_IN_INTERVAL:This function module outputs the time result details from the B2 cluster for a valid begin and end date. The time results include Absences, Time Transfers, Period Balance, Time accounts, Time quotas, Absence quotas etc.
www.hexaware.com
JOB_OPEN:You can use JOB_OPEN to create a background job. The function module returns the unique ID number which, together with the job name, is required for identifying the job. JOB_CLOSE:Use JOB_CLOSE to pass a background job to the background processing system to be run. The function module returns an indicator as to whether the job was automatically released or not. JOB_SUBMIT:Use JOB_SUBMIT to add a job step to a background job that you have opened with JOB_OPEN.
www.hexaware.com
Personnel Administration
Infotypes grouping of fields e.g.,0502 (letter of appointment) Subtypes To subdivide the similar information groups in an infotype e.g., child Object Identification To count similar objects e.g., child number Time and time constraints frequency of infotype occurrence Customer defined settings T582A Enhancement of infotypes PM01 CI include create add fields activate and customization screen painter Enhancement not possible in infotypes 0000 (Actions) and 0302 (Additional Actions) Enhancing infotypes for fast data entry Tcode PA70
Copyright, Hexaware Technologies
www.hexaware.com
Time constraints
1 Record Gap Overlap Example Occurrence Single record No gap No overlap First name Must 2 Single record Gap No overlap Spouse May 3 Multiple records Gap Overlap allowed Children Any number of times
www.hexaware.com
Characteristics of infotype
Single screen
One infotype with a time limit is displayed or edited Assigned screen number range (2000 - 2999)
List screen
Enables to present the relevant history Assigned screen number range (3000 - 3999)
Default values parameter id; Validation checks Infotype views primary, secondary IVWID Header and country specific infotypes
www.hexaware.com
Pnnnn
Structure
PSHDR PSnnnn
P9nnn yes
Pannnn CI_nnnn
Copyright, Hexaware Technologies
MANDT,PAKEY, PSHD1,PSnnnn -
www.hexaware.com
Abbreviations
Object type text Organizational unit Jobs Positions Cost centers Persons Task Work center Qualification
Copyright, Hexaware Technologies
Object type O C S K P T A Q
www.hexaware.com
Infotypes OM &PP
Objects, relationship recorded as infotypes Infotypes defined in control tables T778T and T777T Table infotypes PP data part has a repetitive structure of arbitrary length created similar to field infotypes Table pointer(TABNR) relationship between fix attributes and table part Other features are similar to infotypes in PA External infotypes not in the transparent tables of the type HRPnnnn Enhancing & creating infotypes (language dependent or language independent) Tcode PPCI
www.hexaware.com
Time management
Infotypes linked via main program MP200000 can run collision checks Enhancement not possible; Limited to creating default values and customizing entries Other features are same as the previous Exception - Infotype 2011 time events table TEVEN - pair formation Time evaluation input trans.table PCL1 has clusters 1. B1 Time events 2. G1 Group incentive wages Time evaluation results PCL2 cluster B2
Copyright, Hexaware Technologies
www.hexaware.com
Payroll
Infotypes similar to the previous Country specific grouping more significant e.g., taxation Payroll results clusters database table PCL2 Country specific grouping T500L Principle elements of data structure of cluster RX defined in the pgm H99paydata Payroll data for reporting payic_result; ic ISO code No rigid logic for reading, processing and outputting data
www.hexaware.com
www.hexaware.com
www.hexaware.com
Enhancing Infotypes
They can be enhanced using extra default values and checks ,or by adding extra fields. DEFAULT VALUES : This is usually done using SET/GET parameters or by maintaining features; it is less frequently achieved with additional customizing tables. Tcode PM01 enables you to enhance infotypes in the SAP standard with customer-specific fields. You cannot enhance the infotypes 0000 (Actions) and 0302(Additional Actions)
www.hexaware.com
Steps Involved:
1] Goto PM01.
www.hexaware.com
2] Enter the infotype number, select CI include under Subobjects. Now click on Create.
www.hexaware.com
3] Enter the Component, its type and data type with a short description.
www.hexaware.com
4] Check, save and activate the new structure. 5] Go back to the previous screen. Now click on Create ALL till it prompts the customizing request.
www.hexaware.com
www.hexaware.com
7] Now goto PA30 screen, enter the enhanced infotype number and the personnel number where the detail has to be included.
www.hexaware.com
8] Click on Create.
www.hexaware.com
9] Now you can see the newly added fields ( as an I/O field ) in the additional fields frame. 10] Click on Save . Now the new field entry gets saved in the transparent table of the infotype( PAnnnn)
www.hexaware.com
Steps involved
Create the fields for enhancing infotype nnnn in the dictionary.You can go directly to the dictionary from tcode PM01. If necessary, you should create a specific component type for each CI table field. Structure CI_Pnnnn is activated, and along with it, the dependant structures and tables are created as well. If you check the corresponding button ,the module pool will be generated automatically and can then be enhanced to meet your specific requirements. You can customize the screen using the screen painter . Assign the include screen to the standard screen .You do this by using the assign enhancement button.
Copyright, Hexaware Technologies
www.hexaware.com
It contains the following includes : Include ZPnnnn10(global data) Include MPPDAT00 Include FP50PPSB Include MPPERS00 Include ZPnnnn20(PBO) Include ZPnnnn30(PAI) Include ZPnnnn40(Form routines)
www.hexaware.com
Creating Infotypes
The name range 9000-9999 is available for customers to create infotypes for master data, personnel administration, and organizational management. 9000-9099 for master data,9100-9199 for organizational management, and so on. Firstly ,the structure PS9nnn is created and activated for the new infotype. Use transaction PM01,the following additional objects are created with the button create all : Structure P9nn10 : The previously created structure PS9nnn is included here. Database table PA9n10. Module pool MP9nnn00 with the corresponding includes. Screen 1000,2000,3000 for module pool MP9nnn.The components LAYOUT and FLOW LOGIC often have to be adjusted.
www.hexaware.com
The GUI status with the necessary icons for standard actions, such as Create,Copy,Overview and so on, for these infotypes.Usually ,no other adjustments are necessary; however, for more complex infotypes,adding icons and menu entries may be useful. Dialog module RP_9nnn.No adjustments are required here. In addition ,the entries for the new infotypes are created in tables T777D(Check table for infotypes) and TDCT(Dialog modules).
www.hexaware.com
www.hexaware.com
Features
Acts as decision parameter - defaulting the values returns values Tcode - > PE03 Enables mapping of decision trees without any programming Frequently used function modules - HR_FEATURE_BACKFIELD(with field return) - HR_FEATURE_BACKTABLE(with table return) Elements of features 1. Attribute shows the persons responsible 2. Structure for setting up of decision tree 3. Decision Tree type s program created from its specification
Copyright, Hexaware Technologies
www.hexaware.com
User Enhancements
Ways to change SAP system that fits our need - Customizing, Enhancement, Modification, Customer development USER EXITS - does not have change in the source code - Tcode -> CMOD/SMOD
Menu exits to add menu items Screen exits to add sub screens to screen Function Module exits role in screen and menu exits Field exits for the field determination
www.hexaware.com
Dynamic Actions
Are the activities triggered automatically by R/3 during infotype maintenance Maintained in SM30 - >T588Z database table storing information related to dynamic actions Maintenance view V_T588Z Components: INFTY, SUBTY, FIELDN, FC, NO, A (type of action) External factors causing failure
Qnnnn - Fieldname - may be overwritten in PBO and PAI modules
If our dynamic action calls an infotype which has its own dynamic actions Turned off during batch input sessions
Copyright, Hexaware Technologies
www.hexaware.com
Purpose
Provide solutions for your most frequent reporting requirements Hierarchies are displayed as graphics Reports executed using selected structures or substructures.
Advantages
Can be used immediately No developments required
Limitations
Limited flexibility Output fields cannot be selected as required Limited flexibility Tool is used to execute standard reports and customer reports It cannot be used to create reports InfoSets and user groups must be defined in SAP Query before you can use InfoSet Query Multiline lists cannot be displayed
HIS
InfoSet Query
Intuitive, general SAP reporting tool .Enables you to create reports for all areas of HR When InfoSet Query is accessed from Human Resources (HR), the Query area and User group parameters already contain values and you can only perform ad hoc reporting. If InfoSet Query is accessed this way, it is called Ad Hoc Query
User-friendly interface No programming required If integrated with SAP Query, you can continue processing queries using SAP Query Set operations enable you to create sets of objects as required for which data must be output Can be included in roles using a suitable InfoSet
www.hexaware.com
Contd.,
Reporting tool
SAP Query
Purpose
General SAP reporting tool Individual definition of user groups, InfoSets, and queries
Advantages
Extremely flexible No programming required Queries can be provided in the SAP Easy Access menu Includes numerous options for aggregating data, performing calculations, and displaying graphics Enables you to display multiline lists,define one basic list and several statistics and ranked lists for each query
Limitations
Restricted to data from the R/3 System Each HR query can process data from just one HR logical database.
www.hexaware.com
ABAP/4 QUERY
It is a very powerful tool to generate reports without the need for coding.
ABAP/4 query provides 3 types of reports: Basic list Statistics Ranked list In order to create a query Create a user group Create a functional Area Assign the user group to the functional Area Create the query based on the functional area created There are many ways by which functional areas, user groups and queries . You can create any one of these by choosing TOOLS ABAP/4 WORKBENCH UTILITIES ABAP/4 QUERY or BY USING : SQ01 for query SQ02 for functional area SQ03 for user groups
Copyright, Hexaware Technologies
www.hexaware.com
WORK AREAS
Work Areas
GLOBAL
Queries are available to all clients. This area is used for queries that are to be developed and distributed centrally. Query objects that are created in this area are registered in the Workbench Organizer. Infosets and user groups are stored in the the Table AQGDB.
STANDARD
Client dependant queries,Infosets and user groups. This area is intended for end users that want to develop their own queries in their client environments. A link to the Workbench Organizer does not exist. Queries ,Infosets, and user groups of this area are stored in the Table AQLDB.
www.hexaware.com
www.hexaware.com
User Groups
www.hexaware.com
www.hexaware.com
www.hexaware.com
www.hexaware.com
Creating Forms
The creation of forms are divided into 3 steps. They are :
Creation of a catalog that contains the necessary information from the master data and the results from payroll or time management
Selection of the data from the catalog for use in specific forms
www.hexaware.com
IDOC/ALE
IDOC Intermediate Document
Idoc is simply a data container to exchange information between any two process that can understand the syntax and semantic of the data. Inbound and outbound Processing E.g., Ex: The ORDERS01 IDOC is used by the purchasing module to send a purchase order and is also used by the sales and distribution module to accept sales order. Structure of IDOC
Control record document characteristic table EDIDC Data record - Applicant relevant information table EDIDD Status record To identify the chronological history
www.hexaware.com
IDOC Segments
Segments Defines the structure and format of the data record - Reusable components - Data elements : Positional ; Based on the qualifiers Segment components Segment type Version independent; SAP provided segments begin with E1 and customer provided segments begin with Z1 Segment definition Version dependent; name 10 characters long; SAP provided segments begin with E2 and customer with Z2; After the segment is released and a new version of SAP installed, any change to the segment definition creates a new segment definition. Segment documentation - Segment Documentation represents the data dictionary documentation for each field in the segment definition; name SAP E3; Customer Z3;
Copyright, Hexaware Technologies
www.hexaware.com
www.hexaware.com
Components:
Distribution Format & filters data; IDOC creation Communication TCP/IP, RFC, tRFC
www.hexaware.com
Overall View
Application Layer Distribution / ALE Layer Communication Layer
Application
Master IDOC
Determine Recipients
Carrier
Applicatio n Data
Application Functions
Filter/Convert Data
Comm. IDOC
www.hexaware.com
Contd..
Generate Partner Profiles (WE20) Ports are created after Executing For both In-bound and Out-bound replicate the settings in the other system also Through WEDI Transaction, the Idoc status can be viewed (We05,We02) WE31 for creating Segments WE30 to create Idoc Type WE82 to Link Message types to Idoc WE41 to link WE42 to maintain process codes
Copyright, Hexaware Technologies
www.hexaware.com
Unicode Fragment View Restrictions Flat structures alone - considered character type Some new ABAP statements for Unicode; new classes
www.hexaware.com
Upgradation
Why upgrade to mySAP ERP now?
Built on SAP NetWeaver platform Tightly integrated to optimize cross-functional business processes Enhanced by industry specific features and support for best practices Design to support international operations
www.hexaware.com
www.hexaware.com
Production Downtime
The downtime depends on various factors such as hardware power and size of the tables to be migrated, and is therefore contingent on each individual situation. SAP upgrade technology provides you with two strategies :
www.hexaware.com