PA的Infotype创建.docx
《PA的Infotype创建.docx》由会员分享,可在线阅读,更多相关《PA的Infotype创建.docx(14页珍藏版)》请在冰点文库上搜索。
PA的Infotype创建
HowtocreateaHRinfotype?
InSAPHR/HCM,employeedataisgrouped inInfotypes.Thisemployeedataissavedininfotypesbasedonhis/herpersonalnumber(PERNR).
ForexampleininfotypePA0006(Addresses)youwillfindemployee’saddressdetails.Similarly,ininfotypePA0021youwillfindtheemployee’sfamilydetails.
SAPprovideshundredsofstandardinfotypes,butmany timestherearebusiness/clientrequirementswherewehavetocreatenewinfotypes.InthistutorialwewillseehowtocreateacustomPA(PersonalAdministration)infotypeinjustfiveeasysteps.
Step1.CreatingthePSnnnnStructure
Eachinfotyperequires aPSstructurewhichcontainsallthedatafields.
Tocreatethe‘PSstructure’,gototransactioncodePM01.
Giveafourdigitnumberbetween9000–9999inthe‘Infotypeno.’field.Selecttheradiobutton‘Employeeinfotype’.Selecttheradiobutton‘PSStructure’andthenclickonthe‘Edit’button.
Afterpressingthe‘Edit’buttonyouwillseethe‘Dictionary:
MaintainStructure’screen.Here,giveashortdescriptionofyourinfotypeandalso givethedatafieldswhicharerequiredinyourinfotype.
Afterprovidingalltherequiredfields,press thesavebutton.
Now,clickon‘Extras’→ ‘EnhancementCategory’tomaintain theenhancementcategoryforthePSstructure.
Select‘Canbeenhanced(character-typeornumeric)’.
Clickonthe‘Copy’buttonandthenClickonSave,CheckandfinallyActivate.Thiscompletesourfirststep.Now,clickthe‘Back’buttontogobacktotheinitial screenofPM01.
Step2.Generatingallrequiredobjects(DialogScreensandDatabaseTables):
AftercreatingyourPSstructure,returnbacktotheinitial screenofPM01.
By,clickingonthe‘GenerateObjects’button,youwillsee‘n’numbersofpop-upscreenwhichwillaskforconfirmationtogeneratetheobject.Keeppressingthecontinue(enter)buttonuntilalltheobjectsarecreated.
Therewillbesomemorescreens,justkeeponpressingcontinue(enter)buttontoproceed.
Step3.MaintainInfotypecharacteristics
Inthisstepyouwillmaintaintheinfotypecharacteristicssuchas ‘InfotypeDescription’and‘GeneralAttributes’,propertiesfor‘DisplayandSelection’and‘TechnicalData’.
Clickon‘Infotypecharacteristics’.
Youwillseethe‘Infotypesattributes’TableView.Clickonchangeicon.
Andthenclickonthe ‘NewEntries’buttontocreateanewentry.
Now,youwillseethescreenwhereyoucanprovidetheinfotypecharacteristics.
Before,proceedingfurtheryoushouldknowaboutthefollowingimportantcharacteristicsofaninfotype.
TimeConstraints:
Thischaracteristicdeterminesifmorethanoneinfotyperecordcanexistatthesameperiodintimeperemployee.
Thefollowingvaluesoftimeconstraintsareaccepted.
DateReactionIndicators:
Theycontrolthesearchtype,when“nodates”,“onedate”or“twodates”areentered ontheselectionscreen.
AsperyourrequirementselecttheTimeConstrainsandtheDateReactionIndicators.
Step4:
MaintaintheTechnicalAttributes
Inthisstepyouwillmaintainthetechnicalattributesoftheinfotypesuchas–DialogModule,DatabaseTableandStructure.Alltheseobjects(exceptthestructure)areautomaticallygeneratedinStep2bypressingthe‘GeneratesObjects’button.
Youwillseethe‘InfotypeDialog/Databaseassignment’tableview.Clickonthechangebutton.
Nowclickon‘Position’buttonandenterthenameofyourinfotype.
Selectyourinfotypeandclickonthe‘DisplayButton
Bydefault,allthevaluesshouldcomeappearautomatically,ifnotthenenterthemmanually.
ClickonSAVE and assign yourdevelopmenttoatransportrequest.
Step5.ChangingtheInfotypeScreenLayout
Now,wewillmakesomechangesintheinfotypescreenusingthescreenpainter.
AttheInitialscreenof transactionPM01,selectthe‘Screen’radiobuttonunderthe‘Subobjects’tabandenterthescreennumberas‘2000’.Thenpressthe ‘Edit’button.
Selectthe‘Layout’radiobuttonandthenclickon‘Change’button.
Maketherequiredchangesinthescreenlayout.Save,checkandthenactivate.
TheScreenOutput
Tochecktheoutput,gototransactioncodePA30.Enteremployeenumberandclickonthecreatebutton.
Summary:
InthistutorialwehaveseenhowtocreateasimpleInfotypeeasilyinjustfivesteps.Dependingonyourrequirements,formorecomplexinfotypesyoumayalsoneedtoaddbusinesslogic,whichyoucanaddinthedialogprogrammingofyourinfotypescreen.