Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Create Bapi's parameter to set as check box

Hi all,

I'm looking forward to get the solution about creating a check box from output node.

As my criteria, i send a selection criteria to R/3 with Bapi and Bapi returns a export table to WD Java. The problem is i want to apply a field (named "FLAG") to be a check box. But at the error message says "Error for UIElement with label Flag. Select an attribute of type 'boolean'".

An export table contains a field which is 'Flag' with type 'BOOLEAN'. Besides, I try to change the data element to CHAR1 but the result is error.

Please help me on this. Thanks in advance.



Former Member
Former Member replied

Hi expert,

if you binding attribute to Text property of uiElement instead of doing directly model attribute.

just craete one Value Attribute and data type should be boolean and copy value from model attribute.some time what happen data coming from back end .data behaves as true all should care about it..what should do..if you want to true showing your view then send the value as a true.

if you want value as a false you should send value to front end as blank..

before that you should do one thing..

boolean check=new boolean(model value.);

then asign to your value attrinute..

as wdcontext.current<node name>.set<attribute>(check);



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question