SET UPDATE TASK LOCAL Would this be an acceptable to improve performance

Hi All
This is the below code is already there
FORM Main_call_bapi_create  USING    fp_wg_req TYPE ty_req.
  DATA: l_msg TYPE bapi_msg,        "Message
        l_ptype TYPE zzyproctype,   "Processing type
        l_nlines TYPE i,            "no of lines.
        l_return TYPE bapiret2.     "Return error
  FIELD-SYMBOLS <fl_return> TYPE bapiret2.   "error message
  REFRESH i_return.
  WAIT UP TO 2 SECONDS.
  CALL FUNCTION 'BAPI_PR_CREATE'
    EXPORTING
      prheader       = i_prheader
      prheaderx      = i_prheaderx
    TABLES
      return         = i_return
      pritem         = i_pritem
      pritemx        = i_pritemx
      pritemsource   = i_pritemsource
      praccount      = i_praccount
Its causing the perofrmance issue due to wait upto 2 seconds.
Is there any other alternate we can use?
I heard about SET UPDATE TASK LOCAL how can we use in the above case?
Regards
Ravinagh Boni

Hi,
WAIT UP TO 2 SECONDS.
Why do you write above statemet ?
It also meaning less.
SET UPDATE TASK LOCAL
Set Update task local gives better performance in background jobs.
But for single entry you can used it to Update task local will give better performance over call function module in update task

Similar Messages

  • SET UPDATE TASK LOCAL

    hi,
    I understand that when we use CALL function in UPDATE TASK....all the modifcations/database updations that are done in that FM are commited only once , at the end of the FM . there in no explicit commit work required.
    I went through sap help and many other sdn threads for understading the funationality of SET UPDATE TASK LOCAL...however i could not understand. Can anybody let me know the exact funationality of this with an example

    Hi
    The idea to run processes in Update task is guarantee system high availability.
    For more details you can check [Update Task documentation|http://help.sap.com/abapdocu_70/en/ABAPCALL_FUNCTION_UPDATE.htm]
    Best regards

  • Is there any BAPI calling only  ABAP command SET UPDATE TASK LOCAL

    Hi abapers
    we have a requirement to run SET UPDATE TASK LOCAL befor calling BAPI_ENTRYSHEET_CREATE command by JAVA through JCO.
    is there any BAPI that contains SET UPDATE TASK LOCAL command or simillar functionality.
    Thanks & Regards,
    Ramesh

    You could write a wrapper RFC function module which calls your BAPI and also the SET UPDATE TASK LOCAL.
    Regards,
    Rich Heilman

  • Pp 1080p setting is 1440x1080 why would this be ?

    Hi everyone,
    Footage from my dslr is 1920 x 1080, however when I ask PP to create a 1080p sequence, the settings
    are 1440 x 1080 instead of 1920 x 1080 .
    Why is this ?  I don't have any problems with footage, but have always been curious about this.
    Thanks for any info,
    Dave.

    Drag the clip from the bin to the new item icon below the bin and it will create a sequence for you which will match your footage. If it's still 1440x1080, then something's wrong with the way your footage is being interpreted by Premiere, in which case you'll need to use the "interpret footage" command under the Clip menu to fix it.

  • Usage of IN UPDATE TASK in Update process

    Hi
    I want to synchronize the Lock and Rollback process with respect to
    addon table and FI document posting.Need to consider that many  addon programs are accessing the table at same time and may be bulk records need to be udpated sometimes.So may be more time to execute. I am trying to execute below in 1LUW process. pls correct me if i am doing wrong here. below is my issue.
    Pls correct me whether can i go with below process.
    1)Check and prepare record for Update
    2)If (No) record exists
      Display Error.
      Else
    3)call Function Enqueue_XXXXX " (Lock the Updating doc record for table.)
    4)Call Function 'UPDATE_ZMMT44' IN UPDATE TASK(Inside FM Update stmt is written)
    FI document standard Commit Work (hope this will release both table lock and BKPF lock)
    FI standard Rollback Work
    Issue
    1)Lock Release timing of Enqueue process?
      Lock Release happens only at the end of FI document Posting. if batch update happens it will lead to long time freeze and no error can be displayed unfortunately. how to handle this?
    2)How to handle SQL error(Update <table> stmt error)
    I am not able to catch this error inside program. seems it goes to ST22 ...how to catch this inside program?
    My earlier query is not clear and i did not get answer so i am post it again
    regards
    prince
    Edited by: princeck on Nov 18, 2011 2:28 AM

    Hello Prince,
    Regarding issue2, this is not solved, How to handle the SQL error when update record?
    Now its going to SAP office and gives error. not showing error at same place.
    This is the standard behavior when an "update"(processed via an Update WP) fails.
    If you don't want this to happen you can opt for local updates(SET UPDATE TASK LOCAL). You would like to read the [behavior of messages in local updates|http://help.sap.com/abapdocu_702/en/abenabap_message_update.htm].
    BR,
    Suhas

  • Difference between Function module in Update task

    Hi folks,
    What is the difference between
    1. A function module calling in 'update task'( if attributes not set for update mode).
    2.A function module's attributes set to update mode, but while calling not specified 'Update task'.
    Please clarify this doubt.
    Thanks in advance.
    Bhavani

    CALL FUNCTION func IN UPDATE TASK.
    Additions:
    1. ... EXPORTING  p1 = f1     ... pn = fn
    2. ... TABLES     p1 = itab1  ... pn = itabn
    Effect
    Flags the function module func for execution in the update task. It is not executed at once, but the data passed with EXPORTING or TABLES is placed in a database table and a subsequent COMMIT WORK then causes the function module to be executed by the update task. Update function modules must be flagged as such in the Function Builder
    The return value is not set.
    Addition 1
    ... EXPORTING p1 = f1 ... pn = fn
    Effect
    Values of fields and field strings specified under EXPORTING are passed from the calling program to the function module. In the function module, the formal parameters are defined as import parameters. In the interface definition, default values must be assigned to all import parameters of the update function module.
    Addition 2
    ... TABLES p1 = itab1 ... pn = itabn
    Effect
    TABLES passes references to internal tables. All table parameters of the function module must have values.
    Note
    With update function modules, both import parameters and exceptions are ignored when the call is made.
    Administration transaction
    Related
    COMMIT WORK, SET UPDATE TASK LOCAL
    regards,
    kartikey.

  • FM in Update task

    Hi,
    I am trying to update few fields in FM in update task.
    But it is not working can some onehelp out in this.
    Regards,
    Aruna.

    hi:
    An update function module is a function module, for which in the Function Builder the property update module is marked. The registration of an update function module is an essential part of the update task.
    The function module is not executed immediately, but is scheduled for execution in a special work process (update work process). For this purpose, the name of the function module including the passed actual parameters is stored as a log record in the database table VBLOG. If the statement is executed during the update task, the addition IN UPDATE TASK is ignored.
    If the statement SET UPDATE TASK LOCAL is executed before registration of an update function module in the current SAP LUW, registration takes place in the ABAP memory rather than on the database, and for the current work process.
    The actual execution is triggered by the statement COMMIT WORK. The formal parameters of the function module receive the values of the actual parameters from table VBLOG. A function module that is registered several times will also be excuted several times with the respective parameter values.If a COMMIT WORK statement is not executed after registration of a function module during execution of the current program, the function module is not executed and is deleted from table VBLOG at the end of the program.
    [Link|http://help.sap.com/abapdocu/en/ABAPCALL_FUNCTION_UPDATE.htm]
    Regards
    Shashi

  • FM in update task - How do you debug for a user exit (IW32)

    Hi,
    I am working on user exit IWO10009, fm EXIT_SAPLCOIH_009, transaction IW32.
    The user-exit should be called any time an order is saved with parts added to the component tab.
    The import structure of the user exit is CAUFVD, which doesnu2019t contain the items in the component. Instead, I have to go into table RESB and get the components.
    However, when I go into RESB from inside the user-exit, the added components have not yet been added to the table.
    As such, I was thinking of creating a Z function module in update task to process this code after the order is saved & RESB is updated.
    2 questions
    1 u2013 Is this the best way of accomplishing this?
    2 u2013 How do you debug FMu2019s in update task? I have set a breakpoint & have switched system debugging on from inside the debugger, but it doesnu2019t stop inside the fm.
    Please help.
    Thanks,
    John

    Hi,
    to debug update task you need to switch on "update debugging" not the "system debugging" from the menu Settings->update debugging.
    -Ramesh

  • Function modules in Update task

    Hi Folks,
    What is the difference between
    1.If a function module contains in attributes 'Update mode ' and run( without 'update task - keyword).
    2.call function ' fun2' in update task.
    In this case, do we need to set the attributes must be 'Update task'?
    Please help me.
    Thanks in advance
    Bhavani

    From F1 Help...
    <i>
    This statement registers the update function module specified in update_function. update_function must be a character-type field, which during execution of the statement contains the name of an update function module in uppercase letters.
    <b>An update function module is a function module, for which in the Function Builder the property update module is marked. The registration of an update function module is an essential part of the update task.</b>
    The function module is not executed immediately, but is scheduled for execution in a special work process (update work process). For this purpose, the name of the function module including the passed actual parameters is stored as a log record in the database table VBLOG. If the statement is executed during the update task, the addition IN UPDATE TASK is ignored.
    </i>
    Regards,
    Rich Heilman

  • Function Module 'Save_text' in update task of Vl01n

    Hi Friends,
    My requirement is, when i save a delivery document, the 'Material Sales text' in delivery has to be updated with custom details.
    It is good that we can code the function module 'Save_text' in update task in the exit provided for VL01n - Delivery creation right.
    At saving of delivery, we can use the set, get parameters to get the delivery document no and pass it to the Function module 'Save_text' in update task. Hope this will work.
    Correct me if i am wrong.
    Highly appreciate your valuable responses.
    Thanks,
    Jaffer Ali.S

    Hi,
    You are going in a correct method proceed. Its been good to know whether you are going correct or wrong.
    Cheers!!
    VEnk@

  • I can't seem to connect to the iPhone software update server, why would that be?

    I can't seem to connect to the iPhone software update server, why would this be?

    In the course of your troubleshooting to date, have you worked through the following document?
    iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server

  • To use a router to set up a local wifi network. Would this system be suitable to use with an Apple TV or is internet access require

    I'm considering using Apple TV to connect to a projector in a church hall which does not have any internet access. I intend to use a router to set up a local wifi network. Would this system be suitable to use with an Apple TV or is internet access require

    Welcome to the Apple Community.
    Yes, that will be fine providing you don't want to play any protected content.

  • APPLE SAID MY PHONE NEEDED A SETTING UPDATE DID THIS TODAY AND NOW i'VE LOST INTERNET CONNECTION WITH CARIER WHAT DO i DO TO FIX ?

    This morning woke up and my ipone 4 said it needed a setting update and to plug the mains cable in as it would use a lot of power to do the update ? anyway it updated and thought nothing of it... came to use safari in afternoon and it come up with "you are not subscirbed to a cellular data service" my phone is on contract my hubbys phone has done the same thing ... we are both on contract but with different suppliers/carriers..  so it has to be a Apple problem ? whats the fix please ??

    If you are unable to get 3g/4g service than that is an issue with your phone carrier not apple problem, they don't do those service.  have you contacted your phone carrier?  Have you check in settings to see if your cellular data is turned on?

  • TS4268 I can't activate FaceTime & iMessage on my iPad ... Would this have anything to do with already having these set up on my iPhone with the same apple ID?

    I can't activate FaceTime &amp; iMessage on my iPad ... Would this have anything to do with already having these set up on my iPhone with the same apple ID?

    As long as you're logged into the same AppleID on both devices, this is not a problem.  It's only a problem if you're logged into a different AppleID and then try to associate FaceTime with an email that tied to the other AppleID.

  • Hello! I bought an iPod touch 3rd gen at a pawn shop and when i tried to set it up, it would not connect to my iTunes OR Wifi so that I could finish set up. Is there anything I can do to fix this before i take it back and get my money back?

    Hello! I bought an iPod touch 3rd gen at a pawn shop and when i tried to set it up, it would not connect to my iTunes OR Wifi so that I could finish set up. Is there anything I can do to fix this before i take it back and get my money back?

    Take it back for a refund.

Maybe you are looking for