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 controls

Former Member
0 Likes
555

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
531

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

5 REPLIES 5
Read only

Former Member
0 Likes
532

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

Read only

Former Member
0 Likes
531

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.

Read only

Former Member
0 Likes
531

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

Read only

0 Likes
531

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

Read only

Former Member
0 Likes
531

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