on 10-09-2008 9:34 PM
Hello!
A Function Module at backend which is called like below shown
has also two flags. I intend to set those flags on true.
How is that working ?
This is the call of FM inside a method.
wdContext.current__I_Rf02_Ial_Query_InputElement().modelObject().execute();
wdContext.nodeOutput().invalidate();
Regards
sas
Hello Murtuza I will do that.
I have still the problem with the input field.
Is there a possiblitiy to have look at my
code ? I dont care about the way how to inspect it.
Maybe with skype or messanger via Desktop Sharing etc.
Please reply I want to reward it as solved.
Reagrds
sas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello Murtuza on your business card is nothing to find.
Where else can I look for email adress
Regards
sas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Murtuza!
This my current method. But it didn't work .
public void wdDoInit()
{
//@@begin wdDoInit()
//$$begin Service Controller(-774299147)
wdContext.node__I_Rf02_Ial_Query_Input().bind(new __I_Rf02_Ial_Query_Input());
__I_Rf02_Ial_Query_Input input = new __I_Rf02_Ial_Query_Input();
wdContext.node__I_Rf02_Ial_Query_Input().bind(input);
input.setI_Incident_Selcrit(new __Is_Rfc_Iasel());
input.setI_Iepva_Selcrit(new Cciht_Ipeva());
input.setI_Flg_Filterinvolved(true);
input.setI_Flg_Orghierarchy(true);
//$$end
//@@end
}
Bye
Erdem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Erdam,
The code seems to be fine. Write this line of code before execution so that you can see what all values are passed to the RFC. You can check there whether the values for your flag are passed or not:
wdComponentAPI.getMessageManager().reportSuccess(wdContext.current__I_Rf02_Ial_Query_InputElement().modelObject().toString());
Also, in the catch block of the execute method, print the exception so that you might get a hint for the failure
wdComponentAPI.getMessageManager().reportException(e.toString(),true);
Regards,
Murtuza
Hi Erdam,
Could you see those 2 flags under the node node__I_Rf02_Ial_Query_Input?
If yes then before writing the execute code set the values of those 2 flag for the object that you instantiated for the node__I_Rf02_Ial_Query_Input
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Murtuza!
This is the method which is called within the onActionSearchIncidents method (for search button)
These flags are a part of the /I_RF02_IAL_QUERY .
The question is where exactly must I set the flags
CustomController
public void Ial_Query_Input( )
{
//@@begin Ial_Query_Input()
//$$begin Service Controller(609296820)
IWDMessageManager manager = wdComponentAPI.getMessageManager();
try
{
wdContext.current__I_Rf02_Ial_Query_InputElement().modelObject().execute();
wdContext.nodeOutput().invalidate();
}
catch(WDDynamicRFCExecuteException e)
{
manager.reportException(e.getMessage(), false);
}
//$$end
//@@end
}
This is the instance in the wdDoInit method which you talk about in the
Custom Controller too.
public void wdDoInit()
{
//@@begin wdDoInit()
//$$begin Service Controller(-774299147)
wdContext.node__I_Rf02_Ial_Query_Input().bind(new __Tdag__I_Rf02_Ial_Query_Input());
__I_Rf02_Ial_Query_Input input = new __I_Rf02_Ial_Query_Input();
wdContext.node__I_Rf02_Ial_Query_Input().bind(input);
}
In the view
public void onActionSearchIncidents(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
{
// call function module /I_RF02_IAL_QUERY
wdThis.wdGetIncidentRFCModelCustController().Ial_Query_Input();
}
Hello Murtuza Ok I will try it out.
By the way there is another point I would ask you.
In my wdDoInit() I have created two instances for each Node element.
Because the FM I_Rf02_Ial_Query_Input is the RootChild
and below are two child element nodes for the both importparameter
of the FM. Therefore I have had created two different instances.
May I use the same created object (instance of I_Rf02_Ial_Query_Input ) for both ?
Bye
Erdem
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.