cancel
Showing results for 
Search instead for 
Did you mean: 

How to get result from MBO operation which is BAPI call?

Former Member
0 Kudos

Hi all, I have a BAPI1-derived MBO which is working well and now I want to use BAPI1 MBO data as inputs to BAPI2 call.

One way I can think of is to add operation to BAPI1 MBO and that operation's Data Source type would be SAP and I can name BAPI2 as its operation, map BAPI1 MBO's attributes to inputs of BAPI2.

But my question is how I get result of that BAPI2 call? BAPI2 is supposed to return BAPIRETURN table and I have no idea how to get this table.

In Workspace diagram, adding operation does not create MBO for that BAPIRETURN table and in generated code I couldn't find any clue about this.

Any comments/advice will be appreciated.

Bob

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I haven't tried Result Checker as Gustavo suggested but other discussion (https://cw.sdn.sap.com/cw/thread/19086) indicates that current SUP does not allow to get return from BAPI call through MBO operation. Instead of using MBO operation, I created separate MBO from the BAPI and its attributes are those of RETURN table, I could call BAPI by MBO synchronization and get return or catch exception if I feed invalid inputs. By using Result Checker, I might catch exception in case of error.

Former Member
0 Kudos

I think you can use the Result checker.

Former Member
0 Kudos

Hi Gustavo, I haven't used 'Result Checker' before so no idea what that is for. I will check it out. I am a beginner in this area and found it is hard to get a reply in the forum. Thank you for the reply. Bob

Former Member
0 Kudos

The Result Checker is a java class used to validate the result of an operation, this could be configured in the Definition Tab in the properties of the operation.

Check this link

http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc01697.0210/doc/html/jwo13...

Please reward if useful.