Skip to Content
author's profile photo Former Member
Former Member

How to input data to RFC

Hi Experts,

I have an RFC with few input attribures and input nodes.

Please help me to execute this RFC,

-ZCandiadateNode(RootNode)

-


PersonalNode(SubNode)

-


name_value(SubNode Attribute)

-


addr_value(SubNode Attribute)

-


candidateIDvalue(RootNode attribute)

Above is the node structure i have.

(PersonalNode is a subnode inside ZCandiadateNode)

I am able to send the -candidateIDvalue data to backend.But not able to set values for name and addr.

Kindly help me with the code to execute this RFC.

Thanks,

John

Edited by: john paul on Nov 18, 2011 8:29 AM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 18, 2011 at 07:38 AM

    Hi,

    You can set the value for name_value and addr_value as follows:

    wdContext.nodePersonalNode().createPersonalNodeElement().setName_value(<some value>);
    wdContext.nodePersonalNode().createPersonalNodeElement().setAddr_value(<some value>);

    After this execute the RFC anc check.

    Hope this helps you

    Regards,

    Jithin

    Edited by: jithus on Nov 18, 2011 8:46 AM

    Edited by: jithus on Nov 18, 2011 8:47 AM

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      When you have a Model Node in your context, the name of the class you have to instance is not the name of the Node but the name of the model class that it's referenced. If you select Properties of Personal node, in modelClass you will get the name of the corresponding class, for example: ZPersonal, and then you can do ZPersonal persona = new ZPersonal().

      Regards.

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.