Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.