on 02-18-2013 4:15 PM
Hello,
I created an enhancement for the method WDDOMODIFYVIEW in the view V_SC_SO_DV_I_BD of the webdynpro /SAPSRM/WD_SC_UI_SO_DEFV.
In this method i will set some input field to be editable (by default those fields are set to be read only).
method _PST_4SV5KRWMUQOMZ2TLQD4TO8123 . "Exit of WDDOMODIFYVIEW (in ZSRM_SC_VIEW_DEFAULT_ITEM_DATA )
DATA: lv_container TYPE REF TO cl_wd_transparent_container,
lv_inputfield TYPE REF TO CL_WD_input_field,
lv_element TYPE REF TO cl_wd_uielement.
DATA : lv_wdy_boolean TYPE wdy_boolean.
CONSTANTS:
shop_for_field TYPE string value 'SHOP_FOR_CONT',
goods_rec_field TYPE string value 'RECIPIENT_FULLNAME',
IF view->name = 'V_SC_SO_DV_I_BD'.
lv_container ?= view->get_element( shop_for_field ) .
lv_container->set_visible( cl_wd_uielement=>e_visible-none ).
lv_inputfield ?= view->get_element( goods_rec_field ) .
lv_inputfield->set_read_only( abap_false ).
ENDIF.
endmethod.
When i execute from SRM browser, i get the following dump: Could not find attribute FULLNAME:READ_ONLY.
The problem comes from field 'RECIPIENT_FULLNAME'. I can't understand the reason behind this dump since the name of the field is correct when i check the layout.
Could you please let me know how to correct this issue?
Thanks,
Hazem.
instead of making inputfield field read_only try changing attribute property using method
SET_ATTRIBUTE_PROPERTY
or
if your standard component is using feeder class try chaning attribute property using feeder class
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.