Cancel SO custom NER is failing...

Lucky.2811

Active Member
Hi List,

I have created a NER to cancel Sales Order using MBFs (Begin Doc, Edit Line, End Doc) but this is canceling only one line in multi lien orders. I replicated the same code in application and report. Both application and report are canceling all the lines.

Gone through the logs... Edit Line has error code returned as 2 for the line which was not cancelled. But the same Sales Order (can say identical copy of SO) gets cancelled through application or report.

I have attached ER code dump in this post.

Not sure what I am missing.
 

Attachments

  • 182297-SO_Cancel_NER.txt
    5.9 KB · Views: 87
Have a look at ND3N4210 - dcLINK Sales Order Maintenance to see how it's done (If it's available for you). Or you can even use it:

F4211.Select
___(...)
F4211.Fetch Next
___(...)
While SV File_IO_Status is equal to CO SUCCESS
___dcLINK Sales Order Maintenance
______"D" -> BF cdcLINKActionCode_EV01
______(...)
___F4211.Fetch Next
______(...)
End While
 
Back
Top