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

Importing Value attributes

is there a way to create or import dynamic value attributes into a predefined valuenode with a bapi as source. The Bapi provides me a table and the fields in the table need to be imported into a value node in NWDS. So i can make a form of this.

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 31, 2006 at 12:04 PM

    Hi,

    You can go for the use of custom controller. In there you can bind the attributes of the output of BAPI to the attributes of Outputvaluenode

    Regards

    Saravanan K

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 31, 2006 at 12:37 PM

    Hi,

    You can use the BAPI output by directly or can be bind it to the local value node.

    I. You can directly bind the BAPI node to the View and bind the output node to the Table UI element.

    II. You create a local node

    1.Create the value nodes with the same cardinality of the BAPI input and output.

    2. bind the input values and execute the Bapi.

    3. For the output node do the code

    Private<ViewName>.I<BapiName>Node nodeWeb=wdContext.node<BapiName>();

    IPrivate<ViewName>.I<Name>Node nodeCC=wdContext.node<Name>();

    nodeCC.invalidate();

    int size=nodeWeb.size();

    for(int j=0;j<size;j++){

    IPrivate<ViewName>.I<BapiName>Element elementWeb=nodeWeb.get<BapiName>ElementAt(j);

    IPrivate<ViewName>.I<Name>Element elementCC=wdContext.create<Name>Element();

    elementCC.set<Param>(elementWeb.get<Param>());

    nodeCC.addElement(elementCC);

    }

    4. Bind The output node to the view to the Table UI Element.

    Kind Regards

    Mukesh

    Add comment
    10|10000 characters needed characters exceeded