cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in executing BAPI

Former Member
0 Kudos

Hi all

I am executing the bapi BAPI_PO_CREATE. I have initialized the BAPI input fields and populated with necessary inputs. But when i execute the bapi, i get no output. Output should be available in Model node Return. But i get nothing. The bapi is fine and the model input nodes also gets populated. Any help will be appreciated.

Thanks in Advance,

Regards

Rakesh ;>)

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Rakesh,

1.Check the BAPI in R/3 System is the BAPI execute properly.

2.Check the output in your dynpro by check the output node's size.

IPrivate<ViewName>.I<BapiOutput>Node node=wdContext.node<BapiOutput>();

int size=node.size();

check the size.

if the size==0 the Bapi is not executed properly.

Check the binding of node.

Kind Regards

Mukesh

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi All

Sorry for the late response. Actually the problem was with assigning inputs to the model data. Its solved now and the bapi is executing. But it shows an abort message in return structure.

Msg Type A

Msg.no 000000

Code ME159

Message Function modules invoked in wrong sequence

Any help will be useful.

Thanks in Advance ;>)

Regards

Rakesh

former_member85655
Active Participant
0 Kudos

Looks like the BAPI has failed in the backend itself. Check that it runs on the backend in the workbench.

Regards,

Arun

Former Member
0 Kudos

Hi Rakesh,

perhaps you look for result in node return direct under BAPI_Node_Input instead of node return under node Output?

Regards

Bogdan

Former Member
0 Kudos

Hi

Make sure that your Output node is invalidated.

Also use Output node under Bapi_Po_Create_Input for getting the output.

Regards,

Ajay