Which tables should i refer to know "A task is assigned to which employee?"

Hi
Which tables should i refer to know "A task is assigned to which employee?"
I think pa_tasks.task_manager_person_id refers to the employee who is assigned a task. Please correct me if im wrong.
Regards
Vibhuti

Vibhuti,
pa_tasks.task_manager_person_id should not necessary be the person whom the task is assigned.
You can try using following query:
select distinct c.task_id TASK_ID,b.alias RESOURCE_NAME,c.task_name TASK_NAME
from pa_resource_assignments a,
pa_resource_list_members b,
pa_tasks c
where a.resource_list_member_id = b.resource_list_member_id
and a.task_id = c.task_id
and a.project_id = :project_id;
--Sumit                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • HOW TO DECIDE IN A REPORT WHICH TABLE SHOULD LOOP FIRST?

    MY Report contains 3 item table and one header table or 4 header tables then how to decide that this table should loop first.And how could i judge that this table contains duplicate entries.
    HOW TO DECIDE IN A REPORT WHICH TABLE SHOULD LOOP FIRST?
    Moderator message: please search for available information/documentation before asking, do not post in all upper case, these forums are not a substitute for ABAP training.
    Edited by: Thomas Zloch on Dec 6, 2010 12:00 PM

    Hi,
    It is suggested to loop at the header table and then read the item table. Where in if you have multiple entries in the item table that matches, use the parallel cursors concept (Loop from index) as shown below
    Loop at header....
    Read table item with key......
    If sy-subrc EQ 0.
    Loop at item from sy-tabix.
    -- Perform your processing.
    endloop.
    endif.
    endloop.
    Also make sure if you have duplicate entries in your internal tables, Use SORT and then DELETE ADJACENT DUPLICATES so that it avoids the performance issues as well
    Hope this helps you.
    Regards,
    Shiva

  • As the per  corresponding to the BSI  which sap table  should be in sync?

    Hi
    As the per  corresponding to the BSI  which sap table  should be in sync? is it BTXRATE?

    Hi Arun,
    You are right. You have to choose MDSD_APPLICATION_AWT only for the mobile ID.
    Best Regards
    Sivakumar

  • Which tables should I modify by SE16N for an error posting?

    Hi All,
    an user has posted some customer documents (with tax codes) with wrong document date and posting date.
    I have to modify these data by se16n.
    Which tables should I modify?
    Thanks
    Gandalf

    Hi  u can do 1 thing
    << Very bad advice removed >>
    Thnanks,
      Yog
    Edited by: Rob Burbank on Apr 6, 2009 10:49 AM

  • When table should be analyzed?

    Hi,
    At what frequently table should be analyzed.It has 1.5million data and 'Compute statistics' or 'estimate statistics' would be fine?
    Thanks,
    Regards,
    Vinoth

    Vinoth,
    With "compute statistics" and "estimate statistics" words flying around, I am almost certain that you are talking about Analyze command. I am not sure that you are aware that its been not suggested to be used for gathering statistics from quite long.Oracle is recommending to use dbms_stats package for doing the same. Its more better as compared to analyze command.
    That said, I am in agreement with what Nicolas mentioned i.e. that estimation "in general" is going to be working fine. With Anayze command, you don't have control to tell oracle how much of the table is suitable for the estimation. This can be more finely done with the dbms_stats's estimate_percent which can be set to a suitable value. With 10g , the value can be left to automatically collected by oracle (though not a good idea).
    What should be the frequency of the stats gathering, I guess no one woul dbe able to tell you from here about your table as we don't know how its being used? In a generic explanation, if its not a very frequently used table than you can leave it with the same stats uptil the next ETL. If its a OLTP table than you have to see how much its being changed with enabling monitoring over it,an option which again with the version not required.
    HTH
    Aman....

  • No vendor defined in Table T321 for ref. movement type 632

    Hello Friends,
    We are facing strage issue during trasfer movement from SAP ECC to SAP WM, the scenario is as follows -
    For the Consignment returns (from Consignment stock to warehouse), we are using 632 movement type of transfer movement transaciton MB11.  When executing the document, system showing the following error message -
    No vendor defined in Table T321 for ref. movement type 632  
    We checked the entries, I am not able find the problem...Please suggest
    Apreciate your feedback.  Thanks
    Best Regards,
    Goutham

    looks like your WM is defined as decentralized system.
    The message number is L9 524
    And system expects vendor number for the inbound deliveries.
    I wonder anyhow why you are using MB11 transaction for 632 movement (which is an automatic movement triggered from a SD document)

  • Procedure to fetch table records using ref cursor

    Hi
    i need to fetch all the records in the table using ref cursor.we need to pass table
    name and the out paramater should be ref cursor.
    CREATE OR REPLACE PROCEDURE gettable(p_table_name IN VARCHAR2,
    p_ref_cursor OUT dept_pack.ref_cursor1)
    IS
    BEGIN
    OPEN p_ref_cursor FOR SELECT * FROM p_table_name;
    END gettable;
    is that a start ? then after this i have to execute this procedure to fetch the data from table. i am getting error that table doesnot exist but my idea was to pass p_table_name as IN parameter.
    Thnks in Advance

    here is the example
    SQL> CREATE OR REPLACE PROCEDURE TEST( t_name IN VARCHAR2
      2                                  , p_cursor OUT SYS_REFCURSOR)
      3  IS
      4  BEGIN
      5    OPEN p_cursor FOR
      6    'SELECT * FROM '|| t_name ;
      7  END TEST;
      8  /
    Procedure created.
    Elapsed: 00:00:00.02
    SQL>  var o refcursor;
    SQL> var tname varchar2(10);
    SQL> execute test('EMP',:o);
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.00
    SQL> print :o;
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM        DNO
          7369 SMITH      CLERK           7902 17-DEC-80      800.2                    20
          7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30
          7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
          7566 JONES      MANAGER         7839 02-APR-81       2975                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30
          7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-81       2450                    10
          7788 SCOTT      ANALYST         7566 19-APR-87       3000                    20
          7839 KING       PRESIDENT            17-NOV-81       5000                    10
          7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
          7876 ADAMS      CLERK           7788 23-MAY-87       1100                    20
          7900 JAMES      CLERK           7698 03-DEC-81        950                    30
          7902 FORD       ANALYST         7566 03-DEC-81       3000                    20
          7934 MILLER     CLERK           7782 23-JAN-82       1300                    10
    14 rows selected.
    Elapsed: 00:00:00.01
    SQL>  execute test('DEPT',:o);
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.02
    SQL>  print :o;
        DEPTNO DNAME          LOC
            90 LOGISTIC
            10 ACCOUNTING     NEW YORK
            20 RESEARCH       DALLAS
            30 SALES          CHICAGO
            40 OPERATIONS     BOSTON
    Elapsed: 00:00:00.01

  • When tables should be analyzed

    hi all,
    i want to know on what basis or how a person woul be able to know when table should be analyzed..........
    generally we have a tables that have been analyzed on 06/05/2008 15:50:15  query that i have used is
    select      OWNER,
         TABLE_NAME,
         to_char(LAST_ANALYZED,'MM/DD/YYYY HH24:MI:SS') last_analyzed
    from      dba_tab_columns
    where      OWNER ='name';

    burleson wrote:
    Reanalyze ONLY when you want your SQL execution plans to change . . .
    If you are satisfied with your plans, why change them?
    Hi Don
    Ummm, but if you don't update your statistics, your execution plans can change as well ...
    It's incorrect to suggest that not changing statistics means your plans won't change. Two things of course continue to change even if you don't update the statistics, the data and the data being selected.
    By following your advice, you might not have changed stats from 31 Dec 2005. Therefore Oracle thinks the max date value in your data is still 31 Dec 2005. But of course you now data as of say Jan 3 2009. When you query data of interest but the range of data you want is between say 1 Jan 2008 and 31 Dec 2008, how will the CBO determine the correct cardinality if it still thinks the max date is 31 Dec 2005 ?
    Actual answer is version dependent but it will get the cardinality way wrong and likely generate a poor execution plan.
    So perhaps your might want to update your statistics because you're satisfied with your plans and you don't won't them to change and suddenly go "wrong" by letting your statistics go stale.
    Hope this helps.
    Cheers
    Richard Foote
    http://richardfoote.wordpress.com/

  • Master-detail table where detail is in a bounded task flow

    Dear all,
    Iam pretty much new to ADF 11g. I have the following question.
    I have a search form(using af:query) created from the View Criteria of a view. The search results are displayed in a master-detail table, since my view has the following form in the data control:
    MasterView ->DetailView
    I would like that the detail table be part of a page fragment of a region of a bounded task flow. And of course, the detail table should be refreshed every time another row is selected in the master table.
    Is this feasible? Because I find difficulties in the following areas:
    1. How to pass a parameter to the bounded task flow that will display the detail table?
    (I suppose that I will need to build a new view to display the DetailView. In the WHERE clause I will have to pass the id of the row clicked in the master table.
    2.How passing the variable to the bounded task flow of the detail table be implemented when clicking the row of the master table? In similar examples I have seen, e.g. in the ADF Code Corner, there is always a submit button that sets a pageFlowScope variable.
    Is my approach feasible or it needs a lot of ADF twisting?
    Edited by: dimitris74 on Sep 12, 2011 6:20 AM

    Hi,
    If you have two different regions in your page for master and details and you want to refresh the child table based on your master row selection then you can use the contextual actions. Raise an event whenever you select a row and send your master-table id as the payload. Have a handler method at the detail page and execute some logic to get the rows for the selected master record.
    I hope it helps you.
    Thanks,
    Lakshman

  • Which Interface table should I select

    I require to insert data into the interface tables for the shipping done against the customer order.
    I have doubt as to which interface tables are to be selected. I am listing the interface tables which are known to me.
    1. WSH_DELIVERIES_INTERFACE
    2. WSH_NEW_DEL_INTERFACE
    3. WSH_TRIPS_INTERFACE
    Are the table names I have listed above are correct. If there are any more tables that I have to select please suggest me
    Thanks in advance
    Vishwanath

    Hi,
    Please help me out how to use the WSH_FREIGHT_COSTS_PUB.Create_Update_Freight_Costs API.
    I had used the below code but it returns with error.
    pub_freight_costs.delivery_id      := Delivery_Id;
         pub_freight_costs.freight_cost_type_id := P_type;
         pub_freight_costs.currency_code := 'USD';
         pub_freight_costs.unit_amount      := nvl(I.shipping_charges, 0);
         p_action_code := 'UPDATE';
    APPS.WSH_FREIGHT_COSTS_PUB.Create_Update_Freight_Costs (
         p_api_version_number => 1.0
         , p_init_msg_list => init_msg_list
         , p_commit => p_commit
         , x_return_status => x_return_status
         , x_msg_count => x_msg_count
         , x_msg_data => x_msg_data
         , p_pub_freight_costs     => pub_freight_costs
         , p_action_code => p_action_code
         , x_freight_cost_id => freight_cost_id
    Please send the reply to [email protected]

  • Available Stock status (MM) - which table should I take and what are the fields ??

    Kindly Suggest Me !!!
    Report that outputs stock, grouped by Material type and Plant. The output shows Material no, Storage location, unit of measure and description in addition to group table using ALV.
    Thanks in adv.
    Bunty ( New to SAP )

    Hello Bunty
    When you run the report put in current month in date fields, then when you are in the report you can add the different fields you need.
    At the top there is a button called 'Switch Drilldown', this enables you to view by Material Type etc. Fourth from the right is another button that looks like the standard variant button, here you can add or remove different figures for valuing the stock.
    Don't forget that this report views periods so you can use average stock etc by changing the month.  Also make sure that any stock reports you are using reconcile with each other.
    Michael

  • Which SAP SD Book should i refer ?

    Hello Everyone,
    I am new in SAP SD . However i have 4+ year of experience in ABAP . Recently i have joined the  SD class .
    Can anyone tell me about  SD book for beginners . There are plenty of books available in the market , but i have no idea about any book .
    I am in confusion state , no idea which will good for me as a beginner with all the contents.
    " Please help me to select the book as a beginner " .
    Thanks ,
    Rivi

    Implementing Sap Erp Sales& Distribution
    Author: Glynn C. Williams

  • Creating table at runtime w/o knowing the structure

    Hi,
    I have searched high and far to find a solution for my needs, but have not come across anything. Hopefully, the knowledge here is greater than my searching skills
    In an ABAP called during Dynamic Actions I have the need for storing data retrieved from the Call Stack via an ASSIGN command:
    DATA: gv_ps_ref TYPE char50 VALUE '(SAPFP50P)PS[]'.
    FIELD-SYMBOLS: <gt_ps_table> TYPE STANDARD TABLE.
    ASSIGN (gv_ps_ref) TO <gt_ps_table>.
    The ASSIGN part works beautifully - in debugging I now have access to the data in the PS table. But I need to store the data locally, as PS gets refreshed by this, which then also refreshes my <GT_PS_TABLE>:
    PERFORM initialize_ps(sapfp50p).
    The thing is, I need the data for later use, so I want to separate the link and create a local copy.
    This code (most of it copied from other solutions here on SDN) works fine, but notice that the DESCRIBE_BY_DATA method is called with the GS_DATA structure. This means that the TYPE of the table that I want to create dynamically is known.
    DATA: BEGIN OF gt_data OCCURS 5,
            char   TYPE text5,
            numc   TYPE numc5,
            dec    TYPE pad_amt7s,
          END OF gt_data.
    DATA: gs_data LIKE LINE OF gt_data.
    DATA: go_struct   TYPE REF TO cl_abap_structdescr,
          go_new_type TYPE REF TO cl_abap_structdescr,
          go_new_tab  TYPE REF TO cl_abap_tabledescr,
          gt_comp     TYPE cl_abap_structdescr=>component_table,
          go_data     TYPE REF TO data.
    FIELD-SYMBOLS: <fs_any> TYPE ANY TABLE.
    go_struct  ?= cl_abap_typedescr=>describe_by_data( gs_data ).    "see alternate reference below, i.e. my need
    gt_comp     = go_struct->get_components( ).
    go_new_type = cl_abap_structdescr=>create( gt_comp ).
    go_new_tab  = cl_abap_tabledescr=>create(
                         p_line_type  = go_new_type
                         p_table_kind = cl_abap_tabledescr=>tablekind_std
                         p_unique     = abap_false ).
    CREATE DATA go_data TYPE HANDLE go_new_tab.
    ASSIGN go_data->* TO <fs_any>.
    <fs_any> = gt_data[].
    As indicated, having only a reference to the PS table (<GT_PS_TABLE>) is not enough, I want to create a copy of PS locally, without knowing how it is declared in FP50PPSB (partly via a structure, partly via separate fields), as this will make my coding insensitive to any change in the structure.
    This is my visualization of what I want to do, or the likes - I believe you get the idea. But is it possible?
    go_struct ?= cl_abap_typedescr=>describe_by_data( <gt_ps_table> ).
    The syntax checker allows for this, but it dumps at runtime

    Hi,
    besides that your posting is allmost unreadable (try preview before posting), your basic idea is correct. You just overdid it a bit.
    Just try something like this
      data: a_descr TYPE REF TO CL_ABAP_TYPEDESCR.
      FIELD-SYMBOLS: <val> type any.
         a_descr = cl_abap_datadescr=>describe_by_data( p_data =  st_val ).
        CREATE DATA me->d_ref type (a_descr->ABSOLUTE_NAME).
        assign me->d_ref->* to <val>.
        <val> = st_val.
    this should work fine with all types of data, structures or tables.
    Regards
    Jörg

  • Table creation Error "Ref Count for this object is higher than 0"

    Hi All
    I have a problem in creation of table using SDK on a button event.  I have a procedure to create tables and fields. If I call this procedure on a menu Event than it works fine but If I call this procedure on a button event than It gives error "Ref count for this object is higher than 0" . I know this error occur When an object does not release after creating a table. but this error occur at when first table is created. My code it given below. plz see and give me your valuable suggestions.
      Dim oUserTablesMD As SAPbobsCOM.UserTablesMD
                Try
                    oUserTablesMD = B1Connections.diCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
                    oUserTablesMD.TableName = "AM_OBIN"
                    oUserTablesMD.TableDescription = "PutAway Table"
                    oUserTablesMD.TableType = BoUTBTableType.bott_Document
                    lRetCode = oUserTablesMD.Add
                    '// check for errors in the process
                    If lRetCode <> 0 Then
                        B1Connections.diCompany.GetLastError(lRetCode, sErrMsg)
                        MsgBox(sErrMsg)
                    Else
                        B1Connections.theAppl.StatusBar.SetText("Table: " & oUserTablesMD.TableName & " was added successfully", BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Success)
                    End If
                    System.Runtime.InteropServices.Marshal.ReleaseComObject(oUserTablesMD)
                    oUserTablesMD = Nothing
                    GC.Collect()
                    oUserTablesMD = B1Connections.diCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
                    oUserTablesMD.TableName = "AM_BIN1"
                    oUserTablesMD.TableDescription = "PutAway Upper Grid"
                    oUserTablesMD.TableType = BoUTBTableType.bott_DocumentLines
                    lRetCode = oUserTablesMD.Add
                    '// check for errors in the process
                    If lRetCode <> 0 Then
                        If lRetCode = -1 Then
                        Else
                            B1Connections.diCompany.GetLastError(lRetCode, sErrMsg)
                            MsgBox(sErrMsg)
                        End If
                    Else
                        B1Connections.theAppl.StatusBar.SetText("Table: " & oUserTablesMD.TableName & " was added successfully", BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Success)
                    End If
                    System.Runtime.InteropServices.Marshal.ReleaseComObject(oUserTablesMD)
                    oUserTablesMD = Nothing
                    GC.Collect()
                Catch ex As Exception
                    MsgBox(ex.Message)
                End Try
    Thanks
    Regards
    Gorge

    Hi Gorge,
    The "Ref count error..." usually occurs in case of Meta Data objects not being properly cleared.  And yes, you have got the error in the right place, generally while creating tables / fields / UDOs.  For this, you just need to clear the Meta Data object (At times even DI objects like Record Set) once they are used.
    Eg: Release these objects in the below way in a Finally Block.
    System.Runtime.InteropServices.Marshal.ReleaseComObject(oRecordSet);
    Hope this helps.
    Regards,
    Satish

  • What type of internal table should I use based from my scenario...

    Hello Experts,
    I am currently having a dillema here because I am trying to optimize a certain
    part of a report where in the internal table contains around 300,000 lines of
    records. The original internal table is of type standard table. So what the original
    programmer did was to delete certain records in a given condition then sort it
    by fields 1 and 2 in ascending order. Now, it then loops through that internal table
    but gives run time error because it exceeded the limit in our prod server which is only 10 mins.
    Now what I did was to try modifying the internal table to make it of type sorted. This is to eliminate
    the sort statement. I dont know if what I am doing is right. Help would be greatly appreciated and
    rewarded. Thanks a lot guys and take care!

    Hi,
    types: begin of t_itab,
             field1  like pa0001-pernr,
             field2  like pa0001-ename,
           end   of t_itab.
    data: ls_itab  type t_itab,
          lt_itab  type  hashed table of t_itab  with unique key field1 field2.
      select pernr ename into table lt_itab  from pa0001.
      loop at lt_itab.
        <<<<< your logic
      endloop.
    aRs

Maybe you are looking for