PO Update in New Task

Hello Experts,
My requirement is, when the goods receipt is made via MIGO, I have written some code to Update the PO in the exit <b>EXIT_SAPLMBMB_001</b>
Inside the exit I have called a FM like this,
          CALL FUNCTION 'Z48M_MIGO_UPDPO' STARTING NEW TASK 'UPDPO'
            TABLES
              IT_EKKO       = LT_EKKO
              IT_EKPO       = LT_EKPO.
Inside this Fm I am Calling the BAPI like this
      CALL FUNCTION 'BAPI_PO_CHANGE'
           EXPORTING
                PURCHASEORDER = IT_EKPO-EBELN
           TABLES
                RETURN        = LT_RETURN
                POITEM        = LT_POS
                POITEMX       = LT_POSX.
Always I am getting the message that the user is processing the purchase order.
So I have created a delay of 5 seconds and call the BAPI for 10 times.
In all the 10 call BAPI is returning the same message.
If idea to overcome this.
Thanks in Advance.
Vasanth

Hi,
Try using the business transaction event..
APO-PlugIn: Goods receipt for purchase order
Or try using the business object event..
MKPF->GoodsReceipt.assigned
Thanks,
Naren

Similar Messages

  • I updated the default task.eddmod edd doc to add new elements to my catalog. How do I have the new element appear on FM application?

    After updating the default task.eddmod.edd document, I have:
    Created a dtd from the updated edd.
    Opened Structure Tools > Structure Application Designer. Selected existing application (dita_1.2_task), selected my updated edd, dtd, and task.template, and saved it.
    The new elements I created in the edd appear in my application now.
    Do I need to create a dtd and update the structure application designer every time I update my edds?

    It looks like you've got two posts with the same question (in the structured forum) .. I'm just replying to this one.
    When you update an EDD you must always import that EDD into the associated template. The structured application only references the template, so changing the EDD will have no effect until you import that into the template.
    I have no idea how the Structure Application Designer works, so can't speak to that, but I'm sure the fundamental relationship of EDD to template still applies. If your EDD changes affect the model itself (adding/removing elements or attributes), you'll need to modify the associated DTD as well. Keep in mind that you can't just change the DITA DTDs and expect the result to be DITA compliant. There are rules about how to make these changes by "specializing" the model. If you change the model it may work for you in FM, but it may not work when you try to process or edit with other DITA-compliant tools.
    One other thing to keep in mind is that if your change is something that you'd expect to be available in other topic types (other than "task"), you'll need to make the same edits to the other topic structure applications.
    Cheers,
    ...scott

  • Starting new task inside an Update Task

    Hi guys,
    I need an expert opinion for a problem I'm facing at the moment.
    The requirement is this: I need to trigger a function module during the update task of a material document.
    This function module however should not slow down the posting of the document, so it must not be in the same LUW, but in a separate task.
    My question is: does it work to call a function module with STARTING NEW TASK inside an UPDATE TASK (for example a user exit) and if it does work, what's your opinion on it? Is if safe? Does it come with problems? According to the SAP documentation, STARTING NEW TASK does not trigger a COMMIT when it's called inside an update task.
    The alternative would be to trigger a work flow, but that's much more work.
    Any input is welcome.
    Thanks.

    Hello Janis,
    Just to reiterate this aRFC call triggers an implicit database commit. So the OP is partially correct
    Klaus Kronawetter we have 2 things which we need to consider -
    Asynchronous RFC triggers a database commit in the calling program.
    Any database commits or database rollbacks that occur within the update task cancel the update.
    Simply put, as per SAP documentation, you cannot use aRFC within an update task.
    BR,
    Suhas

  • Starting new task in update task

    Hello,
    Can we start a new task in update function module.
    Say, I want to enhance a standard update function module and call a new function module in it using STARTING NEW TASK,
    is it possible to do so?
    Because, when I try to do this, i am getting update termination
    Please suggest.

    check the bellow link
    [ http://nafran.blogspot.com/2009/06/only-way-of-parallel-or-multi-threading.html|http://nafran.blogspot.com/2009/06/only-way-of-parallel-or-multi-threading.html]

  • I want to update new tasks by using exit QQMA0014 the notification  qm01

    Hi ,
      i want update some mandatory task from custom table while creating or changing the QM notifiction through tcode QM01 or QM02 by using user exit QQMA0014. am trying to update but its giving one popup message "update was terminated received from author '
    Could you pls provide me solution to update the tasks by using exit. Thanks in advance.

    Please specify your requirement clearly. Are you updating a custom table of any fields in the standard table ?

  • Updated to new 2014 cc. In bridge when I go to tools/Photoshop/Image Processor....I get this message "adobe photoshop 2014 CC has quit working" Anyone have a fix for this??

    updated to new 2014 cc. In bridge when I go to tools/Photoshop/Image Processor....I get this message "adobe photoshop 2014 CC has quit working" Anyone have a fix for this??

    I use a  windows 7 pro and have no problem like that from bridge cc when I select a thumbnail then use menu Tools>Photoshop>Image Processor..  I see Adobe Photoshop CC 2014 start up then I see the Image processor dialog and that one file is selected in the bridge I the complete the dialog and click run.  The image files are created. Photoshop remains open after the image files are create with no open documents. I need to click on the bridge in the task bar to bring bridge back into focus.
    What does you system configuration?

  • Enabling Update of New Fields for Provisioning

    hai all,
    I am using Microsoft Active Directory User Management Release 9.1.1.x (MSFT_AD_Base_9.1.1.7.0), i am following this procedure
    http://download.oracle.com/docs/cd/E11223_01/doc.910/e11197/extnd_func.htm#CIHEDAEF
    and I have configured all that is mentioned in the section "Enabling Update of New Fields for Provisioning" but unfortunately when I update the value of the Employee ID it is not reflected in the AD, whereas the Provisioning and Reconciliation is working perfect, the values of Employee ID field are going to the AD from IDM while provisioning new user, as well as being reconciled to IDM if updated in the AD. But if I edit user in IDM and update the employee id it is not going to AD and there is no error shown, its like this adapter is not running at all.
    Can any one tell me what am i missing to make the adapter run and update the values in to the AD. AD is my trusted source.
    Thanks all
    Edited by: 828703 on Jul 5, 2011 6:24 AM

    please let me know if there is anything additional to be done, other then following?
    http://download.oracle.com/docs/cd/E11223_01/doc.910/e11197/extnd_func.htm#CIHEDAEF
    I have followed step by step...... still no luck..... :(
    I need to update the record from the Process form only....
    one more thing that on the process definition in the Offline Flag is set to 0 for the employee update task is this the issue? I have also tried with the offline flag value 1 (check the offline checkbox = true) still no effect.
    thanks......
    Edited by: 828703 on Jul 6, 2011 10:40 PM

  • SOA/BPM/Human Tasks 11g -- add new task participant through Workflow API

    Heya folks. Got a question that's been driving me nuts, hope you can help.
    I have a bunch of Human Tasks in a BPMN process. Each task is pretty simple -- for assignment a single stage only; parallel approval; list of participants is passed in -- via the task payload -- as a comma-delimited list. When the task is initiated it produces a root task, and one child task for each participant. So, say we have participants "fgolfer,atreyvaud" we get three task objects: the "master" or root task and one each for fgolfer and atreyvaud.
    Now what I want to do is add another approver (let's say "gfrog") -- i.e. create a new task for gfrog which is a child of the master task and leaves the tasks for fgolfer and atreyvaud as they are. As far as I can figure, this is NOT a Reassign nor an Ad-Hoc Route. Applying either of those to an existing task effectively removes the existing user from the task and assigns it to the new user.
    On another track, if I programmatically create a new task (with initiateTask() from the Task service, using the values from an existing task), I seem to get a NEW master task with attendant child tasks, while leaving the existing master task and children.
    Make sense? Neither of these outcomes is what I want.
    Seems like this should be pretty simple but for the life of me I can't figure it out. I could create an FYI task or a todo task or a subtask but again this isn't what I want -- need to create a task with all the custom outcomes and such.

    In case folks are playing along at home, I've yet to find a solution for this. Because I need to move forward with my project, I've decided I can't do it through the Workflow API and I'm taking a different route -- basically, triggering a custom task outcome which returns to the same Human Task in the BPMN flow, thus starting the task again. Before doing that I update the task's payload, which contains the task assignees.
    I'm not happy with this, it seems like a nasty hack to overcome a limitation with the Workflow API.
    Understand, though, I'm not saying this is impossible through the Workflow API, just that I haven't found a way to do it. I've spent 2-3 person weeks on this and it's time to move on.

  • CSOM: Update the IsLockedByManager task field

    Hi,
    I have a request from a Customer: he need to automatically Lock Tasks for Updates, depending on some conditions (mainly based on the "age" of te task. The Customer is hosted in Project Online.
    My idea was to create a task boolean field, with a formula:
    true if the task has to be locked
    false otherwize
    A daily batch written as a C# application will run everynight, and set the IsLockByManager field to true, for the selected task.
    I've written a first proto, and it does not work: it seems that this field cannot updated, even if it is writtable. I tried to update some other tasks field (like IsManual, or IsActive), and for those fields, it works.
    Is this behaviour normal ? Does anybody there already experienced this problem ? I enclose below a part of my code. Thank you for your help.
    Sylvain
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using Microsoft.ProjectServer.Client;
    using Microsoft.SharePoint.Client;
    //using NeosSDI.ProjectOnline.Business;
    namespace NeosSDI.ProjectOnline.CSOM
    public class LockTasks
    static void Main(string[] args)
    ConsoleColor initialColor = Console.ForegroundColor;
    try
    // First, very simple: list Projects, and their tasks
    var projectContext = ProjectCSOMManager.ReadProjects();
    ProjectCSOMManager.LockNonActiveTasks(projectContext.Projects);
    catch (Exception ex)
    Console.WriteLine("Press a key...");
    Console.ReadLine();
    public static ProjectContext ReadProjects()
    try
    projContext = new ProjectContext(PwaPath);
    projContext.ExecutingWebRequest += ClaimsHelper.clientContext_ExecutingWebRequest;
    // Use IncludeWithDefaultProperties to force CSOM to load the Tasks collection, otherwize we have a (very) lazy loading
    // Careful: the Load method does not perform the Load ! It prepare the context before the ExecuteQuery is run.
    projContext.Load(projContext.Projects,
    c => c.Where(p => p.Name == "Project 1").IncludeWithDefaultProperties(pr => pr.StartDate, pr => pr.FinishDate, pr => pr.Tasks));//.Where(t=>t.Name=="Project 2 - T1")));
    // Actual execution of the Load - AFter this method, the Projects collection contains data, and the properties which are specified below.
    projContext.ExecuteQuery();
    catch (Exception ex)
    throw ex;
    return projContext;
    public static void LockNonActiveTasks(ProjectCollection projects)
    foreach (var p in projects)
    if (!p.IsCheckedOut)
    DraftProject dp = p.CheckOut();
    projContext.Load(dp.Tasks, dt => dt.IncludeWithDefaultProperties(lt => lt.Name));
    projContext.ExecuteQuery();
    foreach (var t in dp.Tasks)
    // With IsActive, it works
    // t.IsActive = false;
    // With IsLockedByManager, it doesn't work
    t.IsLockedByManager = true;
    // Récup le job qui sort d'Update
    var job = dp.Update();
    var js = projContext.WaitForQueue(job, 10);
    job = dp.Publish(true);
    js = projContext.WaitForQueue(job, 10);
    projContext.ExecuteQuery();

    Hi,
    To give an update of this question, I managed this problem differently: the
    IsLockedByManager field has really no effect on the task. For DraftTask, this field is writtable, but the change is not taken into account, and not saved (bug or undiscovered function)...
    Instead of a batch, I created a macro in Project Pro: on the Save event, the macro tests the status of a custom field.
    Depending of this field, I update the Publish field of the task. The macro is integrated in the Entreprise Global, to make its deployment easy for all the users.
    This macro is based on a post at this adress: thanks to its author :)
    http://www.applepark.co.uk/automatically-setting-the-task-publish-field-to-no/
    Private Sub Project_BeforeSave(ByVal pj As Project)
    SetPublishField
    End Sub
    Sub SetPublishField()
    Dim Temp As Long
    Dim Tsk As Task
    Dim TaskField As Long
    Dim IsTaskToLock As String
    For Each Tsk In ActiveProject.Tasks
    ' check to see if a task exists
    If Not Tsk Is Nothing Then
    ' check to see if the task is external or a summary
    If Not (Tsk.ExternalTask Or Tsk.Summary) Then
    TaskField = FieldNameToFieldConstant("MY LOCK FIELD", pjTask)
    IsTaskToLock = Tsk.GetField(TaskField)
    If IsTaskToLock = "Oui" Then
    Tsk.IsPublished = False
    Else
    Tsk.IsPublished = True
    End If
    End If
    End If
    Next Tsk
    End Sub

  • New Task Bar Control for Yahoo! Music Engi

    Thought those of you who use Yahoo! Music Engine would like to check out a free task
    bar control for the player. I found this buried in the Yahoo Forums from early July.
    I was trying to find a remote that wouldn't shut down everytime I clicked my mouse or
    changed a page in Windows. Hope some of you find it useful.
    luvmyrescuedogs
    <FONT face="Courier New">"Have a look at the XP Taskbar Remote at <FONT color=#247cd4 size=5>http://www.indolis.com/Products/YMETaskbar It is free and allows you to control YME
    <FONT face="Courier New">from <FONT face="Courier New">the Taskbar."

    This is just an update on the Task Bar Control. Whenever I had shut down my Yahoo! Music Engine,
    after installation of the Task Bar Control, two errors would show.
    Today, Yahoo announced a new mandatory upgrade on the Yahoo Music Engine. The new upgrade
    went smoothly and now shows no errors when I shut down the application.
    Life is good again.
    luvmyrescuedogs

  • User cannot add new task in a project

    Hi everyone,
    I've got a issue with Project Server 2013.
    The situation : I create a new project then, I add some resources (which are users of the AD) and I don't add new task in this project because  I want that the user creates all the task.
    But when he's in the "Task" page (PWA/Tasks.aspx) and he want to add a new task (ribbon TASKS -> Add a row -> Add a new Task), the new project is not present in the drop down "Project" , if I want that the project
    appears, I need to add a task with the user as a ressource.
    Is there any way to automatically add the project in this list without add a task for the specific resource ?
    Thanks,
    Patmol

    Hi Patmol6,
    Please note that PWA/My task is NOT INTENDED to create tasks and assign them to resources. The process to create a project plan at project initiation and to assign resources to tasks must be done:
    either in Ms Project Pro connected to your server and using enterprise resources,
    or with PWA: open your project from the project center, then navigate to the schedule page, edit the schedule, create the build team, create tasks and assign resources on tasks.
    "My task" page in PWA is meant to make tasks updates by team members.
    Hope it clarifies the process.
    Guillaume Rouyre - MBA, MCP, MCTS

  • Call function starting new task:

    I am trying to create a program in which few database update are mentioned.
    after database updates , I am calling a function module using starting new task
    in which I want to commit database updates inside in function module.
    Problem is I want to commit only database updates if function module , not of main program. For that I tried using COMMIT WORK in function module and rollback statement after calling FM.  But it is not working.COMMIT statement in FM also commiting database updates of main program also that is not required.
    Can anybody help me in solving this problem.
    Thanks
    Ruchika

    I think this may be caused by an implicit database commit performed by the system at the moment of calling a fm with "starting new task".
    Try the following test:
    - Put "rollback work" statement inside your fm which you call "starting new task" (instead of "commit") and check if the updates performed by the code executed before the call to this fm are stored in db - inspite of the rollback. If they are (as I suppose) this means that the commit effect you observe is not due to the "commit work"  statement executed inside your fm but due to an implicit commit issued automatically at the time of calling the fm. If this is the case the solution could be placing the code which you now execute before "call function...starting new task" into a seperate fm called "in update task" - then the final commit or rollback statement in your main program should have the expected effect.
    regards

  • Call function creatung new task

    Hi friends,
    I am running f110 in background...I have a Z function module which runs in update task....Insoide the z function module i have another rfc enabled function module where the updating of the docs is taking place....i am not able to get into the code of third fm through debugging...I have covered max scenarios of debugiing session external update system but none is fruitfull.
    also,i have put infinite loop to see in sm50 ...there also i dont have rights...
    could somebody tell me ow i get into the code through debugging
    kanishak

    Hi Kanishak,
    if you call the function creating NEW TASK, you won't get to debugger easily: The function is enqueued in a TRFC queue which you could stop - but as you are not allowed SM50 you won't be allowed TRFC  queue administration.
    If you are allowed to use transaction SAAB, you can create and activate a checkpoint group. Use statement LOG-POINT to record contents of some program fields. Then you can see what is happening in background of background.
    Regards,
    Clemens

  • Call function ... starting new task endless

    Hi to all,
    this post is ideally the continious of my previous post
    "how to attach custom code after invoice create/modification".
    Here the problem.
    In the BADI of the invoice document i call a custom function module (F1) with the addition "in update task". This to ensure that the code inside is executed only if the commit is triggrered.
    In this function module, i call another custom function module (F2), with the addition "starting new task".
    This function module (F2) contains a batch that waits 10 seconds (to ensure the "standard" modify) and then modify the invoice document with my custom data (by a call transaction).
    The problem is that this new task is .... endless !!
    I watch it writing a log file after the call transaction. Using AL11, i watched that every 10 second, the file is updated.
    Seems that this new task never ends: it call the trasaction, it writes the log file and the start again.
    The only way i have to stop that, is modify manually the same invoice document with VF02 trx.
    At exit, i don't save data (otherwise the endless cycle begins again) and then i watch that the log file stops to be updated.
    This task must be executed just one time. I've already try to put "exit" instruction at the end of the function module, but it doesen't work, the task start again and again.
    How i can solve this problem?
    Usefull solutions/hints/ideas etc will be sure rewarded (as usually).
    Thx a lot
    Andrea

    >
    Vinay parakala wrote:
    > ...But it didnt work.
    Moderator message - Give more information please in a new thread - post locked

  • Call function starting new task - Issue with memory variables

    Hi All,
      From our OIL application we have a call to the core delivery update FM WS_DELIVERY_UPDATE starting new task.Before the call we are exporting a variable to memory and deep inside the FM we have an oil routine which checks the value of this variable to decide on further flow. But since the FM is called in new task the variable is not available here.
    We cannot use the SET GET parameter also as this value can be different for each session.
    Can anyone suggest how to set and get the parameter value in this flow.
    With regards,
    Usha

    Hi again,
    To check whether the FM is running in new task or not - This is what I have tried (this may not be the best way), but it works fine.
    1. The variable to check inside the called FM is SY-CPROG.
    2. This variable will have value.
    RS_TESTFRAME_CALL - If being checked from se37
    Z / Y program                - if called from the original z / y program (WITHOUT new task).
    SAPMSSY1  - if being called using NEW TASK (and no debugging)
    hope this helps.
    Regards,
    Amit Mittal.

Maybe you are looking for