cancel
Showing results for 
Search instead for 
Did you mean: 

VC cannot see output parameters with TABLE type ?

Former Member
0 Kudos

Hi,

I'm trying to use BAPI_SALESORDER_LIST , everything is OK with design or connection but the problem is ; the BAPI has 2 output parameters , one is RESULT (export parameter) the other one is SALESORDER (table parameter) . When I try to test the BAPI within VC, it only displays RESULT parameter as an output but does not consider the main SALESORDER parameter which is a table and contains all the results. As the RESULT parameter is designed to display only errors, and as there is no error, the test of BAPI returns with a message "no record found" . But there are lots of results in the SALESORDER parameter. Any ideas ?

Best Regards

Ahmet

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ahmet,

I don't know the specific BAPI you're using (closest I found on my system is BAPI_SALESORDER_GETLIST which has the same metadata returned). When I tried to do what you described I got all records returned and displayed in both structures: RESULT and SALESORDERS.

Have you added leading zeros for the input fields that needs it? (customer number field needs it for example in order to complete the number to a 10 digit number. The SAP UI adds those leading zeros when needed so you might miss it).

Is it working for you in the preview when you run it?

Best regards,

Yaniv.

Former Member
0 Kudos

Hi Yaniv

You were right, the reason was because I was not writing the leading zeros to the customer number. Thanks a lot

Ahmet

Former Member
0 Kudos

Hi Ahmet,

Glad I could help. By the way, if you check the zero fill property for this field on the BAPI inside the VC then the test function dialog does the filling of leading zeros automatically.

Best regards,

Yaniv.