‎2007 Mar 04 10:39 AM
Daer all,
I have some clarifiactions in table control. I am able to display using table control,but data should be in display mode( non-editable format).
with regards,
prince elvis
‎2007 Mar 04 10:52 AM
Hi,
check below code.
loop at screen.
if screen-name = 'screen'.
screen-input = 0.
endif.
endloop.
or else in program attributes u can check the checkbox output field.
check this link.
http://help.sap.com/saphelp_erp2005vp/helpdata/en/45/adee2396f711d1b46b0000e8a52bed/frameset.htm
Regards,
Sruthi
‎2007 Mar 04 10:52 AM
Hi,
check below code.
loop at screen.
if screen-name = 'screen'.
screen-input = 0.
endif.
endloop.
or else in program attributes u can check the checkbox output field.
check this link.
http://help.sap.com/saphelp_erp2005vp/helpdata/en/45/adee2396f711d1b46b0000e8a52bed/frameset.htm
Regards,
Sruthi
‎2007 Mar 04 10:57 AM
Hi,
In screen, double click on the columns of table control then you will be able to view the attributes screen of table control in that you can see the 'program tab', in that choose not possile option for input only or choose output only option.
Award points if it helps you
Br,
Laxmi.
‎2007 Mar 04 11:20 AM
Dear all ,
I was able to view the contents in display mode , but i m not able to select the records for updating in the database table.
thank u for u response
with regards
prince elvis
‎2007 Mar 04 12:08 PM
Hi,
check this
PROCESS AFTER INPUT.
LOOP AT itab.
MODULE table.
ENDLOOP.
MODULE table .
itab-<field1> = tc-current_line.
MODIFY itab INDEX tc-current_line.
ENDMODULE.
For save u write below code
when 'SAVE'.
modify <dbtab> from table itab.
Regards,
Sruthi
‎2007 Mar 04 12:24 PM
Hi,
In the table control you need to provide the selec option . To select the records in the table control.
say suppose selec type c in the internal table of the table control .
data: begin of itab occurs 0,
selec type char1,
-
-
end of itab.
Now in the screen .. at the attributes of the table control .--- you will have one option w/sel colum --- give itab-selec.
Now in the PBO.
if itab-selec is not initial.
***modify the data with selec in the table.
modify itab from itab transporting selec where matnr = itab-matnr.
endif.
PAI:
in the user-command.
read table itab where selec = 'X'.
write your logic.
Br,
Laxmi