Field-groups

Question:
Hi All,
I need your help.
I would like to write a message at the end of an ABAP program if no data was selected from the database table.
However my ABAP program uses field groups insted of an internal table.
Can someone pls tell me how my ABAP will know whether there was data selected or not?
I tried using-> If (field-group header) is initial however it seems that even if there was data selected, the header will always be initial
Pleeeeez help.
Thanks!
Answer:
i like field-groups...after you have done the extract and you are ready to process the data...you will use a loop/endloop.
check the sy-subrc after the endloop...no data extracted into your field groups should then return a non zero return code
coupy

More Articles:

KP27: ActivityType/PricePlanning - How to get this data?
BDC for transaction F110?
area menu not executing?
Datadownload Using RFC Urgent?
Note to all posters?
How to read value in parameter ID?