I am lookin to insert operational hold codes from a workflow. Has anyone done this before? Can someone offer a solution on how this can be done?
Thanks
Hey Todd - There are several API's that you can use for this: SXAPIOECreditApproval, SXAPIOEFullOrderMnt (recommend to use v6), SXAPIOEHeaderUpdate, SXAPIOEOrderChangev2 (I think). There are also several API's directly related to CreditHolds: SXAPIOEReleaseAllOrders, SXAPIOEHoldAllOrders, and SXAPIOEGetCreditHoldOrders. The stage of the order will determine which to use, as some can only be used during certain stages.
I've tried using the SXAPIOEFullOrderMnt, SXAPIOEHeaderUpdate, SXAPIOEOrderChangev2 and have not been able to get it working for operational holds. you may be able to put it in "legacy hold" but not operational hold. Operational holds reside in a different table in sx.e which does not seem to be available thru OE APIs.Hopefully I am wrong and some one can post an actual working example.
My apologies, I thought he was talking about legacy. You are right Jim, operational codes are held in SASTT, it seems.I wonder if you can get to them using FieldUpdate API then.
As far as I know, there is no API available to update operational hold codes. We had an ERS for this and got canceled due to low votes. I've tried to pass operational hold codes through process.salesorder BODs as well with no success.
SASTT has general description for operational hold codes. The order table that has operational hold code is OEEHCH
I tried using the FieldUpdate API.I was able to update but the create functionality I could not get to work.