cancel
Showing results for 
Search instead for 
Did you mean: 

form not editable...

Former Member
0 Kudos

Hi

I've got a form that's mapped to a RCF BAPI, say Z_Create

I can't write anything in the fields...

If I map the form to another BAPI Z_Show, they are editable but they appear with the bapi's parameters by default... which I don't want.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Philippe,

Ur input fields will be disablaed ,when there is no element in the node (node which u binded to the form) . create an empty element in the node to make them enabled.

for ur 2nd bapi its enabled bcos element is available in the node.

regards

Sumit

Answers (5)

Answers (5)

Former Member
0 Kudos

thanks to all of you

I've solved the problem by creating a structure that I added to the node.

Zqms001 myTable = new Zqms001();

input.set<structureName>(myTable);

former_member751941
Active Contributor
0 Kudos

Hi Philippe,

Make Sure when you have create the form using Apply Template => Form

In Edit properties you have chosen <b>Input Field</b> editor for the attributes.

A default property is TextView. If you have chosen InputField then check whether

You have initialized the node or not.

For 0..n node use code inside wdDoInit.

wdContext.node<node_name>().addElement(wdContext.create<node_name>Element());

For 0..1 node use code inside wdDoInit.

wdContext.node<node_name>().bind(wdContext.create<node_name>Element());

Other wise you can change the node cardinality to 1..1 or 1..n

Regards,

Mithu

Former Member
0 Kudos

Hi,

"form that's mapped to a RCF BAPI, say Z_Create"

Does this BAPI returns any result.

if not this is the reason why the fields are not enabled.

To make the fields enabled

create an element of this node .

Regards

Ayyapparaj

Former Member
0 Kudos

what does I correspond to (first line) ?

Former Member
0 Kudos

Hi

do the following in your WdDoint()

I<YourNode>Element node=wdContext.create<YourNodeElement>

node.setYourElement(null); // set all your values

node.setYourElement(null);

//finally add the element to your node

wdContext.node<YourNode>.addElement(node);

You can also refer :

Regards

Abhijith YS