cancel
Showing results for 
Search instead for 
Did you mean: 

RFC Call Browser

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member187439
Active Participant
0 Kudos

Did you bind the bapi structure in your controller and execute it? Paste your code here..

Former Member
0 Kudos

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();

}

former_member187439
Active Participant
0 Kudos

Try debugging to find whether your code to execute the FM is executed at the right time or never executed.

If you cant debug, then print a statement inside yout try block just before the FM execution statement and see whether this statement is printed on your screen action or not.