cancel
Showing results for 
Search instead for 
Did you mean: 

How to change Standard Business Object Label Dynamically.

nikhilwalsetwar
Contributor
0 Kudos

Hello All,

I am working on the requirement as,

field label should change depending on business role.
I tried with UI-Switch, but it seems we can only manage its properties i.e. we can only make it as "visible","Mandatory" and "Read only".

but we can't change label through it.

Can anyone please assist me to obtain solution.

Thanks in advance,

Nikhil

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Nikhil,

Is your requirement to change the label of the field based on different languages (like French, Spanish etc) ?

Best Regards,

Mimo

nikhilwalsetwar
Contributor
0 Kudos

Hi Mimokant,

     Thanks for responding.

     No my requirement is to change the label based on user( or we can say role dependent) , in default language.

Regards,

Nikhil

former_member190501
Active Contributor
0 Kudos

Hi ,

You can do this at Adopt -->Edit Page layout as follows :

Once you are done with required changes assign those changes to relevant Business Role.

Thanks,

Raju

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Raju,

You're right. Much easier than my suggestion.

I always forgot that the Page Layout works with Business Roles for exact such use cases.

Bye,

    Horst

nikhilwalsetwar
Contributor
0 Kudos

Thanks Raju,

But that option is not available for "Edit Page Layout".

Is there any configuration or settings through which I can enable this?

Regards,

Nikhil

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Nikhil,

It's in the Master Layout.

HTH,

   Horst

nikhilwalsetwar
Contributor
0 Kudos

Hello Horst,

Yes but it will reflect for all roles. Which won't fulfill my requirement.   ..

To be precise my requirement is, to change Label for only specific business role.

Regards,

Nikhil

chandansb
Active Contributor
0 Kudos

Hello Nikhil,

How about creating multiple field and implement field level access restrictions (you can find this under Fields & Actions tab under Business Roles configuration) on them? You only have to sync the value among these fields. Changes in any field's values must sync that to other.

Regards,

Chandan

nikhilwalsetwar
Contributor
0 Kudos

Thanks Chandan,

Yes, that is also one of the ways to solve it.

But this will create huge scrap data which we won't require in future.

Consider if we require this scenario for 10 roles and for 10 fields.

Now you can imagine how massive unused data will create. although we are not using it.

So instead of this way we should find exact solution.

Regards,

Nikhil

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Nikhil,

You may have the same field with several times on the UI, always with a different label.

Depending on the UI Switch only one of those fields is displayed.

HTH,

    Horst

nikhilwalsetwar
Contributor
0 Kudos

Hello Horst,

I didn't get you .. Could you please elaborate.?

Regards,

Nikhil

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Nikhil,

You wrote, that you are able to hide / show a specific field via a UI Switch.

Add the same field twice (or more times) on the UI and define a different label per field as follows

Textpool -> Overwrite text

Then you should be able to show only one field (the one one with the desired label) depending on the UI Switch.

HTH,

    Horst

nikhilwalsetwar
Contributor
0 Kudos

Dear Horst,

Bravo.!!!!

But I couldn't find a way through which I can add existing field twice.

Can you please provide the path where I can,

1. Either add the same field twice or

2. how can I use TextPool.

Looking forward for your reply.

Regards,

Nikhil

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Nikhil,

Just drag-and-drop the field to the place in the UI where you want it to appear.

If you repeat this a second and a third time, you will get 2 resp. 3 fields on the UI with the same binding.

Then you click on the triangle on the right of "Label",

select "Overridden Text" and enter your text in the area below.

BTW: Is this a own UI or do you extend a SAP UI?

Bye,

    Horst

nikhilwalsetwar
Contributor
0 Kudos

Hello Horst,

Yes I am trying to extend a SAP UI.

The way you suggested will only work for Custom business object.

But our aim is for Standard business object.

Regards,

Nikhil

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Nikhil,

Then you need to follow the approach from , eben if this will creat a lot of superflous fields.

But you can select one field as lead for the maintenance.

Sorry,

   Horst