Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jun 05, 2008 at 07:52 AM

    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

    Add comment
    10|10000 characters needed characters exceeded