欢迎来到天天文库
浏览记录
ID:40564876
大小:15.35 KB
页数:4页
时间:2019-08-04
《SAP开发笔记HR_INFOTYPE_OPERATION》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、validitybegin-validitybegindate record-infotyperecordvaluestobeupdated,insertedetc(willbestructureofinfortyoeyouareupdating) recordnumber-sequencenunberfrominfotyperecordyouareupdating Operation-describeswhatoperationistobeperformed COP=Copy DEL=Delete DIS=Display EDQ=Lock/unloc
2、k INS=Create LIS9=Delimit MOD=Change INSS=CreateforActionsisnotconvertedtoChange nocommit-commityes('X')/no('') dialog_mode-dialogmodeornot,defaultis'0'ExamplecodingforMODoperationCONSTANTS:changeTYPEpspar-actioVALUE'MOD'."ThiscodeisrequredandlockstherecordreadyformodificationCA
3、LLFUNCTION'HR_EMPLOYEE_ENQUEUE'EXPORTINGnumber=p_pernr."loopatp0071intop_p0071."addedtoputcodeincontextvaliditybegin=p_record-begda.validityend=p_record-endda.p_record-endda=pn-begda-1.CALLFUNCTION'HR_INFOTYPE_OPERATION'EXPORTINGinfty='0071'subtype=p_record-subtyobjectid=P_recor
4、d-objpsnumber=p_record-pernr"employeenumbervalidityend=validityendvaliditybegin=validitybeginrecord=p_recordrecordnumber=p_record-SEQNRoperation=changenocommit=nocommitdialog_mode='0'IMPORTINGreturn=return_structkey=personaldatakeyEXCEPTIONSOTHERS=0."endloop."unlockrecordaftermo
5、dificationCALLFUNCTION'HR_EMPLOYEE_DEQUEUE'EXPORTINGnumber=p_pernr.ExamplecodingforINSoperationCONSTANTS:insertTYPEpspar-actioVALUE'INS'."ThiscodeisrequredandlockstherecordreadyformodificationCALLFUNCTION'HR_EMPLOYEE_ENQUEUE'EXPORTINGnumber=p_pernr.validitybegin=p_record-begda.v
6、alidityend=p_record-endda.p_record-pernr=p_pernrp_record-begda=pn-begda.p_record-endda=validityend.p_record-subty=p_SUBTY."subtypeofnewentryp_record-SCREF=p_SUBTY."subtypeofnewentry"pluspopulateanyotherfieldsyouneedtoupdateCALLFUNCTION'HR_INFOTYPE_OPERATION'EXPORTINGinfty='0071'
7、subtype=p_record-subtynumber=p_record-pernr"employeenumbervalidityend=validityendvaliditybegin=validitybeginrecord=p_recordoperation=insertnocommit=nocommitdialog_mode='0'IMPORTINGreturn=return_structkey=personaldatakeyEXCEPTIONSOTHERS=0."unlockrecordaftermodificationCALLFUNCTIO
8、N'HR_EMPLOYEE_DEQUEUE'EXPORTINGnumber=p_pernr.I
此文档下载收益归作者所有