cancel
Showing results for 
Search instead for 
Did you mean: 

file content conversion

Former Member
0 Kudos

Hi ,

In file content conversion why key field name is used?

Regards,

somenath

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi ref this

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

Key Field Name

If you specified a variable number of substructures for Recordset Structure, in other words, at least one substructure has the value ‘*’, then the substructures must be identified by the parser from their content. A key field must be set with different constants for the substructures. In this case, you must specify a key field, and the field name must occur in all substructures.

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

Check this links it will be clear to u.

/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1

/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2

/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion

/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file

/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter

/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1

/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2

/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30

/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file

/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter

/people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns

/people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem

/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter

/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion

http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm

Regards,

phani

Reward points if Helpful

Former Member
0 Kudos

Hi ,

What will be the key field for this structure?

Regards,

somenath

Former Member
0 Kudos

Hi Somenath,

in file adapter , there will be a option for key field. You can give any name there with proper type. then in parameter setting , in field list for each line you have to specify key field as first first field. You can specify the fixed size of each field in next parameter. once you have done parameter settign for a particular type of line you have tell adapter to ignore the previous settings and then you have specify new setting for other line. there is paramter for ignoring the setting also. Go through the sap help documentation/

Ranjeet Singh.

Former Member
0 Kudos

Hi Somenath,

Suppose your file is like this.

1ranjsing 3033333 3356646 65665

1archsing 458785 5454554 55656

2 raj 456123 533856 658945

2 sin 5858 4575 5454 5454

As you can see here like starting with 1 has a particular format and line stating with 2 has different fixed format.

so while reading data from file like that you specify a key field which will identify the line and according we specify parameter setting for those line. similarly we will have different parameter setting for line starting with 2.

I hope it clear.

Ranjeet Singh.

Former Member
0 Kudos

Hi all,

Can u pls explain with example.........

Regards,

somenath

former_member240483
Contributor
0 Kudos

Hi somenath ,

In content conversion if u want pick a specific type of recorsd then u have to give Key field.

Regards

Rao