cancel
Showing results for 
Search instead for 
Did you mean: 

Issues with File Adapter

Former Member
0 Kudos

Hi!

I am working on File(source.csv)->Xi->File(Target.csv) Scenario.

In my Source File i have 4 fields which are mapped to the target file which contains 2 additional fields with constant values mapped. So, I should get 6 fields at receiver end.

<b>Source structure</b>

CharacterName

Lowerlimit

Upperlimit

Targetvalue

<b> Target Structure</b>

CharacterName

Lowerlimit

Upperlimit

Targetvalue

Plant (constant value -1000)

Status (Constant value - Released)

But, While using file adapter it showing only 4 fields of my Source file at the receiver end , not the ones which have been mapped with constant values(It is with out Using FCC) .

When i use FCC under File Adapter, XI is not picking the file. These are the parameters I am defining at Sender Adapter:

Document Name : file_rece( Not sure whether it should be similar as of my Msg Type name)

RecordSet Name :Record (not sure abt naming conventions)

Recordset Structure : main,1

In parameters:

main.fieldNames:CharacterName,Lowerlimit,Upperlimit ,Targetvalue

main.fieldSeparator: ,

main.endSeparator : 'nl'

Receiving Adapter:

Recordset Structure : main,1

main.fieldSeparator :,

main,endSeparator : 'nl'

---I gone through some previous posts but cant able to resolve it.

Regards

Parth

<b></b>

Accepted Solutions (0)

Answers (8)

Answers (8)

Former Member
0 Kudos

Now i able to get my file to be uploaded at receiver side...

But still my receiver file doent contain additional fields.

Former Member
0 Kudos

HI! Bhavesh

Its showing error at receiver side communication channel:

"Channel has not been correctly initialized and cannot process messages"

**Error Exception caught by adapter framework: null

    • Error Delivery of the message to the application using connection AFW failed, due to: RecoverableException

Former Member
0 Kudos

Make some changes in description, save the channel and activate the changes...

Regards,

Jai Shankar.

Former Member
0 Kudos

Hi! Bhavesh

<b>This is the source Data type xml format generated in IR:</b>

<?xml version="1.0" encoding="ISO-8859-1"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http:
bSU1" targetNamespace="http:
bSU1">

<xsd:element name="bsu_source" type="Bbsu_target_dt" />

<xsd:complexType name="Bbsu_target_dt">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

853e43e0755211dba7bf001560a58e89

</xsd:appinfo>

</xsd:annotation>

<xsd:attribute name="CharacterName" type="xsd:string">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

a9f9a8a073a911db9df8f654ac1116d8

</xsd:appinfo>

</xsd:annotation>

</xsd:attribute>

<xsd:attribute name="LowerLimit" type="xsd:integer">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

a9f9a8a173a911dbaaabf654ac1116d8

</xsd:appinfo>

</xsd:annotation>

</xsd:attribute>

<xsd:attribute name="UpperLimit" type="xsd:integer">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

a9fb2f4073a911db868ef654ac1116d8

</xsd:appinfo>

</xsd:annotation>

</xsd:attribute>

<xsd:attribute name="TargetValue" type="xsd:integer">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

a9fb2f4173a911db9ed2f654ac1116d8

</xsd:appinfo>

</xsd:annotation>

</xsd:attribute>

</xsd:complexType>

</xsd:schema>

Former Member
0 Kudos

Thanks for your valuable inputs..

Now, XI is picking my file after changing the FCC parameter suggested by : Vijay

But the XI is not updating my file on receiver side...

And the XML format XI showing is :

- <record>

- <main>

<CharacterName>,,,,,</CharacterName>

</main>

</record>

- <record>

- <main>

<CharacterName>Diameter,5.98,6.05,6,,</CharacterName>

</main>

</record>

- <record>

- <main>

<CharacterName>Flatness,0.032,0.038,"0,03",,</CharacterName>

</main>

</record>

<record>

- <main>

<CharacterName>,,,,,</CharacterName>

</main>

</record>

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

What is the error in SXMb_MONI?is there any error in it?

If no, what about the receievr file adapter's status? Is it green or does it have an error?

Can you poas the target XML , along with the TXT format in which you want the file?

Regards,

Bhavesh

Former Member
0 Kudos

Hi,

Please go through this link for various parameters in content conversion.

http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm

Regards,

Sudheer.

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

DocumentName is the name of the MESSGATE YPE.

Can you also post your source Datatype XML so that we can validate your Content Conversion?

The content conversoion listed below will create a source strucutre of format,


<file_rece>
   <Record>
          <main>
             <CharacterName>
             <Lowerlimit>
             <Upperlimit>
             < Targetvalue>
          </main>
   </Record>
</file_rece>

Regards,

Bhavesh

Shabarish_Nair
Active Contributor
0 Kudos

<i>Document Name : file_rece( Not sure whether it should be similar as of my Msg Type name)</i>

>> it sud be you message type name.

<i>In parameters:

main.fieldNames:CharacterName,Lowerlimit,Upperlimit ,Targetvalue

main.fieldSeparator: ,

main.endSeparator : 'nl'</i>

>>>

try using

main.fieldSeparator: 'nl'

prabhu_s2
Active Contributor
0 Kudos

Partha

This shud work without FCC inplace. Can you letme know if the MT in the target interface has the target DT linked to it?