Skip to Content
author's profile photo Former Member
Former Member

Update to infotype taking long time create record.

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • Posted on Dec 15, 2008 at 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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 15, 2008 at 06: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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 15, 2008 at 09:11 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Sep 01, 2009 at 02:43 PM

    Hi,

    Use function module HR_INFOTYPE_OPERATION

    Regards

    Krishna

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 20, 2011 at 08:03 AM

    Self answered

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.