Skip to Content
avatar image
Former Member

dynamic type conflict when assigning references web dynpro

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Mar 04, 2013 at 08:47 AM

    Hi,

    Issue got resolved by enhancing the WD table.

    Thanks for all who helped with their answers.

    Best Regards,

    Sathishkumar GS

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 01, 2013 at 12:21 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 01, 2013 at 01:28 PM

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 01, 2013 at 06:38 PM

    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?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 18, 2015 at 07:42 AM

    Hi All,

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

    Thank you,

    Venkat

    Add comment
    10|10000 characters needed characters exceeded