cancel
Showing results for 
Search instead for 
Did you mean: 

can't get BAPI return node in web dynpro!!

Former Member
0 Kudos

I'm calling BAPI in web dynpro, I already map the <BAPIName>_Input->Output->Return to our custom controller context. I can get the value of some other output parameters in Output node, but can't get the return node.

wdContext->currentOutputElement is Ok, but wdContext->currentBapiReturnElement is null, what is the problem??!!!

Can anybody give me an hint, or give me a example to access the return value of Bapi??

Thank you very much!

Regards,

Xiaoming Yang

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Can anybody give me an example getting return message of a BAPI? It is a structure called Bapireturn contains Code, Message, Type and so on fields.

Thank you very very much!!

Regards,

Xiaoming

Yashpal
Active Contributor
0 Kudos

Hi,

First check the RFC by executing from R/3 side means test it that it return the output table of bapireturn in R/3 side.

Regards,

Yashpal

Former Member
0 Kudos

Hi Yashpal,

thanks for your reply, the BAPI works fine under R3.

Actually I've already solved the problem. It is caused by model--controller data mapping.

Former Member
0 Kudos

did you invalidate the response node after executing the bapi call? sort of...

wdContext.currentBapiResponse().invalidate():

this will tell the context node that it must refresh it's contents with the return values stored in the underlying bapi model object.

Hope this helps. Kind Regards,

Vitaliano

Former Member
0 Kudos

Hi Vitaliano,

Thanks for your reply.

yes, I've call the invalidate method, like this:

wdContext.currentBapi_Trip_Create_From_Data_InputElement().modelObject().execute();

//wdContext.nodeBapireturn().invalidate();//do I need this?

wdContext.nodeOutput().invalidate();

But it still can't work!

The return node is a child note of Output, does it ok?

Thank you!