Skip to Content
author's profile photo Former Member
Former Member

SUP 2.1.2 MBO/BAPI error

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Apr 27, 2012 at 04:30 AM

    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


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.