cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a separate BSP Page from a Web Application Builder BPS page.

Former Member
0 Kudos

I have been creating a basic BPS application for manually entering data into BW.

We are allowing users 2 options:

1. Manual Data entry via a web Page created in the Web Interface Builder.

2. Via a Flat File using the process described in the "How To" Guide on how to load a flat file into BPS Web Page. This was done in the Mime repository via a BSP application (transaction se80).

I want to incorporate both method on a single web page (or group of linked pages) so that the user can choose which method that they want to use.

My question is: How can I call the flat file loading screen (created in se80) from the Manual data entry screen that was created in Web Interface Builder?

Thanks,

Adam

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

easiest way is to use BPS-web-interface component type Hyperlink. You can define the target url and where you want to put the called url.

You can also create your own html code, and insert into your bps-web with the web component type text, and set the property html to true.

More difficult way is: to create and insert your BSP page into your BPS Web-application's BSP generated coding.

Best Regards,

Suan Liono

Former Member
0 Kudos

Hi Suan

Thanks for this posting - it is most useful.

I have elected to use the second option.

I have one question however. Given that I will be "hard coding" the URL in the Text Component, when I transport it out of our Dev environment, the URL will still be pointing back to the Dev version of the target URL. Is there a way to make this dynamic?

I have thought about somehow populating this value in a variable and then applying the value of the Variable into the Text.

Any other thoughts/suggestions?

Thanks in advance,

Adam

Former Member
0 Kudos

Adam,

You dont have to create a new tab also. You can incorporate the newly created BSP page

below the Manual Entry layout. Do the following step

1. Create a text element below the layout in web application builder. Choose Edit long text

2.insert this code


<iframe id="Text86" border="true" name="upload4" src="/sap/bw/mime/bex/icons/pixel.gif" width="580" height="65"></iframe>

<script language="JavaScript" type="text/javascript">
  var frame  = document.getElementById( 'Text86' );
  var url    = '/sap/bc/bsp/sap/z100bps001/upload_hours.htm';
  
// set source attribute of iframe to new URL 
  frame.src = url;

</script>

Now you should be able to the see the newly created BSP page below your layout.

Coming to your other question on "hard coding" the answer is you shouldnt specify the absolute url, just specify the relative URL and system will take care of the rest.

Eg. - '/sap/bc/bsp/sap/z100bps001/upload_hours.htm'

Let me know if you need any help.

Thanks,

Praveen

PS.Dont forget to reward points

Answers (1)

Answers (1)

Former Member
0 Kudos

You could create a web page with 2 tabs, on 1 tab have the layout and on the other tab file upload.

Thanks,

NS