Renamed instance node is overwritten
[Case] [edit] [instance] [node is floating] [overwritten] [pin vss is renamed] [record] [rename] [renamed]
Symptom
In 620 release, open a record in edit mode. Rename a record instance element(record/case instance) and save the record. Then double click on the instance to open it and modify and save it. Now the renamed instance of the record is overwritten by the original instance name.
Other terms
case, record, rename, instance, edit
Reason and Prerequisites
The issue is resolved in all higher releases (other than 620)
Solution
Do the following manual activities before applying this note :
Goto SE80 transaction and add the below interface attributes and methods -
1> Adding attributes to IF_SRM_XML_ELEMENT
. Access the interface IF_SRM_XML_ELEMENT.
. Switch to Edit mode.
. Add the following 2 attributes(C_DESCR_CHANGED_GUI AND C_DESCR_CHANGED_API) along with their details to it and save -
i>
ATTRIBUTE LEVEL TYPING REFERENCE TYPE
C_DESCR_CHANGED_GUI Constant Type STRING
DESCRIPTION INITIAL VALUE
Beschreibung wurde 黚er GUI ge鋘dert ‘G’
ii>
ATTRIBUTE LEVEL TYPING REFERENCE TYPE
C_DESCR_CHANGED_API Constant Type STRING
DESCRIPTION INITIAL VALUE
Beschreibung wurde 黚er API ge鋘dert ‘A’
2> Adding attributes to IF_SRM_SP_RECORD_ELEMENT
. Access the interface IF_SRM_SP_RECORD_ELEMENT.
. Switch to Edit mode.
. Add the following attribute(ATTRIBUTE_CHANGE_DESCRIPTION) along with the details to it and save -
i>
ATTRIBUTE LEVEL TYPING REFERENCE TYPE ATTRIBUTE_CHANGE_DESCRIPTION Constant Type STRING
DESCRIPTION INITIAL VALUE
SRMXM_REC_ATTR_CHGDESCR
3> Changing parameter of interface method -
. Access the interface IF_SRM_XML.
. Switch to Edit mode.
. Click on the methods tab and select the method – GET_ATTR_BY_GID()
. Click on the Parameters button and add the following new parameter and save -
PARAMETER TYPE TYPING REFERENCE TYPE
CHANGE_DESCRIPTION Exporting Type STRING
4> Redefining subclass method
. Open the class CL_SRM_XML_REC_INSTANCE.
. In the methods dropdown goto Inherited methods of the class.
. Find and right click on the method UPD_ELEMENT_DESCR_BY_GID, select the option ‘Redefine’.
. Then activate the method.
5> Adding exporting parameter to class method
. Open the class CL_SRM_XML_INSTANCE
. Goto the methods dropdown and access the method – GET_ATTR_BY_HANDLE
. In edit mode add the following eporting parameter (CHANGE_DESCRIPTION) -
ATTRIBUTE LEVEL TYPING REFERENCE TYPE
CHANGE_DESCRIPTION Exporting Type STRING
DEFAULT VALUE DESCRIPTION
flag description changed
Then please apply the note