on 04-23-2012 8:58 PM
Hi all,
i have tried to create an MBO using the standard SAP BAPI 'GetItemsForRelease' but i get the following error after the
selection of the in/out fields:
'Field NUMBER is not a member of BAPIRETURN'
I have read that this problem is due to a wrong Jco conversion from ABAP type to Java type.
I have also verified that all works fine excluding NUMBER type columns from the selection (In/Out parameters).
Has anyone encountered this issue ?
Thanks
Pasquale
This is because you are using the default SAP result checker. The default checker is coded with logic about what it thinks the standard BAPI_RETURN structure looks like. SAP RFC's do not enforce a structure the way some language do (i.e. Java Interface), so it is possible to write RFC's that do not comply -- I think your RFC is one of these.
So if the RETURN structure doesn't actually have a field named NUMBER, we'll get a JCOException which results in the stack trace/error you are seeing.
You can either write a custom SAP result checker with custom logic for checking status of your RFC execution, or change your RFC so the RETURN matches the standard BAPI_RETURN structure.
You can also choose in the ResultSetChecker property None
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 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.