cancel
Showing results for 
Search instead for 
Did you mean: 

Set method not setting value to field ,dref not bound

naveenkolathuru
Participant
0 Kudos

Hi there,

Requirement : Add date field to reference object block ,component BTREFOBJ.

AET wont support to add field to BTREFOBJ ,so I added date field in BOL Structure CRMST_REFOBJ_BTIL and added date field to config . I can choose the date , as soon as i hit enter date disappears. On debug i found In set method dref is not bound. Suggest me how to fix the issue.

Thanks,

Naveen.

Accepted Solutions (0)

Answers (2)

Answers (2)

patel-j
Member
0 Kudos

Did you manage to find a solution? I am getting similar issue.

Former Member
0 Kudos

Hi Navin,

It is not as simple as just adding the field to standard structure. A lot has to be done for this. Please explain everything that you did step by step, if possible along with the screenshots.

naveenkolathuru
Participant
0 Kudos

Hi Sagar,

Thanks for your response

  1. Genil_model_browser , found the structure for BTREFOBJ

Strcture : CRMST_REFOBJ_BTIL

2.     Se11 ,using append structure added field Start_date of type sy-datum.

3.          BSP_WD_CMPWB - Component : BTREFOBJ

4.     Added start_date field in get_table_line_sample

5. Added current date field in UI.

After hitting enter button

6.     I know the field added does not have corresponding link back to database table. I’m missing here ,can you please suggest next steps to do . I also need to add another 5 fields to the same object.

I have also followed

SAP Web UI Custom field value not getting set . | SCN

and some other links,but not helpful to fix the issue.

Thanks,

Naveen.

Former Member
0 Kudos

Hi Naveen,

This seems to be a complex development. I assume that the fields you want to add here are all display only fields.

You should follow a two step solution:

1. Whichever object (is it ibase?) you are trying to see in component BTREFOBJ, you should open that object in web UI and add a custom field using AET on that object. This will create a DB field on that object.

2. Make this field available in view of component BTREFOBJ.

For this you have two different options, try both

Option1:

a. Use append structure (as you did) to add the field to standard object

b. Enhance GENIL model to read the value of that field from DB table

Option2:

a. Add attribute to context node BTREFOBJ and write code in GETTER method of this new attribute to read the DB value.

Former Member
0 Kudos

Naveen,

What i gave you is all about adding new fields. If you want to add new fields which are already existing in main reference object (say ibase) then it is not so complex development. Let me know your scenario and I will provide further inputs.