You are on page 1of 4

Comments (1)

Function module HR_INFOTYPE_OPERATION to maintain SAP HR infotypes


The HR_INFOTYPE_OPERATION function module is used for the Maintenance of HR infotypes, such as inserting, changing, deleting data etc Parameters Explained Here is a list of the fm's parameters and how they are used, obviously not all parameters will be used depending on what function you are performing i.e. insert, change, delet etc infty - Infotype being updated objectid - object id from infotype number - Personnel number validityend - validity end date validitybegin - validity begin date record - infotype record values to be updated, inserted etc (will be structure of infortyoe you are updating) recordnumber - sequence nunber from infotype record you are updating Operation - describes what operation is to be performed COP = Copy DEL = Delete DIS = Display EDQ = Lock/unlock INS = Create LIS9 = Delimit MOD = Change INSS = Create for Actions is not converted to Change nocommit - commit yes('X') / no(' ') dialog_mode - dialog mode or not, default is '0'

Example coding for MOD operation C O N S T A N T S :c h a n g eT Y P Ep s p a r a c t i oV A L U E' M O D ' . " T h i sc o d ei sr e q u r e da n dl o c k st h er e c o r dr e a d yf o rm o d i f i c a t i o n C A L LF U N C T I O N' H R _ E M P L O Y E E _ E N Q U E U E ' E X P O R T I N G n u m b e r=p _ p e r n r .

Join the Mailing List Enter your name and email address below: Name: Email: Subscribe Unsubscribe

" l o o pa tp 0 0 7 1i n t op _ p 0 0 7 1 . " a d d e dt op u tc o d ei nc o n t e x t v a l i d i t y b e g i n=p _ r e c o r d b e g d a . v a l i d i t y e n d =p _ r e c o r d e n d d a . p _ r e c o r d e n d d a=p n b e g d a-1 . C A L LF U N C T I O N' H R _ I N F O T Y P E _ O P E R A T I O N ' E X P O R T I N G i n f t y =' 0 0 7 1 ' s u b t y p e =p _ r e c o r d s u b t y o b j e c t i d =P _ r e c o r d o b j p s n u m b e r =p _ r e c o r d p e r n r " e m p l o y e e n u m b e r v a l i d i t y e n d =v a l i d i t y e n d v a l i d i t y b e g i n=v a l i d i t y b e g i n r e c o r d =p _ r e c o r d r e c o r d n u m b e r =p _ r e c o r d S E Q N R o p e r a t i o n =c h a n g e n o c o m m i t =n o c o m m i t d i a l o g _ m o d e =' 0 ' I M P O R T I N G r e t u r n =r e t u r n _ s t r u c t k e y =p e r s o n a l d a t a k e y E X C E P T I O N S O T H E R S =0 .

GO
Get your Free Mailing List
by Brav enet.com

" e n d l o o p . " u n l o c kr e c o r da f t e rm o d i f i c a t i o n C A L LF U N C T I O N' H R _ E M P L O Y E E _ D E Q U E U E ' E X P O R T I N G n u m b e r=p _ p e r n r .

Example coding for INS operation C O N S T A N T S :i n s e r tT Y P Ep s p a r a c t i oV A L U E' I N S ' . " T h i sc o d ei sr e q u r e da n dl o c k st h er e c o r dr e a d yf o rm o d i f i c a t i o n C A L LF U N C T I O N' H R _ E M P L O Y E E _ E N Q U E U E ' E X P O R T I N G n u m b e r=p _ p e r n r .

v a l i d i t y b e g i n=p _ r e c o r d b e g d a . v a l i d i t y e n d =p _ r e c o r d e n d d a . p _ r e c o r d p e r n r=p _ p e r n r p _ r e c o r d b e g d a= p n b e g d a . p _ r e c o r d e n d d a= v a l i d i t y e n d . p _ r e c o r d s u b t y=p _ S U B T Y . " s u b t y p eo fn e we n t r y p _ r e c o r d S C R E F=p _ S U B T Y . " s u b t y p eo fn e we n t r y " p l u sp o p u l a t ea n yo t h e rf i e l d sy o un e e dt ou p d a t e C A L LF U N C T I O N' H R _ I N F O T Y P E _ O P E R A T I O N ' E X P O R T I N G i n f t y =' 0 0 7 1 ' s u b t y p e =p _ r e c o r d s u b t y n u m b e r =p _ r e c o r d p e r n r " e m p l o y e e n u m b e r v a l i d i t y e n d =v a l i d i t y e n d v a l i d i t y b e g i n=v a l i d i t y b e g i n r e c o r d =p _ r e c o r d o p e r a t i o n =i n s e r t n o c o m m i t =n o c o m m i t d i a l o g _ m o d e =' 0 ' I M P O R T I N G r e t u r n =r e t u r n _ s t r u c t k e y =p e r s o n a l d a t a k e y E X C E P T I O N S O T H E R S =0 . " u n l o c kr e c o r da f t e rm o d i f i c a t i o n C A L LF U N C T I O N' H R _ E M P L O Y E E _ D E Q U E U E ' E X P O R T I N G n u m b e r=p _ p e r n r .

INS operation example coding for infotype 0105 A l s os e eB A P I _ E M P L C O M M _ C R E A T Ef o ru p d a t i n gi n f o t y p e0 1 0 5 C A L LF U N C T I O N' H R _ E M P L O Y E E _ E N Q U E U E ' E X P O R T I N G n u m b e r=p _ p e r n r . p _ r e c o r d s u b t y p _ r e c o r d p e r n r p _ r e c o r d S E Q N R v a l i d i t y e n d v a l i d i t y b e g i n p _ r e c o r d b e g d a p _ r e c o r d e n d d a p _ r e c o r d u s r i d =p _ s u b t y p e ." s u b t y p eo fn e we n t r y = p _ p e r n r . =' 0 0 0 ' . =' 9 9 9 9 1 2 3 1 ' . =s y d a t u m . =s y d a t u m . =' 9 9 9 9 1 2 3 1 ' . =' T E S T U S R ' .

C A L LF U N C T I O N' H R _ I N F O T Y P E _ O P E R A T I O N ' E X P O R T I N G i n f t y =' 0 1 0 5 ' s u b t y p e =p _ r e c o r d s u b t y o b j e c t i d =P _ r e c o r d o b j p s n u m b e r =p _ r e c o r d p e r n r " e m p l o y e e n u m b e r v a l i d i t y e n d =v a l i d i t y e n d v a l i d i t y b e g i n=v a l i d i t y b e g i n r e c o r d =p _ r e c o r d o p e r a t i o n =' I N S ' n o c o m m i t =n o c o m m i t d i a l o g _ m o d e =' 0 ' I M P O R T I N G r e t u r n =r e t u r n _ s t r u c t

k e y =p e r s o n a l d a t a k e y E X C E P T I O N S O T H E R S =0 . i fs y s u b r ce q0 . s u c c e s s e n d i f . C A L LF U N C T I O N' H R _ E M P L O Y E E _ D E Q U E U E ' E X P O R T I N G n u m b e r=p _ p e r n r .

see BAPI_EMPLCOMM_CREATE if updating infotype 0105!! Check out sap documentation and pattern details for function module hr_infotype_operation on website se80.co.uk

Comment (1)
Sort by: Date Rating Last Activity sudhakar 23 weeks ago it helps me second time
Reply

Login

Post a new comment


Enter text right here!

Comment as a Guest, or login: Name


Displayed next to your comments.

Email
Not displayed publicly.

Website (optional)
If you have a website, link to it here.

Subscribe to None

Submit Comment

?
SAP Development ABAP Useful FM's HR FM's Field Conversion ALV App FM's Bespoke FM's

Latest jobs from ERPJobboard.com Mitarbeiter/in Human Resources Unternehmensbereich: WESSLING Holding GmbH & Co. KG, Einsatzort: Altenberge, Einstellungstermin: 01.06.2014, ...Sun, 06 Apr 2014 17:00:00 -0700 Fachberater Service / Support Separatoren Service (m/w) GEA Westfalia Separator ist ein Unternehmen der GEA Group Aktiengesellschaft, einer der grten Systemanbieter fr die ...Sat, 05 Apr 2014 17:00:00 -0700 Global SAP Release Manager (m/w) ITIL In dieser Funktion bernehmen Sie die Verantwortung fr die Konzeption, Umsetzung und kontinuierliche Verbesserung der Release ...Sat, 05 Apr 2014 17:00:00 -0700 Business Intelligence Development Consultant m/w Ihre Aufgaben Konzeption, Customizing, Implementierung und permanente Weiterentwicklung internationaler SAP BW Systeme unserer ...Sat, 05 Apr 2014 17:00:00 -0700 Referent Kundenbeziehungen (m/w)
Like 0

Tw eet

Share

Contact Us

Partners

Terms of Service

Privacy Policy

Advertise

You might also like