2011 Jan 25 11:57 AM
I am Doing Dialog Programming,
In Table control I have to insert some values, by clicking on INSERT Button, so now its allowing only single rows to edit..
But as per my requirenments "I want atleast 10 Rows should be editable,at a time when user clicks on INSERT."
Plz have eye on it.
your suggestions are always welcome.
Regards
Vivek
2011 Jan 25 1:19 PM
Hi,
Try this
if sy-ucomm = 'INSERT'.
add 10 to tabc-lines. "tabc is the table control.
endif.
Thanks,
Anmol.
2011 Jan 25 12:28 PM
Hi
in PBO
module insert.
loop at itab.
endloop.
in program
module insert.
if ok_code = 'INS'.
DESCRIBE TABLE ITAB LINES TC-LINES.
TC-LINES = TC-LINES + 10. " This will insert 10 lines in Table control
ENDIF. "or
do 10 times.
insert initial line into itab. " For More info Take F1 help on this Key word
enddo.
endmodule.
Cheerz
Ram
2011 Jan 25 12:52 PM
hi vivek,
please decleare a field symbol to your table control for example:
FIELD-SYMBOLS: <tc> TYPE cxtab_control.
ASSIGN tc TO <tc>.
the field-symbol <tc> has now the field 'LINES'. here you can declare how many rows you wanna show.
You should at the rows to your internal table too.
you can see which fields you can adjust in the structure SCXTAB_CONTROL.
you can set the field as input field with loop at screen.
i hope it will help you.
cheers
jens
2011 Jan 25 1:19 PM
Hi,
Try this
if sy-ucomm = 'INSERT'.
add 10 to tabc-lines. "tabc is the table control.
endif.
Thanks,
Anmol.
2011 Jan 25 3:34 PM
Thanks to all,
those who replied.
I got solution,
I have rewarded Point.
Post Closed.
Cheers
Vivek