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

Purchase order create problem

Hi Reiner,

I am testing out a scenario with BAPI_PO_CREATE, encountered a few problems:

1. Errors with Date field in some structures.

--> I changed the date field name to ZDATE and that

fixed it, I remember this was also a problem in

Connector 1.0. I can only imagine that the Date

name used clashes with some reserved system date

field in VB.Net

2. Purchase order schedule lines are being populated

via structure BAPIEKET and into a table. I have

declared a BAPIEKET structure and a table but i seem

to have errors trying to even populate the first field

of the BAPIEKET structure. The error is as follows:


An unhandled exception of type 'System.NullReferenceException' occurred in <application>

Additional information: Object reference not set to an instance of an object.


The code is:

Dim strPoItem_Schedules As BAPIEKET

Dim tblPoItem_Schedules As New BAPIEKETTable

'schedule lines

strPoItem_Schedules.Po_Item = "00001"

strPoItem_Schedules.Serial_No = "0001"

strPoItem_Schedules.Deliv_Date = "20040407"

strPoItem_Schedules.Quantity = CLng(1.0)


Hope you can help coz I did the same with the PO line items table and it is fine...not sure why it is behaving like this for the PO SChedule lines.


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 20, 2004 at 03:12 AM

    Reiner, no worries. I fixed it. My bad....careless, I declared the BAPIEKET structure wrongly.


    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.