Skip to main content
Solved

Cancel PO 2021R2


Forum|alt.badge.img
  • Jr Varsity III
  • 51 replies
hello I want to ask, previously I could use the api purchase order on 2020R1 but for the use of api cancel purchase orders on acum2021R2 I couldn't, is there a reference I can check?

Best answer by Naveen Boga

@abdi  You need to invoke the 2 REST API calls, to first cancel the Sales Order and then Purchase Order.

View original
Did this topic help you find an answer to your question?

11 replies

Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • 51 replies
  • November 1, 2021
Error Cancel Order
Success Cancel Order but in screen not cancelled​​​​​

 


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3410 replies
  • November 9, 2021

Hi @abdi  I just worked on it in 21 R2 version and I can able to Cancel the Purchase Order successfully.

Here is the screenshot for your reference. Hope this helps!

Let me know if you face any issues.

 

 

 


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • 51 replies
  • November 10, 2021

hi @Naveen B still not working :frowning2:
 

 


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3410 replies
  • November 10, 2021

Hi @abdi  There is definitely something wrong with your instance.

Are you able to do this operation manually from the Purchase Orders screen?


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • 51 replies
  • November 10, 2021

Hi @Naveen B , if on the PO screen the cancel process everything goes normally


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3410 replies
  • November 10, 2021

@abdi  Do you have any customizations published, if yes, can you please unpublish and verify once.

 


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • 51 replies
  • November 11, 2021

Hi @Naveen B  I've tried to unpublish and retest the api, the result still returns 500

 

 


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3410 replies
  • November 11, 2021

Hi @abdi  In below 2 cases we will get the 500 error.

  • Wrong JSON body format
  • Wrong Endpoint URL

In your case, JSON body looks good, can you please review twice whether the URL is correct or not?

Also, as a response you are getting Object Reference error, it might be due to the some other customization causing this issue.

Please verify in new 21 R2 instance and check. I have verified this REST API in brand new instance, NO Errors Occurred.


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • 51 replies
  • November 11, 2021

hi @Naveen B , i have update.
for the cancel po function, it can be used after restarting the application but only for the normal type, when canceling the po for the drop ship type, canceling the po will be an error and canceling the normal type po is also an error.
then need to restart the application again and cancel po type normal can ne used again.

 

I don't know why the drop ship type makes an api error, and what I need is to cancel the drop ship type

 

normal type

 

Drop Ship Type

 


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • 51 replies
  • November 12, 2021

Hi  @Naveen B i have new update.
Problem Solved, i can cancel po with Dropship type, there is an error message after restarting the application.

The problem is in the PO linked to SO.
so the way is to cancel the SO then cancel the connected PO

thanks for helping me

 

regrads


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3410 replies
  • Answer
  • November 12, 2021

@abdi  You need to invoke the 2 REST API calls, to first cancel the Sales Order and then Purchase Order.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings