Skip to Content
avatar image
Former Member

web dynpro qustion

hi

i have a general qustion,in Tutorials 3 i have to call the metod <b>wd_context</b>

my qustion 1.how i have to now that this is the metod i have to call

CALL METHOD wd_context->set_attribute

EXPORTING

  • index = use_lead_selection

value = text

name = 'TEXT'

2. how i have to now which class is wd_context class becose i wont to call it in pattren ,i new in objects.

thankes

.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Aug 16, 2007 at 03:01 PM

    To your first question, this will come with experience, in this case you want to update the contect attribute TEXT with a new value, so you would use the method SET_ATTRIBUTE to do so. the WD_CONTEXT is the built in reference to the context object, so you can directly call its methods.

    http://help.sap.com/saphelp_nw70/helpdata/en/64/be5b4150b38147e10000000a1550b0/frameset.htm

    Regards,

    Rich Heilman

    Add comment
    10|10000 characters needed characters exceeded

    • Also, to answer your second question, you can find out what WD_CONTEXT references by simply double clicking on it. It is a instance of an interface IF_WD_CONTEXT_NODE.

      Regards,

      Rich Heilman