Skip to Content
0
Former Member
Nov 07, 2008 at 12:21 AM

Status Not changed in Activity Screen

20 Views

Helo Experts

In activity screen MORE menu, i have option SET TO COMPLETED. If i click on it then the STATUS textbox should change to COMPLETED (either from OPEN / INPROCESS). But thats not happening..... i have the following code for it. Kindly go through and can let me know whats the problem.

  • Set to Completed button

ls_button-text = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BT_ACTIVITY/SETTOCOMPLETED' ).

ls_button-on_click = 'COMPLETED'.

ls_button-tooltip = ls_button-text.

ls_button-page_id = me->component_id.

if lv_status eq 'E0003'.

ls_button-enabled = abap_false.

else.

ls_button-enabled = abap_true.

endif.

append ls_button to rt_buttons.

clear ls_button.

ls_button-text = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BT_ACTIVITY/PDFAFS' ).

ls_button-on_click = 'CREATE_FACT_SHEET'.

ls_button-tooltip = ls_button-text.

ls_button-page_id = me->component_id.

lv_activity_guid = ls_btadminh-guid.

call method cl_crm_uiu_activity_tools=>check_pdfafs_allowed

exporting

iv_activity_guid = lv_activity_guid

iv_pdfafs_create = 'X'

  • IV_PDFAFS_SAVE =

importing

ev_pdfafs_allowed = lv_pdfafs_allowed

  • ES_ORDERADM_H =

.

if lv_pdfafs_allowed eq 'X'.

ls_button-enabled = abap_true.

else.

ls_button-enabled = abap_false.

endif.

append ls_button to rt_buttons.

clear ls_button.

Thanks in advance

Rohan

Hi Experts

Waiting for your Inputs.

Thanks & Regards

Rohan

Edited by: Rohan M on Nov 7, 2008 3:10 PM