on 03-03-2011 6:49 PM
Hi, experts
I have created a follow up task for sales document.
Im traying to avoid the follow-up document if sales document have a status CANCELLED. The status was customizing into Status Management-->Define Status Profile for User Status. The status profile contain staus CAN (CANCELLED) and User Status Triggers Business Transaction CANCEL with influence allowed. This status profiel was assigned to Sales Document. However while sales document is checked with status CANCELLED, this enable to create follow-up document, but a I don't like this.
I hope someone can help me.
Regards.
THX in advance.
Hi,
You first see where the followup button is defined it may be in GET_BUTTONS or DO_PREPARE_OUT and there you first access the status value based on that you can enable or disable the FOLLOUP buton like:
Data lv_enabled type boolean.
* First get the value of current status in lv_status from the context
IF lv_status <> 'CAN'.
lv_enabled = 'X'
ENDIF.
* Follow Up
ls_button-text = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BT/CREATE_FOLLOW_UP' ). "'Follow Up'.
ls_button-on_click = 'FOLLOWUP'. "#EC NOTEXT
ls_button-enabled = lv_enabled.
ls_button-page_id = me->component_id.
APPEND ls_button TO rt_buttons.
I hope this would resolve your issue. If yes please award points.
Regards
Ajay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
I would create a copy routine in the copy control config and put a check on status to enable a follow up.
May be there are other options as well.
Regards,
Shaik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
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.