Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

modulepool cursor position issue

161199
Newcomer
0 Likes
1,286

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.
3 REPLIES 3
Read only

RaymondGiuseppi
Active Contributor
1,205

Please use a correct tag such as ABAP Development

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,205

Look at SAP provided samples in online help or reports such as DEMO_DYNPRO_TABCONT_LOOP or search forum (FAQ).

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,205

SET CURSOR is the correct way to position cursor. Based on your current input, impossible to help you more, sorry, please clarify.