Sunday, November 23, 2014
Functionality: This function module enables you to maintain master data for employees and applicants. You can transfer one data record. All validation checks take place that would take place in the individual maintenance screens in the dialog. If necessary, the module returns an error message. The error messages are the same as the error messages in the dialog, that is, the individual maintenance screen error messages are transferred rather than interpreted by this module.
Sample program
REPORT ZTEST_NFOTYPE_OPERATION . DATA:P0006 TYPE STANDARD TABLE OF P0006 WITH HEADER LINE. DATA:RETURN LIKE BAPIRETURN1. P0006-PERNR = '00001234'. P0006-SUBTY = '2'. P0006-ENDDA = '99991231'. P0006-BEGDA = SY-DATUM. P0006-ANSSA = '2'. P0006-NAME2 = 'xyz'. P0006-STRAS = 'Street 64'. P0006-ORT01 = 'US'. P0006-PSTLZ = '560634'. APPEND P0006. CLEAR P0006. LOOP AT P0006. CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE' EXPORTING NUMBER = P0006-PERNR. "operations on individual infotype CALL FUNCTION 'HR_INFOTYPE_OPERATION' EXPORTING INFTY = '0006' NUMBER = P0006-PERNR SUBTYPE = P0006-SUBTY VALIDITYEND = P0006-ENDDA VALIDITYBEGIN = P0006-BEGDA RECORD = P0006 OPERATION = 'INS' TCLAS = 'A' IMPORTING RETURN = RETURN. IF RETURN IS INITIAL. WRITE 'Successfully records created'. ENDIF. CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE' EXPORTING NUMBER = P0006-PERNR. ENDLOOP.
Followers
Popular Posts
- ABAP - ALV Report example with steps
- ABAP - Sending email with pdf attachment
- ABAP - Step by step tutorial on Smart Forms - Template Node
- SAP Adobe Form - Steps to create simple ADOBE Form and calling it from ABAP Program
- SAP ABAP - CL_ABAP_CHAR_UTILITIES class usage
- ABAP - Multiple value selection from F4 help for SELECT-OPTIONS
- Execute ABAP Report using SUBMIT statement
- ABAP - Select all or Deselect all in ALV or Check box handling in ALV
- Web Dynpro ABAP ALV - ON_CLICK event
- ABAP - Dynamic WHERE clause
Really this is very great information. Thanks lot.Examhelpline.in
ReplyDeleteNice
ReplyDeleteFreekade.com
Nice article thanks for sharing with us
ReplyDeletecarebaba
Health benefits of Dancing
BSEB Intermediate Commerce Result 2017/
Bihar Board 12th Science Result 2017/
CG Board 12th Supplementary Result 2017/
Telangana Intermediate Result 2017/
Assam board HSLC result 2017/
Rajasthan Board 10th Result 2017/
Sikkim SSLC result 2017/
China’s crackdown on genetics breaches could deter data sharing
ReplyDeleteHappy Rath Yatra Wishes
ReplyDeleteHappy Rath Yatra Wishes
ReplyDeleteChina’s crackdown on genetics breaches could deter data sharing
ReplyDeleteBest Deals at buyonlinekart, an international prescription service provider, which contracts with International dispensaries and USA pharmacies, is a leader in referring orders for prescription and non-prescription medications on behalf of customers throughout the world
ReplyDeletebuyonlinekart
buy hydrocodone online
buy oxycodone online
buy oxycontin online
buy percocet online
buy vicodin online
buy norco online
buy adderall online
buy xanax online
Thanks for sharing this Information. SAP ABAP Training Course in Gurgaon
ReplyDeleteGet trained on data science course in hyderabad by real-time industry experts and excel your career with Data Science training by Technology for all. #1 online training institute for Data Science.
ReplyDeleteSAP HCM Training Course in Gurgaon
ReplyDelete