cancel
Showing results for 
Search instead for 
Did you mean: 

File Adaptor-Using FILE as a message protocol

Former Member
0 Kudos

Hi Gurus,

I am trying to create a FILE to FILE scenario.

Im using NFS as transport protocol and message protocol as 'FILE'. For this FILE message protocol, The Input File content should be of XML. But my File content is not a XML. So it is giving XML Parser error....I cant use the File content conversion also. Because its not accepting spaces at the end.

The content of the file is

00000000000000000008062009 000000000000NACCO 08062009NACCO 000105

01111111111111111108062009000111 000111000000PURCH_ID_DESC 000111 08062009+00000027500000840 STANDARD INSURANCE CO PO BOX 6367

There is a space at the end of every record.. When i use file content conversion its not accepting this space.

There is no fields in the flat file. Just i want send these content to the remote location.

Kindly suggest me.

Regards,

Rama

Accepted Solutions (1)

Accepted Solutions (1)

prateek
Active Contributor
0 Kudos

Use file content and pass the entire data in one field. This won't trouble you with space.

Regards,

Prateek

Former Member
0 Kudos

Hi Pradeek,

I tried with file content conversion. pl check my payload.

The File content is

1st line 00000000000000000008062009 000000000000NACCO 08062009NACCO 000105 this is end of 1st line

2nd line 01111111111111111108062009000111 000111000000PURCH_ID_DESC 000111 08062009+00000027500000840 STANDARD INSURANCE CO PO BOX 6367 PORTLAND OR this s the end of 2nd line

XML Message

<statement>

<row>00000000000000000008062009 000000000000NACCO 08062009NACCO 000105</row>

</statement>

<statement>

<row>01111111111111111108062009000111 000111000000PURCH_ID_DESC 000111 08062009+00000027500000840 STANDARD INSURANCE CO PO BOX 6367 PORTLAND OR </row>

<statement>

how do i achieve the space at the end..even it is not take the space as such in the file.

Regards,

Rama

prateek
Active Contributor
0 Kudos

Other option is to use File option and not FCC. Then use java mapping

https://wiki.sdn.sap.com/wiki/display/XI/WholePayloadtoaXML+field

Regards,

Prateek

Former Member
0 Kudos

Thanks Guys.. I will try and come back to u.

Regards,

Rama

Former Member
0 Kudos

Hi Santhosh Kumar,

I tried this scenario without IR> But im getting error in SXMB_MONI.

I am using Buisness system instead of buisness service.

ConfigException in XI protocol handler. Failed to determine a receiver agreement for the given message. Root cause: com.sap.aii.af.service.cpa.impl.exception.CPALookupException: Couldn't retrieve outbound binding for the given P/S/A values: FP=;TP=;FS=BS_DEV360_R3_Test;TS=BS_SRD_SRM_Test;AN=Non_Existence;ANS=http://abc.com;</SAP:AdditionalText>

Kindly suggest me.

Hi Pradeek,

I never used java mapping.. Can u give me the step by step procedure to create java mapping

Regards,

Rama

prateek
Active Contributor
0 Kudos

Rama, I missed that it is just a file to file scenario. The recommended way then would be use of method suggested by Santhosh.

You your case, first perform full CPACache refresh using PIDIRUSER and try again.

Regards,

Prateek

santhosh_kumarv
Active Contributor
0 Kudos

>>Failed to determine a receiver agreement for the given message

Check the receiver aggreement configuration and also cross-check the configuration again.... also check if the Receiver Interface Namespace names match the Sender Interface and Namespace names..

~SaNv...

Former Member
0 Kudos

Hi Experts,

My scenario executed successfulyy. I did CPA Cache Refresh. But it was still throw the error message. SO i deleted the entire scenario and created newly. Now its working fine. I need one more help. Now my receiver system is not in the landscape. Can we use the FTP for this. If yes what are the authendication we need to take care. Like security connection..

Kindly send the link for this secured FTP connection. I cant use SFTP... So i guess i can select FTPS (FTP Using SSL/TLS for Control and Data Connection)". Pl send the doc.

The basis guys ready to give the IP address and the Port Number. Is anything needed for FTP connection.

Regards,

Rama

Answers (1)

Answers (1)

santhosh_kumarv
Active Contributor
0 Kudos

>>Just i want send these content to the remote location.

Check this blog <a href="/people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository to send any data (even binary) through XI, without using the Integration Repository</a>

~SaNv...