cancel
Showing results for 
Search instead for 
Did you mean: 

Receiver file adapter with multiple headers and items

former_member393841
Participant
0 Kudos

Hi All,

My Requirement : proxy to FCC

sender : Proxy

receiver : File with FCC

I need to generate the records as shown below.

header1

detail1

detail2

header2

detail1

detail2

could any one help me to achieve this scenario.

Thanks in advance.

harsha

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member184681
Active Contributor
0 Kudos

Hi Harsha,

Which part is it precisely that you need help with? This scenario looks very common and has been discussed so many times in SDN.

Regards,

Greg

former_member393841
Participant
0 Kudos

Hi Greg,

Thank you very much for your reply,

My sender is proxy and receiver is file with fixed lengths.

I need to  identify the header with corresponding items  and need to display in a file.

My question is how to configure the receiver file adapter(fixed lengths) without using any key fields.

Please let me know if you need any further details.

Thanks in advance.

harsha

former_member184681
Active Contributor
0 Kudos

Dear Harsha,

Good to know the exact doubt that you have . In contrary to sender FCC, for receiver FCC you don't need key fields to distinct between structures. Instead, the XML structure on the receiver side is used for conversion. You assign attributes in FCC using your XML Message Type node names, for instance if you have Header and Detail nodes in XML, use the following FCC attributes:

Header.fieldFixedLengths = x,y,z,...

Header.endSeparator = 'nl'

Detail.fieldFixedLengths = a,b,c,...

Detail.endSeparator = 'nl'

Moreover, bear in mind how the receiver structure should look like, in order to use FCC properly. You can check it here:

http://help.sap.com/saphelp_nw73/helpdata/en/44/686e687f2a6d12e10000000a1553f6/content.htm

Using exactly the structure described (root\structure\field) is essential for FCC.

Regards,

Greg

former_member393841
Participant
0 Kudos

Thank you very much your support Greg.

my sender structure is as shown below.

Could you please explain me how to create file receiver content conversion for the above mentioned structure.

I have done it but iam getting following error.

Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.Exception: 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 '03')', probably configuration error in file adapter (XML parser error)'

Thanks in advance.

harsha

former_member184681
Active Contributor
0 Kudos

Dear Harsha,

The error you are experiencing is caused by the fact that your Message Type has too many structure levels. The Participation_Coverage_Data can not be a subnode of Participation_Indi_Data. Instead, it should be on the same level. Generally speaking, receiver FCC only supports structures that are three levels deep, and nodes cannot include other nodes, only fields (see the example in SAP Help)

Alternatively, you can leave your structure as it is, and use an additional Java mapping, according to the Nodeception concept described by in one of his blogs here: .

Regards,

Greg

zameerf
Contributor
0 Kudos

Hi Harsha,

Did you check the below blog by ?

Hope the example mentioned in the blog would help you.

http://scn.sap.com/people/shabarish.vijayakumar/blog/2007/08/03/file-adapter-receiver--are-we-really...