cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

I am a newbie to dynpro. From whatever programs i have written till now i have observed that whenever we call functions like GET_ATTRIBUTES or SET_ATTRIBUTES in the following way

1) X -> GET_ATTRIBUTE

......................................

2) CALL METHOD X->SET_ATTRIBUTE

..................................

Now in place of X , if i write the NODE variable name (of type IF_WD_CONTEXT_NODE) or ELEMENT TYPE( by using GET_ELEMENT for a node) it works for both of them.

So what is the difference between the two and which is better to use.I understand that node contains an element which refers to the attributes but in this example I am not able to figure out the difference

THANKS

0 Likes
View Entire Topic
Former Member
0 Likes

Hi amber,

IInterface F_WD_CONTEXT_NODE enables a single Context Node to be filled or

data to be fetched from a context node.

By declaring this you can access various elements of your context node.

SET_ATTRIBUTE :- This method assignes a value to an individual field of context element.

CALL METHOD ME->SET_ATTRIBUTE

EXPORTING

  • INDEX = USE_LEAD_SELECTION

NAME =

  • IMPORTING

  • VALUE =

.

GET_ATTRIBUTE :- This method used to get the value of an indivisual field of context element.

CALL METHOD ME->SET_ATTRIBUTE

EXPORTING

  • INDEX = USE_LEAD_SELECTION

NAME =

  • IMPORTING

  • VALUE =

.

Go to code wizard ( magic wand ) and there you can find alll the context node and attribute you can use the SET and GET method directly from there. Even you dont have to change the NODE variable name also. The code will be auto generated.

Thanks & Regards,

Monishankar C