cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass an internal table(AbstractList type) as input to RFC??

Former Member
0 Kudos

Hi,

I need to call an RFC which accepts a internal table as input(of AbstractList type as input). Please tell me the best and easy way of passing this as input.

internal table name : Li_mailer

type structure : Solisti1

Please help me in this.

Regards,

Narahari

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Narahari,

I assume you have already populated your table in WebDynpro.

Your code should be like this

<ModelNode>_Input input = new <ModelNode>_Input();

int nodeSize = wdContext.node<Li_mailer>().size();

for(int index=0; index<nodeSize; index++){

Solisti1 w_solist = new Solisti1();

WDCopyService.copyCorresponding(wdContext.node<Li_mailer>().get<Li_mailer>()ElementAt(index), w_solist);

input.add<Li_mailer>(w_solist);

}

try{

input.execute;

wdContext.<ModelNode>_Input.bind(input);

wdContext.nodeOutput().invalidate();

}

catch (WDDynamicRFCExecuteException ex){

}

This will work.

Regards,

Shubham

Former Member
0 Kudos

Please refer the document 'Linking RFC to WebDynpro' available at the popular documents in the WebDynpro developers area