Calling BAPI_PO_CHANGE in a loop, correct POs after faulty PO erroring out

Hello Gurus!
I have an issue while calling BAPI_PO_CHANGE.
I'm looping on BAPI_PO_CHANGE with Purchase Orders one by one, and adding articles to the existing POs. It works fine if additional articles are correct
The issue is, if one PO returns with error from BAPI_PO_CHANGE, because of say '0' quantity or 'Discontinued' status of an  article, the remaining POs after faulty PO error out too. The remaining POs are correct and update correctly if executed separately.
I'm refreshing all required iTabs and program works fine in case the newly added articles are valid.
I'm calling BAPI_TRANSACTION_COMMIT in case BAPI returns with successful PO change. In case of faulty BAPI returning with error, I've tried using BAPI_TRANSACTION_ROLLBACK. But it doesn't work.
Here is the u2018error messageu2019 log:
Faulty PO:
Error processing PO: 60045904
Instance 60045904 of object type PurchaseOrder could not be changed
Purchase order still contains faulty items
Status "Discontinued" of article 1000182864 does not allow external procurement
Enter rate CAD / rate type M for 07/15/2011 in the system settings
Correct PO but gets erroru2019d out too:
Error processing PO: 60045909
Instance 60045909 of object type PurchaseOrder could not be changed
Enter rate CAD / rate type M for 07/15/2011 in the system settings
I'd appreciate any help.
Thank you,
Farooq

Hello Anuradha,
yes, I used the BAPI Commit command but it did not work.
Kind regards,
Erkan

Similar Messages

  • Calling the Java Method in PL/SQL Java Stored procedure errors out

    Hi,
    I could not find a suitable thread to post my PL/SQL question so iam posting it here.........
    I have written a java class by name XYZ which has a method ABC for which there are 9 arguements being passed and its a VOID method.
    This java class has been loaded into ORACLE using DBMS_JAVA.LOADJAVA pkg, Now this class is being called in the oracle as a JAVA Stored procedure...... When ever im trying to call the procedure it throws the following error
    ORA-29531: no method
    *Cause:    An attempt was made to execute a non-existent method in a
    Java class.
    *Action:   Adjust the call or create the specified method.
    The code snippet as follows
    JAVA CODE:
    Class xyz
    public static void Abc (String hostName,
    int port,
    String serviceURL,
    String soapAction,
    int timeOut,
    String wsUser,
    String wsPasWd,
    String keyStore,
    String keyStorePasWd)
    //method implementation
    JAVA STORED PROCEDURE:
    create OR REPLACE procedure ABC_JAVA_SP_CALL
    (p_hostname in varchar2, p_port in number, p_serviceurl in varchar2, p_soapaction in varchar2, p_timeout in number, p_wsuser in varchar2, p_wspasswd in varchar2, p_ks_path in varchar2, p_ks_passwd in varchar2)
    as
    language java
    name 'xyz.Abc(java.lang.String, int, java.lang.String, java.lang.String, int, java.lang.String, java.lang.String, java.lang.String, java.lang.String)';
    When i try to call
    declare
    p_hostname varchar2(100);
    p_port number;
    p_serviceurl varchar2(100);
    p_soapaction varchar2(100);
    p_timeout number;
    p_wsuser varchar2(100);
    p_wspasswd varchar2(100);
    p_ks_path varchar2(100);
    p_ks_passwd varchar2(100);
    begin
    //SP which returns the values for the required parameters.
    comppkg.getvcsinfo(
    p_hostname,
    p_port ,
    p_serviceurl,
    p_soapaction,
    p_timeout,
    p_wsuser,
    p_wspasswd,
    p_ks_path,
    p_ks_passwd
    Layer7_icengc_ws_tes(p_hostname,
    p_port ,
    p_serviceurl,
    p_soapaction,
    p_timeout,
    p_wsuser,
    p_wspasswd,
    p_ks_path,
    p_ks_passwd);
    end;
    This thing ends up with
    29531. 00000 - "no method %s in class %s"
    *Cause:    An attempt was made to execute a non-existent method in a
    Java class.
    *Action:   Adjust the call or create the specified method.
    Im not understanding what wrong am i doing
    pls help
    Edited by: madhusudan on Feb 12, 2013 8:07 PM

    Hello,
    there is the forum {forum:id=65} for questions about using Java within Oracle.
    Regards
    Marcus
    Edited by: Marwim on 13.02.2013 07:56
    I could not find a suitable thread to post my PL/SQL question so iam posting it here.........You got the hint to the correct forum alread in another thread {message:id=10837976}
    And if you think this is not related to Java but PL/SQL, then you should ask in {forum:id=75}

  • Uploading a corrected calendar after fixing it

    After uploading my calendar, I printed some of the photos and discovered resolution problems as well as scratches on a photo.  I went back and cleaned up the problem, but I can't upload the new photos and or the corrected calendar.

    Want to explain? Or shall we try to read your mind?
    After uploading my calendar,
    What exactly does this mean? Have you already ordered it? if so and if it is bad you have just 90 minutes to cancel it.
    why can't you "upload the new photos" and where can you not "upload" them to - likewise why can't you upload the corrected calendar
    Do you get errors? have your previewed your calendar -
    Before ordering your calendar preview it using this method - http://support.apple.com/kb/HT1040 - and save the resulting PDF for reference - the delivered book will match it? Did the preview work?
    Have you tried in safe mode?
    Your question is like calling your auto mechanic and saying I can't get home - you actually need to tell them if you are out of gas, need a map, have a Boot on your car, etc  --  details, symptons and error messages are critical to having a total stranger who only knows what you tell them help you
    LN

  • I answered a FaceTime call on iPad and my phone was also ringing when the phone stopped it hung up the iPad call. How do I correct. New 7.0 issue

    I answered a FaceTime call on iPad and my phone was also ringing when the phone stopped it hung up the iPad call. How do I correct. New 7.0 issue

    Im having the same problem after installing ios7.1
    Checked the usb status and it sees an iphone ( 4s ) attached,
    Repaired disc permissions
    updated and reset iphone
    and itunes
    reinstalled mavericks from scratch
    phone alert saying " TRUST THIS COMPUTER?"
    hit trust
    same alert keeps appearing
    again and again
    itunes keeps wittling on about "iTunes could not connect to this iPhone. You do not have permission."
    what the actual F*** is going on and can anybody help ??????

  • I am making a calendar in iPhoto, picking photos from a folder, let's call it "2011 Pics," in iPhoto. After arranging all the photos and captions I decided I wanted to insert a new photo -- one that was not in "2011 Pics." So I inserted it into the folder

    Add new photo to existing calendar folder in iPhoto
    I am making a calendar in iPhoto, picking photos from a folder, let's call it "2011 Pics," in iPhoto. After arranging all the photos and captions I decided I wanted to insert a new photo -- one that was not in "2011 Pics." So I inserted it into the folder, but the picture does not show up on the scrolling menu of pictures at the left of the calendar-making page. This happened last year and in frustration I started all over again. But surely there is a way to add a new picture to a calendar that is already laid out.

    Yes, the Old Master file has a folder for each year where I find all photos from that specific year. I am attaching a screen shot of the file.
    In the meantime i have managed to download all photos (it did not download any video files though in mpg, avi, 3gp, m4v,mp4 and mov format) to a new iphoto library. Unfortunately the photos are quite mixed and often doubled up. I ma considering to purchase iphoto library which checks all duplicates in iphoto. this will save me a lot of time. What do you think?

  • Trying to restore after getting a new hard drive.  I can see the backup on the Time Capsule and on the correct date but it is Greyed out.  That is it wont let me open it and restore the machine.  Have tried also Migration Assistant, no luck.

    Trying to restore after getting a new hard drive.  I can see the backup on the Time Capsule and on the correct date but it is Greyed out.  That is it wont let me open it and restore the machine.  Have tried also Migration Assistant, no luck.

    https://discussions.apple.com/thread/5210788?tstart=0
    At startup hold down the Command+Option/Alt+r keys until you see a globe on the screen. Then use disk utility to partition and format the drive HSF+ and then select Reinstall Mac OS X. whatever version of OS X that originally came on your system will be installed and then you can upgrade back to Mavericks.

  • My mac book pro does not boot up correctly anymore after doing some updates. I did have my ipod charging to my mac book. I ran the simple updates and never go to the maverick update and now my computer will not boot correctly. Help!

    Please help my computer is not repsonding after doing some simple updates. I follow the instructions and which is simply click for the update to take place. I did what I was instructed to do. I did not do the new update for the Mavericks yet. I just did simple updates. The computer shutted down and restarted but would never get pass the grey screen with the spinning wheel and the booting bar that would not go past a certain point befor shutting off again. The computer is practically brand new. I purchased the computer from best by 2012 and the warrenty just ended the past October. I hardly use the computer maybe 4 times since I have had it because I have another main computer that I uses. However, I don't want to do a hard rest becuase I do have the entire adobe suits software that I paid for and don't want to loose. I have an appointment with apple today to see what they say but I hope that my computer that I hardly every use is not defected after doing a updated pushed by Apple. Any thoughts or suggestions???? Thanks in advance Apple Family :-)

    Well, I was at Apple for sometime on that day. I got a Genius that did not want to work. She basically jumped to the money to tell me that my hard drive was no good and that I was out of warranty (October 2013). I began to explain to her that I had only used the computer 5 times and that I don't use this computer as my main computer because I also have a Toshiba that is less expensive that I have had for several years and not one issue out of it. The rep told me that I could by a new hard drive for $161.00 and that I would loose all of my software and photos that I have on this computer. However, I told her that it's bazaar that it happens right after my warranty goes out and had I used it more often when in warranty before October then I would have been covered. Keeping in mind that I would still be very disappointed with the product because I would loose all of my information and it would not make sense to me why the hard drive fails on a very gently used computer. So I asked for a manager and it took her some time to get one. In the mean time I watched how the other Geniuses interacted with the other customers and seen that they were very engaging with convo and very help. I guess I just I got another lemon when I got my rep. When the manager finally came. I went from A-Z with the issues and that I felt that something could or should be done because the rep said that she did tests on my machine and it read to her that my hard drive was bad and there was nothing that could be done. I explained that I was not looking forward to paying for services to have my new computer repaired. The manager offered to give me 25% off the cost but I still didn't feel that it was effective. After he left and the rep wrote the notes in the system, I told her that I didn't think that all options had been exhausted and that there was something else that could be done. I told her to erase the machine and see if the updates could be installed and if the system would continue to do the same thing. The rep was hesitant and said that I would loose everything which we already know that we were at conclusion from the beginning. She assured me that I would happen again and that I would need a new hard drive. I just told her to erase the machine and get me another manager because I was just getting tired of her unhelpfulness and negative perspective. The new manager came and was very pleasant and I explained everything once again from A-Z. I informed him that I had the machine erased and that I need his help with options because I don't feel that the rep or the last manager was resourceful or helpful. He apologies for the actions of the reps and proceed to tell me that they will run all the updates in the store and that if it booted correctly that I should continue to use the machine with out adding the adobe software back on just incase that it crashes again and I'm out of money once again. However, if it does happen again and it is a hard drive issues that he would work with me to resolve the issues. As my computer went through the process of rebooting from out of the box stage another rep approached me because he could tell that I was upset and not happy. I told he what had happen and he said I think I can help you a little more. He said that I just want to run further testing on you computer for different components to make sure that everything would work properly and pin point any issues. I was delighted with that option. Anything would help at this time especially someone who is willing to help. The first test that he ran was to for the hard drive and he said that since it failed the test the first time could be because the software update glitch and did update correctly which would make the test faulty and be negative. As I sit with finger crossed the test came back as a pass test that my hard drive was not the issue and that the update was the cause and that I did not have to buy a new hard drive. I was happy that the computer was ok but I lost information. All of the updates were done in the store and everything works fine now. If I was not persistent about my gut feeling then I would had left out thinking that I had to pay for a new hard drive that I really didn't needed. Now I can invest that money in a external hard drive to start backing up my information. Lesson learned by I'm still on the fence about things but I hope all is well. I really went through a lot. No help or no service was not an option that I was taken.  I hope that it helps.

  • Pages is not saving document correctly.  After saving the changes either do not appear or you can not open the file. The error is "not a valid format"  I am in Pages '09 4.1 (923).  I also use Parallels.  Anyone having similar issues?

    Pages is not saving document correctly.  After saving the changes either do not appear or you can not open the file. The error is "not a valid format"  I am in Pages '09 4.1 (923).  I also use Parallels.  Anyone having similar issues?

    I'm not sure that Lion AutoSave feature apply to network servers.
    I'm just sure that the Versions feature doesn't.
    Yvan KOENIG (VALLAURIS, France) samedi 21 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k
    My iDisk is : http://public.me.com/koenigyvan

  • Updated iTunes to 12.0.1 on XP after updated recieved error message "The procedure entry point ADAdPolicyEngine_DidEnterStation could not be located in the dynamic link dll" "itune not installed correctly error 7 (windows 127). reinstalled same error

    updated iTunes to 12.0.1 on XP after updated recieved error message "The procedure entry point ADAdPolicyEngine_DidEnterStation could not be located in the dynamic link dll" "itune not installed correctly error 7 (windows 127). reinstalled same error. Tried suggested steps
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall press on)
    Bonjour
    Apple Application Support
    Still getting same error message. Can anyone help me

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • My daq 6008 wil not drop the 5V after the VI is stopped, i have a digital signal going from the error out on the daq in the while loop to the error in on the daq outside the while loop and a boolean going to the data of the daq outside

    my daq 6008 wil not drop the 5V on a digital output after the VI is stopped, i have a digital signal going from the error out on the daq in the while loop to the error in on the daq outside the while loop and a boolean going to the data of the daq outside, but i can t seemto get it to work

    i attached the block diagram so you can have a look
    Attachments:
    PID Temp control.docx ‏120 KB

  • My itunes is not downloading correctly even after i uninstalled all software of apple keeps saying the registry is missing to import and burn cds??? it is not on a mac computer

    my itunes is not downloading correctly even after i uninstalled all software of apple keeps saying the registry is missing to import and burn cds??? it is not on a mac computer 

    I'd start with the following document, with one modification. At step 12 after typing GEARAspiWDM press the Enter/Return key once prior to clicking OK. (Pressing Return adds a carriage return in the field and is important.)
    iTunes for Windows: "Registry settings" warning when opening iTunes

  • While loop never stops after reading the result

    I 'amattaching the program with thismessage in which while loop never stops, going on continuing until I stops it manualy using the off button What i have to do to get it off automatically afetr execution and reading the query and getting the result in Read in Front panel
    Attachments:
    PMd VI.vi ‏33 KB

    Your stop condition is "continue if true". This means that, unless you press the button, the while loop will stop after one iteration.
    First, you should change the termination condition to "stop if true".
    Then you should make the stop button "latch when released" (right-click..mechanical action). Else you don't have a well defined state after the program stops.
    You should decide on a reasonable loop rate and enter it for the wait control. (beter use a diagram constant if the value is always the same).
    Why do you need to continue reading in a loop? Are you expecting the response to change over time?
    Do you want to keep appending to the string indicator or only show the latest characters received?
    Maybe you also need a wait between the writing and reading?
    Delete the ms timer value indicator, it is completely useless.
    Do you get any error codes?
    Don't use the run continous button. Use the plain run button.
    What device are you communicating with? Do you have documentation?
    LabVIEW Champion . Do more with less code and in less time .

  • I have a VI A. I want A to call another VI B and execute. After B executes, I want it to close automatically and go back to A. Is this possible ? I tried using open reference and those methods, but I am not able to do it. Can someone help me ? Thanks !

    Thanks !
    Kudos always welcome for helpful posts

    Re: I have a VI A. I want A to call another VI B and execute. After B executes, I want it to close automatically and go back to A. Is this possible ? I tried using open reference and those methods, but I am not able to do it. Can someone help me ? Thanks !Hi Stephan ! Thanks ! I guess I explained my question not so right. I've created a customized menu and at the instance of me selecting a menu, a VI should load itself dynamically. I am using call by reference. Sometimes it works and sometimes it won't. In short, what I want to achieve is load VIs dynamically and close them dynamically once they finish executing. Thanks !
    Kudos always welcome for helpful posts

  • My incoming calls on my iphone 5C get disconnected after the first ring. Please help!

    My incoming calls on my iphone 5C get disconnected after the first ring. Please help!

    I had this problem too with my newly bought iPhone 4s.I went to a technician shop to ask what the problem is and they said they could fix it however they would charge £35 and I believed this was too much. I was playing around with my iPhone to see if I could fix this problem I went on setting the clicked on the music section at the music section there is the button called sound check which was off so I decided to turn it on . After I turned it on my sound came back I was ecstatic I saved myself £35 and having to return the phone.

  • After throwing an error suppler is created

    Hi all,
    In '/oracle/apps/pos/supplier/webui/SuppCrtPG' I have extended a controller "oracle.apps.ar.hz.components.party.organization.webui.HzPuiOrgProfileQuickCO"
    after checking some validations I am throwing an error
    by - throw new OAException("Plese enter 10 Alpha Numeric characters in PAN number field." ,OAException.ERROR);
    My issue is that after throwing an error when clik on "Apply" button again with no changes made system should not create supplier but it creates. I checked from ap_suppliers table.
    Why after throwing an error system creates a supplier??
    Please help?
    thanks
    Amit

    So, you are pressing apply button then error messge is apearing but no supplier created. but when you again pressed it, it will create supplier. Am I correct?
    if not tell me again what is the flow?
    --Parag                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • How to restore broken links after server migration in Indesign CS3???

    Hi All, I have used my google skills to no avail and everything I have read here has been a dead end for me. I can't be the only person in this situation, so hopefully someone can help! My marketing department has reached the storage limits of our sh

  • BAPI for Purchase order change

    Hi experts,   I just want to change PO quantity by BAPI function module: BAPI_PO_CHANGE, I fill in PO number, Item number, material number and PO quantity to parameters, but result is not well. it shows a message below and the purchase order is not c

  • Report Painter library for Classic GL for creating cost center report

    Hi, I am sure everyone knows what my query is. I have tried using library GLTO, GLT1, GLT2, CCSS, GLFUNCT but when i am trying to create/execute report using report painter for cost center but no records are selected. I have checked the settings they

  • A struct in the application scope will be lost / damaged

    Hello, we have a strange problem with our CFMX 7,0,2, perhaps somebody can help? In the application.cfm a xml-file will be loaded, parsed and saved as a struct in an application variable. This will take place only if the struct isn't defined. We set

  • GPS time stamp

    Hi.. I am using NAVILOCK GPS tool for work related to the laser radar. I wrote a simple vi which writes out the time stamp in a fashion of 12:13:21 (UTC,hh:mm:ss). But I need to have second information more precisely as we are aquring our data at the