on 11-12-2010 11:37 AM
Hi,
The requirement I have as of now is like this:
An Activity which has been 'Completed' needs to be changed back to the 'Open' Status for the user to make some change and then again change it back to 'Completed' status. I am looking for a BAPI to do the same. Can anyone help me if I can get a BAPI / BADI to do the same ?
Hi Arpan,
You can use the BAPI_ACTIVITYCRM_CHANGEMULTI to change the activity status. This is used to change multiple activities at the same time.
Thanks,
Chaith.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have used the fb BAPI_ACTIVITYCRM_CHANGEMULTI to change the orgdata of some activities. That works fine. But now I use the same fb to change the status. But the status wasn't changed.
lt_guids-guid = lt_crmd_orderadm_h-guid.
ls_status-ref_guid = lt_crmd_orderadm_h-guid.
ls_status-status = 'E0003'.
ls_status-ref_kind = 'A'.
ls_status-user_stat_proc = 'CRMACTIV'. "Status-Schema
ls_status-activate = 'X'.
ls_status-process = lt_crmd_orderadm_h-process_type.
ls_statusx-status = 'X'.
ls_statusx-user_stat_proc = 'X'.
ls_statusx-activate = 'X' .
APPEND lt_guids.
APPEND ls_header TO lt_header.
CLEAR ls_header.
APPEND ls_status TO lt_status.
clear ls_status.
APPEND ls_statusx TO lt_statusx.
clear ls_statusx.
CALL FUNCTION 'BAPI_ACTIVITYCRM_CHANGEMULTI'
TABLES
HEADER = lt_header
STATUS = lt_status
STATUSX = lt_statusx.
CALL FUNCTION 'BAPI_ACTIVITYCRM_SAVE'
exPORTING
UPDATE_TASK_LOCAL = TRUE
TABLES
OBJECTS_TO_SAVE = lt_guids.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
Do you have any idea, where is the mistake?
Thanks and Best regards
Michael
User | Count |
---|---|
6 | |
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.