on 12-20-2004 2:45 AM
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)
tblPoItem_Schedules.Add(strPoItem_Schedules)
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.
Cheers
Reiner, no worries. I fixed it. My bad....careless, I declared the BAPIEKET structure wrongly.
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.