BSP how to dynamically identified SAP environment for BSP URL

2:11 AM

Recently we had a problem with to identify the environment of the BSP or WEBdynpro.


My colleague Sarah provided me with a superb solution that is using the

call method clwdutilities=>constructwdurl.(which i put in the * event handler for data retrieval for BSP)

But then comes another problem the method will attached the url with "webdynpro" into the URL.

Initially we were thinking of making a new method identical to it. But a recent googling we encountered the syntax "replace all occurrences of" so it works for us with out creating a method by just changing the last string : D!


Well if Sarah you are reading this a BIG thank you! : D

 
*
Get URL of Target Application

  call method clwdutilities=>constructwdurl
  exporting
    applicationname = 'ZBSPHPTSCR'
    importing
      out
absolute_url = str.

replace all occurrences of '/webdynpro/sap/zbsphptscr' in str with '/webdynpro/sap/zbsphptscr/index.htm' .

 

Read On 0 comments

BSP how to pass a parameter using URL

1:01 AM

What is URL?
Lame man term
-the place on the address bar where we type the internet address.
Real meaning
Abbreviation: Uniform (or universal) resource locator, the address of a World Wide Web page

For BSP

If you use "Page with Flow logic", you can check field "Auto" in the "Page Attributes" tab.
Example:
Page attributes
http://myserver.com/schedule_maintain.htm?reload=X

 

Source

Read On 0 comments

message

Labels

NuffNang

Search google

Blog Archive

My Blog List

Twitter

Message

Followers