cancel
Showing results for 
Search instead for 
Did you mean: 

file content conversion reciever

Former Member
0 Kudos

Dear experts,

File to file scenario.

In sender - recordset/message = *

but in reciever structure we don't have the recordset node

so if in source multilple recordsets how does it get mapped in the reciever

Thanks

Aju

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Occurence of the receiver should be unbounded to handle multiple Recordsets.

Thanks

Aamir

Former Member
0 Kudos

Hi ,

source

DT

Recordset

record1

record2

target

DT

record1

record2

now where to map the recordset ..

we have record1 - record 1 and so on ..

Thanks

Aju

Former Member
0 Kudos

Create Recordset node on the receiver side as well and then map Recordset(Sender)->Recordset(Receiver)

Thanks

Aamir

Former Member
0 Kudos

Hi,

In the documnet it says ,

<root>...

<nameA>

<value1>value</value1>

<value2>value</value2>

<value3>value</value3>

</nameA>

<nameB>

<value4>value</value4>

</nameB>

...

</root>...

there is no recordset for reciever ..

how do we do it ..

Thanks

Aju

Shabarish_Nair
Active Contributor
0 Kudos

just give your Recordset Structure as detail1, detail2 etc

ref: /people/shabarish.vijayakumar/blog/2007/08/03/file-adapter-receiver--are-we-really-sure-about-the-concepts

Former Member
0 Kudos

Hi Shabarish ,

I have given it like that. But what happens is only the records in the first recordset get mapped in the target structure. where should we map the recordset( source) , cos target structure doesnot have a recorset node in it. is that correct ? or should we have a recordset node in the target structure also . please help ..

Thanks,

Aju

Shabarish_Nair
Active Contributor
0 Kudos

yours is very similar to what i have written in the blog (bottom part of it).

If you still have issues, introduce a root node

<root>

<your tags1>

<your tags2>

....

</root>

if you still have issues, post the structure you have and the parameters you have provided for FCC

Former Member
0 Kudos

Hi Shabarish,

My receiver structure

Root

RecordSet

rec1

rec2

rec3

Reciever Communication channel setting

Recordset Stucture - RecordSet,rec1,rec2,rec3

RecordSet.fieldSeparator = 'nl';

It gives Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Channel has not been correctly initialized and cannot process messages

What we need is to get all the recordsets in one message and proccess it together in the reciever CC

Please help

Thanks,

Aju

Shabarish_Nair
Active Contributor
0 Kudos

>

> Hi Shabarish,

>

> My receiver structure

>

>

> Root

> RecordSet

> rec1

> rec2

> rec3

>

>

> Reciever Communication channel setting

>

> Recordset Stucture - RecordSet,rec1,rec2,rec3

>

> RecordSet.fieldSeparator = 'nl';

>

> It gives Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Channel has not been correctly initialized and cannot process messages

>

> What we need is to get all the recordsets in one message and proccess it together in the reciever CC

>

> Please help

>

> Thanks,

> Aju

1. Remove the recordset

i.e make the structure as

Root

rec1

rec2

rec3

2. Use the parameters

Recordset Stucture - rec1,rec2,rec3

rec1.fieldSeparator

rec1.endSeparator

similarly for rec2 and rec3

Former Member
0 Kudos

Hi,

Create a structure like below.

<Root>   0-unbounded
     < rec1> 0-1
     <rec2> 0-1
     <rec3> 0-1

Map Recordset---Root.

Rec1--rec1.

Receiver Fcc give the parameter like below.

Recordset Structure: Root

Root.fieldSeparator : ,

Root.endSeparator : 'nl'

Regards,

Prakasu.M

Shabarish_Nair
Active Contributor
0 Kudos

aju, is rec1, 2 3 etc a nodes or fields?

if it is a node then use what i mentioned else use what prakasu has mentioned.

Former Member
0 Kudos

Hi Shabarish ,

rec1 , rec2 , rec3 are nodes, But when we remove recordset from the reciever structure, where do we map the recordset from source. when it is not mapped only one only the records in the first recordset would be created in the mapping . how to resolve this ?

Thanks,

Aju

Former Member
0 Kudos

Hi,

Use remove context in the mapping.

recordsremovecontextrecords.

Regards,

Prakasu.M