cancel
Showing results for 
Search instead for 
Did you mean: 

How can I create a redirect to an URL like in SICF?

steffen_brauner
Explorer
0 Kudos

Hi,

we offer the payroll (com.sap.pct.erp.ess.paycheck_service / sap.com/ess~rem/payslip2) in our portal which is a Java-WD. Whenever we import a modified version of the corresponding HRFORM into the P-system the application aborts with an error because the HRFORM has to be generated first after the import.

I wanted to get rid of this problem by using the SICF where you can define a redirect to an URL (I wantet to switch to a "service is under construction"-WD). Unfortunately the SICF can only be used for WD4ABAP-services as I know - not for Java.

Has anybody an idea how to solve my problem? I want to switch to a "service is under construction"-WD whenever there's an abort while processing the payroll application.

We don't have any Java skill.

Greetings,

Steff

Accepted Solutions (0)

Answers (1)

Answers (1)

nikhil_bose
Active Contributor
0 Kudos

You can place the html in component folder. src>mimes>Components. and can be accessed by code


try {
String url = WDURLGenerator.getAbsoluteWebResourceURL(wdComponentAPI.getDeployableObjectPart(),"<redirect>.html");

} catch (WDURLException e) {
wdComponentAPI.getMessageManager().reportException(e.getMessage(),true);
}

1) you can use the url to navigate to the redirect page or can try exit plug.

nikhil