This website is not affiliated with, sponsored by, or approved by SAP AG.

Material BAPI from VB

Interfaces (ALE, IDOC, RFC, EDI etc.)

Moderators: Snowy, thx4allthefish

Material BAPI from VB

Postby MDaponte » Wed Oct 20, 2004 1:13 pm



Hi !!! I'm trying to get the material info from VB. More especifically the "Purchase Order Text" (long description) and some fields from the material general data.

I've coded this

' user logon to R/3
If oBAPICtrl.Connection.Logon(0, False) = False Then
MsgBox "R/3 connection failed"
End
End If

' me conecto al business object Material
Dim oMaterial As Object
Set oMaterial = oBAPICtrl.GetSAPObject("Material", "000000000001000005") ' BUS1001

Debug.Print "oMaterial.MaterialGroup : " & oMaterial.MaterialGroup
Debug.Print "oMaterial.MaterialType : " & oMaterial.MaterialType
Debug.Print "oMaterial.Industry : " & oMaterial.Industry
Debug.Print "oMaterial.BaseUnitOfMeasure : " & oMaterial.BaseUnitOfMeasure
Debug.Print "oMaterial.Division : " & oMaterial.Division
Debug.Print "oMaterial.MaterialDescription : " & oMaterial.MaterialDescription
Debug.Print "oMaterial.OldMaterial : " & oMaterial.OldMaterial

...and it's working, but I don't know how to get the other data. Some ideas?

Thanks in advance for your help !!!
MDaponte
 

Re: Material BAPI from VB

Postby jToro » Thu Jun 13, 2013 1:04 pm

Hello MDaponte,

Now Im trying to do the same as you and I wondering if you maybe have the answer to this old question.

Thanks you for your help.
jToro
 
Posts: 1
Joined: Thu Jun 13, 2013 12:56 pm

Re: Material BAPI from VB

Postby Gothmog » Fri Jun 14, 2013 3:39 am

I'm not sure if posting a question to someone who logged as a guest nine years ago is all that effective...
Locked for necroposting - please start a new topic for your problem instead of raising an old one from their grave.
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1942
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home


Return to Interfaces

Who is online

Users browsing this forum: No registered users and 4 guests





loading...


This website is not affiliated with, sponsored by, or approved by SAP AG.