Skip to Content
Mar 24, 2008 at 04:02 AM

Calling a Function Module within a loop in Report Program



I'm calling one function module "Z_get_transaction_details" which returns details of transaction id passed to it.

It returns them by means of some structures...

I am calling this function module within loop statement in a report program. Now what is happening is when i call it in first loop, results returned are correct, but from 2nd loop onwards, output data frm rfc is same even if input parameters are different.

Im clearing worareas, internal tables after each loop, but still problem persists...

And i tested rfc for inputs that are getting passed in report program.. but it is working perfect when i execute RFC !!!

So where is the problem? pls guide me...