Subsystem jobs and XML interoperability...

swhitmire

Reputable Poster
I'm trying to arrange a way to run R47011 for a particular
document from outside OneWorld. I've created a version
that's marked as a subsystem job, and taken the C code JDE
provides for doing XML Interoperability function calls and
compiled it. I then run it with this XML as the input:

<jdeRequest pwd='PASSWORD' type='callmethod' user='JDE' session='' environment='PY7333' sessionidle=''>
<callMethod app='XMLTest' name='AddEDITransToSubsystemQueue'>
<params>
<param name='szUBEName'>R47011</param>
<param name='szVersion'>SUBSYSTEST</param>
<param name='mnEdiDocumentNumber'>340473</param>
<param name='szEdiDocumentType'>SZ</param>
<param name='szEdiDocumentCompany'>02000</param>
<param name='CSuppressErrorMessage'></param>
</params>
</callMethod>
</jdeRequest>

The record gets inserted into F986113 and is picked up and
deleted by the subsystem job. However, nothing happens
to the EDI document. I can run an identical (except for
the subsystem-ness) version on the same document and
everything works fine.

In a thread in the Developers forum I saw a discussion of
just inserting records directly into the F986113 which
said that the SSSVRBLOBA field should contain a
pipe-delimited string of the data structure elements. When
I look at the record that's inserted by the function call,
what's in it is 340473|.|00 -- this doesn't seem right.
So I tried updating the field to contain 340473|SZ|02000
before turning on the subsystem job to pick it up, but it
still doesn't work. Does anyone have any idea what's going
wrong?

Thanks!!
 
Ok, I've managed to make it work by updating the SSSRVBLOBA
field -- the data selection on the subsystem version needed
to be set up to take the passed-in values as RI values,
and for some reason the order it's expecting them in the
blob is company|doc number|doc type instead of the order
they appear in the data structure definition.

I still have a problem, though. When I use the XML file
to create the record, the blob comes out as
doc number|.|00 no matter what. It's like it's copying
the wrong parts of the data at some point. Has anyone
used XML interoperability and had a problem like this?

Thanks!
 
Back
Top