1、PA的Infotype创建How to create a HR infotype? In SAP HR/HCM, employee data is groupedin Infotypes. This employee data is saved in infotypes based on his/her personal number (PERNR).For example in infotype PA0006 (Addresses) you will find employees address details. Similarly, in infotype PA0021 you will
2、find the employees family details.SAP provides hundreds of standard infotypes, but manytimes there are business/client requirements where we have to create new infotypes. In this tutorial we will see how to create a custom PA (Personal Administration) infotype in just five easy steps.Step 1. Creatin
3、g the PSnnnn StructureEach infotype requiresa PS structure which contains all the data fields.To create the PS structure, go to transaction code PM01.Give a four digit number between 9000 9999 in the Infotype no. field. Select the radio button Employee infotype. Select the radio button PS Structure
4、and then click on the Edit button.After pressing the Edit button you will see the Dictionary: Maintain Structure screen. Here, give a short description of your infotype and alsogive the data fields which are required in your infotype.After providing all the required fields, pressthe save button.Now,
5、 click on Extras Enhancement Category to maintainthe enhancement category for the PS structure.Select Can be enhanced (character-type or numeric).Click on the Copy button and then Click on Save, Check and finally Activate. This completes our first step. Now, click the Back button to go back to the i
6、nitialscreen of PM01.Step 2. Generating all required objects (Dialog Screens and Database Tables):After creating your PS structure, return back to the initialscreen of PM01.By, clicking on the Generate Objects button, you will see n numbers of pop-up screen which will ask for confirmation to generat
7、e the object. Keep pressing the continue (enter) button until all the objects are created.There will be some more screens, just keep on pressing continue (enter) button to proceed.Step 3. Maintain Infotype characteristicsIn this step you will maintain the infotype characteristics such asInfotype Des
8、cription and General Attributes, properties for Display and Selection and Technical Data.Click on Infotype characteristics.You will see the Infotypes attributes Table View. Click on change icon.And then click on theNew Entries button to create a new entry.Now, you will see the screen where you can p
9、rovide the infotype characteristics.Before, proceeding further you should know about the following important characteristics of an infotype.Time Constraints: This characteristic determines if more than one infotype record can exist at the same period in time per employee.The following values of time
10、 constraints are accepted.Date Reaction Indicators:They control the search type, when “no dates”, “one date” or “two dates” are enteredon the selection screen.As per your requirement select the Time Constrains and the Date Reaction Indicators.Step 4: Maintain the Technical AttributesIn this step you
11、 will maintain the technical attributes of the infotype such as Dialog Module, Database Table and Structure. All these objects (except the structure) are automatically generated in Step 2 by pressing the Generates Objects button.You will see the Infotype Dialog/Database assignment table view. Click
12、on the change button.Now click on Position button and enter the name of your infotype.Select your infotype and click on the Display ButtonBy default, all the values should come appear automatically, if not then enter them manually.Click on SAVEandassignyour development to a transport request.Step 5.
13、 Changing the Infotype Screen LayoutNow, we will make some changes in the infotype screen using the screen painter.At the Initial screen oftransaction PM01, select the Screen radio button under the Subobjects tab and enter the screen number as 2000. Then press theEdit button.Select the Layout radio
14、button and then click on Change button.Make the required changes in the screen layout. Save, check and then activate.The Screen OutputTo check the output, go to transaction code PA30. Enter employee number and click on the create button.Summary:In this tutorial we have seen how to create a simple Infotype easily in just five steps. Depending on your requirements, for more complex infotypes you may also need to add business logic, which you can add in the dialog programming of your infotype screen.
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1