cancel
Showing results for 
Search instead for 
Did you mean: 

Doubt regarding Sender adapter file content conversion to RFC

Former Member
0 Kudos

Hi Experts,

Below is the my Source and Target XML structure ( i have creaated source structure same as target RFC structure), This scenario is working fine when i give XML file as input. File -> XI -> RFC , xml file is able to update the information in R3.

How should i configure sender file adapter for file content conversion for above structure(in this case input is fixed lenth text), and i could able to change source structure according to our req, without changing target RFC strucuture.

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_HSA_IDNumber xmlns:ns0="urn:passhe.com/UpdateIdNumberISA32">

<COMMIT_I>X</COMMIT_I>

<IDENTIFICATION>

<STUDENT>6500001191</STUDENT>

<ID_TYPE>FS0030</ID_TYPE>

<ID_NUMBER>testxml</ID_NUMBER>

<VALID_FROM>20070421</VALID_FROM>

<VALID_TO>20091231</VALID_TO>

</IDENTIFICATION>

</ns0:MT_HSA_IDNumber>

I have configured sender file adapter with FCC like :

Document name as: MT_HSA_IDNumber

Document name space as: urn:passhe.com/UpdateIdNumberISA32

Record structure as: COMMIT_I,1,IDENTIFICATION,1

COMMIT_I.fieldNames : COMMIT_I

COMMIT_I.fieldFixedlengths: 1

IDENTIFICATION.fieldNames: STUDENT,ID_TYPE,ID_NUMBER,VALID_FROM,VALID_TO

IDENTIFICATION.fieldFixedlengths: 12,6,60,8,8

-


i am getting error like this: even when i change source structure like below metioned:

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_HSA_IDNumber xmlns:ns0="urn:passhe.com/UpdateIdNumberISA32">

<COMMIT>

<COMMIT_I>X</COMMIT_I>

</COMMIT>

<IDENTIFICATION>

<STUDENT>6500001191</STUDENT>

<ID_TYPE>FS0030</ID_TYPE>

<ID_NUMBER>idnumber1</ID_NUMBER>

<VALID_FROM>20070421</VALID_FROM>

<VALID_TO>20091231</VALID_TO>

</IDENTIFICATION>

</ns0:MT_HSA_IDNumber>

Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'COMMIT_I.fieldFixedLengths' or 'COMMIT_I.fieldSeparator' is missing Consistency check: no. of arguments in 'COMMIT_I.fieldFixedLength' does not match 'COMMIT_I.fieldNames' (0 <> 1)

Please help me out

thanks

dhanush

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Dhanush,

Try giving the Sender FCC this way for the source structure you have mentioned above.

Record structure as: COMMIT,1,IDENTIFICATION,1

COMMIT.fieldNames : COMMIT_I

COMMIT.fieldFixedlengths: 1

Hope this helps.

Thanks and Regards,

Induja

Answers (1)

Answers (1)

Former Member
0 Kudos

Hey

Looks like you are using 'COMMIT_I.fieldFixedLength' instead of 'COMMIT_I.fieldFixedLengths' (notice the missing 's')

Please use 'COMMIT_I.fieldFixedLengths'

Thanx

Aamir

Edited by: Aamir Suhail on May 8, 2008 2:15 PM