‎2023 Sep 21 1:24 PM
i am facing some cursor postion issue in module pool that the cursor moves to the first box (delivery) when input grid is full it should move to next line of the grid could you please help me for this
MODULE next_line OUTPUT.
IF ok_code = 'ENTER'.
*Validate the entered value
*If OK increase curosr value by 1 and Set the Cursor to next line.
gv_lin = gv_lin + 1.
SET CURSOR FIELD 'WA_SOL-PRODUCT' LINE gv_lin. " VEKP_VENUM is table control field name
*Else
*Display an Error message
ENDIF.
ENDMODULE.
MODULE next_line INPUT.DATA: l_ok TYPE sy-ucomm.
IF ok_code = 'ENTER'.
*gv_lin = gv_lin + 1.
SET CURSOR FIELD 'WA_SOL-PRODUCT' LINE gv_lin. " VEKP_VENUM is table control field name
*Validate the entered value
*If OK increase curosr value by 1 and Set the Cursor to next line.
*Else
*Display an Error message
ENDIF.
ENDMODULE.
‎2023 Sep 21 1:38 PM
‎2023 Sep 21 1:38 PM
Look at SAP provided samples in online help or reports such as DEMO_DYNPRO_TABCONT_LOOP or search forum (FAQ).
‎2023 Sep 22 9:41 AM
SET CURSOR is the correct way to position cursor. Based on your current input, impossible to help you more, sorry, please clarify.