cancel
Showing results for 
Search instead for 
Did you mean: 

Enable Status Field In Search Page

former_member549938
Participant
0 Kudos

Hello ,

I need to enable the STATUS field in the search page.

Steps :

1. We need to enter into crm web ui .

2. Goto Sales Cycle.

3. Ex : Search for a quotation. Choosing one Quotation, we will go to the Quotation page.

In that page all the fields are in disable mode.

My task is in that Quotation page which we have selected earlier in that status field should be enabled with out clicking edit button.

Can any one give me an idea in sloving this problem.

Thanks For Up Coming Help .

Accepted Solutions (1)

Accepted Solutions (1)

kavindra_joshi
Active Contributor
0 Kudos

Hello ,

If you need make the field editable then you would need to change the properties of the field editable. I am assuming you are using the standard sales cycle->quotations.

In this case the field is set as Dispay Only = abap_false. This means if you reset the GET_I method of the attribute and set the return value = true then you would get the screen as editable.

Regards

Kavindra

Reward points if you find it useful.

former_member549938
Participant
0 Kudos

Hello Joshi,

The below mentioned is my GET_I_STATUS_CURRENT code.

BT115QH_SLSQ/Details -> BTStatusH->GET_I_STATUS_CURRENT

DATA: current TYPE REF TO if_bol_bo_property_access.

rv_disabled = 'TRUE'.

IF iterator IS BOUND.

current = iterator->get_current( ).

ELSE.

current = collection_wrapper->get_current( ).

ENDIF.

TRY.

DATA: coll TYPE REF TO if_bol_entity_col.

DATA: entity TYPE REF TO cl_crm_bol_entity.

entity ?= current.

coll = entity->get_related_entities(

iv_relation_name = 'BTStatusHCurrent' ). "#EC NOTEXT

current = coll->get_current( ).

IF current IS NOT BOUND.

RETURN.

ENDIF.

IF current->is_property_readonly(

'ACT_STATUS' ) = abap_false. "#EC NOTEXT

rv_disabled = 'FALSE'.

ENDIF.

CATCH cx_sy_ref_is_initial cx_sy_move_cast_error

cx_crm_genil_model_error.

RETURN.

ENDTRY.

Where I can make it as TRUE so that my STATUS filed only gets ENABLED.

Thanks For Up Coming Help.

Regards,

Tejaswy.

Former Member
0 Kudos

Hi,

We cannot enable the status field without clicking on edit button.

But after that we can make it editable by rv_disabled = 'TRUE' in the GET_I_STATUS_CURRENT method and rest all code can be commented.

Regards,

Ruchi

Edited by: ruchi saxena on Oct 24, 2011 12:02 PM

Answers (0)