Adding R31410 Order Processing as a Subsystem Job

johndanter

johndanter

Legendary Poster
Hi List,

Has anyone done this here yet?
Is there a Base BSFN to wake up and write the F986113 record for this specific UBE for DOCO SRST or would I need to write one from scratch?

The aim is to get WO Attach Parts Lists Job to wake up automatically during WO creation.
As at the moment it's scheduled every 5 min. Sometimes it has WOs, other times it doesn't and we need it to fire more instantly

I know I can get P48013 to call R31410 but we have intermediate checks here before we call R31410

So P48013 creates WO at status 10
Custom code moves them to 15 if everything is ok

R31410 is currently scheduled to look for WOs at 15

I'll be making the process that moves them to 15 to call R31410 as a subsystem

Posted in the functional area as well

Thanks

John
 
Last edited:
Hi guys,

I've copied B3700270 (launch R37470) to launch my R31410. Changed the DSTR, the UBE name and all compiles great.

However when I run this locally using ObjectBrowser BOTH fall over.

What am I missing here? Is F986113 just like F986110 in that I need to override the DS first?

Thanks

John
 
Just a guess John but something like this is probably best tested using a server test environment rather than your developer box.
 
Hi list,

I wrote my BSFn and wrapped the API but I keep getting an error

Is anything wrong with this

MathCopy(&dsRI.mnDocumentOrderInvoiceE,
&lpDS->mnDocumentOrderInvoiceE);
MathCopy(&dsRI.mnJobNumberA, &lpDS->mnJobNumberA);
dsRI.idGenericLong = (ID)( lpDS->idGenericLong );
jdeStrcpy((JCHAR *)(dsRI.szStatusCodeWo),(const JCHAR *)(lpDS->szStatusCodeWo));

idReturnValue = ubeReport_AddSubsystemRecord
(hUser,
_J("R31410"),
lpDS->szVersion,
(JCHAR *) NULL,
(JCHAR *) NULL,
&dsRI);

/* If API failed, set an error */
if (idReturnValue == JDEDB_FAILED)
{
jdeErrorSet (lpBhvrCom, lpVoid, (ID) 0, _J("0002"),(LPVOID) NULL);
idReturnValue = ER_ERROR; }
 
Last edited:
Got it working

I copied how B4600580 talks to r46171 (via a UBE header .h file) and it works fine.

Either that or....CNC finally started the SBS correctly for me ;)
 
Back
Top