cancel
Showing results for 
Search instead for 
Did you mean: 

To make Final Delivery & Bill checkbox uneditable in display mode in PO

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Pradeep,

Thanks for ur valuable Suggesstion, i have tried that i want to make those Check boxes Uneditable in Display Mode and Editable in Change/Edit Mode of PURCHASE ORDER.I dont want to be in Display Mode always.

Thanks,

Aarthi.