How to get Leads related to a Campaign?

Hello Experts:
Have someone of you got the lead elements related to a campaign in specific? , I solved this trouble using FM  CRM_ORDER_READ and then filter the result table ET_DOC_FLOW by the campaign GUID.But it could affect the performance in future.
Thanks in advance.

Rodrigo,
There are few solutions to improve the performance of your program.
1. In CRM_ORDER_READ fill in the parameter 'IT_REQUESTED_OBJECTS' for doc_flow if you are not yet using.
2. Instead of the CRM_ORDER_READ use the FM 'CRM_DOC_FLOW_SELECT_VONA_DB'. This will definitely improve the performance of your program.
3. The last option is to read the DB tables. The DB tables which you can use are SRRELROLES and CRMD_BINREL. An example of extracting Opportunity from Lead is as shown below. You can do similar extraction for lead and campaign as well.
a) Get ROLEID from table SRRELROLES using Lead GUID.
b) Get ROLE_A from table CRMD_BINREL using the ROLEID.
c) Get the OBJKEY from table SRRELROLES using the ROLE_A.
Hope this solves your problem.
Regards,
Shyamak

Similar Messages

  • How to get a relative filepath using Java?

    Hi,
    I'd like to write a custom application for something I'm doing at work. Basically, I need to find the relative filepath from one file to another. Like, if I start in a subdirectory of directory A with file abc.htm, I want to use Java find the relative hyperlink I would put in abc.htm to link to another file in another subdirectory of A. Something like "../Subdirectory/xyz.htm" (where xyz.htm is the file I want to link to) returned as a string.
    The reason it needs to be a relative filepath without any references to named directories is that the application with all the hyperlinks in it will eventually reside on a different server or servers. The people who put it there will maintain the same directory structure as we have in our development directory, however.
    So, anyway, I see in the File class you have methods for getting absolute filepaths and directory names and such, but nothing for getting a relative link to another file.
    Does anyone know if such a class/method exists anywhere in std Java? Or how else I could go about doing this?
    Many thanks if you can help.

    Given a File object f then one can build the path to the root as a list of file names from f.getName() and iterating using f = f.getParentFile().
    Once you have the path lists for your two files then it is simple enough to find the branch point by moving forward through the lists until values differ. Building the relative path is then a matter of moving back through one using "../" until the branch point and then forward through the other until you reach the last element.

  • CProject evaluation table: How to get project-related task confirmation

    Hi everybody.
    I'm working on cproject and this is my problem:
    In my report i can get details related to an assigned project (i know Project guid) in this way:
      CALL FUNCTION 'BAPI_BUS2172_GET_DETAIL'
        EXPORTING
          project_definition_guid      = project_guid
        IMPORTING
          es_project_definition_detail = es_project_definition_detail
        TABLES
          et_name                      = et_name
          et_status                    = et_status
          return                       = return.
    This bapi let me know the total confirmation status of my project ( this value is contained in the ACT_WORK_EFFORT of the standard data base table DPR_PROJECT ).
    I would like also to get the confirmation status of each task related to this project ......
    i think that these values are contained in the field ACT_WORK_EFFORT of the table DPR_TASK .... but i'm not able to select all and only tasks related to a single progect ....
    Thanks,
    FG

    Ok! found the right sequence of BAPI !

  • How to get 'TextBlock' related to a paragraph element

    Hi
    I want to get the 'TextBlock'  related to the 'ParagraphElement' how i can get it,
    Some on has posted that
    var textBlock:TextBlock = paragraph.textBlock;
    but it's not make any sense ; also 'ParagraphElement' does't have 'textBlock' property.
    Thanks in advance.
    OKK

    It can be accessed by the ParagraphElement tlf_internal function getTextBlock().  Note that this is in the tlf_internal namespace.  No guarantees are made about the side effects of making this call or that this call will be available in future versions.
    Hope that helps,
    Richard

  • How To Get Lead Time In Hrs

    Dear Expert ,
    In Our Scenario Lead Time of WIP item Is in HOURS so how can i RUN the MRP ?
    Can any One Let Me know How to Handle This Scenario ?
    Ashish gupte

    Yes I know this Limitation But posting this in the forum is just to High light this to all,  With hope to get it in SAP business one in future .As SAP Business One is becoming better Version by Version
    Thanks & Regards
    Ashish Gupte

  • How to get Policy related columns?

    I have different policies defined in lot of tables/columns, now I can get the list of tables and policies using views ALL_POLICIES, USER_POLICIES or DBA_POLICIES but how do I get the list of columns which have policies defined?. What are the relevant views to get this details?.
    Thanks
    Krishnamurthy

    Michaels,
    Bulls eye!..That is the one I was looking for the whole time. How did I miss this one even the view name is almost same as the sec_relevant_cols parameter of the DBMS_RLS.add_policy procedure.
    Thanks for your help.
    Krishnamurthy

  • How to get partner related information in soa composite

    hi,
    I have a SOA composite that receives a B2B inbound message from a trading partner.
    I have couple of identifiers defined for that trading partner. But using the properties tab in the B2B component of composite I can get access to only one identifier(which is probably used to identify the from party in the first place) of the trading partner.
    Is there api to accesses values of other identifiers defined for that trading partner.
    Any Idea!!
    Thanks,
    Anil

    The api for getSenderId says
    "Returns the sender identification associated with the message
    Returns: String sender identification type and value. Example: DUNS 123456789"
    In my case I have the partner configured with following identifiers:
    DUNS 123456789
    PHONE 1000000
    If DUNS is used to identify the partner sending the message getSenderId() will return "DUNS 123456789", but I want to access PHONE value. How do I get it?
    Thanks,
    Anil

  • How to get the relation between tables.

    Hi all,
             Sorry in my previous message I forgot to include the table CABN.
    I would like to retrieve data from the tables BDCP,and characteristics tables KSS,INOB,AUSP and CABN.
    I am given the values BDCP-TABNAME,BDCP-FLDNAME,BDCP-KEY,BDCP-CRETIME,BDCP-CDOBJCL.
    BDCP-CDOBJID is nothing but Material number.I want to retrieve category(AUSP-ATWRT) and subcategory(AUSP-ATWRT) for that material BDCP-CDOBJID.
    So first of all how to proceed.Can anyone give idea?I heard that there is transaction,where we can find relations between tables.
    Thanks,
    Balaji
    Pages: 1

    U could try with SQVI Tcode. just give table names try to link.
    For your requirement there are several functional modules availalbe.
    Try where used list on AUSP table and find Function modules. Test them first then use in the program.

  • How to get leading zeroes in exponent of e-format

    In order to mimic an ancient file specification, am trying to write DBL numbers in e-format where the exponent is padded to two digits with leading zeroes.
    For example:  -1.15091E-03
    Is there a simple format code that does this or do I need to write something from scratch?
    LabVIEW Champion . Do more with less code and in less time .

    I am writing to a file.
    (Currently, I use the following workaround: format as %12.5e, then scan the substring after the "E", format it as %+03d, and recombine with the mantissa)
    LabVIEW Champion . Do more with less code and in less time .

  • How to get hardware related metrics of SQL Server through query ?

    Hi Folks,
                   I am newbie to the SQL Server programming. I also follow this forum only now. I am not sure if these kind of question had been asked in the past. Let me furnish you more detail about my query. I do like
    to get few details regarding the SQL server. I do need the following details to get the information about it through query
    SQL Server Installation directory
    No. Of CPU(as i read SQL Server standard support 4 cpu and Enterprise support 32 CPU)
    CPU Speed of the SQL Server installed machine
    Disk Storage details
    Operating system on which the SQL Server is installed
    Location of the swap file of SQL Server
    TempDB directory path
    System database directory path
    User database location 
    Log files location
    I do like to get information like this through query. Can i know if such information can be get through query or it should be get only thro' WMI. Please drop your ideas in getting these details.
    Thanks in Advance,
    Regards,
    JeiSurya

    Try this query in the below link 
    http://gallery.technet.microsoft.com/Query-to-find-all-the-8fa765e6
    you will get the SQL Server and H/W Details like 
    IP Address 
    FQDN 
    CurrentSQLNodeName 
    SQL Instance Name 
    SQL Server Product
    SQL Server Edition 
    Service Pack 
    SQL Server Version 
    Operating System
    OS SP Level
    OS Build Number
    SystemManufacturer 
    Processor Type 
    System Model 
    Total RAM in MB 
    NumberOfPhysicalCPUs 
    NumberOfCoresInEachCPU 
    TotalNumberOfCores 
    NumberOfLogicalCPUs

  • How to Get PO from Material Document by MB1B!

    Hi,
    I created a PO for subcontracting. When I send
    the goods to vendor with trx MB1B and mvt type 541, Material Document Number will be generated (option: to Purchase Order) . When print out this Material Document Number by MB90, I want to get this PO number. Please let me know how to get the relation bw this PO and Material Document.(I have checked in MKPF-XBLNR, but it is blank).
    Thanks in advance.

    there's no relation. the process how you have implemented it leaves no relation between PO and GM except for your doing so 'artificially' by filling field XABLN (for example) or any other.
    if you would adjust the process to use deliveries (tx. ME2O) the prospect would not be much better but there would at least be a chance to find the relation.
    as it is, SAP designed this to be a 'transfer posting' - to do it entering a PO-number is only in order to make typing easier but does not mean, items, quantities or anything else has to be entered as it is in the PO. you can add as many line items as you like ... as long as there's available stock you get your movement.

  • How to get BU, Company, Group details with the help of Employee number

    Hi Friends,
    How to get information related with Employee like Business unit, Company, Business Group and other details.
    Pravin

    Yes Arul.
    I want to get these information in a custom Java webdynpro application but if you can guide me how to get these values in SAP-Hr. Can you just give me details of tables. I have Employee number(pernr) with me and want to fetch Group, Company, Business Unit.
    With rgds,
    Pravin

  • How to get name of an entry?

    I search in my schema with code below:
    List<OrganizationPojo> organizationPojoList = new ArrayList<OrganizationPojo>();
         DirContext ctx = null;
         try { 
         // get a handle to an Initial DirContext
         ctx = new InitialDirContext(env);
         String[] attrIDs = { "dc", "objectClass","ou" };
         SearchControls ctls = new SearchControls();
         ctls.setReturningAttributes(attrIDs);
         ctls.setSearchScope(SearchControls.SUBTREE_SCOPE);
         String filter = "(&(dc=*) (objectClass=organizationalUnit) (ou=*))";
         NamingEnumeration answer = ctx.search(searchBaseDn, filter, ctls);
         try
                   while (answer.hasMore())
                             SearchResult sr = (SearchResult) answer.next();
                             LdapName dn = new LdapName((String)sr.getNameInNamespace());
                             LdapName rdn = new LdapName((String)sr.getName());
    I learned SearchResult.getName returns the name "relative to search base"
    But i only want to get the name of entry.
    I am getting dn correctly but can not find out how to get rdn relative to parent in the tree.

    More generally, to get the RDN of any search result, you're nearly there:
    List<Rdn> rdns = new LdapName(sr.geNameInNamespace()).getRdns();
    Rdn rdn = rdns.get(rdns.size()-1);

  • I am unable to open Calendar on my iMac - this occurred after installing Security Update 2015-002.  I don't know if related.  A message pops up after several minutes saying Calendar quit unexpectedly (but it never really opens). How do get Calendar b

    I am unable to open Calendar on my iMac - this occurred after installing Security Update 2015-002.  I don't know if related.  A message pops up after several minutes saying Calendar quit unexpectedly (but it never really opens). How do get Calendar back?

    Hi Magsrobby,
    Welcome to the forum and thanks for posting. I'm really sorry to hear you've had so many problems. I can look into this for you if you wish. Drop me an email with the details. You'll find the "contact us" form in the about me section of my profile. Once I have the details we'll take it from there.
    Cheers
    David
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • How to get the Useru2019s position when the user doesnu2019t have CP relation

    We have a custom program which will add / delete attributes (In transaction PPOSA_BBP). It is working fine for users which were assigned with CP relation But it fails for users which doesnu2019t have CP relation (since we are getting the position of users form HRP1001 then we are retrieving the existing attributes based on the position after that updating the attributes) as we are getting the position from HRP1001 it fails for users were no CP relation.
    Help us how to get the Useru2019s position when the user doesnu2019t have CP relation. Suggest us any function module or how to query the HRP1001 or some other table if exists
    Regards
    Paul

    Hi Paul,
    Have a look at these tables.
    Using table BUT000 the central business partner data are stored, f.e. partner type, partner names, partner number, partner guid, person number, etc. In table BUTBKK the bank data to a business partner are stored.
    Central business partner address data
    The table ADRC is used for the address of a business partner. Table BUT020 links the business partner number with the address number. Using table BUT021 several addresses to a business partner with different usages (modes), f.e. correspondence or delivery address, can be stored. The personal data of a business partner person are stored with key person number in table ADRP. The person number is assignd to a business partner person in table BUT000. Communication data of business partners as e-mail, telephone, fax, etc. are stored in the tables ADDR1 u2013 ADDR12. The business address of a contact person or an employee consists of the organization address (company resp. org.-unit) and of an address addition, which describes f.e. a building, a room number, etc. The address addition is stored in table ADCP and is identified by the keys address number of the organization address and person number.
    Relationships between business partners
    Table BUT050 contains the relationships between a business partner organization and a business partner person using relation types. The relation types are defined in table TBZ9, f.e. the relation type u2018has employeeu2019 corresponds to identifier u2018BUR010u2019, the relation type u2018has contact personu2019 corresponds to identifier u2018BUR001u2019. Table BUT051 stores communication data of a contact person relationship (compare to table ADCP). Table BUT052 stores several address numbers to one business partner relationship (including a standard flag).
    Hope this helps,
    Kind Regards,
    Matthew

Maybe you are looking for

  • Error in Fork Step causing issue in generating next work items

    All, We have ECC 6.0 with the following SP: SAP_BASIS     700     0012     SAPKB70012     SAP Basis Component SAP_ABA                     700     0012     SAPKA70012     Cross-Application Component I have this strange issue. In one of my custom workf

  • Reprocessing a legacy flat file....Avoid multiple postings

    Hello everyone, I am processing a file from application server and posting material documents in SAP against a unique number in legacy. This is a backgroung job. The same program can be executed in foreground also. My problem is with reprocessing the

  • Trying to find the sidebar icons

    I'm in the process of replacing the folders in my home (the blue on blue all look too similar to me), but I haven't found icons I like for music and movies that look better than the ones in the sidebar (and when I replace the blue folder image it rep

  • 10.5.7 Spontaneous Shutdowns

    Hi, I updated to 10.5.7 yesterday with no problems during installation. Since then my MacBook Pro 1.83 with 2G ram experienced 3 spontaneous shutdowns. On start up I don't even get the message that Mac OS X quit. Has anybody experienced this ? I do t

  • SAP Time to IST

    HI , i have requirement in which i need to convert the SAP time to Indian standard time. Thankx in advance rahul