Why LOOP AT XVBAP is triggering multiple times in user-exit in 1 item order

Hi,
Just curious,
I put the break point at LOOP AT XVBAP in user-exit of MV45A include of sales order transaction, then I created a sales order with ONLY one item(10) of 1 quantity (meaning, ONLY one schedule line)....then, Why my break-point(LOOP AT XVBAP) is triggering multiple times? even though there is ONLY one item/1 quantity? is supposed to trigger only 1 time(one iteration) right?
why mupltiple iterations are happening?
thank you

Hello ,
yeah thats true , that exit programs will called several types  by SAP itself , so u need to find right FORM exits for ur requirements.
regards
Prabhu

Similar Messages

  • Photoshop CC 2014 Extension - CEP Event callback is triggered multiple times per single event

    Trying to make my extensions listen for bunch of events and it's turning out to be a real pain in the ***.
    I'm hoping there's someone here who has a bit more experience playing around with these.
    I used the example code from here ( Page 43 ): http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/creativesuite/pdfs/CC14_Extension_S DK.pdf
    I've modified the code just a little. I removed some unnecessary things from it. I also added a counter, to try to visualize the issue.
    Every time I pasted the code here, the global variable seemed to duplicate. So, eeeeh...  the example code can be found here.
    The problem is:
    I close one document to trigger the event, but for some reason the callback seems to run multiple times.
    Even better, it doesn't seem to be super consistent about it. Sometimes it repeats only couple of times and sometimes it repeats 160 times.
    It seems like every time the extension panel is reopened, it comes up with a new number.
    Currently, if I close a document, it seems to trigger the callback 15 times
    Since this is screenshot, you'll have to take my word for it. I only closed a single document and the code ran 15 times.
    Am I doing something wrong by any chance?
    edit:
    I believe I just found out the reason and a way to recreate the issue.
    I've occasionally tested the extension by closing and opening the panel, which seems to have caused the issue.
    It looks like every time I close and then open the panel, it... adds one more run time to the stack.
    - Refreshing the panel from chrome doesn't seem to affect it.
    When I restart photoshop, it resets. So after the very first opening of the panel, the event triggers the callback only once.
    I forgot to mention that the host application events work just fine without these issues.
    In fact, I tried to use documentAfterActivate before, but as far as I could find, there is no way to kind of filter out specific events within host application events.
    For instance, I can't specify something different to happen when a new document is opened.
    As very much a side note:
    documentAfterActivate has its own side effect due to the way photoshop works.
    It is triggered when you:
    Create a new document
    Open a new document
    Switch to an open document
    It's the "Switch to an open document" part that makes this event listener also trigger when you close a document.
    Because when you close a document, photoshop switches back to the previous document and that in turn triggers the event listener when it shouldn't, I suppose.
    Of course it doesn't trigger the event when you close the last document as there is no document to switch to at that point.
    ...but this is beyond the scope of the original question.

    I was so tired last night that when I found out the cause of it, I never even thought about unregistering...
    I decided to unregister it when the panel is opened instead.
    This does indeed get rid of the issue.
    Thanks, cbuliarca.
    (function () {
      var csInterface = new CSInterface();
      function init() {
           themeManager.init();
           function registerPhotoshopEvent(in_eventId, register) {
                // Added the next line
                var register = register === "clear" ? "UnRegisterEvent" : "RegisterEvent";
                // Modified the next line
                var event = new CSEvent("com.adobe.Photoshop" + register, "APPLICATION");
                event.extensionId = csInterface.getExtensionID();
                event.appId = csInterface.getApplicationID();
                event.data = in_eventId
                csInterface.dispatchEvent(event);
           var number = 0;
           csInterface.addEventListener("PhotoshopCallback" , function(event) {
                number = number + 1;
                console.log( number );
           var closeEventid = "1131180832"
           // Added the next line
           registerPhotoshopEvent(closeEventid, "clear");
           registerPhotoshopEvent(closeEventid);
      init();

  • Process Chain Triggers Multiple times

    Hi All,
    I have Meta process chain say ZAAA  which has multiple Local Chains example ZBBB , ZCCC and ZDDD. .This Local chain ZCCC trigger multiple times of  in one day . we had a issues today  with deactivation of Transformations and DTP in different levels because of that Local Process chain ZCCC is failed along with other process chains . when I reach to ZCCC started by repeat or repair ,before Local Chain ZCCC finished whole process ,ZCCC triggers second time .
    Now first times  triggered process chain ZCCC is in  yellow , and second time triggered process chain ZCCC gone through all the way to gree ,  and Meta chain showes red.
    what I have do make Meta chain green.
    Regards
    Hari

    Hi Hari,
    I wonder what you mean by below statement:
    one of the sub pc still yellow first time trigger and went to red and second time trigger whole process is green. all Sub PC are green
    For the sub pc mentioned above, you trigger it all over again? Or you repeat/repair the step failed?
    If you trigger it the second times all over again it is a new run and the first run remain fail,ed so the meta chain will never get green, if you want to make the meta chain green, you need to repeat/repair the step failed in first run.
    Regards
    Bill

  • IPhone : webViewDidFinishLoad being triggered multiple times

    In my app I have a web viewer and in my code I do a 'loadRequest' to populate it. I'm trying to determine when the page finishes loading using the 'webViewDidFinishLoad' delegate. For most pages like yahoo, or google, the delegate is only called once when the load is finished. For abcnew.com, the delegate gets triggered 3 times. I do a NSLog() every time my delegate code is entered, so I'm just counting my log entries from the console window.
    I'm wondering why 'webViewDidFinishLoad' is getting called 3 times for abcnews.com but only once for most other sites I try.
    Thanks,
    Tony

    It probably does. I was just trying different pages to see what would happen. That is when I noticed abc.com triggers the delegate three times, yet google.com and yahoo.com only once. I guess I'll have to do some more research to better understand what webViewDidFinishLoad is really doing.

  • PDDocPageLabelDidChange callback is triggered multiple times

    Hello,
    I'm working on a C++ plugin running in Acrobat 8.1.x - we register for the PDDocPageLabelDidChange callback, but whenever a labeling operation is performed (Using the Number Pages... contextual menu), the callback is triggered many times with the same parameters (to/from). Our handler performs a somewhat expensive operation, so we'd like to keep the number of iterations to a minimum, but the fact that we get what appear to be redundant callbacks, the time to process a page labeling operation becomes longer than we'd like.
    Does anybody have an explanation as to why I might see repeated callbacks with the same to/from parameters in PDDocPageLabelDidChange?
    Thanks for any guidance.

    There could be many reasons.  Does the problem still exist in Acrobat 9?
    If the values are indeed equal - then I would just check them against "the last passed values" and don't process again.

  • One user appearing multiple time in Users on System report

    Hi,
    While checking the logging report I found one user is appearing multiple times. Is this the normal behaviour of Hyperion of Is there any setting in Hyperion to display one user only once.
    Also can we control the users the from loging into systme multiple time at a time.
    Thanks,
    Ajaya Kumar

    If multiple people know the username and password they can definitely be shared. This is a violation of your licensiing and is a major reason why most SOX departments require Active Directory linking. For testing purposes I have created native IDs to be shared among people so that I know they are identical.

  • User exit overlooked when Inbound ORDERS is triggered immediately

    If I set the ORDERS Idoc for 'Trigger Immediately' in WE20, the user exit EXIT_SAPLVEDA_011 is overlooked but when I set it up for 'Trigger by background process', the user exit is passed through.
    does anyone have an idea why this could be happening?
    I cannot put the stop sign and debug, since the Idoc comes via RFC, and thus it is impossible to debug in case of 'Trigger Immediately'.

    Hi,
    the exit function is called at the end of processing FM 'IDOC_INPUT_ORDERS'. There is definitely no difference between immediate or delayed background processing. Your question could be answered if we know the coding of include ZXVEDU13. If it is used for the designed purpose, it should do nothing if the error table DERRTAB is empty.
    You can code an endless loop in the include:
    data wait type c value 'X'.
    while wait is not initial.
    endwhile.
    Then process your Idoc. In SM50 you can send the process to debug mode. Clear field WAIT in debugger and step through to see whats happening and why.
    Reards,
    Clemens

  • Output type triggering multiple times.

    Hello All,
    I have a PO output type configured with multiple issuing setup and it shoots mail to my inbox with PO details.
    My concern is: I could see the output type triggered only 2 times,but i have received more than 5 mails in my Inbox.
    How is this happening? I checked with the spool history n all. i couldn't find any loop holes.
    Do anyone have any suggestions of where can i check further.
    Thanks
    Dhilipan

    Hi,
    Goto SOST - Transmission Request to see how many times message has been triggered. Hope it will give u some idea.
    Regards,
    Ram

  • EEM - same event is triggered multiple times in a short period

    I have a applet that will monitor the routing flapping..
    event manager applet route-flag
    event routing network 10.1.2.0/24 type modify
    action .....
    I like to have a hold down timer feature of this EEM appet. Let's say the event is triggered immediately when there is one change to the 10.1.2.0/24 network, but do not trigger it again if there is another change to within 60 sec. So what I want is the action will only run once no matter how many changes within 60sec.
    How can I achive this?
    Thanks in advance.

    There isn't a native feature to do this.  You could do something using multiple applets like:
    event manager environment q "
    event manager applet route-flag
    event routing network 10.1.2.0/24 type modify
    action 010 cli command "enable"
    action 011 cli command "config t"
    action 012 cli command "event manager applet route-flag"
    action 013 cli command "event none"
    action 014 cli command "event manager applet reenable-route-flag"
    action 015 cli command "event timer countdown time 60"
    action 016 cli command "action 1.0 cli command enable"
    action 017 cli command "action 2.0 cli command $q config t$q"
    action 018 cli command "action 3.0 cli command $q event manager applet route-flag$q"
    action 019 cli command "action 4.0 cli command $q event routing network 10.1.2.0/24 type modify$q"
    action 020 cli command "action 5.0 cli command $q no event manager applet reenable-route-flag$q"
    action 021 cli command "end"

  • Why is my data usage increasing multiple times a day when I'm on wi-fi?

    For both myself on the Samsung Galaxy S4 and my girlfriend on an iPhone 5c, both of which we got just a week ago, we see our data usage total increasing several times a day, typically in very small amounts, occasionally larger.  Her increases are about 10x larger than mine overall.  All of this happens when we're each on wi-fi so I wouldn't expect to see these increases then.  Any idea why this is happening and what I can do to prevent it?  I'm guessing it may be some sort of auto update processing happening in the background, but I don't know that for sure and don't know what else could be causing this.

    After talking to 4 different Verizon reps today, nobody could pinpoint the
    cause of this.  I was mostly just told not to worry about it.  My wifi has
    seemingly been very solid both here and at work; I don't notice dropouts
    when I'm doing other things on it.  But I did disable mobile data on the S4
    and observed that the data usage did not increase any further after I did
    that.  So I guess I'll either use that as my primary mode of operation, and
    just manually reenable it when I know I'll be away from a wifi signal, or
    turn mobile data back on and live with the ongoing hits until it becomes a
    storage issue.  At the rate we're using data thus far, that shouldn't
    happen.
    On Sat, Mar 8, 2014 at 12:37 PM, Verizon Wireless Customer Support <

  • PCIe-6321 & ConfigureChangeDetection C# - Need to "debounce" the detection - event triggered multiple times

    I am working on a C# NIDAQmx application for a hardware configuration that uses a PCIe-6321 to interface with downstream hardware.  There is a DI signal from a manual switch on the downstream hardware that I must monitor for the start/stop signal for my application's data acquisition operations.
    I was having inconsistent results using the ConfigureChangeDetection NIDAQmx functionality.  So I used the ReadDigChan_ChangeDetection sample and using Debug.WriteLine statements have verified that when the switch on the hardware is toggled, multiple ChangeDetected events are thrown before the signal settles into the actual High or Low state.
    Since I am not a hardware guru, I consulted another engineer, and was told that this is common with switches, and the signal and/or change detection needs to be "debounced". 
    Can this be done purely through additional configuration of the NIDAQmx DI task?  I saw properties for digital filtering, but don't understand their use.  I looked at the ReadDigChan_ChangeDetection_DigFilter sample, but it seems to imply that some other DI needs to be connected on the card to be used as the filter, which I don't have.  Only one DI is coming from the downstream hardware.
    Any help and/or advice will be greatly appreciated.

    I believe I have found the solution.  By searching the forums I came across a couple of posts that pointed to this article
    http://digital.ni.com/public.nsf/allkb/220083B08217CFD686257131007E5D2C?OpenDocument
    So i started playing with the corresponding properties in the C# task, and it looks like I may have to only set the following properties:
                    myTask.DIChannels[0].DigitalFilterEnable = true;
                    myTask.DIChannels[0].DigitalFilterMinimumPulseWidth = 10.240000e-6;
    According to error messages, the DigitalFilterMinimumPulseWidth for the PCIe-6321 can only be set to specific values.
    Using this in the ReadDidChan_ChangeDetection_Events sample appears to be successfully debouncing the ChangeDetection events to only 1 per physical switch toggle.
    If this is not the approach I should be using, please advise otherwise.

  • How to call BADI Triggering Multiple Times

    Hi ,
        I got one requirement of Duplicate check for that i implemeted one BADI  in that i called Duplicat check function Module also so when i entered first, last and email id it is giving the message as Data is saved. when i entered the same data is entered it gives the message as Account is Duplicate and it wont save at that time when i modified the data then it wants to save that means it wants to call the duplicate check badi once again but thing is it wont save again it is giving the message as duplicate so for each change the badi wants to trigger agin and again but it wont so how can i do this one pls tell me which badi is suitable
    Regards
    Ravi

    I think you can do it by using the same BADI. you can just create a static data to keep the first, last and email id. If the first, last and email id are the same skip the duplication check.
    for examples:
      Method badi.........
        STATICS static_name TYPE name VALUE 10.
        IF static_name is initial.
          static_name = im_name.
          perform duplicate_check.....
        ELSE.
          if static_name ne im_name.
            perform duplicate_check.....
          endif.
        ENDIF.
      Endmethod
    Cheers,
    Chaiphon

  • Why do I have to log multiple times when checking available downloads from iTunes?

    It's been going on for some time now.
    I'm finally getting around to asking.
    Every SINGLE time I download an app update, or purchase something, iTunes makes me log in with my password 2, 3, sometimes 4 times in a row.
    All the while, what I purchased/updated is downloading to my Mac.
    I am not entering my password incorrectly.
    I am already logged in to the iTunes store.
    What can I do to make it stop?
    It's annoying!
    Thanks.

    Make sure you are signed into the iTunes Store with the correct username and password, see this for more info -> iOS: Changing the signed-in iTunes Store Apple ID account

  • Why does the same genre appear multiple times in my iPhone 6 music library?

    I am currently running on iOS8. All software on my iPhone 6 is up to date. I have tried restarting with no change. There are many instances that I see online of people who are having this same problem, only it applies to specific music albums. Not an entire genre. Does anyone have any idea of what I can do to fix this? My last ditch effort will probably be a factory reset.

    I have the same situation.  It seems to happen with the first two or three genre's.  Even manually created ones that I've made.  It also seems to be related to having a mixture of song's under that genre that are either uploaded  (from a CD) and downloaded from iTunes.
    I had one artist that all albums were upload from a CD except one.  If I add all the CD albums the genre only appears once.  As soon as I add the album from iTunes the genre appears twice.  And vice-versa.  The particular genre is one that I made, but it happens with predefined iTunes genre's as well.
    Please fix it apple.

  • Triggering PO pricing through user-exit / Badi

    Hi Guys,
    I have a requirement in which I need to re-trigger the PO pricing when a PO change takes place. The kind of change happening in the PO via Bapi_PO_change (VAS data on AFS system) in my requirement does not re-trigger the PO pricing automatically. So though changed happen in the PO, the PO item level conditions are still showing older values, unless someone do a manual update by clicking the Update Pricing Button.
    All I need to do is, once the Bapi_PO_change is changing the data in the PO, the pricing should be updated automatically.
    I want to do this programmatically.
    Is this possible?
    Regards,
    Anid

    Hi
    Try to do a SUBMIT for the report RMEBEIN1 (tcode MEI1) or call it with a job. Run report RMEBEIN1 and check its documentation (info icon).
    I hope this helps you
    Regards
    Eduardo

Maybe you are looking for

  • Bought app. Doesn't work in OS X. Want money back.

    I was just looking for some way to get Israeli radio stations in iTunes on my MacBook or PPC, so I bought an app in the iTunes store after Googling "Israel radio iTunes OS X" Well, now I have an app in iTunes that refuses to play. I assume that's bec

  • Having problems compressing web movie, quality doesn't look good, PLZ HELP

    Hi guys, I used to be able to create a sharp/ crisp clean quicktime 7 web streaming movie in compressor 3 with it's default settings but lately it appears to be compressing a very poor quality QT7 web streaming movie. I have not changed any settings

  • Export map to Excel dates issue

    Hi, I created an export map exporting several dates fields. the problem is that the format is not the same: Finish date format was: dd-mm-yy Finish1 date format was: mm-dd-yy in MSP itself I see both formats the same (dd-mm-yy) Please help. Thank you

  • Extenal Hard Drives and ipods

    Hey, Lately my ibook is not recognizeing my ipod, my wifes ipod or my two external hard drives...the problems started when I was trying to share a external hard drive with a PC (instead of a nice closed mac system). Anyway I get power from my USB and

  • Scan large image with small image.

    Is it possible to take a large and a small image, and check if the small image is somewhere in the large image. Perhaps with some sort of precision so it doesn't have to match 100 %.