Skip to Content
author's profile photo Former Member
Former Member

.Net 2.0-VB: No data returned from PurchaseOrder.GetDetail

New Project in VB.NET using SAP .NET Connector

SAP .Net Connector 2.0

.NET IDE 2003 (7.1.3088)

.NET Framework 1.1 (1.1.4322 sp1)

(1) Created new proxy component

(2) Drag/Drop BOR:PurchaseOrder to proxy design screen

(3) Set Map_Exceptions to True

Set Show_Type to True

Set BAPIReturn.Exclude to False

(4) Change DATE attributes to SAPDATE in three objects

(5) Successful Build of Solution

(6) During debug run dialogue window: "Method PurchaseOrder.Change cannot be reflected"

(7) Terminated run and deleted Change method from proxy design screen.

(8) Successful Build

(9) same as 6) for PurchaseOrder.CreateFromData1.

did same as 7) & 8)

Note that PurchaseOrder.CreateFromData did not cause a problem

(10) Run successful.

Called GetDetail method with flags set to '1' (also tried other values) and PONumber set to valid PONumber.

Method returned without raising exception.

Returned a populated BAPIReturn element but no data from PO was returned.

Verified that data for PO existed in SAP.

Any suggestions would be appreciated. Thanks.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2005 at 10:02 PM

    Hi Alan,

    Changes are your PO number is not the full length of the PO number field. SAP internally will automatically pad 0's onto the front of the number. But when the RFC / BAPI is called from an external source that source has to pad the 0's on the front.

    Short answer try you program again padding zero's onto the front of the PO number is 10 digits long.


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.