Problem in Updating marketing attributes for Contact

Hi,
I am trying to update marketing attributes for contact and Account while Creating lead. For this I implemented ORDER_SAVE (Chek before save).
For account, the marketing attributes are getting updated fine. But, for Contact they are not getting updated. For both I am using the same code. But, I dont understand, why.
Please, let me know why this is happening.
Here is the code i used.
The internal table li_imp_seltab contains Marketing attributs.Its being filled properly. No problem with Internal table data.
For contact----
>
If not v_contact is initial.
  IF lo_contact_head->is_changeable( ) = abap_true.
Update or create the marketing attribute if it does not exist and set the value of the attribute to 'Prospect'
          CALL FUNCTION 'CRM_MKTBP_CHANGE_BP'
            EXPORTING
              iv_profile_template_id = k_template_id
              iv_bp_guid             = l_contact_guid
              iv_xdescr              = abap_false
              iv_fcode               = abap_false
              iv_msa                 = abap_false
              iv_commit              = abap_true
              iv_partner             = l_contact_no
              iv_convert_values      = abap_true
            TABLES
              it_imp_seltab          = li_imp_seltab
              et_return              = li_return.
Modify core and save so that the updations would reflect immediately in Web UI
          lo_core->modify( ).
          lo_tx = lo_contact_head->get_transaction( ).
          IF lo_tx IS BOUND.
            IF lo_tx->save( ) = 'X'.
              lo_tx->commit( ).
            ENDIF.
          ENDIF.
        ENDIF.
For Account -
>
if not v_ac is initial.
Check if the entity is changeable.
        IF lo_account_head->is_changeable( ) = abap_true.
Update or create the marketing attribute if it does not exist and set the value of the attribute to 'Prospect'
          CALL FUNCTION 'CRM_MKTBP_CHANGE_BP'
            EXPORTING
              iv_profile_template_id = k_template_id
              iv_bp_guid             = l_account_guid
              iv_xdescr              = abap_false
              iv_fcode               = 'C'
              iv_msa                 = abap_true
              iv_commit              = abap_true
              iv_partner             = l_account_no
              iv_convert_values      = abap_true
            TABLES
              it_imp_seltab          = li_imp_seltab
              et_return              = li_return.
Modify core and save so that the updations would reflect immediately in Web UI
          lo_core->modify( ).
          lo_tx = lo_account_head->get_transaction( ).
          IF lo_tx IS BOUND.
            IF lo_tx->save( ) = 'X'.
              lo_tx->commit( ).
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
Please
Thanks,
Sandeep

Hi Sandeep,
  You can use 'CRM_MKTBP_UPDATE_ATTR_BP' FM to update the marketing attributes of the BP.
Regards,
Lakshmi.Y

Similar Messages

  • Report accessible in CRM PCUI for marketing attributes for contacts

    I am trying to create a report accessible in CRM PCUI home page for marketing attributes for contacts(info from CRM, not R3). Does anyone know the steps to get this done please?

    Hi Abdul,
    Can you tell me how did you do this. I have a similar requirement in PCUI where I need to have a two level report in PCUI.
    Would request to treat this as very urgent.
    Regards
    Priyanka

  • Simple report that extracts marketing attributes for contact persons

    HI
    I want to extract the marketing attributes for contact person and to have certian output fields ,
    Can anyone help by finding an existing report that i may make some changes in it.
    Thanks ,

    ..

  • Update market attribute for BP

    Dear expert, i need to update market attribute of bp in CRM.
    At the moment i'm using function module CRM_MKTBP_ASSIGN_ATTRIBUT_TAB to create/update the attribute.
    It works fine but there is a problem when I try to update the field  ATWRT (characteristic value) on an attribute that already exist. For example if I have:
    OBJEK
    000000000000000058
    ATINN
    0000000034
    ATWRT
    N
    and I want to update in :
    OBJEK
    000000000000000058
    ATINN
    0000000034
    ATWRT
    Y
    This doesn't work. I found another function to do it, CRM_MKTBP_UPDATE_ATTR_BP, but I don't know if I can use it instead to use CRM_MKTBP_ASSIGN_ATTRIBUT_TAB .
    Anybody already found this problem ?
    Davide

    ok, thanks, and do you know if in case i want to delete an attribute from bp exist another function module ?
    Regards,
    Davide

  • Report for initial fill of marketing attributes for contact persons

    Hello,
    i have an excel document with contact persons and marketing attributes.
    What way do you recommend to bring this attributes into SAP CRM?
    The contact persons are already in SAP CRM.
    Thank you
    Best regards
    Manfred

    Hi Manfred - ELM, is what we use to update contacts for all information, including marketing attributes.
    If you don't have the contact in CRM...Step 1 - From the file that you have, just map the contact details and ELM the file to create contacts. Step 2 - You have to add the contact IDs to the file now and this time create a mapping format to update the contact and marketing attributes.
    In the mapping format that you would create, marketing attributes can be assigned from the file to be ELM'ed.
    Thanks
    Nikhil

  • Marketing Attributes for account and Contact

    Hi,
    I am looking at Marketing Attributes of an Account. They are fine.
    And I am looking at Marketing attributes of an Contact for this account. But these values are different from Account Marketing Attributes.
    They are not same...can you please let me know..when they will bcome same (for Account and his contact).
    And when I create lead(campaign)...will these attributes changes for Account and Contact?
    Please let me know...as I am very new to CRM Marketing.
    Thanks,
    Sandeep

    Hi,
    If the marketing attribute set is created with assignment to bith Accounts and Contacts.. the same would be visible through out.
    If u want different set of attributes for contacts and accounts, define multiple marketing attributes and select the checkbox for availability in either contacts or accounts and not both.

  • External lists for updating marketing attributes

    Hi,
    I'm now working in CRM 3.1, but we're going to upgrade for 5.0 in the autumn. In this relation I'm working on a pre-project where I'm looking for the possibilities for using external lists for updating marketing attributes on existing BPs. How can I map this fields? Do I use advanced mapping fields or structure enhancement using appended fields?
    Thanks, Camilla

    Camilla,
    Yes, this function become standard for CRM 5.0. CRM5.0 ELM provide different format types for create BPs (with marketing attributes), activities and leads. You need to define different format type when you create mapping format. For updating marketing attributes, you need to choose type  "Business Partner" type so that all the marketing attributes will be available for you to pick to create the mapping format.
    You can look at the CRM5.0 release note and document for more details
    Regards,
    Min

  • PROBLEM IN CREATING MARKETING ATTRIBUTES

    Hi Experts,
    I have a requirement in which i need to create OR update Marketing attributes of BP.
    I used FM CRM_MKTBP_CHANGE_BP for this.
    for updating existing Attributes it is working fine, but when i am trying to assign attributes to the BP it is not working.
    In return parameter, i am getting Success message, but if i am going to Transaction BP and view the BP, I am not able to view
    the assigned attributes.
    my code is simple:
          CALL FUNCTION 'CRM_MKTBP_CHANGE_BP'
            EXPORTING
              IV_PROFILE_TEMPLATE_ID       = LV_ATTRSET_HOBBY    " this contain the name of the Attribute Set
    *         IV_BP_GUID                   =
    *         IV_XDESCR                    = ' '
    *         IV_FCODE                     = 'C'
    *         IV_MSA                       = 'X'
    *         IV_COMMIT                    = 'X'
              IV_PARTNER                   = I_BPNUMBER         " BP Number
    *         IV_CONVERT_VALUES            = 'X'
            TABLES
              IT_IMP_SELTAB                = LT_ATTR_HOBBY             " Attributes with values
              ET_RETURN                    = LT_RETURN                 " Here i am getting sucess message
    Any idea why it is not working. if you have faced the similiar problem, how did you solved it?
    One more point here is: After calling the FM, i can see the records in table AUSP  but not in BP Transaction
    I just check this for updataing existing marketing attribute. Records are updated in the AUSP table but these changes are not reflected in BP T Code.
    Please provide your valuable inputs.
    Dave
    Edited by: Dave on Jun 15, 2011 1:24 PM

    Solved by using FM CRM_MKTBP_ASSIGN_ATTRIBU

  • Updating marketing attributes from BW

    Hi anyone!
    We're using the Analysis Process Designer in BW for updating marketing attributes in CRM. We face two problems:
    1. When updating an attribute with several values (have set the multiple value indicator in the transaction maintain attributes) BW only updates one attribute value. The second value overwrites the first one.
    2. When using currency as data type for the attribute value we get an error in BW when we start the process of updating the marketing attributes.
    Have any of you faced the same issue???
    Regards Camilla

    Hello,
    we have a scenerio where in we have to transfer data from BW to CRM (Campaign from BW to CRM) and presently we are on BI 7.0 and CRM 5.0.
    Please can any one of you provide how to guide or steps if Customization required in BW and CRM side.
    One of the method is using APD, but here also i am new..can any one have tried??
    Thanks in Advance..
    Regards
    Ankur

  • Update Marketing attributes in Interactive Scripting

    Hi All,
    I would like to know if anyone knows how to :
    1. Display multi value fields in Interactive Scripting 5.2
        In standard IS editor, there is a dynamic answer "Marketing Attribute 5.1". We need to create new ones. What it the process ?
    2. Update Marketing Attributes (or any other multi value fields) in IS. In addition to that, IS Editor in 5.2 don't have "ABAP Call" and "RFC ABAP Call" type actions in the  repository, where 4.0 comes with these types. I would like to make a RFC call to R/3 from IS, and display the returned value in the IS.
    Thank you,
    Vadim Boriskevich.

    Hello Mike,
    Yes, You have to clearly define what type of marketing attribute it is. i mean whether person or organization.
    It is not possible to use marketing attributes which are valid for persons AND organizations for survey.
    For eg.   If the marketing attribute is of type person(you can see this in the trx Crmd_prof_templ) and the BP is of type Organisation then it wont work for you.
    In this case either change the attributes to Organization type ,reattach them in the survey suite and then try.
    If you  have attribute of person type then the BP should be of the same type.Actually in the code there is a string which matches from both the sides.So in case of any mismatch the updation would not be there.
    Hope this answers your question.
    Thanks
    Raja  Pamireddy
    CRM Marketing forum Moderator

  • Reg: CRM Marketing attributes for CRM 7.0

    Hi Gurus,
    We are using function module CRM_MKTBP_CHANGE_BP to change marketing attributes for a business partner in which the marketing attributes are coming from another interface.
    We get the marketing attributes created all the time, but the problem is when theres is a change in marketing attributes, these changes are also reflected, but the changed by and time stamp is not changed, though we pass it explicitly via the internal table IT_IMP_SELTAB when passing the fields CHANGED_AT and CHANGED_BY.
    Requesting if anyone knows another FM or BAPI or OSS noted available for this as this particular FM is not released yet too.

    Hi ,
    Check that the Flag Run in the table CRM_MKTBP_CHECK for function module CRM_MKTBP_UPDATE_AUSP_EX_DB is set to X. This is for recording the history for any changes in the attributes. If not then set this flag to X. After that just change the value of one of the attributes and check the 'CHANGED AT' and 'CHANGED BY' fields for that attibute.
    Hope this helps.
    Regards,
    Gervase

  • Urgent: How to Remove assignment of a marketing attribute for an BP

    Hi Guys,
                In my project we are  maintaining two marketing attributes for all the business partners.
    But there is a need now based on some condition we want to remove one of the assignment for the BP (I.e which ever BP matching the condition)..
    I dont want to remove this manually  using the transaction code..
    Is there  any function module to remove the assignment of the marketing attribute  for the BP.
    Would appreciate an early reply...Since it is very urgent...
    Regards,
    Sundar

    HI Sundar you should follow the following steps.
    1. Create a target group in the segment builder selecting all the business partners that meet your criteria.
    2.  Go to the Expert tools (transaction CRMD_MKT_TOOLS)
    3. Select the Deletion of an Attribute for All BP Assignments to a Target Group  option.
    4. enter in the name of your target group, the attribute set and attribute you want to remove.
    Nima

  • How to deactivate the marketting attributes for BP in CRM

    Hi,
    how to deactivate the marketting attributes for BP in CRM
    I can add and maintain the same using tcode crmd_prof_char
    But how do I deactivate.
    Points will be rewarded
    Thanks

    .

  • Marketing attributes for a business partner

    Hi,
    how can I input marketing attributes for a business partner with a BAPI?
    Or can I use BATCH-INPUT (the transactions is "BP")?
    Thanks and best regards.

    Hi JoJo,
    I don't know about LSMW. But I have done something similar in a program by calling the following function module in a loop for each of the business partner:
    CALL FUNCTION 'CRM_MKTBP_CHANGE_BP'
          EXPORTING
            IV_PROFILE_TEMPLATE_ID = lv_attribute
            IV_PARTNER             = lv_partner
          TABLES
            IT_IMP_SELTAB          = lt_attr
            ET_RETURN              = et_return.
    Here you can provide the attribute set in lv_attribute
    and business partner in lv_partner. lt_attr contains all the attributes (name and value).
    Example:
        ls_attr-atname = 'Z_CUST_TEAM_ASSGN'.
        ls_attr-atwrt = 'Test Team'.
        APPEND ls_attr to lt_attr.
    Hope this helps.
    Regards,
    Chandrika

  • SAP CRM MObility Activity Survey to create Marketing Attributes for a BP

    ATtrHi Gurus ,
    I have to create an Activity from IPAD ( CRM Mobility ) which will create a survey response,and the survey responses have to be captured and then create Marketing Attributes for the BP related to the Activity. I am not able to use the Callback Function given to IPAD Application.
    So my Approach so far has been :
    implement a badi that gets trigerred at Survey Response submission.
    in that call function module crm_svy_activity_pai.(Made a Z-copy of this to enforce COMMIT WORK )
    I am not able to pass the parameter lr_values for FM: CRM_SVY_ACTIVITY_PAI
    These are the 2 links that has been useful so far . Kindly add to this if possible.
    Regds
    Oindrila

    Hi Jacques,
    Once you click on Marketing in Web UI you will find "Marketing Attribute" in the Work Area.Click on that.
    You need to give ID No. and Attribute Set name.
    You need to mark Persons and Organisation checked also.
    Below that you will find 2 blocks " Attributes" and "Value"
    Under Attribute gve your Attributes Names you want to define ( e.g. Age,Salary or any client defined..) then select the Format ( Numeric or Chracter etc...)
    Once you have filled in all the Attributes you click on one attribute and below you need to fill the Values ( e.g 20-30 yrs etc...) . If you want to make that value a default one you can select default check box against each value.
    That way for each attributes you can define values. Hope this would help you.
    Regards...
    Edited by: akscrm akscrm on Sep 3, 2008 2:19 PM

Maybe you are looking for

  • How to split values of column in a table

    i have a scenario like bank year amount aaaa 20091 1000 bbb 20091 100 ccc 20091 10 ddd 200812 100 aaa 200812 98788 bbb 200812 777 ccc 200812 666 i need to get like bank 20091 200812 aaa 1000 100 bbb 100 777 ccc 10 666 like that...years of individual

  • How to develop web service using Intellij Idea 6.0

    How to develop web services using Intellij Idea 6.x. A sample web service and service client is needed with full procedure. Thanx in advance.

  • WLC IOS upgarde from 4.2.99.0 to 7.0.220.0

    Hi I have an WLC with below details: Model No:- AIR-WLC4402-50-K9 Current IOS:- 4.2.99.0 Upgrade to :- 7.0.220.0 I wants to upgade WLC with7.0.220.0 IOS. My question is that should i go for direct upgarde from 4.2.99.0 to 7.0.220.0 or is there any IO

  • Out of memory message on iPad 3 in Adobe reader

    When viewing a PDF on the iPad 3 with the Adobe reader app I get a message saying "out of memory" whenever I open a PDF bigger than about 20mb. Any reason or a bug? I have loads of memory left on the device.

  • ITunes not writing valid XML file

    I've been having trouble with my iTunes library being seen by anything other than itunes (iPhoto, iLike etc) and the problem is with the XML file. If i try to open the xml file in BBEdit i get an error that says: *Incorrectly formed UTF-8* The UTF-8