cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between Name and Code

former_member210091
Participant
0 Kudos

Hey Guys

I was going through documentation on Console and it mentions two properties(in addition to others),Name and Code.Both of these are Unique so whats the difference between them?

Thanx

Saif

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Saif,

Every field you create in MDM repository will have a Name and a Code.

The Name of the field,is the user given name to the field element to recognize it within MDM.

This name will appear in all the MDM clients you use like Data manager,Console,Import Manager and the Syndicator.

The Code is like a technical name to the field and is used to identify the Field in question in use with many applications like for ex API.

In such cases the Code of the field is used to recognize the Field in consideration for performing any operation on the field value.

In the earlier version of MDM the Code of the lookup field was used to establish the link between the main table Lookup field and the lookup tabel.

The code cannot have blank spaces in between its name only underscores are allowed.

Hope It Helped

Thanks & Regards

Simona Pinto

Answers (7)

Answers (7)

Former Member
0 Kudos

Hi Saif,

Its not mandatory that Code and Name should match.

Code is used for internal purpose. Meaning for each process the MDM check only Code, not Name.

Name is user specific. We can give any name here. Its just for user identification.

Regards,

Nikhil

Former Member
0 Kudos

Hi Saif,

Apart from the above posts Code once assigned cannot be changed. In order to change the Code of the field you need to delete and re-create the field.

Name is to identify the fields

Code is used with API

Kindly update the thread status

Regards,

Jitesh Talreja

Former Member
0 Kudos

Hi saif,

apart from these above point,

1)you cann't have two same codes for fields

2)you can use only:a-z,A-Z,0-9 and _ in codes..but in name you can write of you choice.

Regards

Biswanath

Former Member
0 Kudos

Hi,

The Code property is non-lingual and allows you to refer to objects in a language-layer independent way. Unlike Name, which is for display purposes and may include non-portable characters, Code is used within the MDM APIs to reference objects, and can also be used in a variety of external contexts like example : as a folder name, within XML.

Former Member
0 Kudos

Hi,

As you said Name and code are unique.

But difference is Name can consists of both alpha-numeric and non alpha-numeric characters , Code

consists of alpha-numeric and can not have special characters except underscore.

Field name is used in field mapping in import manager and syndicator.

Field code is used to refer particular field when we work with Java API and ABAP API.

Thanks

Narendra

Former Member
0 Kudos

Hi Saif,

Name of the field is used to identify the fields in MDM system for import and syndicate purpose.

While code is required when you need to refer to that field in your codes of any of the APIs.

Apart form that, it is very important to verify that no two codes of any objects like fields, lookups etc should be same.They should always be unique.

Hope it helps.

Thanks,

Minaz

Former Member
0 Kudos

Hi Saif

Name of the field is Description and code is always used for technical purposes.In code we cannot have blank spaces and they are used for identifying the fields from POrtal or external services. Field names are used for mapping during import or syndication or MDM internal activities.

Hope this helped.

Regards

Ravi Kumar