cancel
Showing results for 
Search instead for 
Did you mean: 

SUP 2.1.2 MBO/BAPI error

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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