cancel
Showing results for 
Search instead for 
Did you mean: 

Content Conversion - Ignore extra last fields

Former Member
0 Kudos

Hi There

My content conversion has the following:

STRUCTURE.fieldNames

STRUCTURE.fieldSeparator

STRUCTURE.additionalLastFields

STRUCTURE.endSeparator

My payload has 22 fields and I only specify 20 field names in my CC.. Due to the parameter additionalLastFields, I don't get an error because of the extra 2 fields.. These field is used in the file name and not in the file itself.. But it adds it to the end of each line regardless. I suppose adding fixed Field length would solve this problem but that I don't have.

Is there a way to ignore these 2 by NOT adding it to the file? Maybe some parameter I migth have over looked?

Thanks

Jan

Accepted Solutions (0)

Answers (5)

Answers (5)

former_member732072
Active Participant
0 Kudos

Hi Jan,

Please have a look at the following link and see if it helps you.

Best Regards

Former Member
0 Kudos

hi you can try to use the parameter.

NameA.lastFieldsOptional

Former Member
0 Kudos

Hi,

Do the following:

1. In STRUCTURE.fieldNames: field1,field2....field22

2. In your datatype, define only from field1 to field 20.

It must work.

Regards

Ivan

Former Member
0 Kudos

Hi,

Please see the "Handling Structure Deviations" Section of the below link.

And configure the CC as specified. It will work

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

Shweta.

Former Member
0 Kudos

Hi,

Use the different structures for payload data and the fields to be used for file name.

Similar to STRUCTURE add one more structure as STRUCTURE1 and define those 2 fields over here.

The FCC parameters can also be dfefined accordingly.

STRUCTURE1.fieldNames= field1, field2

STRUCTURE1.fixedFieldLengths = 0,0

Thanks

Swarup

Edited by: Swarup Sawant on Sep 7, 2009 1:20 PM