Why is EXIT_SAPMM06E_017 triggered more done once por a PO line?

Hi experts!!
We have some code placed in EXIT_SAPMM06E_017 within a project. This code reads documents associated to the material in the PO line and writtes ( associates)  these documents to the PO line. We wanted this exit to trigger only once when a PO line is completed. It used to trigger just once but now it is being triggered for each change in the PO line. What could be happenning?
Is there another user exit more suitable to transfer material documents to PO line ?
Thanks in advance.

Customer-exit EXIT_SAPMM06E_017 (good old time) or method PROCESS_ITEM of BAdI ME_PROCESS_PO_CUST (more up-to-date) may and will both be executed multiple times, and always re-executed when some data is changed (SAP did even implement a check to stop recursive call to prohibit infinite loops once  a number of call are executed (I forgot the note and the number of execution, but does not matter)
So If you want to process only one, two solutions (depends also on WHAT you intend to do)
Memorize a flag "line already processed" (instance attribute of implementing class or STATICS internal table in customer-exit)
Only execute once (e.g. method POST of BAdI if you don't change the item but trigger another task, e.g. IN BACKGROUN D TASK), method CHECK is also usually executed only once (but user may call it manually and if error raised in it it will trigger another execution when error corrected)
NB: But actually, you should also execute your code (and some deletion) when user change the material reference ?
Regards,
Raymond

Similar Messages

  • Terminating Event Getting triggered more than once

    Hi All,
    I am facing a very peculiar problem in PR release workflow(item wise release, business object BUS2009).
    One of the requirements of the workflow is to send a mail to PR initiator once it is rejected by any of the approvers(4, in my case). The event associated with the cancellation of the workflow is REJECTION_START.
    The problem is that this event is being triggered more than once. One thing that i have observed is that if eg. second level of approver cancels it, the event is triggered twice. Likewise if third level of approver cancels it, it is being triggered thrice. Which leads to sending of 2 and 3 mails respectively to the PR initiators mailbox.
    Why is this happening? Ideally, only one event should have been triggered, and the triggering of the event should have been independent of PR approver's level. I am at my wits end regarding this.
    Any suggestions in this regard will be highly appreciated
    Regards
    Varsha Agarwal.

    If you check for 2nd level rejjection two release Code is associated so it triggers 2 times and same for 3rd level approval.
    I think you have to put some sort of filter using FM SAP_WAPI_WORKITEM_OBJECT
    in the attribute portion of yopur custom BO.
    The attribjute will check this FM and if it has entries that means already a Workflow has been triggered it should set the flag as X.
    Make use of this attribute in defining the start condition of this task thru
    SWB_COND.
    Thanks
    Arghadip

  • Why do holidays appear more than once?

    Why do holidays appear more than once?

    I have the new iPad and iPhone 5
    both run on ios 6
    I have multiple holiday calendars on both devices
    Step 1: delete your gmail account and calendars go away
    Step 2: DELETE your icloud account under setting on iphone and select also delete on iphone
    Step 3: add Gmail and Calendar by following directions below (you will NOT get multiple google calendars)
    Step 4: go back under setting and sign up for icloud again and turn everythin you want on, ON, even Calendar
    You are done, no multiple calendars
    **I struggled for a week with this issue and researched online and tried other methods such as unchecking default Birthday icloud calendar, hard reset, uncheck holidays in Gmail, on iphone, none of it worked.....what worked were Steps 1-4 above!!!!)
    My iphone 5 is perfect now..no 20 of the same holidays in one day!!!
    By the way if you want multiple Google calendars to show up do it this way:
    First of you are a gmail user, do NOT use the default gmail sync option if you want ALL of your calendars from Google to show up, multiple colors etc); use MS Exchange, server address is m.google.com
    Then go to m.google.com/sync to sync your iphone calendar ON YOUR IPHONE BROSWER, you check mark the calendars you want
    Presto, your Google calendars -- all of them -- show up

  • Why would aperture load more than once?

    I understand that when I first load my RAW photos into Aperture it needs to generate a preview and so that's why it slows down and shows me "loading...". If I want to bypass this I can use quick preview mode. That's how I understood it so far. But I don't understand why it would need to load again at a later time? If I browse elsewhere and come back to this project, it'll start loading again. Does Aperture for some reason deletes the preview?

    1) How do I force aperture to generate preview for everything, and not one by one. I'd rather go away and let the computer do its thing for a while than get disturbed every time I hop to the next photo.
    You can select all images in the Browser and use the command "Photos > Update/Generate Previews" (Update will turn into "Generate", if hold down the ⌥ alt/options key). This way you can generate the previews over night.
    2) Also this still doesn't explain why it needs to be done more than once? Why would it generate the preview again if I haven't changed any adjustments etc?
    It will only keep and store the preview permanently, if you have enabled the sharing of previews in the "Preferences > Preview" tab. If you do not enable this, Aperture will not store the previews, to save space.

  • Why does it say More. . . in email address line when there is only one email address?

    When receiving an email, why does it say 'More. . .' in the To email address line when there is only one email address? It looks like there is more than one recipient when there is actually just one. 

    Have you rebooted since the deletions.  That will empty a number of caches and may restore the freed up space. Also open the iPhoto Library package with the Finder as shown in this screenshot
    locate the iPod Photo Cache folder and delete its contents.  Make no other changes to the contents of the iPHoto LIbrary Package.
    OT

  • Regarding activation job triggering more than once

    hi all,
    i have designed a process chain in which there are 5 info packages (same info source) loading into same ods.I have then clubbed these 5 info packages steps in one OR condition.however,there are multiple activations which are triggered i.e. as soon as one of the load is completed one activation job is triggering and similarly it happens with other loads also.
    this multiple triggering of activation causes subsequent processes in the chain to trigger multiple times which is not required.
    is there way that we can trigger this activation only once.
    Please note that OR condition is required and AND cannot be placed in its place.

    HI Parth,
    I think you cannot do away with AND.
    You will have to use it just when the 5 different process complete.
    I am not sure how did you make it but i would suggest to go like this:
    Loading1     
    Loading 2 
    Loading 3
    Loading 4          
    Loading 5
    Then you can have the Activation step. after the loading is completed.
    Do assign points if it helps.
    Do iterate your problem in more descriptive manner if this doesnt helps :).
    Regds,
    Den

  • Why Cant I Space More Than Once?

    Hi Im a noob at DreamWeaver and for some reason it wont let
    me space my words out with more than one space. Is there a way to
    be able to space more? Thanks

    Be aware tht this is definitely NOT a best practice.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "David Powers" <[email protected]> wrote in message
    news:edcbe5$7vt$[email protected]..
    > SirEskimooo wrote:
    >> Hi Im a noob at DreamWeaver and for some reason it
    wont let me space my
    >> words out with more than one space. Is there a way
    to be able to space
    >> more? Thanks
    >
    > That has nothing to do with Dreamweaver, but with the
    way that HTML works.
    > HTML ignores all whitespace between text and replaces it
    with a single
    > space.
    >
    > If you want to insert more than one space between words,
    you need to
    > insert a non-breaking space. The keyboard shortcut is
    Ctrl+Shift+Space.
    > This inserts   in the underlying code.
    >
    > --
    > David Powers
    > Adobe Community Expert
    > Author, "Foundation PHP for Dreamweaver 8" (friends of
    ED)
    >
    http://foundationphp.com/

  • Why same fields appearing more than once in a Table like EKPO , KNA1 ???

    hi ,
    in SAP IDES version u will see :
    In EKPO table : Two fields MATNR and EMATNR having same spec. and
    showing same redundant data in IDES version .
    IN KNA1 table : NAME1 field appears twice ...
    why so ? any utilities / Reason ????

    HI,
    kna1 is customer master table.
    now 1 customer can have 2 names like 1 official and one nick name or 2 persons or brothers who are given only 1 customer no kunnr by their vendor.
    these things are done by seeing all the business scenarios.
    now in table EKPO
    MATNR IS PRODUCT NO
    EMATNR IS MATERIAL NO.
    now there is a difference between product and material.
    a material can be a raw material semi finished or finished good,but a product is always a material which is been purchased through the purchase order from the vendor.
    the matnr is essentially the final stage of the product by the vendor.
    in many cases these contain same data but there are a lot of cases when these things worry.
    if you have accesss to your production system then you can check there.
    thanks
    reward if helpful
    vivekanand

  • Events being triggered more than once

    HI All,
    I am using SAP Business One 2007 A SP:01 PL:07
    I have created a form using SAP Business One UI API Version 2007 A 8.0.When i open the form first time all item events and menu events are working properly..
    When i close the form and open it again all the menu and items events get fired twice.Again i close and reopen the form all Item and Menu events are triggered thrice on a single click.
    Any help to solve this problem will be highly appreciated.
    Warm Regards,
    Prerna

    Hello,
    Maybe You using a global variable for the form. Try to swicth to local variable and use sbo_application.form.GetForm(pval.formtypeex, pval.formtypeCount), or check you application really closes the window (window menü, and see the list of opened forms).
    Try to use EventSpy, which is a part of the SDN tools, you can download from /docs/DOC-8857#section6
    Regards,
    J

  • Why was i charged more than once in one game

    Hello there i was charged 5 times $1.00 and the regular price of the game once 2.99

    Contact iTune Support
    http://www.apple.com/emea/support/itunes/contact.html

  • Why would you need to "zero out" more than once?

    Sorry if this is a dumb question, but I have always wondered why a hard drive would need to be written over more than once for better security?
    If it is writing ALL zeros what is there left to find? I just don't get it.
    Thanks,
    Curious Tom

    Hello! A random write could leave a few bits that might be salvadged while the "zero all data" maps out bad blocks and writes all zeros. Once should be enough. Tom

  • Performance... Why a function column in a view is executed more than once...?

    Why a function column created inside a view is executed more than once when called more than once?
    EXAMPLE:
    create or replace view aux1 as
    date_column,
    any_function(date_column) column1
    from any_table
    create or replace view aux2 as
    column1 c1,
    column1 c2,
    column1 c3
    from aux1
    select * from aux2
    It will execute 3 times the function any_function... logically the value will be the same for all columns...
    I understand why!... are 3 calls... but...
    Why not to create a "small" verification and if the function column was execute replace the second, the third... value? ... instead of execute 3, 4... times...
    tks
    Braga

    Actually, this is more than a performance issue. This is a consistency problem. If the function is NOT deterministic then you may get different values for each call which is clearly not consistent with selecting 3 copies of the same column from a row. Oracle appears to have fixed this in 9i...
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.7.2.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.2.0 - Production
    create view v1 as select dbms_random.value(1,100) r from dual;
    create view v2 as select r r1, r r2 from v1;
    select * from v2;
              R1           R2
              93           74
    Connected to:
    Oracle9i Enterprise Edition Release 9.0.1.3.0 - Production
    With the Partitioning option
    JServer Release 9.0.1.3.0 - Production
    create view v1 as select dbms_random.value(1,100) r from dual;
    create view v2 as select r r1, r r2 from v1;
    select * from v2;
              R1           R2
              78           78Richard

  • Why do i have to pay more than once for my purchased album in itunes, when i download them again?

    why do i have to pay more than once for my purchased album in itunes, when i download them again?

    Probably because you purchased them again, instead of following the proper method for redownloading apps.
    Downloading past purchases from the App Store ... - Support - Apple

  • Why does 1 cd appear more than once on the ipod

    Hi
    I have a Classic ipod and use Windows 7; I have a couple of items which are appearing more than once on the ipod but only once on the laptop

    Hi rhduff,
    Welcome to the Support Communities!
    The following article will help you with this.
    Follow the instructions to manually sync your iPad, and remove any songs that you don't want.
    iTunes 11 for Mac: Set up syncing for iPod, iPhone, or iPad
    http://support.apple.com/kb/PH12113?viewlocale=en_US
    I hope this information helps ....
    Have a great day!
    - Judy

  • Triggering workflow more than once during wait hrs

    Dear All,
    We have implemented two Z (ZAPFI_INV, & ZFI_INV_PARK) workflows for FI
    park invoice. ZFI_INV_PARK is the query workflow and ZAPFI_INV is the
    approval workflow.
    Both workflow start with checking whether if image (i.e. FI invoice) is
    attached with the document or not. If the image is not attached, the
    workflow will wait 3 hrs for the image attachment. If the image gets
    attached within 3 hrs, workflow will move further for approval or query
    process.
    But if the same document is "parked" or "save-as-completed" more than
    once within the waiting time frame of 3 hrs, then more than one
    workflow process starts & resulting same WI more than once in the useru2019s inbox.
    Kindy advice.

    Is it possible to put the Validation at Application Level (rather that doing changes in Workflows as they are working correctly)?
    May be you can log the Invoices in ZTABLE when they are parked and Flag them as marked once processing is complete.
    Regards
    Shital

Maybe you are looking for

  • User defined Field refresh during copying Sales Quotation in SO

    Dear Colleagues, We are doing an implementation of B1 2004A PL14. We have defined a few user defined fields (Select fields) and using them in Quotation, SO and Delivery. Now, when we create a Quotation and select a value from user-defined selection a

  • DVI-D Dual link and DVI-D Single link

    I have here a FPD2185W Gateway 21" monitor that will not connect to my mac via the MBP's DVI port. I sent in the Mac for repair and it was sent back saying "everything is A-OK". Now my question is, are the cables that i am using effecting the functio

  • HardDrive recorder to DVD

    I wanted some feedback on your best way to make a DVD from a Hard Drive Camera. I have the Sony 60 GB HandyCam. It's great. I have many programs to create a DVD and edit them. Some are Quicktime Pro with MPEG 2 converter to 4 then to Streamclip, Capt

  • Image size changes after saving and then reopening

    I'm using CS6. For example I change the image size to a 4X6 and then save it. Then when I open the file it will be 7.5X5. What's the fix? Thanks for your time.

  • 3G iPhone + Dark Knight Digital Copy

    I bought the Dark Knight two disc edition and extracted the Digital Copy into my iTunes Library. I've tried to sync it to my iPhone, but it doesn't seem to want to... I've added it to a playlist as well as checked the box for it in the Video tab. Doe