Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error in BAPI_SALESORDER_GETLIST

Former Member
0 Kudos
299

Hi Folks,

I am working on BAPI_SALESORDER_GETLIST from VB.

I have taken mandatory parameters as CustomerNumber and Sales Organization.

While I am executing this in VB I am getting the following error

Parameter CustomerNumber of Method GetList is not a valid Structure!You should use plain datatypes.

How to resolve this.

Thanks in Advance.

Siva.

2 REPLIES 2
Read only

Former Member
0 Kudos
224

Hi Siva,

Refer these lines given in the Documentation:

Mandatory entries:

You must enter the relevant customer number in the SALES

parameter and the requested sales organization in the SA

parameter.

Optional entries:

You can restrict the selection by entering certain crite

you can display all the orders for a certain material or

particular time period (MATERIAL or DOCUMENT_DATE and DO

paramters). You can also find a certain sales order usin

purchase order number (PURCHASE_ORDER parameter).

Data:

w_num Like BAPI1007-CUSTOMER,

w_org like BAPIORDERS-SALES_ORG.

CALL FUNCTION 'BAPI_SALESORDER_GETLIST'

EXPORTING

CUSTOMER_NUMBER = w_num

SALES_ORGANIZATION = w_org

Regards,

Sravanthi

Read only

0 Kudos
224

Hi Sravathi,

I am not writing any code in ABAP.

I am developing code in VB.

Thanks,

Siva.