cancel
Showing results for 
Search instead for 
Did you mean: 

how to make an field editable ?

Former Member
0 Kudos

hi all,

i have to make an field editable, how to do it ?

while creating an opportunity when i select an prospect then after selecting i show an error message on some condition, now after displaying the message i have to make the field prospect editable.

please suggest how to do it ? ?

regards.

raman khurana

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can make field editable by writing rv_disable= 'FALSE' in your field get_I_field name method.

Sample code:

IF your condition

IF current->is_property_readonly( 'Your Attribute' ) = abap_false.

rv_disabled = 'FALSE'.

ENDIF.

Best regards

Pankaj Kumar

Former Member
0 Kudos

Hi,

I have tryed making a field editable and i was succesful in it. But i am not able to change its value,I mean after i change value manually its again showing me the same value.

For example : before the value of division was PS, not after making field editable i changed it to SM, but the value is not changed,it again becomes PS.

Will it be possible for you to suggest something on this. It will be a great help by u all.

Thanks,

SA

Former Member
0 Kudos

Hi SA,

check method set for that field , put a break in it and see if it save the data you want.

Lilach

Former Member
0 Kudos

Hi,

I checked wht u said. In Set method the value of <Oval> and <nval> when different ,are changing but then when i comes to get method again,there it again picks the Dref value as the old one.

I dont knw wht i am missing...

Hope to get ur guidance in solving this issue.

Thanks,

SA

Former Member
0 Kudos

Hi,

I went through your problem. Instead of making the field editabel in the context code i suggest you to debug and see that the respective table have that feild maintained in it in t-code sm30.

In SM30 give the table or view name and click on find maintenance dialog and select the view accordingly. and thn check if the values are maintained there.

If not add it and see.

Hope it helps

Thanks

Answers (0)