‎2008 Jan 17 7:31 AM
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.
‎2008 Jan 17 7:37 AM
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.
‎2008 Jan 17 7:41 AM
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
‎2008 Jan 17 7:41 AM
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.
‎2008 Jan 17 7:45 AM
Hi,
Loop and endloop r reqd in every table control in flow logic.
refer to programs DEMO_DYNPROloop. press F4.
‎2008 Jan 17 8:08 AM
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