cancel
Showing results for 
Search instead for 
Did you mean: 

dynamic type conflict when assigning references web dynpro

Former Member
0 Kudos

Hi,

I am trying to edit the standard field label from Web Dynpro.

using this thread http://scn.sap.com/thread/1880239 I have done the things and I am getting the dump saying

"dynamic type conflict when assigning references web dynpro"

data lr_lbl type ref to  cl_wd_label.

lr_lbl ?= view->get_element( 'LABEL1' ).          "label1 is the ID of the label UI element

LR_LBL->SET_TEXT( 'New Text' ).

Could anyone pl let me know what is the error here and is there any other way to edit the standard labels.

Thanks,

Sathishkumar GS

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Issue got resolved by enhancing the WD table.

Thanks for all who helped with their answers.

Best Regards,

Sathishkumar GS

Answers (4)

Answers (4)

venkatakrishna
Active Participant
0 Kudos

Hi All,

Can you Please explain me what is mean by enhancing webdynpro table..?

Thank you,

Venkat

Former Member
0 Kudos

It is always good practice to check whether lr_lbl is bound before you call any methods. The error also says there is a type error. Make sure you select the proper UI class for element LABEL1. It might be called LABEL, but is it actually a label?

Former Member
0 Kudos

lr_lbl ?= view->get_element( 'LABEL1' ).     in this statement please check LABEL ID

Former Member
0 Kudos

Hi,

Check the ID of the label you are passing. Make sure that it is the ID of the label for which you want to change the text.

Best regards,

Arun Krishnamoorthy