cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC to ANSI X12 String index out of bounds exception

former_member305064
Participant
0 Kudos

edi-xml.txt

HI Experts,

I'm doing an Outbound idoc to ANSI EDI 940 version 5010. I have done a simple mapping like mapped the ISA and IEA segments to constants except date and time. but in the Receiver SFTP channel i'm getting the below error. i know most of you guys says its a length issue but i checked all the length's of every element and they are correct(means the total length of ISA segment is 107). Even i tried to execute the EDI xml taken from the mapping in the B2B toolkit there it is converting to ANSI format perfectly. please let me know where to correct it

MP: exception caught with cause javax.ejb.TransactionRolledbackLocalException: Error occurred: ; nested exception is: javax.ejb.EJBTransactionRolledbackException: Transaction ended with error, reason: ; nested exception is: javax.ejb.EJBException: ASJ.ejb.005044 (Failed in component: sap.com/converter~x12~x12moduleapp) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.aii.converter.x12.module.X12ConverterModule.process(com.sap.aii.af.lib.mp.module.ModuleContext,com.sap.aii.af.lib.mp.module.ModuleData) throws com.sap.aii.af.lib.mp.module.ModuleException method on bean instance com.sap.aii.converter.x12.module.X12ConverterModule@624d32de for bean sap.com/converter~x12~x12moduleapp*xml|sap.com~converter~x12~x12module.jar*xml|X12ConverterModule in application sap.com/converter~x12~x12moduleapp.; nested exception is: java.lang.StringIndexOutOfBoundsException: String index out of range: 122

Accepted Solutions (1)

Accepted Solutions (1)

ShivaPrasad
Explorer

Hi Satish ,

In the attached XML i could see only header information (ISA) do a dummy mapping for all segments GS and ST and try it and try

Regards

Shiva

former_member305064
Participant
0 Kudos

HI Shiva prasad,

i have done as you mentioned and its working perfectly. but the thing is like GS segment is shown as optional in the message mapping then why do we need to map it if i dont need it?

Answers (0)