on 09-15-2008 8:22 AM
Hello All,
I have a WDJ application , which does ntohinh but ooen a browser window on alcick of a button.
For this I am calling a bapi CAll Browser...
Nothing happens when I am trying to execute this rfc from front end... If I execute this bapi from back end i.e after logging on to the SAP System , it executes fine and opens up the browser window.
Any Pointers..
Pradeep
Did you bind the bapi structure in your controller and execute it? Paste your code here..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
TModel model = null;
Z_2Tr_Act_Poapproval_Input input = null;
try{
model = (TModel)WDModelFactory.getModelInstance(TModel.class,WDModelScopeType.APPLICATION_SCOPE);
input = new Z_2Tr_Act_Poapproval_Input();
wdContext.nodeZ_2Tr_Act_Poapproval_Input().bind(input);
input.setKey("CH0000000010000003001AP001");
input.setUrl("http://servername.serverport/sap(bD1lbiZjPTAxMA==)/bc/bsp/sap/z2tr_poapproval/default.htm");
input.setUser("testid1")
wdContext.currentZ_2Tr_Act_Poapproval_InputElement().modelObject().execute();
}
catch(Exception e)
{
e.printStackTrace();
}
finally
{
model.disconnectIfAlive();
}
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.