cancel
Showing results for 
Search instead for 
Did you mean: 

Sender and receiver File Adapter

Former Member
0 Kudos

Hi ,

Sender File

12345566767

fjwehifh

09782345sdfgsjghjghhh

83475 dsf888234 dsfsdf wefrwr

Question1 : I need to Treat the Complete Message as a Field

Eg : MY Source Structure

Recordset

record

Field1 0..1

I need to read complete file as one field, How can i achive it

Thanks in advace

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi all,

As my understanding, requirement is that the source file is haphazard and the data type of source has only one field, we should read all the content from the file and convert to the DT which has only one field. and we should map the flat not xml content to target.

correct if i am wrong,

anyone has a suggestion for this?

Regards,

Kevin Song

Former Member
0 Kudos

yes Kevin you are right, I need to read the complete content of the file into a singleSender Field using FCC

Former Member
0 Kudos

I guess only this paramter is enough to convert into XML NameA.fieldName: <Field name>.

In Message Mapping, Use Trim function to remove the leading and subsequent blank spaces.

Thanks,

Edited by: Hareenkumar on Dec 16, 2010 12:09 PM

Former Member
0 Kudos

So, you would not have the option "Return as XML".

Check the below blog: This helps you to resolve your Issue:

http://wiki.sdn.sap.com/wiki/display/XI/JavaMapping-ConverttheInputxmlto+String

Thanks,

Former Member
0 Kudos

There is no input fields, I need to read what ever content there in the sender File to Sender Field using Sender File FCC

What are teh parameters in FCC to read the Whole content into single Sender Field

Former Member
0 Kudos

I did not understand your query properly.

As per my understanding, you do not have the sender input fields. You would like to get the content of the sender file and that need to be populated as single field in the receiver. Isn't?

I think you are configuring anything in the IR part?

Former Member
0 Kudos

Hi,

What is the version of your PI ? I mean 7.0 or 7.1.

"Return as XML " is only available for PI 7.1 and above versions.

Former Member
0 Kudos

Version is 7.0

RKothari
Contributor
0 Kudos

Hi,

Once you have read the file using FCC and converted it into XML format.

You can write a UDF, in which you can provide all the source fields as input.

In UDF, concatenate all the input fields and assign it to target field.

-Rahul

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

You first need to convert the incoming file into XML using FCC. After you have a defined structure in message mapping,

1. right-click the root node of your source structure

2. click return as XML

3. and then map it to field

Hope this helps,

Mark

Former Member
0 Kudos

How to Define the parameters in FCC