Skip to Content
author's profile photo
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Oct 02, 2005 at 04:46 PM

    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

    Add comment
    10|10000 characters needed characters exceeded