cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Content Conversion

Former Member
0 Kudos

Hi there

I have a scenario that produces different output structures. All of the comes from the same MM and goes to the same output file which is a fixed length flat file. Lets say I have 3 types of output:

Type1:

Name

Surname

Type2

Name

Surname

Address

Type3

Name

Surname

Address

Phone

How can I design my content conversion that it would handle these 3 types? each type has got a different number of fields. Like I mentioned this must be fixed length.

Thanks,

Jan

Accepted Solutions (1)

Accepted Solutions (1)

former_member581827
Participant
0 Kudos

Hi,

I think you can have look at below and try to implement in your scenario.

Use the following parameters if you want to influence the behavior of the conversion routine for inbound structures that deviate from the configuration.

● NameA.missingLastfields

If the inbound structure has less fields than specified in the configuration then the XML outbound structure is created as follows:

○ ignore

Outbound structure only contains the fields in the inbound structure

Warm Regards,

Chandra.

Answers (5)

Answers (5)

prasannakrishna_mynam
Contributor
0 Kudos

Hello,

@Chandra

Hi,

I think you can have look at below and try to implement in your scenario.

Use the following parameters if you want to influence the behavior of the conversion routine for inbound structures that deviate from the configuration.

u25CF NameA.missingLastfields

If the inbound structure has less fields than specified in the configuration then the XML outbound structure is created as follows:

u25CB ignore

Outbound structure only contains the fields in the inbound structure

Warm Regards,
Chandra.

NameA.missingLastfields is not supported at receiver CC, i have tried with this, but failed. Could you check this again.

I have tried the following it works ok.

In FCC, use the follwing parameters:

RecordSetStructure: Type (Incase type is your parent node)

Type. fieldSeparator = , (it may by any thing #, etc)

Type.endSeparator = 'nl'.

Inorder to produce the same output strucutr in flat file like below

Name,Surname,,
Name,Surname,Address,
Name,Surname,Address,Phone

Check this link where i have explained how to solve this issue.

Regards,

Prasanna

jyothi_anagani
Active Contributor
0 Kudos

Hi,

You have to use diiferenent CC for diiferent nodes.

use fieldFixedLength and use keepIncompleteFields. You will get it.

For More Help Refer This Link.

http://help.sap.com/saphelp_nw2004s/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm

Thanks.

Former Member
0 Kudos

NameA.fieldFixedLengths

Specify a character string containing a list of fixed column widths that are separated by commas and determine the number and the length of columns generated in the text file.

Kindly check this link for detail[http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm]

Former Member
0 Kudos

Hi,

Just add the NameA.missingLastfields :ignore .

Maintain the FCC parameter for Type3 structure.

Regards,

Prakasu.M

Shabarish_Nair
Active Contributor
0 Kudos

dynamic content conversion is not possible

you will have to use different CC per different message you need.