on 06-27-2008 12:56 PM
Hi
I have writtend following code to change the status of the campaign
Data : lit_status_comt TYPE crmt_status_comt,
wa_status_comt LIKE LINE OF lit_status_comt,
lit_field_names TYPE crmt_input_field_names_tab,
wa_input_field_names LIKE LINE OF lit_field_names.
CLEAR wa_status_comt.
wa_status_comt-ref_guid = 'GUID of the HEADER or Line Item of the Order'.
wa_status_comt-ref_kind = 'Pass 'A' for Header/ 'B' for Item'.
wa_status_comt-status = 'E0035'. " Pass the user status
wa_status_comt-user_stat_proc = 'ZCONTR_H' " Value for the User Status Profile.
wa_status_comt-activate = 'X'.
INSERT wa_status_comt INTO TABLE lit_status_comt.
wa_input_field_names-fieldname = 'ACTIVATE'.
INSERT wa_input_field_names INTO TABLE lit_field_names.
IF lit_status_comt IS NOT INITIAL.
CALL FUNCTION 'CRM_STATUS_MAINTAIN_OW'
EXPORTING
it_status_com = lit_status_comt
CHANGING
ct_input_field_names = lit_field_names
EXCEPTIONS
not_allowed = 1
error_occurred = 2
warning_occurred = 3
OTHERS = 4.
ENDIF.
But status is not changing in CRM_JEST table. How to change the status in CRM_JEST.
I want to change the CREATED status on RELEASED status..
Could you please help me inthis.
Thanks & Regards
Sowmya
Sowmya,
you do not need to build custom code. There's the program CRM_MKTPL_COND_IF_R001 that does exactly this work.
Regards
C
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 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.