7/29/2015
AnSAPConsultant:ABAPInfotyperecordcreationHR_INFOTYPE_OPERATION
An SAP Consultant
HOME
ABAP
ALV
SMART FORMS
ADOBE FORMS
HR ABAP
WORKFLOW
WEB DYNPRO ABAP
Wednesday, December 29, 2010
ABAP Infotype record creation HR_INFOTYPE_OPERATION
HCM
Follow by Email
Emailaddress...
Function Module HR_INFOTYPE_OPERATION
This function module enables you to maintain master data for employees. You can transfer one data record. All
AnSAPConsultant
validation checks take place that would take place in the individual maintenance screens in the dialog.
1,270likes
Infotype Operation Types:
This operation defines which editing mode should be used to process the infotype in an action.
Liked
Operation Description
COP
Copy
DEL
Delete
DIS
Display
EDQ
Lock/unlock
INS
Create
LIS9
Delimit
withGoogleFriendConnect
MOD
Change
Members(53) More
INSS
Create for Actions is not converted to
Youlikethis
Followers
Jointhissite
Change
Insert Infotype Record
When you create infotype records while processing actions, the system checks if an infotype with the same subtype
already exists. If it does, the system switches from "Create" to "Change". It only makes sense to use the Create (INS)
operation for the initial entry action.
REPORTztest_notepad.
DATA:p0015TYPEp0015.
DATA:RETURNLIKEbapireturn1.
p0015pernr='00909089'.
p0015subty='1500'.
p0015endda='99991231'.
p0015begda=sydatum.
p0015lgart='1500'.
p0015betrg='100.00'.
CALLFUNCTION'HR_EMPLOYEE_ENQUEUE'
EXPORTING
NUMBER='00909089'.
CALLFUNCTION'HR_INFOTYPE_OPERATION'
EXPORTING
infty='0015'
NUMBER='00909089'
subtype='1500'
validityend='99991231'
validitybegin=sydatum
record=p0015
operation='INS'
tclas='A'
IMPORTING
RETURN=RETURN.
WRITERETURN.
CALLFUNCTION'HR_EMPLOYEE_DEQUEUE'
EXPORTING
http://www.ansapconsultant.com/2010/12/abapinfotyperecordcreation_28.html
Alreadyamember?Signin
Popular Posts
1
ABAPALVReportexamplewithsteps
ExecuteABAPReportusingSUBMIT
statement
ABAPStepbysteptutorialonSmartForms
TemplateNode
ABAPSendingemailwithpdfattachment
WebDynproABAPALVON_CLICKevent
ABAPDynamicWHEREclause
ABAPDownloadreportoutputasPDFfile
ABAPALVDemoprograms
SAPABAPCL_ABAP_CHAR_UTILITIES
classusage
10
WebdynproabapError/Successmessage
sampleprogram
Websites I follow
HTML/CSS/Javscript Generator
1/3
7/29/2015
AnSAPConsultant:ABAPInfotyperecordcreationHR_INFOTYPE_OPERATION
NUMBER='00909089'.
Modify Infotype Record
Read existing record before you modify record. Use operation MOD.
Easy CSS3 Generator
Digital Inspiration
Shout ME Loud
Twitter Feed
CALLFUNCTION'HR_INFOTYPE_GETDETAIL'
EXPORTING
infty='0006'
NUMBER=employeenumber
subtype=subtype
objectid=objectid
lockindicator=lockindicator
validityend=validityend
validitybegin=validitybegin
recordnumber=recordnumber
tclas='A'
IMPORTING
RETURN=RETURN
record=p0006
EXCEPTIONS
OTHERS=0.
IFNOTRETURNISINITIAL.
EXIT.
ENDIF.
p0006pernr=employeenumber.
p0006subty=subtype.
p0006infty='0006'.
p0006objps=objectid.
p0006sprps=lockindicator.
p0006begda=validitybegin.
p0006endda=validityend.
p0006seqnr=recordnumber.
p0006anssa=subtype.
p0006name2=coname.
p0006stras=streetandhouseno.
p0006ort01=city.
p0006ort02=district.
p0006pstlz=postalcodecity.
p0006STATE=STATE.
p0006land1=COUNTRY.
p0006telnr=telephonenumber.
p0006entkm=distanceinkm.
p0006entk2=distanceinkm1.
p0006wkwng=companyownedapt.
p0006busrt=busroute.
p0006com01=commtype1.
p0006num01=commnumber1.
p0006com02=commtype2.
p0006num02=commnumber2.
p0006com03=commtype3.
p0006num03=commnumber3.
CALLFUNCTION'HR_INFOTYPE_OPERATION'
EXPORTING
infty='0006'
NUMBER=employeenumber
subtype=subtype
objectid=objectid
lockindicator=lockindicator
validityend=validityend
validitybegin=validitybegin
recordnumber=recordnumber
record=p0006
operation='MOD'
nocommit=space
IMPORTING
RETURN=RETURN
EXCEPTIONS
OTHERS=0.
http://www.ansapconsultant.com/2010/12/abapinfotyperecordcreation_28.html
Web Dynpro ABAP Book
2/3