on 02-16-2015 6:56 AM
Hello friends,
We are using the FM CRM_MKTBP_CHANGE_BP to update the marketing attributes.
But this is removing the maintained values for that set and updating the new values. But we are expecting it should add the new values to the BP.
Please find the code
** Maintain marketing for business partner.
CALL FUNCTION 'CRM_MKTBP_CHANGE_BP'
EXPORTING
iv_profile_template_id = ls_mkt-attr_set
iv_bp_guid = ls_mkt-partner_guid
iv_fcode = 'C'
iv_commit = lv_commit
TABLES
it_imp_seltab = ls_mkt-imp_seltab
et_return = lt_return.
Kindly suggest whether it is a standard behaviour or something else need to be passed.
Let me know if you need more details.
Thanks,
Ravi Teja
Hi Ravi
This Function Module overwrites the current values
I had logged this with SAP before and was told the behaviour is standard,
If I recall correctly, it will overwrite the current Attribute Set that you're working with.
To overcome the issue along with the current updates, you also need to supply the current unchanged values of the associated marketing attributes of that Business Partner for the Attribute Set you're busy updating.
Regards
Arden
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi
You need to use the same function module.
But before you call this function module, retrieve all of the Attributes and their Attribute Values in the current Attribute Set which are currently assigned to the Business Partner.
Where the Attribute and Attribute value is unchanged, load into the Function Module as is, then for the changed Attribute value...load them in.
Then call the function module as you are now.
This will work.
Regards
Arden
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raviteja,
There is a 'non standard' way you can try. First read the current attributes of the BP by using the FMs like CRM_MKTBP_READ_BP_DATA(or you can check the function group CRM_MKTBP_DB). Then add the existing values also to the FMs like CRM_MKTBP_CHANGE_BP or CRM_MKTBP_SAVE_BP_LIST. It will update the new values, but the old values won't be lost.
Thanks,
Faisal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Teja,
See the FM 'CRM_MKTBP_UPDATE_ATTR_BP'., if it works for you.
Thanks & Regards
Richa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi, Does the following link help?
Alternatively, you could think of calling the update FM in any badi which gets triggered whenever the attributes have changed. Did you check this possibility? Regards Nisha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.