Retrieve user input to SAP webDynpro field
Below is the ABAP code to retrieve the value of an ABAP webDynpro field. The the field is bound to field 'PERNR' which is within context node
'USER_DETAILS'. See here for how to create webdynpro context within your ABAP web dynpro application.
Data: context_node type ref to if_wd_context_node,
ld_pernr type pernr-pernr.
* Retrieve value of webDynpro field
context_node = wd_context->get_child_node( name = 'USER_DETAILS').
context_node->GET_ATTRIBUTE( exporting NAME = 'PERNR'
importing value = ld_pernr ).
|