Develop a report to migrate territories and its attributes

Hi All,
My requirement -> create territories, assign BP and attributes to it through a custom report. Using BAPI BAPI_TERRITORY_CREATE I manage to create territories but assign BP and Attributes i did not find any FM and BAPI. kindly guide me how i can assign BP and Attributes to a territories.
By debugging transaction crmm_terrman i found some FMs but not working for me.
regards,
Noor Gani

Hello Noor,
I'm not sure but if you are talking about the marketing attributes, you can definitely use FM - CRM_MKTBP_ASSIGN_ATTRIBUT_TAB
You need to pass the profile id, partner id and marketing attributes data. Thats it.
I think the FM you ar eusing for terrritory is fine. It should work.
I hope this helps.
Thanks
Vishal

Similar Messages

  • Report for Asset number and its Purahcse order number

    Hello Friends,
    Please give me details of report for Asset number and its Purchase order number .
    Regards
    Nilesh Vakil

    hi,
    GO to ME2N...
    use SHIFT + F4..
    there check for the acc. assign cata. field and input the asset  and execute..
    Regards
    Priyanka.P

  • How to get nodes and its attributes of an XML file usiong DOM parsing?

    how to get nodes and its attributes of an XML file usiong DOM parsing?
    i am new to XML parsing.......
    Thanking you........

    import org.w3c.dom.Document;
    import org.w3c.dom.*;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.DocumentBuilder;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;      ...
    //Setup the document
    DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
         DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
         Document doc = docBuilder.parse (new File("MY_XML_FILE.xml"));
    //get elemets by name
         String elementValue = doc.getElementsByTagName("MY_ELEMENT").item(0).getTextContent();
    //This method can return multiple nodes, in this instance I get item(0) , first nodeRead the api for other methods of getting data.

  • [JS-CS4] - How to read the XML Element and its Attributes

    Dear All,
      I have the doubt regarding: reading the xmlElement and its attributes.
    Here I droping the xml script
    //============= Start ======================//
    var myDoc = app.activeDocument;
    var Fpath = File("../Projects/Entity_map.xml");
      if (Fpath.exists)
       Fpath.open("r");
       var Cont= Fpath.read();
      var roots = new XML(Cont);
      var myEveryName = new Array();
      var myEveryContent = new Array();
      var myEveryAttributes = new Array();
      traverse(roots);
    //$.writeln(myEveryName);
    //$.writeln(myEveryContent);
    $.writeln(myEveryAttributes.length);
    for(var i=0; i<myEveryAttributes.length; i++)
      $.writeln(myEveryAttributes[i]);
    function traverse(tree) {
        myEveryName.push(tree.name());
    myEveryContent.push(tree.text());
      myEveryAttributes.push(tree.getAttribute);
    // you get the contents by using .text() insted of .name()
        if(tree.elements().length() > 0) {
            for(var i=0; i<tree.elements().length(); i++) {
                traverse(tree.elements()[i]);
    //============== End =====================//
    and the XML Structure is
    //===============XML =====================//
    <?xml version="1.0" encoding="UTF-8"?>< Entity_Convertion>
    < Entitys char="Ç" GID="173"/></ 
    Entity_Convertion>
    //===============End ====================//
    Here I'm getting the XML Elements and its contents, but not xmlAttributes.
    Please any one can help me, then I will appreciate...
    Thanks & Regards
    T.R.Harihara SudhaN

    Dear All,
      I have the doubt regarding: reading the xmlElement and its attributes.
    Here I droping the xml script
    //============= Start ======================//
    var myDoc = app.activeDocument;
    var Fpath = File("../Projects/Entity_map.xml");
      if (Fpath.exists)
       Fpath.open("r");
       var Cont= Fpath.read();
      var roots = new XML(Cont);
      var myEveryName = new Array();
      var myEveryContent = new Array();
      var myEveryAttributes = new Array();
      traverse(roots);
    //$.writeln(myEveryName);
    //$.writeln(myEveryContent);
    $.writeln(myEveryAttributes.length);
    for(var i=0; i<myEveryAttributes.length; i++)
      $.writeln(myEveryAttributes[i]);
    function traverse(tree) {
        myEveryName.push(tree.name());
    myEveryContent.push(tree.text());
      myEveryAttributes.push(tree.getAttribute);
    // you get the contents by using .text() insted of .name()
        if(tree.elements().length() > 0) {
            for(var i=0; i<tree.elements().length(); i++) {
                traverse(tree.elements()[i]);
    //============== End =====================//
    and the XML Structure is
    //===============XML =====================//
    <?xml version="1.0" encoding="UTF-8"?>< Entity_Convertion>
    < Entitys char="Ç" GID="173"/></ 
    Entity_Convertion>
    //===============End ====================//
    Here I'm getting the XML Elements and its contents, but not xmlAttributes.
    Please any one can help me, then I will appreciate...
    Thanks & Regards
    T.R.Harihara SudhaN

  • JTextPane (reading char and its attributes)

    Hellow,
    I am trying to write a simple editor, where a person could write his text (in different size and color etc.) and than i need to turn this text to html code.
    So the way that i determen the shape of the text in JTextPane is:
    StyleConstants.setBold(set, false);
    *               pane.setCharacterAttributes(set, false);*
    And now i have to you trought the document and read the chars and its asstributes.
    And the way that i go trought the doc is by using the caret: moveCaretPosition(x);
    Reading the char: char c=pane.getText(pane.getCaretPosition(),1).charAt(0);
    But the problem now is... by moving the caret (dot) the mark stays in its place, so when I try to read the attribues(*AttributeSet crka;crka=pane.getCharacterAttributes();*), i read them for all the chars selected so far (0->x).
    How do i move this oround, so that only one char is read and its attributes?
    Edited by: Defero on Jul 19, 2008 3:09 AM

    Sorry for that,
    Yeah but it still doesnt work right.
    Example:
    Text in pane:
    AB C DEFGH... (ignore spacers)
    And then if i read the number of attributes on each char, they go like this:
    00111111...
    Just in case, i post my code of setting the arguments:
    JButton gumb=new JButton("bold");
            gumb.addActionListener((
                     new ActionListener() {
                         public void actionPerformed(ActionEvent e) {
                              if(bold==false){     
                            StyleConstants.setBold(set, true);
                           pane.setCharacterAttributes(set, true);
                           pane.requestFocus();
                          bold=true;
                              }else {
                                   StyleConstants.setBold(set, false);
                                   pane.setCharacterAttributes(set, false);
                                   bold=false;
                                   pane.requestFocus();
                 ));And reading should go like this right?:
    StyledDocument ddoc=pane.getStyledDocument();
    for(int i=0;i<ddoc.getLength();i++){
    int x=ddoc.getCharacterElement(i).getAttributes().getAttributeCount();
    }Edited by: Defero on Jul 19, 2008 10:12 PM
    Edited by: Defero on Jul 19, 2008 10:12 PM

  • Development of report based on AR and AP cubes

    Hi All,
    I have 2 cubes i.e., 0FIAR_C03 and 0FI_APC03. AR cubes has got 0Debitor and 0Creditor, where 0Debitor is referencing 0Customer in AR cube and 0Creditor is referencing 0Vendor for AP cubes. Business has asked to develop a report so that it should show with Customer the balance of Customer and also for same customer it should show balance of Vendor. I have created a multiprovider and tried to develop a report on it but its not showing according to my requirement. Could any one please tell me how develop a report for this?
    Thanks

    Hi,
      Does the AR cube contain customer also or it is not present in the cube at all. You can have relation like this....
    AR cube
    Customer amount
    AP
    Customer vendor amount.
    Then you can define relation in the report via multiprovider. I hope you got my point....

  • Report showing overdelivery material and its value.

    A report is required showing the material received by giving overdelivery/unlimited tolerance.  It should give the details of the material,quantity excess received, excess quantity value.
    How to get it.
    Pl reply.
    T.SRINIVAS

    Hello Friend
    Try Report with Tcode ME2M and in input screen dont forget to choose "ALLES" in Scope of list.
    Else If your corporate policy is the same regardless of vendor /
    material combination, then you can use the ME2N transaction. It
    has a dynamic selections button that allows you to search on
    practically any PO field. The Delivery tolerances fields are
    contained on the PO item folder of the dynamic selections.
    Additionally, you can enter a document date restriction to limit
    the results. I also recommend entering "WE101" - "OPen Goods
    Receipt" as a Selection parameter to keep the list to include
    open, GR relevant PO Items.
    If the Delivery tolerances vary by Material vendor and you can
    not create variants in the ME2N transaction to capture the
    relevant scenarios, then you may have to write a SAP query to
    compare the PO Item to the Purchasing Information REcord. If
    this is the case, I recommend using Infoset MEPOLDB for the
    Purchase ORder information, and table EINE for the Delivery
    tolerance information of the PIR.
    Reward if useful
    Regards
    SE
    Edited by: SAP Enjoy on Jan 24, 2008 4:56 PM

  • Getting all webI reports in a folder and its sub-folders using java sdk.

    hi,
    I need a java code to get the Id of all webi  reports in a folder and recursive sub folders .
    Is there any sample code or tutorial  available for It?
    regards,
    nitin

    I didn't test this but it should work. Import required packages.
    <%
    String username = "administrator";
    String password = "<password>";
    String cmsname = "<cmsname>";
    String authtype = "secEnterprise";
    IEnterpriseSession oEnterpriseSession = CrystalEnterprise.getSessionMgr().logon(username, password, cmsname, authtype);
    IInfoStore oInfoStore = (IInfoStore)oEnterpriseSession.getService("","InfoStore");
    getWebi(oInfoStore,0,out);
    oEnterpriseSession.logoff();
    %>
    <%!
    public void getWebi(IInfoStore oInfoStore, int sourceFolderID, javax.servlet.jsp.JspWriter out)
    try
         String query = "select * from ci_infoobjects where si_kind='webi' and si_instance =0 and si_parentid =" + sourceFolderID ;
         IInfoObjects oInfoObjects = oInfoStore.query(query);
         for(int i=0;i< oInfoObjects.size(); i++)
              IInfoObject oInfoObject = (IInfoObject) oInfoObjects.get(i);
              out.println(oInfoObject.getID() + "  " + oInfoObject.getTitle() +"<br>");
         String query = "select * from ci_infoobjects where si_kind='folder' and si_parentid = " + sourceFolderID ;
         oInfoObjects = oInfoStore.query(query);
         for(int i=0;i< oInfoObjects.size(); i++)
              IInfoObject oInfoObject = (IInfoObject) oInfoObjects.get(i);
              getWebi(oInfoStore, oInfoObject.getID(), out);               
    catch(SDKException e)
         out.println(e.toString());
    %>

  • Crystal Report 9 merge Module and its service pack 7.

    Hello, My application is using Crystal report 9 and have its merge modules which are integrated in Installer. It has packages: rdcdesigntime.msm, rdcruntime.msm, reportengine.msm and Database_Access.msm which are already integrated in my application Installer. There are few issues which are fixed in its service pack 7 for CR 9(File: cr90win_en_sp7.exe).
    Now my Q is:
    1. Are there latest merge modules for CR 9 which has changes for SP 7 also incorporated? So that I can change modules in installer itself to have changes for SP7 also.
    2. I couldn't get merge modules for CR 9 even from the site. From where I can get this?

    Hi Neha,
    Click [here|http://resources.businessobjects.com/support/additional_downloads/runtime.asp#01] to download the availabe merge modules of CR 9.
    Or
    Click [here|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm] to get all the CR9 documents, mergemodules, fix packs etc. just you need to provide the "CR" as S/W product and "9" as a roduct version.
    Also the Wiki [here|https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsforVisualStudio.NETRuntimeDistribution-Versions9.1to12.0] is currently the best resource for CR.NET Runtime information.
    Sincerely,
    Amit

  • What is the best way to create a SSRS Report with Header Data and its associated child data

    So I have Member Information...Member ID...Member Addressing...etc.. I want to display this in the top part of the report like...
    Member Name:
    Member ID:
    Member Address Line 1:
    And then below I want to report on all the claims associated with a Member ID that is chosen by the Parameter. Obviously the Claim Data will be in Table format. Do I necessarily have to associate the Member Information with the Claim Information or simply
    use the same parameter? And what is the best Toolbox item to use to display the Member Information on top?
    Any help or guidance is greatly appreciated by this newbie.
    Thanks for your review and am hopeful for a reply.
    ITBobbyP

    Hi ITBobby,
    According to your description, you want to display all Claim Data for each Member. Right?
    In Reporting Services, we can use a table to display those Claim Data and make them group on Member ID. If you want to display the Member Information, we can put the data fields on parent group level. Then we can use create a parameter to filter the Member
    ID we need. We have tested this scenario in our local environment. Here are steps and screenshots for your reference:
    1. Create a DataSet(DataSet1) which contains the data fields of Member and Claim.
    2. Create a table and drag the Claim data into the table.
    3. In Row Group. Right click on Details and add a parent group.
    4. Select Member_ID in Group by.
    5. Right click on the textbox of Claim data. Select Insert Row->Outside of Group-Above. Drag the MemberName into the inserted row.
    6. In Report Data, right click on Parameter-> Add Parameter.
    7. Type Member_ID in Name and Prompt, select allow multiple values.
    8. In Available Values, select get data from a query. Choose DataSet1, select Member_ID in values and label. You can also set this in Default Values if you need.
    9. Save and preview.
    Reference:
    Understanding Groups (Report Builder and SSRS)
    Report Parameters (Report Builder and Report Designer)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Stock Report with batch number and its Charactristc values

    Our material are batch managed and Char values are entered at the time of GR. We need to prepare stock report showing batches for the material, their stock and characteristics values.
    Like to know what tables we should use to find the char values. I could not find value in table CAWN

    Hi,
    For characteristcis link and values use below tables:
    Characteristics :
        CABN                   Characteristics ( o.a. batch/vendor)   
        CABNT                 Characteristics description
        CAWN                  Characteristics  ( o.a. material)
        CAWNT                Characteristics description
        AUSP                   Characteristic Values
       Class types and objects :
        TCLAO                 Several class types for object
        TCLA                    Class types ( vb. lfa1 => v10 en 010)
        TCLAT                  Class type text
        TCLT                    Classifiable objects
        TCLC                   Classification status
       Links :
        INOB                    Link between Internal Number and Object
        KLAH                  Class header data  
        KSSK                  Allocation Table: Object (vb.matnr) to Class 
        KSML                  Characteristics for a class (internal number)
    for batch stock 0 use tables ilken MCHB, MCHA etc,
    hope this helps
    Reg
    Dheeraj

  • SSRS reports in office 365 and its alternative

    We are migrating MOSS 2007 to Office 365. I would like to have SSRS reports which are in MOSS 2007 to be present in Office 365. I Know Office 365 doesnt support SSRS reports. What
    are the alternatives I have?? Can i use power BI to accomplish this task?

    Hi Raju,
    Not right now, but as presented in the PASS summit, it is coming. Check it out this movie (fwd to ~ minute 38):
    http://www.sqlpass.org/bac/2014/DayOneKeynote.aspx
    Please contact us @
    [email protected] if you would like to discuss more details.
    Guy
    GALROY

  • Development of Reports using ABAP Query

    Hi
    can anyone please tell me about 'Development of Reports using ABAP Query' and how to use it in real time
    Thanks
    jay

    look here:
    http://help.sap.com/saphelp_47x200/helpdata/en/b7/26ddebb1f311d295f40000e82de14a/frameset.htm
    A.

  • TLD tags and their attribute types

    Hello,
    I created custom component, and i created TLD file, where i specified tag and its attribute (Value) as a type String, all possibles types are (String, boolean, byte, char, double, int, float, long ).
    In another projct where i am using this component i set Value = #{row.X} and then error occures, because attribute Value has type String and i set there expression.
    In Jdev 11TP4 everything works ok, but now in JDeveloper 11 it does not.
    Does anyone know how can i specify attributes type to expression, or how can i expression convert to a string?
    Thank you
    Katka

    Rather than pull more than you're going to display on the page and try to paginate from within your app why don't you limit the rows right from your query and then work the limit numbers into your page as hidden form fields or query string parameters?
    See:
    http://faq.javaranch.com/java/PaginationOrPaging

  • List users and their attributes

    Hello,
    We are on SRM 5.0 and I am looking for a report which lists users and their attributes. So for instance  username / position and all catalogs assigned to them.
    Thanks for your help!

    Hi Antoinette,
    There are no standard reports for this requirement. I have already posted a code sample for this requirement.
    https://wiki.sdn.sap.com/wiki/display/SRM/CodeSample2-Reporttodisplayuserattributes
    Hope this solves your problem.
    Regards
    Kathirvel

Maybe you are looking for

  • The list view in Calendar doesn't work

    iPhone 3Gs with iOS 4 now can't to show the list mode view correctly in the Calendar. It mixes all meetings and lost any also. When I look with month or day mode it works correct, so I think it is not problem of my calendar data it is problem of this

  • [SOLVED] Having Issues with the Nouveau Driver and ACPI

    Hello, Trying to set up an old laptop I have with Arch and I'm having issues getting X up and running. My graphics chip is: 01:00.0 VGA compatable controller: nVidia Corporation NV11 [GeForce2 Go] (rev b2) I've installed xf86-video-nouveau and get th

  • Stock allocation

    Sales in my client is segmentised. Say there are 6 segments. It is being divided using sales groups. I want to allocate the monthly production forecast to each sales segment. Hw can it be handled in SAP??????? Eg: Monthly forecast for the month of Ma

  • Problem with image scaling and aligning to the MC bounds

    HI I have problem with my custom class. For example if image is loaded into the holder_mc inside of loader_mc, and if the loaded image is bigger than the loader_mc, then I want it to scale it down to match loader_mc bounds. It is something similar to

  • New mSata SSD Doesn't Fit Slot in y510p

    Hello, I recently purchased a intel 530 240GB ssd for my extra msata slot. Turns out that my new msata ssd won't fit the slot. I'm wondering if Lenovo installed the wrong type of slot on my mobo. Any suggestions will be appreciated. Spoiler (Highligh