Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Set Cursor to next row Field in Table

Hi Experts,

I have a requirement in WDA table, when user click on Enter button from key board, cursor should move to the next row in table and without clicking on that columns user should type the message,

Right now user is able to type the message only after clicking on that cell.

Please guide me

Former Member
replied

Hi Rohit,

Please check with following code.

LO_NODE   = WD_CONTEXT->GET_CHILD_NODE( 'DIAGNOSE' ).

lv_index = lo_node->GET_LEAD_SELECTION_INDEX( ) .

lv_index = lv_index + 1.

LO_NODE->SET_LEAD_SELECTION(  lv_index ).

   LO_ELEMENT = LO_NODE->GET_ELEMENT( ).

   LO_RUNTIMEAPI = WD_THIS->WD_GET_API( ).   LO_RUNTIMEAPI->REQUEST_FOCUS( ATTRIBUTE = 'ICDDESC' CONTEXT_ELEMENT =LO_ELEMENT ).



Thank You,

Harsha

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question