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

How to send data to and from .ASP pages through BAPI function modules.

Former Member
0 Likes
1,111

Hi All,

Can anyone clarify about this issue.

We have credit card process in SD Flow. Now we have to get data from credit card process and send to .ASP page. And from .ASP page data should be brought to credit card process. Can anyone help me out how to talk to Web Server from SAP. Thanks in advance.

Regards

Rupa

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,023

Hi, please dont forget to reward if this was helpful. It´s important to reward if you want to get fast feedback, the people don´t answer if they see that you don´t reward.

Regards and goog luck.

Gabriel P.

Hi All,

Can anyone clarify about this issue.

We have credit card process in SD Flow. Now we have to get data from credit card process and send to .ASP page. And from .ASP page data should be brought to credit card process. Can anyone help me out how to talk to Web Server from SAP. Thanks in advance.

Regards

Rupa

6 REPLIES 6
Read only

Former Member
0 Likes
1,023

Hi Vempati,

You can connect to the R3 back end using the .net connector. Just go to:

http://help.sap.com/saphelp_nw04/helpdata/en/b4/79cb9463b89a41a73e1e2805eb4bf7/content.htm

An how to do it go to:

http://help.sap.com/saphelp_nw04/helpdata/en/51/d5470940fd564b888f4beb9523fa6c/content.htm

This is most easy way to do it.

Dont forget to reward!!

Gabriel P.

Read only

Former Member
0 Likes
1,023

Hi,

For your scenario you can use SAP.Net Connector, but if your Landscape has other systems to which your SAP system is/will be communicating then you can go for SAP exchange Infrastructure, which will offer you a better integration solution.

Read only

Former Member
0 Likes
1,024

Hi, please dont forget to reward if this was helpful. It´s important to reward if you want to get fast feedback, the people don´t answer if they see that you don´t reward.

Regards and goog luck.

Gabriel P.

Read only

Former Member
0 Likes
1,023

I have solved then problem my self. We cannot use a .NET connector as the ASP application is not a .Net app.

Read only

0 Likes
1,023

How did you do this?

<b>I'm getting an error:</b>

Error Type:

(0x80004004)

Operation aborted

/SingleViewPOC/CustMast.asp, line 42.

<b>Line 42 is the place where I'm calling a bapi method</b>

Call obj.Z_Sdscbo_Sc_Sap_Customer(tab_scbo_customer, Tab_Scbo_vtweg, Kunnr, strName, Rows, Only_Bill_To, Ort01, Parvw, Pstlz, Region)

<b>Following is the asp code:</b>

Set obj = CreateObject("OC3.SearchCustMast")

obj.DimAs "Z_Sdscbo_Sc_Sap_Customer", "tab_Scbo_Customer", tab_scbo_customer

obj.DimAs "Z_Sdscbo_Sc_Sap_Customer", "Tab_Scbo_vtweg", Tab_Scbo_vtweg

obj.Destination = "UPLOADSTAGE"

'kunnr = "" ' GA Number

'strName = "GFX INT%" ' Customer Name%

'PSTLZ = "" ' Zip Code%

'ORT01 = "" ' City Name

'Region = "" ' State

'Rows = 40

kunnr = "498192" ' GA Number

strName = "TRI%" ' Customer Name%

PSTLZ = "" ' Zip Code%

ORT01 = "" ' City Name

Region = "" ' State

Rows = 40

response.write "tab_scbo_customer " & typename(tab_scbo_customer) & "<BR>"

response.write "Tab_Scbo_vtweg " & typename(Tab_Scbo_vtweg) & "<BR>"

response.write "Kunnr " & typename(Kunnr) & "<BR>"

response.write "strName " & typename(strName) & "<BR>"

response.write "Rows " & typename(Rows) & "<BR>"

response.write "Only_Bill_To " & typename(Only_Bill_To) & "<BR>"

response.write "Ort01 " & typename(Ort01) & "<BR>"

response.write "Parvw " & typename(Parvw) & "<BR>"

response.write "Pstlz " & typename(Pstlz) & "<BR>"

response.write "Region " & typename(Region) & "<BR>"

Call obj.Z_Sdscbo_Sc_Sap_Customer(tab_scbo_customer, Tab_Scbo_vtweg, Kunnr, strName, Rows, Only_Bill_To, Ort01, Parvw, Pstlz, Region)

Read only

Former Member
0 Likes
1,023

Hi

If you are using R/3 version 4.7 and above then you can expose any RFC enabled function module as web service and consume it from your ASP application.

I am not sure whether its possible from ASP to consume web service

Regards

Naresh