cancel
Showing results for 
Search instead for 
Did you mean: 

Values are not populating from greyed out fields

0 Kudos

Hi Gurus,

I jsut upgraded my CRM system from Patch level 21 to 28 both ABAP as well as Basis. After that we are facing a UI problem that value in the greyed out field is not populating when the sales order is saved. Please suggest.

Accepted Solutions (0)

Answers (7)

Answers (7)

0 Kudos

Hi John,

There is nothing wrong in the coding. As the same code is been used in another prod system without any issue. Its just some configuration issue after the Patch upgrade  Due to which its happening.

Rama

0 Kudos

Regards

Hi John,

Please find the get_v method code.

DATA:
  lv_object_guid TYPE crmt_object_guid,
  lv_object_kind TYPE crmt_object_kind,
  lt_status_ui TYPE crmt_status_ui_tab,
  str type string.

  DATA: ls_ddlb TYPE bsp_wd_dropdown_line,
  lt_ddlb TYPE bsp_wd_dropdown_table,
  lr_btadminh TYPE REF TO cl_crm_bol_entity.


*Start of Code.

  ls_ddlb-key = '01'.
  ls_ddlb-value = 'Business'.
  INSERT ls_ddlb INTO TABLE lt_ddlb.

  ls_ddlb-key = '02'.
  ls_ddlb-value = 'Office'.
  INSERT ls_ddlb INTO TABLE lt_ddlb.

  ls_ddlb-key = '03'.
  ls_ddlb-value = 'Residential'.
  INSERT ls_ddlb INTO TABLE lt_ddlb.



IF NOT zz_ddlb_321 IS BOUND.

  CREATE OBJECT zz_ddlb_321
  EXPORTING
  iv_source_type = 'T'.
  ENDIF.
  zz_ddlb_321->set_selection_table( it_selection_table = lt_ddlb ).


  RV_VALUEHELP_DESCRIPTOR = zz_ddlb_321.
 

Regards

Abhishek

kutjohn
Active Participant
0 Kudos

There is nothing wrong there. How is the collection getting set?

Share the Get method code too.

0 Kudos

Hi Krish,

Thanks for the input.

We tried the first part but without any success. As our CRM is 6.0 we cant add the custom field through AET.

Regards

Rama

kutjohn
Active Participant
0 Kudos

Hi Rama,

Can you share the code in get_v method?

0 Kudos

Hi John,

The problem still persists. We need to get the value from the field when it is non-editable. Currently we are getting the value when the field is editable.

Regards

Abhishek

0 Kudos

Hi Krihnendu,

The logic is right as the same thing is been populating in another Production system where the patch upgarde was not performed.

Hi John,

The getter/setter method is working fine. Same logic has been used in another Production system where the patch upgarde was not performed.

Please refer below:

After patch up gradation that we are not able to get the values from screens ( UI ), either through getter or get_property_as_value or get_property_as_string .

Note : All fields detected till now are dropdown and zfields .

They all are greyout fields , if we ungrey them the problem is removed .

kutjohn
Active Participant
0 Kudos

Hi Rama,

If you are setting the read-only property from the configuration, make it editable from configuration and redefine the get_i method to make it read-only.Try this way.

Regards JP

0 Kudos

Hi John,

Actually when i ungery the field there is no issue , value is getting retrieved , but i need to disable that field permanently via get_i or via configuration ( in that casse no value is getting fetched either via getter/setter or via get_property_as_value/get_property_as_string ) .   .

As you have suggested , I have tried making fields enable from configuration tool and graying field from get_i_<> method only. But still the issue persists .

Note my SAP CRM version is CRM 6.0 .

kutjohn
Active Participant
0 Kudos

Hi Rama,

Where are you setting the value for this field?

If you are setting values for this field in the getter method you wont have the values set in the

collection wrapper. Can you check in the do_prepare_output method if the values exist in the collection wrapper or not?

Regards JP

0 Kudos

hi JP,

Thanks for your prompt Support

Values are getting set in Get_V method . And in DO_PREPARE_OUTPUT when field is disabled values does not exist in collection wrapper .But when the field is enabled the values automatically exist in collection wrapper.

Regards

Rama

kutjohn
Active Participant
0 Kudos

Hi Rama

So set the values somewhere else other than in getter methods.It will solve your issue.

Please close the thread if you got your answer

krishnendu_laha
Active Contributor
0 Kudos

Hello Rama,

Could you please check two things:

1. In personalization -> reset to default and then customize again

2. In worst case, add the custom field through AET again.

I suspect BOL entity somehow got corrupted and this can be a possible solution.

Thanks,

Krish


kutjohn
Active Participant
0 Kudos

Hi Rama,

Check the getter/setter method for that field.

Regards JP

krishnendu_laha
Active Contributor
0 Kudos

Hello,

In my opinion this is logic defect and please consult a developer.

Thanks,

Krish