You use this procedure to reuse context attributes using code snippets in Web Dynpro.
You have created:
Windows and views.
For more information, see Creating Components
Context.
For more information, see Creating Context Trees Manually
In the Web Dynpro perspective, choose
.In the Web Dynpro explorer, select the required view.
Choose
using the right mouse button.Drag the Relate Context Attribute snippet, and drop it in the suitable user code area of the Java editor.
In the Insert Snippet: Relate Context Attribute dialog box, drag the required context attribute from the source and drop it on the target context attribute.
Choose Finish.
In the confirmation dialog box, choose Yes to insert the snippet in the Java editor.
Values from the source context attribute are copied to the target context attribute.