For this...
Create an Internal table as :
data: Begin itab occurs 0,
cb_field type char1,
matnr like mara-matnr,
.....
end of itab.
Now you fetch the data into the internal table of
itab using
some query...
select * ......
Now you are going to display it as....
Loop at itab.
write:/ cb_field as checkbox...
......
at this time only write the Hide statement....
as...
HIDE: values.... u want...
Endloop..
Now capturing of selected data process...
This can be done by clicking on some USER Command
button...
for suppose you're clicking F8 means...
AT pf8.
IF SY-LSIND = 1.
describe table itab lines VARIABLE NAME.
cnt = 3. " Initiate value for Count
3 if you're including page header.
do VARIABLE NAME times.
read line cnt. " Above
counter....
if sy-lisel(1) =
'X'.
WRITE:/ 'SELECTED
RECORDS:', itab-cb_field,.....
endif.
COUNTER = COUNTER - 1.
cnt = cnt + 1.
enddo.
ENDIF.
Related ABAP Topics:
Deleting
Abap Report Protected Variant
Get help for your ABAP problems
Do you have
a ABAP Question?
SAP Books
SAP Certification,
Interview Questions, Functional, Basis Administration and ABAP Programming
Reference Books
More ABAP Tips
Main Index
SAP ERP Modules,
Basis, ABAP and Other IMG Stuff
All the site contents are Copyright © www.erpgreat.com
and the content authors. All rights reserved.
All product names are trademarks of their respective
companies. The site www.erpgreat.com is in no way affiliated with
SAP AG.
Every effort is made to ensure the content integrity.
Information used on this site is at your own risk.
The content on this site may not be reproduced
or redistributed without the express written permission of
www.erpgreat.com or the content authors.
|