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 contrl help red??

Former Member
0 Likes
594

hi

I need to add a checkbox,in the first column in the table contol,so that,there can be same no. if check box in the display as the no. of recrds in the table,so that the user can process the data based on the checkbox,in the way if there is 10 records in table & user only wants to porcess 5 records,tha is ticks/unticks the 5 records to process futher.

Can any one tell me how to do this?

regds.

5 REPLIES 5
Read only

Former Member
0 Likes
577

Hi Vipin,

In the screen editor insert a one-character field in the table control and then use menu Edit->convert->Check box.

Regards,

John.

Read only

0 Likes
577

Hi

I am a beginer,plz explain me a little bit more.

I need to insert 2 table-filed & a chaekbox in the table contraol.

I had inserted the fileds,but its showing the error for loop endloop for the fileds in PBO & PAI.

plz explain also abt the loop endlloop for the PBO & PAI.

Ur help will be realy benefical for me.

Regds

Read only

Former Member
0 Likes
577

Hi,

In the layout u can have a check box in table control by just dragging and dropping.

For coding, declare one more field(check) in ur internal table(itab) ( for this check-box of type char(1) ).

then proceed as follows:

If itab-check = 'X'.

do wat u want to do.

endif.

Read only

Former Member
0 Likes
577

Hi,

Loop and endloop r reqd in every table control in flow logic.

refer to programs DEMO_DYNPROloop. press F4.

Read only

Former Member
0 Likes
577

hi vipin

for eg..

FORM user_command USING r_ucomm LIKE sy-ucomm

rs_selfield TYPE slis_selfield.

  • Check function code

CASE r_ucomm.

when 'COPY'.

if itab_final2-select = 'X'.

call screen 100.

ENDIF.

ENDCASE.

ENDFORM. "user_command