Skip to Content
Dec 22, 2013 at 07:17 AM

FM CLAF_CLASSIFICATION_OF_OBJECTS not working in Background Mode



I am using a FM CLAF_CLASSIFICATION_OF_OBJECTS to fetch the details for the Function Locations and the Equipments.

I have written the program and it is successfully running in Development, Quality and Pre-Production system in both Foreground and Background Modes.

But when i try to run the same program in Background Mode in Production System, I get an error saying "Object <program name> of class RE and language EN does not exist". But when I try to run the same in Foreground mode in Production System, the program is working fine(which I find a litte weird)

Analysis I have done from my end

1. I tried to debug this FM in foreground mode in Development and Quality systems and I deliberately am passing a wrong value to this FM. When i do so, i am exactly getting the same error as I have mentioned above.

2. I have tried to run in Foreground mode in Production system with some available data and it works fine.

3. When i run in Background mode with the same available data, it gives me that error again. I have tried to debug the background job of the Production system using "JDBG" technique, and I am amazed to know that in debug mode the FM gets successfully executed and returns sy- subrc = 0.

So I have run out of ideas now to analyze this issue.

So please help me out in finding the solution for this issue as to why this FM is not working in Background Mode and that too only in Production Environment.