Application Development and Automation 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: 
Read only

Transfer Fields content from ABAP to Visual Basic code

Former Member
0 Likes
723

Hi all,

In ABAP z-report iam using one field and i want to transfer that field content to Visual basic code.

First of all is it possible??If yes please provide me the logic how to do this...

Thanking you.

Regards.

Hemant.

5 REPLIES 5
Read only

brad_bohn
Active Contributor
0 Likes
689

Of course, but no one can give you the code specific to your program. You're going to have to do some help file reading on web services and RFC's. You need to expose a web service using an RFC-enabled function that either calls your report and gets the value or has the same logic in it to determine the value. Use your VB app to call the web service. See the help files on web services for the step-by-step process.

Read only

Former Member
0 Likes
689

Hi,

yes you can trasnfer fields data to visual basic . Before that find the suitable BAPI .

regards,

Rama

Read only

Former Member
0 Likes
689

Hi,

There are 2 options.

1) RFC.

2) Web Services.

Following links are for webservices.

[original link is broken]

http://help.sap.com/saphelp_nw04/Helpdata/EN/e9/ae1b9a5d2cef4ea4b579f19d902871/content.htm

Regards,

Vimal.

Edited by: Vimal V on Jul 21, 2009 4:04 PM

Read only

Pawan_Kesari
Active Contributor
0 Likes
689

With ABAP you can interface with VB using OLE Automation.

You VB application must be of type 'ActiveX DLL' or 'ActiveX EXE', a 'Standard EXE' will not work.

And before you create object of your VB class in ABAP your class should be registered in the local PC where your ABAP program will run (using regsvr32), otherwise your class will not be visible to ABAP code.

Refer program RSDEMO01 in ABAP, this program use OLE Automation to interface with Excel.

Read only

Former Member
0 Likes
689

thanku