cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a new receiver channel

Former Member
0 Kudos

Hi guys,

i have following scenario: FTP -> XI ->RFC that is currently working.

XI gets a file (ftp sender channel), maps it and 'sends' it to the target system (SAP) via RFC receiver channel.

However, my client requires to have the source file in the target system as well as the data that is receiving now.

Is it possible? I think so.

Could you please give any idea of how to implement it?

Best regards,

David

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

>>However, my client requires to have the source file in the target system as well as the data that is receiving now.

does this means you want to send files to 2 different system?

if yes,then simply configure one more receiver in the receiver determination.(you do need Recv. CC,Recv Agreement,Interface det. for this new system)

Thanx

Aamir

Former Member
0 Kudos

Hi,

No. There is only 1 target system. Currently the info is reaching the destination via RFC, BUT they want to have the file phisically in the system as well.

Is there a way to achieve this in the same interface that is running now?

Kind regards,

David

Former Member
0 Kudos

>>they want to have the file phisically in the system as well.

what system you are talking about?is it R/3 system,XI system or the sender system?

Thanx

Aamir

Message was edited by:

Aamir Suhail

agasthuri_doss
Active Contributor
0 Kudos

Hi,

In ID create one Scenerio and use the same BS system and go for Receiver File Adapter and get the source file from the source FTP with the help of another Sender File Adapter.

Regards

Agasthur iDoss

Former Member
0 Kudos

Hi,

Destination is a R3 system

Former Member
0 Kudos

so u want the file to keep on goin to R/3 system via RFC as well as you want to store this file on R/3 in some physical directory as well?

if yes,then you would need 2 interface determination,receiver business system will be one but you will have 2 interfaces in it.

Thanx

Aamir

former_member184619
Active Contributor
0 Kudos

Hi DAvid,

If the RFC at R/3 side is a custome one then u can use GUI_DOWNLOAD function module to download the data from Internal table to File.

Use the standard FM: GUI_DOWNLOAD, give file type as 'ASC'.

Sachin

Former Member
0 Kudos

Aamir,

thanks a lot. I did it.

i am facing some problems regarding FCC in receiver ftp comm channel so far.

I am using same FCC parameters in Sender/Receiver comm channels. Do you think this is ok?

Best regards,

david

Former Member
0 Kudos

yeah,to convert the XML into flat file,use FCC on receiver side.

and to pick up a flat file from the sender system you need to use FCC on sender side.

in your case i guess the sender FCC was already there(as you had a working File to RFC scenario).you just need to configure FCC parameters for the new File receiver adapter you created.

Thanx

Aamir

Former Member
0 Kudos

Yes, you are right.

But i cannot find the error.

This is the target XML i am receiving (from rwb):

<i><ns:MT_FTP_SPAIE004>

<IT_FICHERO>

<item>

<CAMPO1>N20070818998 0067218 10109173 20070+</CAMPO1>

</item>

<item>

<CAMPO1>0000000 00000000 0000000000000000000+</CAMPO1>

</item>

...

</IT_FICHERO>

</ns:MT_FTP_SPAIE004></i>

And these are my FCC parameters on receiver side:

<i>Recordset structure: item

item.fieldNames CAMPO1

item.fieldFixedLengths 212

item.endSeparator 'nl'</i>

Just the same as they are on Sender FCC (that works).

and this is the error message i get:

<i>Delivery of the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Consistency error: more fields found in XML structure than specified in conversion parameters! (Value 'N20070807546 0219750 10109147+')', probably configuration error in file adapter (XML parser error)': java.lang.Exception: Exception in XML Pa.</i>

Could you please help?

Best regards,

david

Former Member
0 Kudos

>>Consistency error: more fields found in XML structure than specified in conversion parameters! (Value 'N20070807546 0219750 10109147+')'

can you paste the XML from sxmb_moni(specially the part where you are getting 'N20070807546 0219750 10109147+ )

also u dont need item.fieldNames CAMPO1 on the receiver side,delete it and then try again

Thanx

Aamir

Former Member
0 Kudos

Hi,

I tested deleting the item.fieldnames parameter with no success.

This is the XML from sxmb_moni:

<i><ns:MT_FTP_SPAIE004 xmlns:ns="http://bancaja.com/SPAIE004">

<IT_FICHERO>

<item>

<CAMPO1>N20070818998 0067218 10109173 20070103941394120070927 200709012007093000000000 00000000 00000000 00000000 00000000 00000000 00000000000000000000000000000000000000000000000000020050000000000000000000000+</CAMPO1>

</item>

<item>

<CAMPO1>N20070807546 0219750 10109147 20070023941394120070924 200709012007093000000000 00000000 00000000 00000000 00000000 00000000 00000000000000000000000000000000000000000000000000033660000000000000000000000+</CAMPO1>

</item>

......

</IT_FICHERO>

</ns:MT_FTP_SPAIE004></i>

And, again, the error:

<i>Consistency error: more fields found in XML structure than specified in conversion parameters! (Value 'N20070807546 0219750 10109147 20070023941394120070924 200709012007093000000000 00000000 00000000 00000000 00000000 00000000 00000000000000000000000000000000000000000000000000033660000000000000000000000+')', probably configuration error in file adapter (XML parser error)'</i>

Any ideas?

Best regards,

David de Miguel

Former Member
0 Kudos

Hi there,

i think i finally got the solution:

I changed my FCC parameters at the receiver side to:

<i>Recordset structure: item

item.fieldSeparator 'nl'

item.endSeparator 'nl'</i>

And now, it works, the files are coming in flat format.

Thanks a lot to all of you

David

agasthuri_doss
Active Contributor
0 Kudos

Hi,

Sure,

Create one more Configuration alone and Just FTP the source file ..

Regards

Agasthuri Doss