Filter Attribute set based on country.

Hi All,
In BP(Account to be specific)  Marketing attributes, currently all the attributes of all countries are displayed. The requirement is to display only country specific attributes.Here i  need to maintain the Marketing Attribute Set  for an Account based on the Country of the account.I have done some analysis where in i could find the Event handler " BLUEBOX1ControlEvent" of tile "marketinptree1" which needs to filter the country specific attribute.Can anyone help me in writing the code to achieve this functionality?
Points will be awarded.
Regards,
Shwetha.

Hi,
I think it would be better to put the filter already in the MW...
In the standard version the marketing attribute customizing is distributed bulk (publication <Classification>, replication objects <ATTRIBUTE> and <CLASS>).
What you would need to do is to delete the publication and both replication objects, create both replication objects again, but with type "intelligent" and define appropiate replication criteria ("ATNAM", ...).
Finally create appropriate publication/s and subscribe them again.
Regards,
Wolfhard

Similar Messages

  • Based on Gender Marketing Attribute set has to show different attribute

    Dear Expert,
                     How to set the marketing attribute set based on Gender what *** we Chose in Identification tab in BP Maintain Screen ?
    If i chose Female it will show some Attribute set or
    I Chose Male it will show some different attributes .

    Hello Subba,
    Try this function module
    CRM_MKTBP_ASSIGN_ATTRIBUT_TAB
    It assigns the attribute set and its corresponding attribute vales.
    Also try CRM_MKTBP* in SE37 and you can find some other function modules if the above doesn't match.
    Thanks
    Chandran

  • Filter master rows based on attributes in detail view.

    Hi,
    How do I set up VO's so that I can:
    1. filter master records based on attribute values in either the detail or master attribute values.
    and
    2. display each distinct master record with all its associated detail records.
    Stated another way, I want to list all the master records (with their associated detail records) filtered by the existence of qualifying detail records -- give me all departments which have assigned one or more employees who meet some criteria; list the departments and ALL the dept.'s employees (regardless of whether they individually meet the criteria).
    We've been struggling with this for a couple of weeks. I've been trying to accomplish this on 10.1.2, 9.0.5.2 and 9.0.3.3 with pretty much the same results on all three versions.
    To make queries based on values in either the master or detail records we created a database view that denormalizes the tables. This let's us include criteria based on either the master or detail tables, but of course rows from the master table may appear multiple times. We tried a DBMS global temporary table, but the inserted rows were not visible to the client; I'm assuming they're discarded with the session between queries or the queries establish separate sessions. I tried marking only the master record columns as selected and queriable and the detail columns as just queriable, but this causes the detail columns to be defined as transient VO attributes.
    TIA, for ideas or guidance.

    Hi,
    How do I set up VO's so that I can:
    1. filter master records based on attribute values in either the detail or master attribute values.
    and
    2. display each distinct master record with all its associated detail records.
    Stated another way, I want to list all the master records (with their associated detail records) filtered by the existence of qualifying detail records -- give me all departments which have assigned one or more employees who meet some criteria; list the departments and ALL the dept.'s employees (regardless of whether they individually meet the criteria).
    We've been struggling with this for a couple of weeks. I've been trying to accomplish this on 10.1.2, 9.0.5.2 and 9.0.3.3 with pretty much the same results on all three versions.
    To make queries based on values in either the master or detail records we created a database view that denormalizes the tables. This let's us include criteria based on either the master or detail tables, but of course rows from the master table may appear multiple times. We tried a DBMS global temporary table, but the inserted rows were not visible to the client; I'm assuming they're discarded with the session between queries or the queries establish separate sessions. I tried marking only the master record columns as selected and queriable and the detail columns as just queriable, but this causes the detail columns to be defined as transient VO attributes.
    TIA, for ideas or guidance.

  • Trying to set attribute value based on user selection of another attribute

    I am trying to set an attribute value based on the user's selection of another attribute using JSP EditCurrentRecord. When the user chooses the AreaId from the combo box I want to look up the value of the RgnID, preferrably without the user seeing this field at all. Below is my code which does not work. When I run it I get Error Message: null. Any suggestions are appreciated!!
    <jsp:useBean id="RowEditor" class="oracle.jbo.html.databeans.EditCurrentRecord" scope="request">
    <%
    RowEditor.initialize(pageContext, "MyProject2_package1_SRSecurityModule.UsrAreaWhView");
    RowEditor.setTargetUrl("UsrAreaWhView_SubmitInsertForm.jsp");
    RowEditor.createNewRow();
    RowEditor.setDisplayAttributes("OracleId, RgnId, RegionKey, AreaId");
    RowEditor.useEditField("OracleId");
    RowEditor.getFieldRenderer("OracleId").setPromptText("Oracle ID");
    RowEditor.useEditField("AreaId");
    RowEditor.useComboBox("AreaId","AreaWhView","Area","AreaKey");
    RowEditor.getFieldRenderer("AreaId").setPromptText("Area");
    RowEditor.useEditField("RgnId");
    RowEditor.getFieldRenderer("RgnId").setPromptText("Region");
    RowEditor.getRowSet().getViewObject().getCurrentRow().setAttribute("RgnId",RowEditor.getRowSet().getViewObject().getCurrentRow().getAttribute("RegionKey"));
    RowEditor.setReleaseApplicationResources(true);
    RowEditor.render();
    %>
    </jsp:useBean>

    ok, sorry everyone for making it confusing; this is what I am
    trying to acheieve;
    I would like the user to populate my database with thier
    username AND userID. I have a dropdown box with thier username
    dynamicly populated already, what I am trying to achieve, is a way
    of when the user selects thier username either another dropdown or
    a hidden field is automatically populated with the appropiate
    userID (to match thier username). Now I could just have two
    dropdowns and they select both, but i'd rather avoid the
    possibility of mismatches, and that is why I would like it to be
    automatic and based on thier username selection...
    Does that make sense....?

  • Filter the attribute members based on th fact data

    Hi,
    Thanks for reading the post, i have a Q which is related to dimension attributes with MDX only.
    I have a dimension which is a role playing of date, i want to limit the members of the attribute when i pulled it to the filter section, for now it shows me everything that are in the underlying table which it is suppose to, but i have 2 keys out of 100
    that have corresponding data in fact table. when i slice it with that attribute it filters out the rest but i want to get that in the attribute when it is pulled into filter section.
    Is there a way to handle it through MDX, i want to limit the values of a attribute members based on the data in fact table.
    Is their a approach to create a attribute to a existing dimension on the fly using MDX????
    This is what we can do but cannot:
    I can do it by limiting in table in DSV, but as it is a role playing of date there wont be dedicated table for it, and i can't limit in regular date dimension which is out of scope.
    I cannot create security role where this role playing dimension doesn't show up there in the list of dimensions so not working that way.
    Ideas and solutions are much appreciated..
    Guru

    Hi,
    please find the attachment below and all i am looking for is the members in the attribute should be filtered when i pull that attribute as a filter.
    for example:
    if i pull the attribute to the filter section it will show something like this:
    Dimension   Attribute   operator  Filter Expression
    Date           Date          Equal        when i expand  1/1/1900  (no corresponding data in fact)
     1/1/2005 (no corresponding data in fact)
      1/2/2005 (no corresponding data in fact)
      1/3/2005 (no corresponding data in fact)
     12/31/2013 (Has corresponding data in fact)
      1/1/2014 (Has corresponding data in fact)
    Now, my filter should show only 12/31/2013 and 1/1/2014 in the member list when i pull that as above.
    Thanks Much,
    --Guru

  • How to set the Date and Currency Formats Based on Country

    Hi Friends,
    I am designing the one Global Form it will use for all countries.
    in that Form i want to print the date and currnecy Formats based on country.
    Like
    For US i want print the date and Currency Like This.
    Date -  MM/DD/YYYY
    Curremcy - XX,XXX,XX.XX
    For DE i want print the date and Currency Like This.
    Date -  DD.MM.YYYY
    Curremcy - XX.XXX.XX,XX
    Please suggest how i can control these things through Java Script or Formcalc....

    Hi Nitin,
    thanks For ur reply,
    i tried with this solution,
    But it is displaying the default Format like bellow formats.
    For short - mm/dd/yy
    For Medium - mmm dd , yyyy
    For Long     - thursday ,mmm dd , yyyy
    it was prinitng in above mentioned format,
    but here i want to print my own format for USA like MM/DD/YYYY.

  • Creation of a Marketing Profile Set based on the standard CRM_MKTTG_BP_BIRTHDATE Infoset thru the WebUI Segment Builder

    Objective: Creation of a Marketing Profile Set based on the standard CRM_MKTTG_BP_BIRTHDATE Infoset thru the WebUI Segment Builder.
    Problems: Standard CRM_MKTTG_BP_BIRTHDATE Infoset DOES NEVER RETURN ANY RESULTS on the segmentation builder of the WebUI client (no matter the filter you specify).
    Other cases:  However if we create a new Data source with data "Extraction from Query" (transaction RS02) based on this standard CRM_MKTTG_BP_BIRTHDATE Infoset and we test the functionality using transaction RSA3, IT DOES RETURN RESULTS (using the same filters as in the segmentation builder)! Of course the segmentation builder works with other attribute lists.
    NEW: IF WE DON’T ESPECIFY ANY SEGMENTATION BASE IN THE PROFILE GROUP, IT DOES RETURN RESULTS!!! (GO TO THE END OF THE DOCUMENT FOR DETAILS)
    Steps followed:
    Review Standard Infoset CRM_MKTTG_BP_BIRTHDATE (Transaction SQ02).Review Data Reading Program code: do we have to change the standard code? We have only remove the "BREAK-POINT" statement.
    Creation of a Data source based on the standard CRM_MKTTG_BP_BIRTHDATE Infoset (Transaction CRMD_MKTDS).
    Creation of an Attribute List based on that standard Data source and selection the Birth date as a filter in the Attribute list (Transaction CRMD_MKTDS).
    On the segment builder of the WebUI set any filter (Example: “TODAY”).
    Steps in detail:
    Review Standard Infoset CRM_MKTTG_BP_BIRTHDATE
    SQ02.
    (Image deleted)
    Review Data Reading Program code (Code attached)
    (Image deleted)
    Creation of a Data source based on the standard CRM_MKTTG_BP_BIRTHDATE Infoset
    Data source: Transaction: SPRO – Customer Relationship Management - Marketing – Segmentation - Maintain Data Sources and Attribute Lists: CRMD_MKTDS
    Create Data Source
    (Image deleted)
    Infoset: CRM_MKTTG_BP_BIRTHDATE.
    Business Partner Field: CRMT_MKTTG_IS_BIRTHDATE-PARTNER_GUID
    (Image deleted)
    Result:
    (Image deleted)
    Attribute List
    Creation of the Attribute List
    (Image deleted)
    Assign Data Source:
    (Image deleted)
    Selection of the Birth date as a filter in the Attribute list:
    (Image deleted)
    Result:
    (Image deleted)
    Segment builder of the WebUI:
    Access to WebUI with marketing role.
    Create Segment:
    Creation of Profile Set
    Graphical modeler
    Create Filter: We have already tried many different filters (we already seen notes referring to this matter).
    Example1: “today”
    Count target group. Here I would like to stand out that once you click on the “Count” option, immediately it shows 0 results. In other words, it doesn’t process any information. With other attribute lists it takes some time to process, no matter the filter or the attribute list you use. However if we create a new Data source with data "Extraction from Query" (transaction RS02) based on this standard CRM_MKTTG_BP_BIRTHDATE Infoset and we test the functionality using transaction RSA3, IT DOES RETURN RESULTS (with “today” filter and other)! So it seems that the problem has to do with the segment builder, not the Infoset.
    Result: it never return any results no matter the filter you specify.
    Other cases:
    Creation of a new Data source with data "Extraction from Query" where you enter the name of your new query
    Creation of a Data source based on the standard CRM_MKTTG_BP_BIRTHDATE Infoset
    Standard Infoset CRM_MKTTG_BP_BIRTHDATE:
    We fill the form and select “Extraction from Query”:
    Press SAVE and define which fields will be available for selection and which of them will be visible.
    RSA3: Extractor checker in order to test the Data source:
    We specify the Data source:
    IT DOES RETURN RESULTS:
    ALV Grid:
    NEW: It seems that it has to do with the Segmentation Basis selected in the creation of a Profile Set, because if we do not select any, it does return results. But we need to create this Profile Set based on a particular Segmentation Basis called BS Usuarios Registrados.
    Segment builder – Profile Set of the WebUISegmentation Basis: we leave it in blanc.
    Graphical modeler
    Create Filter: We have already tried many different filters (we already seen notes referring to this matter).
    Example1: “today”
    Count target group.
    Result: IT DOES RETURN RESULTS!!! àConclusion: the problem is the Segmentation Basis
    Define Segmentation Basis:
    Transaction: SPRO – Customer Relationship Management - Marketing – Segmentation – Classic Segmentation - Define Segmentation Basis.BS Usuarios Registrados:
    Define Reports for Creating Segmentation Bases
    Transaction: SPRO – Customer Relationship Management - Marketing – Segmentation – Classic Segmentation - Define Reports for Creating Segmentation BasesZMK_UTL_MGR_SITES_UREG
    Define Usage for Segments:
    Transacción: SPRO – Customer Relationship Management - Marketing – Segmentation – General Settings - Define Usage for Segments.ZBS_UR à02 Segmentatión Basis
    Attribute List:Category:
    There is no Category 02 Segmentatión Basis!!! Why?? Why is not posible to select Category 02 Segmentation Basis in the creation of the Attribute List???
    Usage ID
    NEW: It seems that it has to do with the Segmentation Basis selected in the creation of a Profile Set, because if we do not select any, it does return results. But we need to create this Profile Set based on a particular Segmentation Basis called BS Usuarios Registrados. Why is not posible to select Category 02 Segmentation Basis in the creation of the Attribute List???

    It seems that the standard Infoset doesn’t work by itself with Segmentation Basis. Two SAP notes have been applied and a new Field Group has been added to the Infoset (in order to distint the Segmentation Base).
    CRMT_MKTTG_IS_BIRTHDATE-MGRGUID
    1966298: MGR_GUID is not populated correctly to infoset read program
    2007687:Segmentation InfoSet queries saved with incorrect Master Group
    For that reason we had to create a new Infoset based on the standard CRMT_MKTTG_IS_BIRTHDATE, but adding this new Field MGRGUID to the Group Fields.
    Issue solved

  • How to hide table column based on country molga value

    Hi Experts,
    I am doing some enhancement in ess application. I want to hide table column based on country code i.e. Molga value.
    I want to hide coulm for only Japan country reset of them i need to be show those coulmn.
    Could you please provide me a sample code.
    Regards
    Chakri

    Hi Chakri,
    Your setting the table value that time you will get the Country Code.
    1.Create the attribute like Country_Column_Visible Data Type bind the com.sap.ide.webdynpro.uielementdefinitions.Visibility this value  you need to bind the table country column.
    2.In Table You need to check the country code Japan is available you need follow this below sample code.
    for(int i=0;i<tablesize;i++)
         tablesithValue=wdContext.nodeTable().getTablenode(i);
         if(null != tablesithValue.getcountrycode)
         if(tablesithValue.getcountrycode.equalsIgnoreCase("Japan"))
              wdContext.currentxxxxElement.setCountry_Column_Visible(WDVisibility.NONE);
         }else
              wdContext.currentxxxxElement.setCountry_Column_Visible(WDVisibility.VISIBLE);
    Use the above code you condition it will work.I hope it will help you.
    BR,
    Durga

  • Retrive Business Partners related to the filters of an Attribute set

    Hi SAP Gurus,
    I hv a requirement to get Business Partners related to the filters of an Attribute set.
    I hv used a FM 'CRM_MKTTG_SAL_SEARCH_DB' to get the GUID of the attribute list.
    If the GUID is passed to another FM 'CRM_MKTTG_SAL_READ' we can get the details of the attribute list i.e. GUIDs of Attributes and Filters within the list.
    All we need to o now is to identify the BPs related to the filter criteria.
    So, is there any standard report program or Function Module which can be used to achieve the above purpose?

    Thanks for the reply.
    this FM is taking the Marketing Attribute Set ID as input and returning the BPs in it.
    I would like to know if I create an Attribute list in the T-code CRMD_MKTDS, create a filter criteria for this attribute list, then how come I can determine the BPs related to this filter criteria Can this me achieved by any FM or Standard Report program?
    Edited by: Sibsankar on Oct 4, 2011 3:32 PM

  • CRM2007-Display an attribute set (Marketing ) on the header page of BP

    Display an attribute set (Marketing ) on the main view of the business partner
    Only the attributes of a certain attribute set should be displayed. The full mkt attrib tab is available in the standard solution.
    Example: We want to show the attributes of set u201CBP_CUST_CLASSu201D on the header page.
    Regards
    Aashish

    Hi,
    this should be possible. Here a short idea how:
    Create a new view as table view that displays the marketing attributes. Have a look at the standard solution or even copy it. In the ON_NEW_FOCUS method filter out all attributes of different attribute sets than you desire.
    In the BP Details page create a new viewarea and assign your newly created table view to it.
    cheers Carsten

  • View offending records in audit viewer for set-based mappings

    i have mappings which is configured to load data from Oracle9i external tables into Fact tables.
    i am using set-based loading with reject limit set to 0. Whenever there's an offending record from the external table, the whole mapping will fail with message 'Fatal error or maximum error exceeded'. This is exactly how i want it.
    now, when i check the mapping process in audit viewer, i expect to see which record caused this process to abort. instead, i only see the same message stated above (which is not very helpful in identify source of the problem, right ?)
    i believe this is due to the mapping being set-based. unfortunately i can't use row-based as i do not want ANY record loaded into the fact table even if there is 1 offending record. In row-based mode, it seems to auto-commit after a certain number of records (bfor any errorneous records are encountered). i have attempted to set the 'commit block size' to something big value (eg. 50,000) but it still seems to commit after say every 2000 records ...
    any suggestions ?
    thanks

    Since you need set based code in order to avoid commits, it is difficult to trap record level errors - the set based procedure will run to the end or encounter an error and all you will get is a generic SQL error code and message. The commit frequency should work - I am not aware of any problems in this area. Can you give more details about this?
    It might also be possible to filter correct records by using a splitter and set it in such a way that correct records get loaded into the production table, while incorrect are 'parked' into a temporary table for review. Another possibility, if you need complex data cleansing prior to loading, would be to use an intermediate staging table and then use the row based mode on it, before transferring the correct records from this staging table to the appropriate production table. This last solution will slow down your process because it introduces an additional step, but might give you the loading flexibility you need.
    Regards:
    Igor

  • Want to Schedule Parametric BO Report based on Country

    Hi,
    I Want to Schedule Parametric BO Report based on Country promt which we need to passs dyanamically.
    Pls let me know if any possible option is avilable through BO XI R2?
    Thanks in advance.
    Prabhat
    Edited by: prabhat2009 on May 21, 2009 6:20 AM

    Hi Prabhat,
    Yes we can passing parameter dynamically to reports and schedule.
    if you are using Crystal Reports then go to
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
    BusinessObjects Enterprise SDK
         Java developer guide
             Tutorials    
                Client and Admin Desktop Tutorials
                    How to schedule a report containing specific parameter values.
    For Webi and Desktop intelligence
    Report Engine SDK  which is used to set the prompt values and BusinessObjects Enterprise SDK for scheduling
    Thanks,
    Praveen.

  • FM or BAPI to get BP based on country region bus group role

    Hi Gurus,
    Do any one know a FM or bapi that I can use to find business partners based on:
    Country
    Region
    Business Group (Marketing Attribute)
    Role (BUP002-Prospect)
    BP Type (2-Corporate Account)
    Sales Rep ID
    i think i need to use multple Fm to get the BP for the above different creitria ,
    Please let me know the in  getting BP's based on above values.
    Thanks
    Seema

    Hi Seema,
       I know this is a 3 year old thread but could you please share the solution you might have for the requirement you posted? Even I want an FM or BAPI to get all BPs of a sales area.
    Thanks,
    Praphul

  • Marketing attribute sets applicable only for specific BP roles

    Hi,
    I have created Marketing attributes in CRM and assigned them to Attribute sets applicable only for Organizations.
    Now they are eligable for all BPs created independent of BP role. Since I don´t want the Potential customers to have the same attribute sets as the Customers or Competitiors my question is:
    Is it possible to determine which attribute sets to be available for a BP based on its BP role?
    BR,
    //anders

    Hi,
    Do we got any solution for the above mentioned error? i too getting same issue.
    thanks
    ARun

  • ACE for Attribute Set

    Hi Gurus,
    the client on which we are actually working on has a strong process on classification. Actually we have one unique CRM system that we are sharing across the Countries in scope for our project. Then we have established strict rules with ACE in order to filter out information in the different CRM objects depending on the Sales Org.
    We are now in the process of defining the ACE rules for Marketing Attributes and Attribute Sets but we are stucked given the fact that we cannot find the proper object on which acting.
    Did anybody of you had the same issue? How can we resolve it
    Points if useful.
    Thanks a lot,
    Best regards,
    A.

    Hi,
    You can try using class :
    CL_CRM_ACERULE_MKT_TG : Marketing Target Group: ACE Rule
    Also use following code:
    CALL METHOD cl_crm_buil_services=>authority_check
      EXPORTING
        iv_activity           = cl_crm_buil_services=>gc_aktyp_display
        iv_partner_guid       = ls_partner_guid-partner_guid
        iv_add_message_to_log = space
      IMPORTING
        ev_no_authority       = lv_no_authority.
    It would be advisable if authority objects C_KLAH_BKL and C_KLAH_BKP are used for Marketing Attibutes and Sets.
    Also refer SAP Note  614514 for more details too.
    Hope this helps you.
    Regards,
    Anup

Maybe you are looking for

  • Safari finds  web pages but pages are shown grey and they are not active...

    ... It is not possible to choose any links and fields at opened web pages or scroll them. Safari icons in the upper left corner dont work i.e. it is not possible to close or choose from opened web pages or bookmarks. It is only possible to write to w

  • Ad-hoc network from mac 10.5.8 to ipad 3 for internet.

    Is it possible to create ad-hoc network so that it can work with ipad for file sharing, internet without buying any other wi fi router or airport/capsule? What else can be done with such network with respect to ipad 3?

  • IDCS6 - How do I create tables with large whole numbers and small fractions?

    I have a lot of engineering data, dimensions, etc, to enter into an existing IDCS6 Table. I need whole numbers to display full size, but fractions to be small size. I know I can use Open Type and select the Fractions option for each individual fracti

  • Admin Tool

    Hi All, I tried to change my system in Abap Stack to Java Stack.By unfortunatly i have done some settings.Present i have a problem tha is "i am unable to open the Visual Admin Tool" What is the reason.can you pls any body help me.When ever i was tryi

  • Sony DCR-HC96 import problems

    I'm having problem trying to import my movies to iMovie 08 from my Sony DCR-HC96. I connect the camcorder to its dock, connect the power cable and the Firewire cable (i-link), switch on and fired up iMovie 08. I press the import button but it just te