Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Update to infotype taking long time create record.

Former Member
0 Kudos

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.

6 REPLIES 6

former_member181995
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

rainer_hbenthal
Active Contributor
0 Kudos

Do you really need all the BAPI stuff? Give RH_PNNNN_MAINTAIN a try.

0 Kudos

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

Former Member
0 Kudos

Hi,

Use function module HR_INFOTYPE_OPERATION

Regards

Krishna

Former Member
0 Kudos

Self answered