Hi All,
I am converting a xml file into X12.309 EDI. I am able to genertae a Record from XML. I want to genertae a EDI String using the record. How to do it?
I was trying to add envelop using “addICEnvelopEDIFACT” where syntaxId =UNOA" and applicationRefrence is Record name [ which i have created using EDI schmea of X12.309]
It’s giving me an error as “Invalid Document”.
I want to add enevelop [I am not sure wethere this is mandtory to do it]. Is it necessary to do this? Or I can do only “converToString” and use that string as EDI string.
I tried with wm.b2b.edi.util:addGroupEnvelope for the group
it’s giving me an error
“required input signature is not specified (see “errorMessage” for detail)”
are there any values to be specified?
I’ll repeat the steps I am following afetr creating record.
Setting up Delimiters [ Field as + subfield as : and Record ’ ]
Calling service ConvertToString
Mapping created record to Values, nsRecord as a schema refrence [for exa : USA_X12_309:Record_USA_X12_309]
and mapping the delimiters.
3.Converting string to StringList
calling service wm.b2b.edi.util:addGroupEnvelope
mapping delimiters to delimiters
and stringlist generated above to documents.
Hardcoding “sender” and “reciver”
Also I don’t see you mention validate. Are you validating the document before you attempt to envelope it.
Also when you validate a document it requires that the ST02, SE01 and SE02 be present. You have to fill them in with dummy numbers in the correct lengths to pass validation. After validation you must remove them so that addGroupenvelope and addICEnvelope can insert the correct control numbers.
Have you loaded the correct standards?
Read the wm EDI Module: Trading Networks Component User’s Guide for info on how to do this.
Can I have an email id of u? So i can mail u and give u more details.
Any way I’ll repeat my prob .
I am sending an OUTBOUND edi . [X12.309]
and facing prob while doing record to edi conversion.
I’ll repeat the steps I am following after creating a record.
Setting up Delimiters [ Field as + subfield as : and Record ’ ]
Calling service ConvertToString
Mapping created record to Values, nsRecord as a schema refrence [for exa : USA_X12_309:Record_USA_X12_309]
and mapping the delimiters.
3.Converting string to StringList
calling service wm.b2b.edi.util:addGroupEnvelope
mapping delimiters to delimiters
and stringlist generated above to documents.
Hardcoding “sender” and “reciver” and
IDcode =309, grpCtlNumber=309,agencyCode=T,verRelCode=4010
Calling wm.b2b.edi.util:addICEnvelope .
Here I am getting an error
“com.wm.lang.flow.FlowException: required input parameter is not specified (see “errorMessage” for detail)”
In this step Iam hardcoding
sender,receiver,ackRequested=0,testIndicator=P,addGroup=false.