cancel
Showing results for 
Search instead for 
Did you mean: 

Simple Question - Using 2 BAPIs

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (0)