05-25-2011 8:28 AM
Hi Guru's,
I am working on Table control in module pool . I have a input field in the screen based on that I am fetching data in table control.
. once records fetched in table control it became non editable. Now I want to add more records in table control manuvally .
How to edit table control after fetching the records. will you please any body give the solution.
Thanks,
Santhosh
05-25-2011 9:00 AM
Hi,
Add an + icon in the bottom of the table control. Implement logic to add empty row to the table control whenever you click on that + icon. Other properties like increasing size of the table control or adding row to the table control logic can be build based on the PBO module code of that table control.
Please get back here if you are not able to do that.
Thanks,
Naveen Inuganti.
05-25-2011 9:00 AM
Hi,
Add an + icon in the bottom of the table control. Implement logic to add empty row to the table control whenever you click on that + icon. Other properties like increasing size of the table control or adding row to the table control logic can be build based on the PBO module code of that table control.
Please get back here if you are not able to do that.
Thanks,
Naveen Inuganti.
05-27-2011 1:58 PM
add a button through fct code name it as update so when you inserting any data it immediately updated than the screen again comes to normal position ther now you can select the input .code given blow
when 'update'.
update and
refresh ' table'
and again give the select statement
thanking .
05-27-2011 2:07 PM
05-28-2011 6:22 AM
Hi,
After input, if you are feching multiple records and showing all in table control then
make describe tables line as 0 in PBO.
like
DESCRIBE TABLE ITAB LINES WRK_LINES.
CLEAR WRK_LINES.
If you are fetching only one record after input value, then
DESCRIBE TABLE ITAB LINES WRK_LINES.
WRK_LINES = WRK_LINES - 1.
Hope this will solve your problem.