I want to develop a custom application and hence have created a BOL component in EHP1. I have created a model view(form view) using this BOL component and wish to take inputs from the user and save the data in the Z table..
As of now, the fields in the view are read only and show 'Fieldname not bound' in UI. In HTM page i have made the displaymode property as false but still they are uneditable. All the fields belong to the root object.
Kindly suggest pointers/code how to make these fields editable and store the input data in the backend Z table.
Did you mean you created a GenIL component ?
If yes before you proceed further with UI Component Creation, you can test your GenIL component using GENIL_BOL_BROWSER.
Check if your intended functionality is working fine from the BOL Browser and you will come to know where the issue is occurring.
also while creating a form view there is an option to select standard buttons. check if this buttons created trough wizard are generating any code for "create" button and see if you problem is resolved by pressing Create Button. If it resolves then you can check the code generated and use it
Check my comment , it might help you with this query.
Thanks a lot for your replies.
I have a similar problem. I had created a custom BoL component with a root entity and a dependent one. BUt when i was testing it GENIL_BOL_BROWSER, i could not create a root object.
I ll try the changes as suggested and ll let u kno win case i face some issues.
To create a new root object , you have to fill a structures using nvp and then add object method.
fill_struct_from_nvp_tab( EXPORTING it_parameters = it_parameters
CHANGING cs_parameter = lv_key ).
Pass the values in a structures using lv_key atrributes.
iv_root_list->add_object( iv_object_name = iv_object_name
is_object_key = lv_key ).
if you need more help regarding creating a new custom genil class , i m preparing a new document , will let u know as it gets completed.
the problem of "field Not bound" is a common problem, this is because in UI configuration while selecting the fields to be displayed you have to choose the fields which are actually related to the root,
in many cases the context node you choose to select the fields should have the base entity as root.
ex: builheader .
check the context node from which you choose the attributes have base entity which belongs to root object .