cancel
Showing results for 
Search instead for 
Did you mean: 

Getting data from a web page...

Former Member
0 Kudos

Hi all,

I need some tips / tricks... Maybe one of you has already done such a thing.

We have a transaction (home made) in which we'd like to add a feature to help user selecting data.

What we'd like to do is to launch a web page, on which user will select data (helped with pictures).

Do anyone of you know how to get data from the web page ?

How would you do such a system ?

Thanks in advance !!!

Accepted Solutions (0)

Answers (2)

Answers (2)

athavanraja
Active Contributor
0 Kudos

on button click just call the following FM

call function 'CALL_BROWSER'
   exporting
     url                          = 'http://www.yahoo.com'
*     WINDOW_NAME                  = ' '
*     NEW_WINDOW                   = ' '
*     BROWSER_TYPE                 =
*     CONTEXTSTRING                =
   exceptions
     frontend_not_supported       = 1
     frontend_error               = 2
     prog_not_found               = 3
     no_batch                     = 4
     unspecified_error            = 5
     others                       = 6
            .
  if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  endif.

This would open the browser and go to www.yahoo.com

Regards

Raja

athavanraja
Active Contributor
0 Kudos

to get the data back from the webpage, need answer for some question.

1. which version of SAP are you using?

2. what is this webpage? is it a public url or your custom web page - what is the back end for the webpage, where is it residing.

you need to explain your requirement bit more clearly.

Regards

Raja

Former Member
0 Kudos

Hi Raja,

We are running SAP 4.7...

The web page is a custom web page, residing most probably in WAS.

I was thinking about developing a java web service that would be called by the web page (to send information collected).

What I miss is: how to give the data to the transaction running on SAP ?

Should we make the transaction calling the web service to get the information back ?? Or is there any way to make the web service pushing information it has received to the transaction ?

Thank you very much !

Former Member
0 Kudos

By the way... Is there any way, using EJB or JavaBeans, to keep information alive in web service, with some unique identifier, so that the transaction calls a BAPI that connects to the web service and gets data ?

Hope this is clear

athavanraja
Active Contributor
0 Kudos

have you had a chance to look at BSP (Business Server Pages) applications.

This is a web application , which can be written totally in ABAP.

alternatively you could also check out class cl_http_client to get the data from pages served by webservers.

Regards

Raja

athavanraja
Active Contributor
0 Kudos

<i>By the way... Is there any way, using EJB or JavaBeans, to keep information alive in web service, with some unique identifier, so that the transaction calls a BAPI that connects to the web service and gets data ?

Hope this is clear ;-)</i>

sorry i have no idea about this.

If you could give a complete picture of what you are trying to do , may be we could help.

Regards

Raja

PS: hope you are aware of the <a href="/people/mark.finnern/blog/2004/08/10/spread-the-love recognition program</a>

Former Member
0 Kudos

Hi Raja,

Can you please give me some more information about BSP ?

I'd like to know: if I run a BSP application from a transaction, does this BSP application shares context with current transaction ? Is the transaction able to recover information from the BSP application ?

Thanks

Former Member
0 Kudos

Hi

Can you elaborate a bit your question. Do you want to open a web page from your SAP gui?

Regards

Naresh

Former Member
0 Kudos

Yes, exactly... We'd like to open web page when user clicks on a button in a SAP gui screen