on 12-26-2007 5:41 PM
A function module has a clear statement in the top include and works fine in 46c. It is now reporting as error "Statement inaccessible" in Ecc6. Has anyone faced a similar issue? What is the fix?
Andrew
Try to have default values for the data types or move the statements within the function module includes. there are various such issues that propup due to bad programming that was allowed earlier.
-Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is the long text for the error. Does it directly point to the clear statement?
Usually you get this kind of error if you have a statement that will never be reached in the flow.
e.g.
function module .....
return.
if some condition.
do something.
endif.
endfunction.
In this case the if staement can never be reached because the function module returns to the calling program. This is the type of scenario you are looking for. In the above case you either delete the if or - if you want the if to be executed - move the return after the if or delete it or warp it in an if itself.
Hope that helps,
Michael
By the way, I don't think that the 'Inaccessible statement' check is executed (or available) in 46, that might be the reason why you never got it there.
Edited by: Michael Wackerbauer on Dec 26, 2007 2:00 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.