Update Target Group status

Hi Experts,
I want to write e function module which will import target group guid and desired status as input & it will update status of that target group.
I'm using the FMs  CRM_MKTTG_TG_ST_MAINTAIN and  CRM_MKTTG_TG_SAVE.
I think I'm not able to pass proper parameters to these FMs.
Please help me with proper codes.

Hi PRasad ,
Use CRM_MKTTG_STATUS_READ. Provide the TG guid and you would get the current status. Change the status structure to add the status you want to change to and then you can call CRM_MKTTG_TG_ST_MAINTAIN and  CRM_MKTTG_TG_SAVE
~Kavindra

Similar Messages

  • Member of Target Group: Contact record updated

    We are creating a target group for a Campaign and several of the contacts had to be updated (changed Companies "Account" for instance) and the new data for that contact is not reflected on Members list, shows old data (old Company "Account").
    Without removing the member and re-adding, are we missing something or once they are added it holds the old data?
    We can find this down the road to be cumbersome when copying target groups and/or when using the same target group for other campaigns
    if a contact record is updated and the information is not matching to the member data.
    Any insight appreciated!

    Hi Gina,
    once the members are added to a group and after if you do any changes on the master data these changes wont reflect in the group already created, you should remove and save the group after again add back this time the new changed data will be updated.
    hope this clarify your issue.
    Regards,
    Suresh

  • Lync Status Not Updating Until Group is Expanded

    Hello all,
    I am having an issue that I can't seem to figure out. For the Groups view, the group doesn't seem to update a person's status when collapsed. After it is expanded, is only then the status will update and the person will go into a different group or move
    up or down the list, depending on filtering. Also if the expanded group extends past the bottom of the Lync window, those contacts don't update until seen. This also happens with the Status View as well. You need to scroll through the entire list to update
    everyone's status.
    Is this part of Lync or a bug? I am really hoping it is an issue because trying to find people after their status updates is annoying.

    Hi,
    Did you try deleting the Lync Profile. 
    Please try to delete the profile and check the presence. 
    %UserProfile%\AppData\Local\Microsoft\Office\15.0\Lync
    Is your Lync client is installed with latest Patches?
    Whenever you see a helpful reply, click on Vote As Helpful & click on Mark As Answer if a post answers your question.

  • Changing archived status for target group or segmentation model.

    Hello, CRMies!
    In SAP CRm WEBUI i set "To archive" flag for segmentation model and now it has status "Archived". The problem is hat it became inactive now and i can't reset this status. I didn't execute any archiving reports, just set the flag on.  I was looking for any FM or reports to recover the status.
    Anybody knows how to unarchive segmentation model or TG?

    Hi Katya,
    as far I know the segmentation model is archived with the next scheduled archive run once the status 'to be archived' is set. The status can be undone before the archive run, once this is archived there is no way other then generating the segment again.
    Please refer to the online help about further information:
    Archiving Segmentation Elements - SAP Library
    For target groups andproduct segments there is also a read program in transaction SARA, which you can use to display the archived segmentation elements again at a later point in time, if required.
    Furthermore, the information structure SAP_CRM_MKTTG_I is available for target groups and product segments in the transaction SARA.
    You can not only read, but can also load archived segmentation models into the system. However, you should only use this function when it is absolutely necessary. For further information, see Reloading Archive.
    Since you cannot load target groups or product segments into the system, you need to generate these again to be able to use them.
    I hope this helps.
    best regards,
    Johannes

  • Target Group updation

    I am new to SAP and want to know how to automatically update the target group without going to segment builder every time I assign the same attribute to new business partner.

    Subash,
    Actually in CRM 7.0 instead of master Groups they call it "Define Reports for Creating Segmentation Bases"
    You can find this under SPRO-> CRM -> Marketing -> Segementation -> Define Reports for Creating Segmentation Bases
    Read the documentation in there.
    Ani

  • Error assigning Target Group to Campaign Element

    Hi
    I have created a Target group for a Campaign. I have saved and exported target group to channel and started the Campaign. But it shows error message saying No Target Groups are assigned to Campaign Element..
    Why is it showing error even after assigning members for the target group and exporting the TG to Channel. I have updated the status from created to released, approved before Starting the campaign.
    Please help.
    Thx.

    Hi Kalees
    Do you have a campaign element in your campaign? If so assign the target group to the campaign element in the segments assignment block.
    Cheers
    Declan

  • Target group in CRM System

    Hi
    We have a Target group in CRM with Status modelling completed .If we change the customer data related to this Target group in ECC system,will this Target group get updated automatically .
    Regards
    Vipul

    Hi,
    Modelling completed means you can not add or delete any Business partners in that particular Target group.  It should be updating the changes made in Customer master in ECC if all your middleware settings for delta upload are correct.
    Rgds
    Mallikarjun

  • Creating a target group based on the BP email address only in CRM

    Hi there,
    I am currently trying to create a target group based on the business partner email address only.
    I have a list of over 1000 email addresses - these email addresses equate to a BP in our CRM system, however I do not have a list of the equivalent business partner numbers, all I have to work on are the email addresses.  With these 1000 BP email addresses I need to update the marketing attributes of each of these 1000 BP records in CRM.
    What I need is a method to find the 1000 BP numbers based on the email addresses and then use the marketing expert tool (tx. CRMD_MKT_TOOLS) to change the marketing attributes on all of the 1000 BPs.
    The issue I am having is how can I find the list of BP numbers just based on the BP email address, I tried creating an infoset based on table BUT000, BUT020 and ADR6 but I after creating attribute list & data source for this I am stuck on what to do next. In the attribute list the selection criteria does not allow me to import a file for the selection range.  I can only enter a value but I have 1000 email addresses and cannot possibly email them manually in the filter for the attribute list.   I also looked at imported a file into the target group but I do not have any BP numbers so this will not work.
    Does anyone know a method where I can create a target group based on the email addresses only without having to do any code?
    Any help would be most appreciated.
    Kind regard
    JoJo

    Hi JoJo ,
    The below report will return you BP GUID from emails that is stored in a single column .xls file and assign the BP to a target group.
    REPORT  zexcel.
    * G L O B A L D A T A D E C L A R A T I O N
    TYPE-POOLS : ole2.
    TYPES : BEGIN OF typ_xl_line,
    email TYPE ad_smtpadr,
    END OF typ_xl_line.
    TYPES : typ_xl_tab TYPE TABLE OF typ_xl_line.
    DATA : t_data TYPE typ_xl_tab,
           lt_bu_guid TYPE TABLE OF bu_partner_guid,
           ls_bu_guid TYPE  bu_partner_guid,
           lt_guids TYPE TABLE OF bapi1185_bp,
           ls_guids TYPE  bapi1185_bp,
           lt_return TYPE bapiret2_t.
    * S E L E C T I O N S C R E E N L A Y O U T
    PARAMETERS : p_xfile TYPE localfile,
                  p_tgguid TYPE bapi1185_key .
    * E V E N T - A T S E L E C T I O N S C R E E N
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_xfile.
       CALL FUNCTION 'WS_FILENAME_GET'
         IMPORTING
           filename         = p_xfile
         EXCEPTIONS
           inv_winsys       = 1
           no_batch         = 2
           selection_cancel = 3
           selection_error  = 4
           OTHERS           = 5.
       IF sy-subrc <> 0.
         CLEAR p_xfile.
       ENDIF.
    * E V E N T - S T A R T O F S E L E C T I O N
    START-OF-SELECTION.
    * Get data from Excel File
       PERFORM sub_import_from_excel USING p_xfile
       CHANGING t_data.
       SELECT but000~partner_guid FROM but000 INNER JOIN but020 ON
    but000~partner =
       but020~partner
         INNER JOIN adr6 ON but020~addrnumber = adr6~addrnumber INTO TABLE
    lt_bu_guid FOR ALL ENTRIES IN t_data WHERE adr6~smtp_addr =
    t_data-email.
       CLEAR: lt_guids,ls_guids.
       LOOP AT lt_bu_guid INTO ls_bu_guid.
         ls_guids-bupartnerguid = ls_bu_guid.
         APPEND ls_guids TO lt_guids.
       ENDLOOP.
       CALL FUNCTION 'BAPI_TARGETGROUP_ADD_BP'
         EXPORTING
           targetgroupguid = p_tgguid
         TABLES
           return          = lt_return
           businesspartner = lt_guids.
    *&      Form  SUB_IMPORT_FROM_EXCEL
    *       text
    *      -->U_FILE     text
    *      -->C_DATA     text
    FORM sub_import_from_excel USING u_file TYPE localfile
    CHANGING c_data TYPE typ_xl_tab.
       CONSTANTS : const_max_row TYPE sy-index VALUE '65536'.
       DATA : l_dummy TYPE typ_xl_line,
              cnt_cols TYPE i.
       DATA : h_excel TYPE ole2_object,
              h_wrkbk TYPE ole2_object,
              h_cell TYPE ole2_object.
       DATA : l_row TYPE sy-index,
              l_col TYPE sy-index,
              l_value TYPE string.
       FIELD-SYMBOLS : <fs_dummy> TYPE ANY.
    * Count the number of columns in the internal table.
       DO.
         ASSIGN COMPONENT sy-index OF STRUCTURE l_dummy TO <fs_dummy>.
         IF sy-subrc EQ 0.
           cnt_cols = sy-index.
         ELSE.
           EXIT.
         ENDIF.
       ENDDO.
    * Create Excel Application.
       CREATE OBJECT h_excel 'Excel.Application'.
       CHECK sy-subrc EQ 0.
    * Get the Workbook object.
       CALL METHOD OF h_excel 'Workbooks' = h_wrkbk.
       CHECK sy-subrc EQ 0.
    * Open the Workbook specified in the filepath.
       CALL METHOD OF h_wrkbk 'Open' EXPORTING #1 = u_file.
       CHECK sy-subrc EQ 0.
    * For all the rows - Max upto 65536.
       DO const_max_row TIMES.
         CLEAR l_dummy.
         l_row = l_row + 1.
    * For all columns in the Internal table.
         CLEAR l_col.
         DO cnt_cols TIMES.
           l_col = l_col + 1.
    * Get the corresponding Cell Object.
           CALL METHOD OF h_excel 'Cells' = h_cell
             EXPORTING #1 = l_row
             #2 = l_col.
           CHECK sy-subrc EQ 0.
    * Get the value of the Cell.
           CLEAR l_value.
           GET PROPERTY OF h_cell 'Value' = l_value.
           CHECK sy-subrc EQ 0.
    * Value Assigned ? pass to internal table.
           CHECK NOT l_value IS INITIAL.
           ASSIGN COMPONENT l_col OF STRUCTURE l_dummy TO <fs_dummy>.
           <fs_dummy> = l_value.
         ENDDO.
    * Check if we have the Work Area populated.
         IF NOT l_dummy IS INITIAL.
           APPEND l_dummy TO c_data.
         ELSE.
           EXIT.
         ENDIF.
       ENDDO.
    * Now Free all handles.
       FREE OBJECT h_cell.
       FREE OBJECT h_wrkbk.
       FREE OBJECT h_excel.
    ENDFORM. " SUB_IMPORT_FROM_EXCEL
    Just copy paste the code and run the report select any local xls file with emails and pass the target group guid.
    snap shot of excel file:
    Let me know if it was useful.

  • Change Management and Target Group in STMS

    Hello, We use the Change Management (SolMan 4.0). Up to now it works fine. We deliver always one client in the System (E33.002; T33.002 and P33.002). Now we try to change this. We will deliver more than one client in every system at the same time (to have always the same status in every client). So we use Target groups in STMS. This works fine if I do the transports manualy. But if I try to do it with the change management it doesn't work. The change management still deliver one client (002).
    Can someone give me a hint?
    Best regards

    Hi Jose,
    check below link.
    Leads not getting created via ELM
    Rgds
    Hari

  • Target Group Creation

    Hi Experts
    How we create target group on the basis of Net value and Product. which tables required for creation of Infoset.
    Our requirement is who are buy the particular product more than xxxxx amount we need to make a target group and send the mails to them. anybody having idea on this issue plz share with me
    Help full answer i will give the full points
    Regards
    sreedhar

    Hi Manohar,
    You can use below methods
    1. Using BI query (BI Cube) :
    Create a BI query for the sales orders with value field and BP GUID and create a data source using the BI cube with BP as BP GUID.
    2. Using Marketing attribute:
    Create a Marketing attribute as Sales Volume (for exp) and update this marketing attribute with the total value of the sales order + exsting value in the marketing attribute which gives the total cumilative value of the sales done so far by that particular BP.
    To achieve this you may have use the breakpoint in the sales order and code for the updation of markeing attribute of sold party partner function BP.
    Create a data souce using the above attribute set.
    We have used 2nd method for our purpose.
    Please let me know if you have any further queries.
    Reward points if it helps.
    Regards,
    Madhu

  • How transfer target group from CRM to CDB

    Dear all,
    i created a new target group.
    I would it's transferred in CDB and I thought that the system would have done it automatically.
    It appears that there is any kind of error (the target group is also in active status) but the situation is that the target group isn't in the CDB table and i don't find any adapter object or kind of report in CRM.
    I'm working with CRM 4.0
    Can someone help me?
    Thanks in advanced!
    Best regards,
    Giuseppe

    Hi,
    target gruop should be transferred into CDB automatically
    when it is assign to the marketing campaign or promotion and
    MSA user has active subscription for Promotions & Campaigns.
    regards, Robert

  • CRM Target Groups and Product Segments - BW and BPS settings

    Hi gurus,
    I have some questions regarding the CRM Target Groups and Product Segments as it relates to BW and BPS planning layouts.
    1. When a target group is created in CRM, is it supposed to also be create master data entry for the object 0TGGRP_ID in BW? If it is, what kind of settings need to be made to ensure that? When we create target groups in our CRM instance, we donu2019t see the master data being updated for the  0TGGRP_ID info object.
    2. Where exactly (in BW) is the relationship between the target group and the underlying customer/business partners  stored/updated? We have a requirement to use target groups for defining the trade promotions and still being able to explode and plan on (individual) customers in the embedded BPS Planning layout. I believe that we need to have target group and associated customer assignments stored somewhere (?) in BW and use BPS characteristic relationships to populate all the possible combinations for a target group ID being passed from CRM. Am I correct in my assumptions? Any ideas if SAP has already delivered something similar in the BPS business content for TPM? 
    3. We are planning to use product segments to define the trade promotions as well. I believe BW info object is 0CP_SEGMENT. Similar to what I mentioned in Question 1, I donu2019t see any master data being updated for 0CP_SEGMENT. Am I looking at a wrong BW object or missing some key settings?    
    4. Where is the relationship between a Product Segment and the associated products stored/updated in BW?  How do I create a trade promotion using a product segment and make the BPS planning layout populate individual products in the lead column?
    Thank you for your help

    Hi Anna,
    After reading your post, what i understand is that there is no existing relationship present in CRM system between the Org BP and the contact person BP.
    As per my Knowledge in order to create a Target group with Contact Persons you should have an active relationship persent in the CRM system bewteen the BP and the Contact person.Now as your sceanrio suggests that the Contact person's are present in the BW system but not in CRM, i would assume that the relationship also exsits in the BW . So if it does then your BW team should be able to help you in creating the necessary infocube with there analytical tools and you can then use there cube as the datasource and create the necessary Target Group with Contact persons.
    Comming to the second part of your question, your guess is absolutely right but to give you more detailed infomation , the BP ID is converted in a unique GUID and this is passed into the program to retrive the necessary information from the BP after the campaign is executed.
    Hope this helps!!
    Regards,
    Naveen

  • Windows 2008 r2 Server: Cant update the group belonging

    Hello,
    I have a Windows 7 client computer which is administered by a Windows 2008 Server.
    When I try to change the local grants of the user account in that client computer,  it appears to me the following message:
    "Cant update the group belonging for NameDomain\user"
    As result I cant change local grants for the user. I cant change his status from administrator to user of that machine.
    Can anybody tell me how can I solve this issue?
    Thanks in advance
    Regards

    Hi,
    Thanks for your feedback. Did you mean that the issue exists after you removed
    DameWare tools?
    Please make sure that you have more than one administrator account on your computer, or you can't change it to a standard account since Windows requires at least one administrator account on a computer.
    If you have another administrator account, you can try to use it to change the user’s account type.
    Best regards,
    Susie

  • Creating the Target group

    Hi ,
    i would like to create the target group in segment builder.i got the list of business partners.how to create the target group using this list(excel sheet)
    your help would be appreciated.
    Thanks,
    kenny

    In CRM4, Segment Builder (CRMD_MKTSEG)
    Create New Profile Set
    Right click in main window area and select Create Target Group
    Right click on New Target Group, select Properties
    Click on the Load File and Create New Target Group tab
    Follow directions there:
    The file must contain a column with BP number or BP GUID.    
    The file must be an ASCII file (e.g. *.txt or *.csv).        
    The first line of the file must contain the column heading.  
    The columns must be separted with ; or ,                     
    The new target group receives inactive status.                                                                               
    BP Column                                                                               
    Action          1 Add Business Partner to Target

  • Very Urgent - Target Group count

    Hi,
    When I create a profile and click on count, it gives me No. of BPs and when I click on "Create Target Group" the No. of BP changes. It always reduces.
    Why is this happenning?
    Can someone pls help.
    Regards,
    Monica

    More information needed. First and most important, ALWAYS post your CRM version (click on System -
    Status -
    Click the detail button under the "Component Version" field. Post the BBPCRM Release and Level fields). This helps us understand if certain notes are applicable to your problem.
    In this case, the difference between count and final target group size could be because of a program error on SAP's side. Check note 1019180.
    If your version is at the same level as what is in the note (i.e. Release 510, Level 0004) then it sounds like you have a more serious problem. You should create an OSS Message to  SAP to let them know of this error.
    Anyway, if the final target group which was built has the <b>correct entries</b>, the "count" shouldn't matter. It is intended to be just a helper number to let you know how big the target group is going to be, so that you can refine your criteria if needed.
    Hope this helps! Good luck with your target groups!
    Rahul
    <b>AWARD POINTS IF THIS HELPED YOU!</b>

Maybe you are looking for

  • PO issue (Accrual Reconciliation Report )

    Hi, when run the accrual reconciliation report for PO,I find the quantity *Unit price is not equal Amount when A/P Receipt Match,the details as follows: when find the original PO line ,find that the PO line's status is cancelled ,the price have chang

  • How to print a parenthesis.

    I have a problem with javascript but don't know where to ask so, here I am in a java forum :) can I do this in javascript? document.write(")"); All I wanna do is print out the close parenthesis. How should I go about it?

  • Problems importing sound

    I'm trying to import .aiff (22.050  24bit) into the Director Cast, but Director (12) keeps crashing while importing them. I intially did a batch import, but am now importing them one at a time - a couple have imported, but I'm having to force quit Di

  • WRT54G Crashing my computer

    My computer keeps getting the blue screen of death after about 15 minutes of having it on while connected. It is a driver error of some kind and I don't know what to do. Should I upgrade the firmware?

  • Portal database user volume

    Hi, What is the max number of users in an Oracle Portal database? I'm project leading content areas to publish and thus wondering if OP database is unlimited or not. Thanks / Ben