on 10-20-2011 6:08 AM
Hi Experts,
We are upgrading from SRM 5.0 to SRM 7.0, In PO we replaced Further Confirmation and Further Invoice radio button into Final_Delivery and Final Check Box. Now We want to make those two check box uneditable in Display mode and Editable in Edit mode.
Web Dynpro Component:/SAPSRM/WDC_DODC_PO_I_ST
View:V_PO_DODC_I_ST
Thanks,
Aarthi.
Hello Aarthi,
Create a attribute ENABLE in the context and bind Final_Delivery and Final_inv checkbox enable (property checkbox) to this field.
In method WDDOMODIFYVIEW post exit.
You can try below code.
DATA:lo_task_container TYPE REF TO /sapsrm/if_cll_task_container,
lv_pdo_fill TYPE /sapsrm/pdo_inst_mode.
CALL METHOD lo_task_container->get_transaction_mode
IMPORTING
ev_pdo_trans_mode = lv_pdo_fill.
IF lv_pdo_fill = 'DISPLAY'.
lv_enable_visi = '01'.
lo_el_visibility->set_attribute(
name = `ENABLE`
value = lv_enable_visi ).
ELSEIF lv_pdo_fill = 'EDIT'.
lv_enable_visi = '02'.
lo_el_visibility->set_attribute(
name = `ENABLE`
value = lv_enable_visi ).
ENDIF.
Regards,
Neelima
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aarthi,
You need to set the meta data for this fileds
FINAL_ENTRY
FINAL_INV
then it will be always in disable mode .
Thanks & Regards
Pradeep Kumar dondeti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.