Showing results for 
Search instead for 
Did you mean: 

Avoid follow-up

Former Member
0 Kudos

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.


THX in advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

Active Participant
0 Kudos


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'

* 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.



Former Member
0 Kudos


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.