on 05-06-2011 11:29 AM
Hi all,
I m enhancing the /SAPSRM/WDC_UI_DO_LIMIT component .
And i want to get if shopping cart in Edit or Read only Mode.
Is there any evenement or methode that return the current mode (Read only - Edit) ?
Best regards
Hi,
Yep, there is a method:
DATA lv_mode TYPE /sapsrm/pdo_inst_mode.
CALL METHOD wd_comp_controller->mo_task_container->get_transaction_mode
IMPORTING
ev_sub_trans_mode = lv_mode.
IF lv_mode EQ /sapsrm/if_pdo_action_c=>gc_action_edit or
lv_mode eq /sapsrm/if_pdo_action_c=>gc_action_create_sc.
" edit or create mode
lo_el_context = wd_context->get_element( ).
ELSE.
" display mode
" do something else
ENDIF.
Regards,
Marcin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.