Skip to Content
0
Former Member
Nov 27, 2008 at 09:05 AM

Drop down values Interactive form and cardinality

138 Views

Hi,

I have designed an Interactive form of type ZCL. In webdynpro ABAP im using it. I have one filed called:

Purchase Org. "EKORG" from a Vendor BAPI. I have placed a drop down field from Standard palette on to the form. Under object tab, in default binding I have selected my field and a pop is displaying Binding Properties:

If I select update all related properties option then my drop down is changing to Text Filed.

So Im selecting last option like dont make any chages then my drop down will be there and binding also will be there. like following:

$record.IMPORTING.T_BASIC.EKORG.

And I have written code in my doinit method for reading values and binded that internal table to my context node.

If I have onlyone value then it is displaying in the drop down. If I have moe than one value then it is displaying following error:

Number of Elements of the Collection of Node COMPONENTCONTROLLER.1.YFIFM_00005.1.IMPORTING.1.T_BASIC Violates the Cardinality.

where Im going wrong? What cardinality I have to put?

With Regards,

Ravi