Application Development 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: 

How to get PO details from SAP to VB using BAPI control

Former Member
0 Kudos
240

hi friends...

My requirement is

In VB(Visual basic) i will enter PO number, for that PO number i want to fetch the data from SAP to VB.

How to get this using BAPI Control in VB.

From SAP point of view, i checked SWo1, there standard Object (PurchaseOrder)-Method GetDetail is there.

but my doubt is how to pass the PO number to which parameter...

i dono how to use that standard Object (PurchaseOrder) in VB...

can you guide me plz..

regards

deva

4 REPLIES 4

Firoz_Ashraf
Contributor
0 Kudos
83

Hi,

Method PurchaseOrder.GetDetail of the Business Object BUS2012 uses the BAPI

BAPI_PO_GETDETAIL. So in your VB, you call this BAPI and pass the PO Number in the parameter PURCHASEORDER

Regards,

Firoz.

0 Kudos
83

hi Firoz...

thanks for your replay...

i dono know , how to call that bapi there... can you send me the some sample code ?

how to call this in VB...

0 Kudos
83

Hi,

You need to get .NET connector and use this in your VB.

h6.

The SAP .NET Connector is a development environment that enables communication between the Microsoft. NET platform and SAP systems. This connector supports RFCs and Web services, and allows you to write different applications such as Web form, Windows form, or console applications in the Microsoft Visual Studio.Net. With the SAP .NET Connector, you can use all common programming languages, such as Visual Basic. NET, C#, or Managed C++.

In short it will make your VB talk to SAP.

http://www.service.sap.com/connectors

Regards,

Firoz.

Former Member
0 Kudos
83

solved