Table to find Opportunities based on Activities

Hi
I have a requirement wherein I need to retrieve opportunities based on Activities.
Could you please let me know in which table can i find the relation between these two ?
(or) do we an FM?
Best Regards
Anil

HI Caíque Escaler
Thank you so much for the reply..
Even I was trying with this FM prior to check your reply however I was checking 'ET_OPPORT_H' in the FM 'CRM_ORDER_READ'.
Your guidance made me to check the correct parameter 'ET_DOC_FLOW'.
Besides your reply i would like add something which is useful for others who will go through this thread.
If we want to retrieve Opportunity guid / Lead guid foa an activity then we should consider below two fields of
'ET_DOC_FLOW'..
1.OBJKEY_A   -
this will have the GUID of Opportunity/Lead or anything...
2.OBJTYPE_A -
this is very important while differentiating the Transaction type
                             For ex: BUS2000111---to make sure that above GUID is for Opportunity
                                         BUS2000108---to make sure that above GUID is for Lead
Best Regards
Anil M

Similar Messages

  • Table for finding rate based on part code and material

    Hi Experts
         I am an ABAP consultant with ltd knowledge on SD . Please tell me in which table  I can find the rate based on party code and material .

    Hi
    The standard table is A305. But usually these tables can be customized based on the requirement. So if you are aware about the Condition type for which this Price/Rate is maintained you can find the same in VK13.
    In transaction code VK13, maintain the condition type and click on "Condition information" icon. Now dont maintain any input date. Just click on Execute icon or F8. System will give the list of all the tables and data maintained based on the combination.
    Select the required table.In SE11, maintain this table with prefix as A. You can get all the required information.
    Regards
    Vamsi

  • Table.rows.find() returns null in a table where the row exists.

    Hi...
    I am working in a Project in Visual Studio 2013 where I have to read an Excel report related with a list of business opportunities. Some of the Fields that are involved in it are:  Opportunity ID, BU, Account, close date, Account Manager,
    Total Value and so on. As soon as I get the conection with the Excel Report, I fill a DataTable and declare the columns [Opportunity ID] and [BU] as my Primary Keys.  In that way, an Opportunity value may have one o more rows
    with different BU code each of them.  In consequence, you can define one row in the table if you specify the [Opportunity ID] and the [BU] values.
    My problem starts when I try to get information of those rows that have an specific value of [Opportunity ID]. For that situation I make a "foreach" structure where I check the BU codes that are involved with that Opportunity. So
    I use the Find() Method to get the information of the row specified by the Opportunity ID and BU.  The first time it goes to find the information it gets the results successfully but in the next cycle changing just the [BU] using the same [Opportunity
    ID] value, the find() method returns a "null" and I do not know why because I am sure that the row exists in the table.  I have verified the "Unique" property for the  [Opportunity ID] and [BU] columns (which are
    my primary keys)  and they are in false which is OK.
    I share the code that I am using...
    Hope someone can help.
    Thanks.
    Alfmar.
    void ObtenTotalesxBUs(string Opportunity, string[] BUs, Object[] TotalBUs, Object[] ExpTotalBUs)
    ArrayList TotalesBUs = new ArrayList(); //Required information from the row.
    ArrayList ExpTotalesBUs = new ArrayList(); //Required information from the row.
    foreach(string businessUnit in BUs)
    Object[] LlaveBusqueda = { Opportunity, businessUnit }; //Provide values to the Primary Keys.
    DataRow RenglonInfo = null;
    RenglonInfo = TablaFunnel.Tabla.Rows.Find(LlaveBusqueda); //Find method receives the Primary Keys values. Here is where I have a "null" in return the second time changing just the [BU] field.
    TotalesBUs.Add(RenglonInfo["Total"]); //Get the required information from the row.
    ExpTotalesBUs.Add(RenglonInfo["Expected Total Value"]); //Get the required information from the row.
    TotalBUs = TotalesBUs.ToArray();
    ExpTotalBUs = ExpTotalesBUs.ToArray();}

    Hi Viorel..
    Thanks a lot for you help.
    I am absolutely sure that the second ítem of BU is valid and exist in the table because I tried to make a "Select" statement in the table providing the values of [Opportunity ID] and [BU] and I get the expected record. So, why is not
    working using Find() with the defined Primary Keys??? 
    I tried this in order to test that the record exists...
    if(RenglonInfo == null)
    string strSelect = "[Opportunity ID] = '0000218256' AND [BU] = 'SFW'";
    RenglonInfo2 = TablaFunnel.Tabla.Select(strSelect);

  • Opportunities based on status

    Hi,
    How can i get the list of opportunities based on the status within current month.
    Regards,
    Kamesh Bathla

    Hi Kamlesh,
                    As Per my know how The Status Search for Activity is not Pre-Defined as in Leads in terms of GUI. In PCUI Framework the Search with Respect to Status is Incorporated in all Transaction Types.
    Whereas Activity is basically Searched by Category ID,and Transaction Type as Cross Reference in GUI Environment.
    Also another Way of Mapping Activity and Status for orders is by checking Table :: CRMV_INDEX_JEST
    Enter the Transaction Category as "BUS2000126" which is your Activity Bus
    Enter the Product (STAT) Status Key that you Desire to Search against your Activity bus
    Status Key:A key that provides information about the current status of an object.
    Use:A status can be activated either internally ( system status) or externally for information and control purposes ( user status).
    Hope it answers your Query..
    Thanks and Regards,
    RK.

  • How  to   find  article based  support  for  ipad  or  technical notes

    how  to   find  article based  support  for  ipad  or  technical notes

    The problem comes from VBUK/VBUP which are the control tables for most of SD tables (from VBAK/P to LIKP/PS and VBRK/P) and manage uniqueness of id in the module (and stores statuses). Even item tables don't refer to their header but both refer to the same VBUK record.
    e.g.
    LIPS : VBELN/POSNR -> VBUK/VBUP -> but you will only find LIKP/PS itself and no record in VBAK/VBAP
    LIPS : VBELV/POSNV -> VBUK/VBUP -> you should find VBAK/VBAP
    The table VBFA "Sales Document Flow" manages the relations from/to between two different SD documents which exist in VBUL/P and in only one other table depending on type of document. (Also note that the exact relationship may sometimes be modified to some extent by Customizing SD.)
    As Katan wrote, look for views defined in ddic, look also at logical databases (SE36) like VLV.
    You can also find valuable information in OSS notes/documents like 185530 - Performance: Customer developments in SD.
    Regards,
    Raymond

  • T-code or Table to find total errors in SAP APO like ST22 in ABAP

    hi all,
    Could please tell me the T-code or Table to find total errors in SAP APO like ST22 t-code in SAP ABAP.
    Thanks.
    Suryam S

    Hello Venu,
    Do you mean other functional errors?
    You can check SLG1, /SAPAPO/C3, STAD
    Best Regards,
    R.Brahmankar

  • Table for finding out all the G/L accounts of a financial statement version

    Hi all,
      is there any table to find out the G/L accounts which will come under the tree of financial statement version(OB58). Please help.

    With FM FI_IMPORT_BALANCE_SHEET_POS, you will get the account list in the internal table I011Z.
    You will get a list of intervals  I011Z-VONKT -  I011Z-BILKT.

  • Table to find out the volume of data

    HI Experts,
    Is there any table to find  out the volume of data in the data targets(infocubes and DSO)
    Thanks & Regards,
    Prasad.

    Hey.  I am not aware of anything that can give you a flat list of providers and number of total records.  It would be a fairly simple program to write though. 
    But, you could just go the old school route and just lookup the number of entries on the active table for the DSOs.  Cube would be a bit different and would probably depend on what you really want to meassure but I guess the E table is a place to start.
    I also know there are some DB size summary tables that show you number of records per table.  One of those tables is DBSTATTORA (other similar tables exist).  But again it is at the actual table level and not a provider summary.  And I will not speak to how accurate the data is as I have not tried to validate.  I will say the FM in the link posted above actually just does a number of records select on whatever table you enter. 
    Thanks

  • Table to find out the function modules used in a particular program

    Hi,
    Is there any standard table to find out the function modules used in a particular program?
    Such as there is a table D010TAB to find out the tables used in a program .

    Hello
    There is no exist such table.
    But try this snippet:
    REPORT ZSEARCH.
    PARAMETERS: P_NAME LIKE D010SINF-PROG.
    DATA: PROGTXT(72) TYPE C OCCURS 0 WITH HEADER LINE.
    DATA: TMP(72) TYPE C OCCURS 0 WITH HEADER LINE.
    DATA: FUNCT TYPE RS38L_FNAM OCCURS 0 WITH HEADER LINE.
    DATA: INCL TYPE RSEUINC OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'RS_GET_ALL_INCLUDES'
         EXPORTING PROGRAM    = P_NAME
         TABLES    INCLUDETAB = INCL.
    LOOP AT INCL.
      READ REPORT INCL-MASTER INTO TMP.
      APPEND LINES OF TMP TO PROGTXT.
      REFRESH TMP.
    ENDLOOP.
    READ REPORT P_NAME INTO TMP.
    APPEND LINES OF TMP TO PROGTXT.
    LOOP AT PROGTXT.
      IF PROGTXT CS 'CALL FUNCTION'.
        SEARCH PROGTXT FOR ''''.
        IF SY-SUBRC = 0.
          DO.
            SHIFT PROGTXT LEFT BY 1 PLACES.
            IF PROGTXT(1) = ''''.
              SHIFT PROGTXT LEFT BY 1 PLACES.
              DO.
                SHIFT PROGTXT RIGHT BY 1 PLACES.
                IF PROGTXT+71(1) = ''''.
                  SHIFT PROGTXT RIGHT BY 1 PLACES.
                  CONDENSE PROGTXT.
                  FUNCT = PROGTXT. COLLECT FUNCT. EXIT.
                ENDIF.
              ENDDO.
              EXIT.
            ENDIF.
          ENDDO.
        ENDIF.
      ENDIF.
    ENDLOOP.
    SORT FUNCT.
    LOOP AT FUNCT.
      WRITE: FUNCT. NEW-LINE.
    ENDLOOP.

  • Table to find previous tcode ?

    Hi.
    can any one plz tell me
    table to find previous tcode?
    how can we find previous tcode which we entered in sap?
    Thanks
    praveen

    Hi Praveen,
    Your last 15 transaction codes used in the SAPGui are stored in the registry key;
    [HKEY_CURRENT_USER\Software\SAP\SAPGUI Front\SAP Frontend Server\Code]
    Rgds, Derrick

  • Table to find posted goods issue of vl02n

    Hi all,
    After perform the post good issue on vl02n, SAP suppose to update the posted goods issue into a table. So may i know which table to find the posted goods issue record ?
    Regards,
    Marcus

    Hi,
    VBUK is the header tables, you need to refer to VBUP for the item details.
    Table VBFA contains the document flow, where fields VBELV contains the previous document no. & VBELN contains the subsequent document.
    So for your need, you can refer to VBUP, VBELN would be the outbound document number, also the movement type would be 601.
    Revert if you face any issues.
    Regards,
    Vivek

  • Table to find the assigned Roles with my User ID

    Hello Experts,
    1.Is there any specific table to find out the assigned roles to my User ID?
    If there is no table, let me know is there any transaction to find out the assigned roles to my User ID?
    2. When I assigned Marketing Pro role to my user id in Organization Unit, I am not able to see in webui screen.
    when I click on webui transaction, it is displaying some selection screen, there it is not displaying the role I have assigned?
    Could you help me to sort out these two queries?
    Thanks and Regards
    Madhu

    Hi Madhu,
    1.Is there any specific table to find out the assigned roles to my User ID?
    If there is no table, let me know is there any transaction to find out the assigned roles to my User ID?
    Sol'n : You have so many Class Methods for finding your requirement else FM aslo.
    Go to SE84 there u will find search ClassMethods. There u type getuserRole or userRole* and press F8. Pick the one which you feel it may give you the result
    ie you have to execute the class...if it showing instance on the tool bar click on that then press execute the method which you feel relevant to you, and give input parameters.
    Sol'n for 1 point is: CL_CRM_UI_ROLE_ASSIGN->GET_BUSINESSROLES_FOR_USER.
    2. When I assigned Marketing Pro role to my user id in Organization Unit, I am not able to see in webui screen.
    Sol'n: Go and check in T-code : BP. Dispay Ur BP and check for Employee Meantaied -- Identification Tab..Did u maintained ur Userid over there or not
    when I click on webui transaction, it is displaying some selection screen, there it is not displaying the role I have assigned?
    Sol'n: Need clarification on this point.
    Regards,
    Lokesh
    Edited by: Lokesh on Mar 8, 2010 7:37 AM

  • Need a BW table to find ECC table and feilds which are loading in to BW

    Hi all,
    do we have any table to find what are the tables and feilds data loaing form ECC to BW ?
    Regards
    Kiran

    Chances are, the field name will have the same name in the extract structure.  You could use SE11 and scan the extract structure for the field.
    You could also ask the user what the data element behind the field is, and then, also in SE11, do a where-used on the data element, to see if it is in one of your extract structures.

  • Table to find the interfaces for a system

    Hi,
    I need to find the number of inbound and outbound interfaces for a particular system.
    Is there any specific table to find the total number of entries?
    <b>WE20</b> is a transaction to find it out manually. But I guess there is some table where we can find it in a easier way.
    Kindly reply...
    Thanks!.

    Hi
    You need to find the Message type and IDoc types
    use table <b>EDBAS</b> for IDOC types and
    <b>EDMSG</b> for finding message types
    <b>EDPP1</b>  for all partner profiles
    <b>EDP12 and EDP13</b>  for inbound and outbound views
    Reward points if useful
    Regards
    Anji
    Message was edited by:
            Anji Reddy Vangala

  • Find records based on their insertion order

    Hi to all,
    Is there any way I can find records based on their insertion order.
    Like i inserted 5 records, can I find fifth record based on that insertion order?
    Advance thanks for your inputs
    Regards
    Karthik

    Not without adding some kind of sequencing mechanism to your inserts.
    You could use sequence numbers, or for more robustness, insert timestamps alongside your inserts.
    Triggers will help you to acheive this.

Maybe you are looking for

  • I Lost my iWork, how do I get it back? HELP!

    I had iWork on my computer. I had to have the hard drive replaced and now I no longer have Pages, Numbers or Keynote on the computer! Not sure what happened but I really need Pages back ASAP! I have OSX Snow Leopard. HELP!Lost iWork

  • OC4J + Apache

    hi! i currently have in my system, a running apache working hand in hand with OC4J. I'm trying to distribute the webserver load of my system by limiting all the static elements (eg, html, images) to apache and leaving all dynamic elements (servlets,

  • Combine pricing in R/3 and CRM

    Hello all, Can we combine certain aspects of pricing in CRM (created through IPC) and pricing in R/3 for the same transaction and maintain it in CRM? I would be really interested in doing this if it improves the efficiency of the whole process. Thank

  • Can you help with the moire adjustment tool in Camera Raw?

    I have a file with a lot of moire on a child's dress and am having problems using camera raw moire adjustment tool.  I opened a jpeg file (not raw) in camera raw. When I use the moire adjustment brush - set to +100 - and click on the eyeglass tool in

  • Ebook updates from Itunes producer

    How long does it take for my ebook to be updated on iTunes?  I updated the file in Itunes producer and re-delivered it but everything is still the same?  I need to update the tile and Author info.  Any suggestions.