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

Table Control - Move cursor next line

Former Member
0 Likes
1,673

Dear All,

I have created table control with two fields - Invoice No. & Quantity.

When I am entering invoice no. first time (first row) and pressing enter key my cursor going to field qty but rest of the line of table control becomes gray (inactive) and i dont want like this, i want it to remain active, means i can enter value in second line also.

how to solve it...?

Regards,

Dharmesh

5 REPLIES 5
Read only

Former Member
0 Likes
908

hi,

try this.

make change in MODULE <b>tab1_change_tc_attr</b> of PBO.

because when u press enter ur sy-ucomm is space.

<b>MODULE tab1_change_tc_attr OUTPUT.</b>

IF ok_code or sy-ucomm IS NOT INITIAL.

DESCRIBE TABLE itab_det LINES tab1-lines.

ENDIF.

<b>ENDMODULE. </b> "TAB1_CHANGE_TC_ATTR OUTPUT

it will solve ur problem.

Read only

0 Likes
908

sorry dhwanit...

it is not working...

Read only

0 Likes
908

hi,

what u write just write that code because its working fine in my report.

Read only

Former Member
0 Likes
908

I assume from your description that the cursor is moving to the quantity field because you have a validation saying quantity must be provided, and you are issuing an error message (or that the qty column is marked as mandatory)? If so, the greying out you are seeing is the standard behaviour for the table control... normally you fix the value with the error and press enter again and all is well in the world.

If you don't want this greying-out to happen, you will have to play around with setting a flag in the validation to say there has been an error on line X, flicking through PAI and back into PBO, issuing an "S" message, putting the cursor in the right spot and re-displaying the screen just so that the table control lines all stay open for input.

Jonathan

Read only

Former Member
0 Likes
908

hi

chk these programs

DEMO_DYNPRO_TABCONT_LOOP

DEMO_DYNPRO_TABCONT_LOOP_AT

thanks