on 2015 Mar 06 10:01 PM
Has anyone gone through the process of renaming fields in SRM? For example, on the shopping cart itself, the field is called goods recipient. However, under Change User Settings, the attribute is called Requisitioner. I've been asked in the past to change the names but have been reluctant because I don't know what impact this would have in other areas.
Any recommendations/suggestions would be appreciated as to how to change and if it is even recommended to do so. The fields have been this way since the beginning and most of our users are familiar with the naming.
Monique Stephens
Request clarification before answering.
Hi Monique
Yes I have seen its like that and earlier it was awkward but now its how it really is ..since I have been working for 5-6 years on it ..
If you change the field labels it wont impact a lot of things technically since its a webdynro screen and you will only be changing the text part of it /SAPSRM/WDC_DODC_SC_I_BD will be your webdynpro component in that you need to go to WDDOINIT and WDDOMODIFy methods and do coding to change the label of those fields ...
use this Class : CL_WD_LABEL and Method SET_TEXT can be used for the same .
Functionally : I would not recommended making a lot of changes except if it is for a few fields .. else
it may create confusion when the client upgrades as these changes would need be done again ..
Also SAP std nomenclature is how the system interacts with the other Modules ..
so in such cases if the client checks in backend it might be getting them confused .
But at the end of the day it should be driven by client to decide on what they really want ..
I hope that helps ?
Regards
Vinita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vinita,
I am trying to change DESCRIBE_ITEM text 'With Free Description' in view V_SC_DOTC_BASIC for
webdynpro /SAPSRM/WDC_DODC_SC_I_BD by using below logic ,but getting error
"dynamic type conflict when assigning references web dynpro" .
Data : lr_lbl type ref to cl_wd_label.
lr_lbl ?= view->get_element( 'DESCRIBE_ITEM' ).
LR_LBL->SET_TEXT( 'New Text' ).
I have come across with thread https://scn.sap.com/thread/3317202
can please explain me what they mean by enhancing the WD table...?
or any other way to achieve this , is there any issue if we change this in OTR,
Thanks for your Help,
Venkat
Hey Venkat
Try doing this 1st call the code wizard to get element do not WRITE the code .
Let it get generated automatically to ensure your TYPE declaration is correct ..
and then use this :
if lr_lbl is BOUND.
lr_lbl->set_text('TEXT').
endif.
Let me know if it works
Ideally a new thread should have been opened ..
Regards
Vinita
HI Venkata
Whats the webdynpro name you are using .I will give you the exact code after I try in my system .This is how you should do basically
DATA : l_label TYPE REF TO cl_wd_label.
l_label ?= view->get_element( 'REF_DOC_LABEL_CP' ).
IF L_label is BOUND .
l_label->set_text( 'test' ).
ENDIF .
NOTE : You need to ensure you are putting the LABEL name REF_DOC_LABEL_CP and not the field name .. I hope you understand ?
Regards
Vinita
Hi Vinita,
I am trying to change DESCRIBE_ITEM text 'With Free Description' in view
V_SC_DOTC_BASIC for webdynpro /SAPSRM/WDC_DODC_SC_I_BD
by using below logic.
DATA : l_label TYPE REF TO cl_wd_label.
l_label ?= view->get_element( 'DESCRIBE_ITEM' ).
IF L_label is BOUND .
l_label->set_text( 'test' ).
ENDIF .
DESCRIBE_ITEM is ID of the field from field properties and I am trying
this in Pre exit of WDDOMODIFYVIEW.
But still I am getting Error
'Dynamic type conflict when assigning references'.
Thanks for all your Help,
Venkat
Hi Venkat
Could you please share a screenshot of what you were trying to change ..
I checked in my system, but in the webdynpro /SAPSRM/WDC_DODC_SC_I_BD
I have a view V_DODC_SC_I_BD and not the one which you mentioned ..V_SC_DOTC_BASIC
So I am not sure what you were trying to rename ..
if you could please share a screenshot . I know your issue is fixed but just for my understanding..
Regards
Vinita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.