cancel
Showing results for 
Search instead for 
Did you mean: 

Different Key field Names - Possible?

Former Member
0 Kudos

Hi All,

I have 2 main nodes, Header and Detail. Is it possible for me to have a different nodes (like Hkey in header & Dkey in Detail) as keyfields?

Thanks & Regards,

Jai Shankar.

Accepted Solutions (1)

Accepted Solutions (1)

moorthy
Active Contributor
0 Kudos

HI,

You need to have one keyfield and value can be Header Key value, Details Key value. This keyfield name is any name . And it should be there is each nodes

For more

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

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

Regards,

Moorthy

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Moorthy,

I think I am not clearly explaining my query.

I have H&D values for header & detail respectively. But my query is that can I have a structure like this.

Header

>Hkey

>node1

>node2

Detail

>Dkey

>node3

>node4

Here can I have Hkey to hold H value and Dkey to hold D value? Or should both Hkey & Dkey must have a common name?

Thanks & Regards,

Jai Shankar.

Former Member
0 Kudos

Hi Moorthy,

Thanks for ur help. I have different values for header & detail key field. So I assume it is not possible to have 2 different nodes say Hkey & Dkey as keyfield.

Please correct me if I am wrong.

Regards,

Jai Shankar.

moorthy
Active Contributor
0 Kudos

No, you need to have one key field, and value of this can be different in each segment/node.

E.g

H,123,122...

D,123,4,4....

H,123,122...

D,123,4,4....

If your file looks like this, and assume your file contains H for ( Header)and D for (details)> and these values acts as key value to determine the nodes.

Then keyfied name be any name like <i>Key</i>.

But here, <i>Key</i> value is different in each segment right. It is possible in file adapter. SO I think it clarifies you.Also have a look into the given blog to get more

Regards,

Moorthy