Hello Junaid,
I think, you will have to change your extractor, so
1) the cursor will be built on
SELECT case_guid case_type FROM scmg_t_case_attr
INTO TABLE lt_scmg
WHERE case_type = 'G_CP' OR
case_type = 'G_AI' OR
case_type = 'G_IS'.
2) the FETCH-statement will process each package and raise a correct "NO_MORE_DATA"
3) After the FETCH-statement, you will have to process all of your "functional"-enhancements, e.g. the calls of the case-API
Kind regards,
Hendrik