on 02-13-2008 2:50 PM
Hi Gurus,
Need some advice here. I have a table in my application with few columns which is populated by a RFC call (table returns list of employees reporting to the logged on user). What i need now is to read 1 of the columns data, and use these values as an input parameter to another RFC. This will then return a second table. Any suggestions? Thanks
Regards
Hi,
Make use of supply functions.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Guys,
Any help on this? At the moment, in my controller context i have the RFC that i want to use.
Z1HR_DATA_INPUT (model node - cardianility 0.1)
OUTPUT (model node - cardianility 0.1)
T_INPUT (model node - cardinality 0.n)
OBJID - model attribute
OTYP - model attribute
Both OBJID and OTYP are the table input for the rfc. How can i pass data to this fields and execute the model. Thanks
Edited by: Nahoj Deys on Feb 19, 2008 1:35 PM
Hi All,
Thanks for all the replies. I have tried some of the proposed solutions but i'm still stuck. First, i'm not too sure how to use the supply function. What i have now in my controller is:- I'm trying to just set a fix value for the time being so that i can proceed further. Based on the below code, i'm getting a 'java.lang.nullpointer.exception'. What am i doing wrong. Thanks
public void executeZ1Hr_Disp_Cep_Datatab_Input( )
{
//@@begin executeZ1Hr_Disp_Cep_Datatab_Input()
IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();
// Z1Hr_Disp_Cep_Datatab_Input model = wdContext.currentZ1Hr_Disp_Cep_Datatab_InputElement().modelObject();
Swhactor ObjIDList = null;
String a = "11000991";
String b = "P";
wdContext.currentInputElement().setObID(a);
wdContext.currentInputElement().setObType(b);
String objectID = wdContext.currentInputElement().getObID();
String objectType = wdContext.currentInputElement().getObType();
try {
for( int i = 0; i < wdThis.wdGetContext().nodeInput().size(); i++ ) {
ObjIDList = new Swhactor();
IPublicVcMainCEPData.IInputElement tn = wdThis.wdGetContext().nodeInput().getInputElementAt(i);
ObjIDList.setObjid(tn.getObID());
ObjIDList.setOtype(tn.getObType());
wdContext.nodeZ1Hr_Disp_Cep_Datatab_Input().currentZ1Hr_Disp_Cep_Datatab_InputElement().modelObject().addT_Input(ObjIDList);
}
// execution of Bapi
wdThis.wdGetContext().currentZ1Hr_Disp_Cep_Datatab_InputElement().modelObject().execute(
} catch (Exception ex) {
msgMgr = wdThis.wdGetAPI().getComponent().getMessageManager();
msgMgr.reportException("Error from bapi: " + ex.toString(), true);
ex.printStackTrace();
}
wdContext.nodeOutput().invalidate();
wdContext.nodeT_Input().invalidate();
//@@end
}
Edited by: Nahoj Deys on Feb 19, 2008 1:21 PM
Edited by: Nahoj Deys on Feb 19, 2008 1:23 PM
Edited by: Nahoj Deys on Feb 19, 2008 1:29 PM
Edited by: Nahoj Deys on Feb 19, 2008 1:29 PM
Hi,
Make Use of Supply Function.
In the component context,assign supply function to your desired node and create it using forward navigation..
best regards:
vikram salvi..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Manually create a value node with a value attribute. Use context mapping to map column 1 of the RFC output to the value attribute.
You might also be able to map it directly to the input parameters of the second RFC.
Edited by: Pascal Willemsen on Feb 13, 2008 3:55 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nahoj
U can do this by creating new action leadselect.
Add this action to table. then assign data to variable and assign that variable to input.
This should work
Regards
Pratyush
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.