cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the text of a label

former_member184114
Active Contributor
0 Kudos

Hi,

I would like to change the text of a label  in one of the iveiws. When I double click on that respective label, I get a property box below. When I click on change value button, I get some other window where from I have to select the text.

May you please advise how I  achieve this?

Regards,

Faisal

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

issue resolved ?? If yes, please close the thread.

former_member184114
Active Contributor
0 Kudos

Chandra,

Thanks for your reply and sorry for the delay as I was not able to access this.

Now I am being helped by my developer for this. Therefore, left to him now.

By the way, the change in logo, label caption and text is a routine work. Any customer wants to replace the original SAP log with his own. When I investigated the  way in which this can be done in system, I found the component details as discussed earlier.

May you please tell me is this the only way for there are any other ways to do this?

Regards,

Faisal

Former Member
0 Kudos

This is the only way, go to coding or design level and change...

Or create a DB for this and fill all label text into DB and store the value form that DB on UI, and whenever someone want to change something just change in DB, But this will be too complex and not suggested too.

Answers (1)

Answers (1)

Former Member
0 Kudos

You need to go to that view and label (not at the application level) and rename it.

former_member184114
Active Contributor
0 Kudos

Chandra,

Thanks for you quick reply.

Yes I have gone to that view and label. Please suggest further.

Former Member
0 Kudos

then one 'Text" property will be there with label, just rename the value of that.

former_member184114
Active Contributor
0 Kudos

Thanks for your reply.

Currently, I have "V_END_USER_LOGIN.TEXT".

Should I simply change it to "My Name", for example?

Regards,

Faisal

Former Member
0 Kudos

No, Now check in your method where you are providing value in the node (v_end_use_login and attribute Text.)

Usually we sets in wddoinit method. and then change the value of that.

ramakrishnappa
Active Contributor
0 Kudos

Hi,

Yes, you can change that to your text.

But, please note that the label text is bound to context attribute TEXT of node V_END_USER_LOGIN.

You can also set the value of TEXT attribute by using method SET_ATTRIBUTE as below

              

         

               lo_context_element->set_attribute(

                    exporting

                         name = 'TEXT'

                         value = 'My Name' ).

Regards,

Rama

Former Member
0 Kudos

there will be some code like ..


***

***

V_END_USER_LOGIN-TEXT = '<Current text>'

***

***

lo_el_v_end_use_login-> set_static_attributes(
       EXPORTING
         static_attributes = v_end_use_login ).




Now what you have to do.. change the <Current text>' with your desired value.