cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Display mode of contract in WDA.

Former Member
0 Likes
210

Hi Experts,

I need to clear two custom field which I have added in SRM contract Header part.

I have enhanced WDA component and created Post exit in WDDOINIT method to clear these two custom fields. These fields should be cleared only when contract is created or updated. But in my case fields are getting cleared when user is displaying  the contract, it is obvious because same component will be called for every action.

Can anybody please tell me how to get display status of the contract

so that I can add a check in my code and restrict the clearance of fields in display mode?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hi Utkarsh,

Try the below code in your enhancement. You will get the status of contract.

   DATA: lv_pdo_fill       TYPE /sapsrm/pdo_inst_mode.
   wd_comp_controller->mo_task_container->get_transaction_mode(
                       importing ev_pdo_trans_mode = lv_pdo_fill ).

lv_pdo_fill is set to 'DISPLAY' if the contract is displat mode, otherwise  to 'EDIT'.

Thanks,
Vamshi

Answers (0)