12-14-2008 7:31 PM
hello,
I am creating a record in infotype 0006 with standard BAPI BAPI_ADDRESSEMPUS_CREATE.
It is taking long time.
I have a check box in report output.It creates the record only once when check box is checked.
When I uncheck the check box the report executes within no time.
When I check Its taking very long time if we have 50 employees.
Its taking about 20 minutes to execute the report.
I am unable to predict the problem as it is SAP standard BAPI.
My Bapi is with in the loop.
Please suggest your ideas.
Thanks.
12-15-2008 12:48 AM
You Must use FM BAPI_EMPLOYEE_ENQUEUE just before calling BAPI_ADDRESSEMPUS_CREATE.
Read the Documentation of Both FM:
Few IMP line are:
You can use this method only if you have called the ENQUEUE method of the business object EMPLOYEE beforehand. For more information on the ENQUEUE method, read the documentation on the function module BAPI_EMPLOYEE_ENQUEUE.
Finally, the employee is unlocked using the DEQUEUE method.
Finally The after changing The Record you must Dequeue again with BAPI BAPI_EMPLOYEE_DEQUEUE
Call In this Fasion
1:BAPI_EMPLOYEE_ENQUEUE
2:BAPI_ADDRESSEMPUS_CREATE
3:BAPI_EMPLOYEE_DEQUEUE
12-15-2008 6:36 AM
HI,
you want to create a record in 0006 i.e. emp. address.
i suggest you to go through the FM for creation of records.
you can used PPROP structure and finally call HR_maintain_masterdata.
Regards:
Mahesh
12-15-2008 9:11 AM
Do you really need all the BAPI stuff? Give RH_PNNNN_MAINTAIN a try.
09-01-2009 3:39 PM
Hi
I need to update infotype 1001.
the data I am receiving is from flat file spreadsheet.
For this I am using rh_pnnnn_maintain.
Can you send some sample code How I can pass the values to the above function module.
in the flat file i have a record with the following fields
plvar otype objid infty subty istat begda endda sclas sobid.
thanks
Moderator message - Please stop asking your questions at the end of existing threads. You can simply start a new thread with your question.
Edited by: Rob Burbank on Sep 1, 2009 10:43 AM
09-01-2009 3:43 PM
Hi,
Use function module HR_INFOTYPE_OPERATION
Regards
Krishna
07-20-2011 9:03 AM