Skip to Content
author's profile photo
Former Member

VC cannot see output parameters with TABLE type ?

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Jul 18, 2004 at 08:01 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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.