on 2014 Aug 25 3:24 PM
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?
Request clarification before answering.
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
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.