cancel
Showing results for 
Search instead for 
Did you mean: 

WebService does not return internal table exported by function module

Former Member

Hello:

I have created a web service based on the standard bapi/function module BAPI_SALESORDER_SIMULATE in a SAP ECC 6.0.

The service works, and can be accessed from SOAP UI and a Java Standalone Appl.

The problem is: same parameters are not returned to WS client (not in the SOAP return message!).

E.g. there is an exporting parameter OrderItemsOut (ORDER_ITEMS_OUT), even it is set to be exposed in the configuration (extern. View), it is not returned to WS client.

Be debugging, the function module has return the parameter.

How to solve this problem?

Thanks a lot

dianlong

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

I am facing the same issue , could you please help me in resolving this ?

Former Member
0 Kudos

>Be debugging, the function module has return the parameter

You mean BAPI is returning value for said parameter?

If parameter is not displayed in output which means it is not getting populated (may be for genuine reason). Else check this Note : 1031503 and apply correction.

Check BAPI on backend with same value to see if it really work there.

Regards,

Gourav

Former Member
0 Kudos

The BAPI has returned the parameter (OrderItemsOut).

The Web Service does not return the parameter. There is only an empty element <OrderItemsOut/> in the SOAP Response!

0 Kudos

I know i am late . But for anyone else who in future faces this issue.

I tried retrieving a table from the export parameter of function module in the web service.

eg. <LtFlight/>
The FM was working perfectly but returning an empty reponse in the service.

I then removed the export parameter and instead added it in TABLES .

eg. lt_flight like str_flight (where str_flight is a structure)

And this worked.

The web service was now able to get all the data as required. 

Hope this helps.