‎2007 Sep 11 1:00 PM
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
‎2007 Sep 11 1:07 PM
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.
‎2007 Sep 11 1:15 PM
‎2007 Sep 11 1:35 PM
hi,
what u write just write that code because its working fine in my report.
‎2007 Sep 13 1:30 AM
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
‎2007 Sep 14 7:58 AM
hi
chk these programs
DEMO_DYNPRO_TABCONT_LOOP
DEMO_DYNPRO_TABCONT_LOOP_AT
thanks