cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a dynamic URL for SAP Standard Transaction in webdynpro

Former Member
0 Kudos

Hi,

I have two IViews - One is Sap Standard Transaction IVIEw

- second is Webdynpro IView

In webdynpro IView , On click of button or some action i'll be calling SAP Standard Transaction IView.

But for this i need to mention the URL of SAP IView statically.

Is there a way to do this Dynamically?

means without hardcoding the SAP standard Transaction IView can i generate the url of that standard Transaction Iview?

If So pls let me know how to do it.

Thank you,

Sirisha.R.S.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sirisha,

You can create the dynamic URL in webdynpro.In webdynpro with the help of webcaheResource

/* example code */

for(int i=0;i<wdContext.nodeHtml_cover_report().size();i++)

{

datainbuffer = datainbuffer + wdContext.nodeHtml_cover_report().getHtml_cover_reportElementAt(i).getLine();

}

byte[] linebytes = datainbuffer.toString().getBytes();

cachedResource = WDWebResource.getWebResource(linebytes,WDWebResourceType.HTML);

url = cachedResource.getURL();

wdContext.currentContextElement().setTest(url);

This how you can create a dynamic URL for the content .

with Regards

Praveen.K.T