Commonly used methods in web dynpro ABAP

Most commonly used methods in web dynpro ABAP for context operations

+ -

The below are the methods we use most commonly in web dynpro component development.

Reading Writing
To read a single record.
 CALL METHOD  -> GET_ATTRIBUTE.
To write a single record.
 CALL METHOD  -> SET_ATTRIBUTE.
To read a all attributes of an element.
 CALL METHOD  -> GET_STATIC_ATTRIBUTES.
To write all attributes of an element.
 CALL METHOD  -> SET_STATIC_ATTRIBUTES.
To read a all attributes of all elements of a node.
 CALL METHOD  -> GET_STATIC_ATTRIBUTES_TABLE.
To write all attributes of all elements of a node.
 CALL METHOD  -> BIND_TABLE.

Other useful methods from IF_WD_CONTEXT_NODE, using node instance.

  • CREATE_ELEMENT - Creates an element into a node.
  • GET_CHILD_NODE - Gets child node instance.
  • GET_ELEMENTS - Get all elements of a node.
  • GET_ELEMENTS_COUNT - Returns number of elements in a node.
  • GET_LEAD_SELECTION_INDEX - Returns index number of lead selection.
  • GET_LEAD_SELECTION - Get elements of lead selection .
  • GET_SELECTED_ELEMENTS - Returns all selected elements.
  • INVALIDATE - Refresh node elements.

Other useful methods from IF_WD_CONTEXT_ELEMENT, using element instance.

  • GET_ATTRIBUTE - Get an attribue of an element.
  • GET_INDEX - Get index number of an element.
  • GET_STATIC_ATTRIBUTES - Get attributes of an element.
  • SET_ATTRIBUTE - Set an attribue to an element.
  • SET_STATIC_ATTRIBUTES - Set attributes to an element.

Learner Questions


No Questions by learners, be first one to ask ..!!

    Please Sign in to ask a question

    Was this lesson helpful to you? Yes No 16 People out of 17 think this lesson helpful


    Lesson Navigation

    ←Previous Chapter
    Next Lesson → Container UI elements in webdynpro ABAP