cancel
Showing results for 
Search instead for 
Did you mean: 

Not getting header line in Receiver FCC

Former Member
0 Kudos

Hi PI Experts,

I am working on Receiver FCC where we required header line, tab delimiter as a field separator and new line as a end separator.

I have provided below Content Conversion Parameters in communication channel, but i am not getting header line in target file.

Content Conversion Parameters

****************************************

Recordset Structure          Header,LineItem

Header.addHeaderLine        3
Header.headerLine              HeaderField1,HeaderField2,HeaderField3,HeaderField4........................

Header.fieldSeparator          '0x09'
Header.endSeparator          'nl'
LineItem.fieldSeparator        '0x09'

LineItem.endSeparator        'nl'

Please correct me, if i am configuring wrong.

PFA screen shots of FCC parameters and mapping structure.

Thank you,

Chakradhar N

Accepted Solutions (1)

Accepted Solutions (1)

iaki_vila
Active Contributor
0 Kudos

Hi Chakradhar,

If you have one Header line you can't have Header with 0..unbounded cardinality in the XML. Have you try to set 0..1 like the cardinality?.

Regards.

Former Member
0 Kudos

Hi Inaki,

Thanks for the suggestion, i have changed cardinality for Header (0..1)

but no luck.

Please let me know, if am missing anything else

Thank you,

Chakradhar N

engswee
Active Contributor
0 Kudos

Hi Chakradhar

Please check the following thread which has the same situation as yours.

Re: addHeaderLine FCC parameter not working with complex receiver structure in PI 7.31

The last reply by Beena refers to an important note in the SAP Help documentation.

This specification is only permitted if exactly one structure is defined.

Since you are having more than one structure in your Recordset Structure, addHeaderLine is not applicable. This is also consistent with behavior of MessageTransformBean which allows that parameter only for simple transformation.

Rgds

Eng Swee

Former Member
0 Kudos

Hi Eng Swee,

Thanks for the clarification.

Could you please suggest me how can we get header line, if we have more than one structure in Recordser Structure.

Is that we have to take duplicate subtree in mapping level and pass the header field names using constant.

Please suggest me.

Thanks in advance.

Thank you,

Chakradhar N

engswee
Active Contributor
0 Kudos

Hi Chakradhar

Yes, you will need to handle this via mapping. Your suggestion sounds fine, create two sections of Header, one mapped with constants of the field names, the other with the actual header values.

Rgds

Eng Swee

Former Member
0 Kudos

Hi Eng Swee,

Thanks for your valuable suggestion.

I have done this in mapping and it is working fine.

Thank you,

Chakradhar N

Answers (0)