Skip to Content
avatar image
Former Member

How to create extra model attribute automatically during model binding.

Hi,

I am creating modelbinding using RFC call.After that i am binding model into context of custom controller.

My quastion is during model binding to custom controller

only that much model attribute is created in Input node or Output node in custom controller based on the attributes prasent in model.Suppose for employee table Bapi has one input field ie date and

two out put field ie emp_id and emp_name,suppose i am creating model using employee Bapi and binding this model

into custom controller it is creating one input field in Input node suppose it is date and two out put field model attribute ie emp_id and emp_name in Out put node,When i am trying to create another model attribute which will point to emp_name in out put node,it is showing message that you cann't create .So how i will create extra model attribute

that will point to emp_name in out put node.

Thanks & Regards

sailajit swain

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 30, 2006 at 02:13 PM

    Hi,

    I did not understand your question clearly, why do you need an 'extra' model attribute which binds to the same model node, if there is already one.

    Say for your Bapi,

    Input: Date

    Output: Name and Id

    So, you create a Model node - say EMP_NODE

    Click on Edit Model Binding.

    Select the Corresponding Bapi Input node, Click on next

    Select Date(which will go as your input).

    Now click on Output

    Under Output, select Name and Id.

    When you execute the Bapi,

    say wdContext.nodeOutput().invalidate();

    You will get your output in the corresponding fields.

    Cheers,

    LM

    Add comment
    10|10000 characters needed characters exceeded