on 07-18-2009 9:31 AM
Hi Experts,
In my WD program, I have to use two RFCs.
Output of first RFC gives following:
Pernr
Ename
I have to provide the Position for each pernr. For this I have to use second RFC.
Second RFC
Input: pernr
Output: Position
The final output will be like:
Pernr
Ename
Position
How I can do so? Please help.
Regards,
Gary
hi
i guess you would be having the RFC's name with , integrate the rfc's in the studio , and then execute the
RFC which gives the output as pernr and Ename,
get the PERNR and ENAME as
wdThis.wdget<componentcontrollername>.execute<RFCNAME>;
fetch the out put
String pernr = wdcontext.node<NODENAME>.currenty<NODEELEMNT>.getpernr();
String ename = wdcontext.node<NODENAME>.current<NODEELEMNT>.getENAME();
now you have to set PERNR number and ENAME as input to the second RFC .
so you may be knowing the import to which you have to set and the NODE name ,
suppose let the node name be Employee
ZEmployee emp =new ZEmployee();
emp.setpernr(pernr);
emp.setEName(Ename);
wdcontext.nodeEmployee.addelement(emp);
and then execute the SECOND RFC
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.