Manipulation of TEVEN table??

Hi experts!
After uploading time events records to TEVEN with BAPI, I can see those records in infotype 2011 in PA30.
But in TM schema, function P2011 can NOT read those time events records into TIP table.
Can anybody have some idea about this problem?
BTW, cauze those deleted records of TEVEN is not really deleted but just marked as CANCELLED=‘X’. Is there a way to delete those records physically?
Thanks in adv!
Br,Kee

Hi experts!
After uploading time events records to TEVEN with BAPI, I can see those records in infotype 2011 in PA30.
But in TM schema, function P2011 can NOT read those time events records into TIP table.
Can anybody have some idea about this problem?
BTW, cauze those deleted records of TEVEN is not really deleted but just marked as CANCELLED=‘X’. Is there a way to delete those records physically?
Thanks in adv!
Br,Kee

Similar Messages

  • Infotype 2011 TEVEN table

    Dear All,
                 TEVEN is a time event table of infotype 2011. satza is a field which has P10 value as clock-in time of an employee. I want to select first P10(Clock-In time) of an employee on a distinct date. How can i do that.
    there is a field of pdsnr which is a unique number, but in which table i have to join it to get a first P10 record of an employee on a particular date.
    Thanks.
    Sohail

    Dear Muhammed,
    First please close all the threads which were answered,also please give points to the answers which helped you.Its a motivation factor for us.
    I have seen all the threads posted by you. None of them have been closed or given points.
    We are here to help you.
    Regards,
    Pankaj

  • Logic issues for manipulation of internal table data

    Hi,
    I am having a issue with logic of one program.
    In the <b>XVBAP</b> internal table of <b>SO</b> User Exit.
    We will have fields like
    <b>UPDKZ, POSNR, UEPOS, ZZECD[Z-Field] etc.</b>
    Above fields are related to logic.
    1. Now my first point is:
    <b>We need to capture Records where UPDKZ='D' and ZZECD[Z-Field] is populated.</b>
    For this we will write code as below:
    <b>LOOP AT XVBAP WHERE UPDKZ     EQ C_D   AND
                        ZZECD     NE SPACE.
    Here we will store all fields in I_XVBAP I.Table
    ENDLOOP.</b>
    Supoose we have retrieved records as below:
    <b>VBELN, UPDKZ, POSNR, UEPOS, ZZECD
    100    D   000040   000030 Text1
    100    D   000050   000020 Text2
    100    D   000060   000000 Text3</b>
    2. My second point here is:
    <b>For Every Item[POSNR] we need to get the Higher level item from UEPOS field, If the Higher level Item also has UPDKZ = ‘D’, then move the base unit and all it’s components into an internal table. continue this process till UEPOS for POSNR is 000000 but High item should have UPDKZ = 'D', not only this all items in this chain should have UPDKZ = 'D'.</b>
    Ex:
    <b>Suppose for item 000050 UEPOS is 000020 then goto XVBAP with POSNR = UEPOS[000020] and UPDKZ = 'D' if yes and then pick up UEPOS for 000020 item and continue this process till UEPOS becomes 000000 and UPDKZ = 'D'.
    Here from Low level to High level all the chain items should have UPDKZ = 'D'. Then only write all items into Final Internal table.</b>
    <b>Need to do this process for all above rec's [40,50,60 - POSNR].</b>
    Can anybody provide me the logic for the above scenario.
    Thanks in advance.
    Thanks and Regards,
    Deep

    Hi Anurag,
    Your assumption is wrong.
    See first when we get into our logic we will get <b>XVBAP</b> data as below:
    <b>VBELN, POSNR, UEPOS, UPDKZ, ZZECD
    100,  10,  00,  D,  Text1
    100,  20,  00,   ,  Text2
    100,  30,  20,  D,  Text3
    100,  40,  30,  D,  Text4
    100,  50,  00,   ,  Text5
    100,  60,  00,   D, Text6
    100,  70,  60,   D, Text7</b>
    After we run first point we will get data as:
    Here logic is pick up data where <b>UPDKZ = D</b> and <b>ZZECD NE SPACE</b>.
    <b>VBELN, POSNR, UEPOS, UPDKZ, ZZECD
    100, 10, 00, D, Text1
    100, 30, 20, D, Text3
    100, 40, 30, D, Text4
    100, 60, 00, D, Text6
    100, 70, 60, D, Text7</b>
    Then we will goto second point:
    Here we need to look into <b>3</b> things totally in 2nd point:
    1. In loop Select the record which has <b>UEPOS EQ space</b>, <b>UPDKZ = D</b> and <b>POSNR</b> should not be <b>UEPOS</b> for any other record from above data from 1st point.
    <b>100, 10, 00, D, Text1</b>
    will be selected into final internal table as per this point.
    2. If for a POSNR value UEPOS NE SPACE, UPDKZ = D then goto UEPOS's POSNR in high level check there if UPDKZ = D and then wether UEPOS is ZERO (or) contains any value.
    If any value is there repeat the process till UEPOS become ZERO. Then for that final higher level item check UPDKZ value if it has value as 'D', If has then write all those records from low item to high item into final internal table.
    <b>100, 60, 00, D, Text6
    100, 70, 60, D, Text7</b>
    In above for Item 70[POSNR] we have UEPOS as 60 and UPDKZ as D. then we will goto UEPOS's POSNR, Now POSNR is 60 then check it's UEPOS it is ZERO so check UPDKZ because it is D write both items 60, 70 into final internal table.
    2. If for a POSNR value UEPOS NE SPACE, UPDKZ = D then goto UEPOS's POSNR in high level check there if UPDKZ = D and then wether UEPOS is ZERO (or) contains any value.
    If any value is there repeat the process till UEPOS become ZERO. Then for that final higher level item check UPDKZ value if it has value as 'D', If it does not have  UPDKZ as 'D' then don't write any item from low to high into final internal table.
    If we take the scenario of below rows:
    <b>100,  20,  00,   ,  Text2
    100,  30,  20,  D,  Text3
    100,  40,  30,  D,  Text4</b>
    POSNR-40 has UEPOS-30 & UPDKZ = D then UEPOS's POSNR-30 has UEPOS-20 and UPDKZ-D then UEPOS POSNR-20 has UEPOS as 00 then stop here and see UPDKZ which is ZERO so don't consider items 20,30,40 into final i.table.
    In the above chain in any record UPDKZ is not 'D' then skip the process anddon't write the records into final internal table.
    Final output will come as:
    <b>100, 10, 00, D, Text1</b>
    <b>100, 60, 00, D, Text6
    100, 70, 60, D, Text7</b>
    Thanks for all your efforts.
    Thanks,
    Deep

  • Regarding logic in manipulation of internal table

    Hi All,
    I have one internal table as below:
    <b>I_TAB</b>.
    <b>VBELN  LIKE VBAP-VBELN,
    POSNR LIKE VBAP-POSNR,
    QTY      LIKE VBAP-KWMENG,
    SUM     LIKE VBAP-KWMENG,
    </b>
    Now i have filled in this internal table from select statement
    Data is:
    100, 10, 100
    100,  10, 200
    100,  10, 300
    100, 20, 50
    100, 30, 100
    100, 30, 200
    etc.
    Now what i want is i want t calculate SUM field in above internal table based on VBELN & POSNR
    Finally data should come as
    100, 10, QTY, 600
    100, 20, QTY, 50
    100, 30, QTY, 300
    (or)
    we can update QTY with SUM of all VBELN/POSNR.
    Can anybody tell me what is the logiic!
    Thanks,
    Deep.

    Hi,
    Declare on more table as ITAB, say JTAB.
    Loop at ITAB.
    JTAB-VBELN = ITAB-VBELN.
    JTAB-POSNR = ITAB-POSNR.
    JTAB-SUM = ITAB-QTY.
    COLLECT JTAB
    endloop.
    JTAB will have ur required output, But u cant put QTY in between since, the Qunattity is Integer field u cant place 'QTY', since it is a char.
    Sreedhar
    Message was edited by:
            Sreedhar Kanchanapalli

  • Selection in the master table is not getting reflected in the child table

    <p> I have a 4 level master detail relationship.I have a bounded taskflow where I have a master in the first view.The child (The other two levels as a tree) in the second view.I move to second view when i click the command link(Each row has a command link) of the master table (present in the first view).</p>
    <p>At the very first time when i try to insert a row in the child it's successful .I am able to see the same in the second view (The corresponding child of the master row which i have clicked).The 2 view is not refreshed i have panel strech layout in the 2 view which i am refreshing(PPR) on inserting the row. The master table is not refreshed as it is in the 1 view.I am not manipulating the master table but it was being set to the first row the second time .Added to that the 2 view doesn't have parent table .
    </p>
    Thanks,
    Raj.

    Hi Frank,
    I am using jdev 11.1.1.6 and integrated wls.
    I have a single taskflow.I have a 4 level master detail.The vo's are connected through a view link . I have dropped the first level as a table . On selecting a row the corresponding children are displayed.The children are displayed as a tree. I have a tree context menu where i have inserted a row using popup . When the user clicks on the ok dialog i am commiting the data and refreshing the tree.
    Now the problem is when i first create the row it's working properly . After when i try to create another row this time the currency of the first level is reset to the first row.
    As suggested by you i have tried disabling the commit opertion . But the issue still occurs.
    Thanks,
    Raj
    Edited by: RajaSekharReddy.M on Feb 26, 2013 6:03 PM

  • How to get 2011 PLANS in TEVEN?

    Hi
    I have this problem that i need to populate the position field in TEVEN table. Users can do that from SE30->2011 and edit the position there. but that doesn't refeclt the TEVEN position field even though there are two position field in there (i am not sure why there r two of them). Can any one point me to the documentaion or some thing which will give me some idea how to make the link or relation between 2011 screen and TEVEN table. so that when the users change the position from 2011 screen that will also populate or change one of the position field in TEVEN.
    Please help.
    Thanks
    Message was edited by:
            Anwarul Kabir
    Message was edited by:
            Anwarul Kabir

    I have found out so far that the field from the 2011 screen saves the data to P2APL-PLANS. But what's the relation between TEVEN and this structure? how do i get the data from P2APL?
    Message was edited by:
            Anwarul Kabir

  • Problem in updation of 2011 infotype(TEVEN)

    Hi Gurus,
    I had an issue in updating the record in TEVEN table,the approach what im following now is  using function module HR_TMW_DB_UPDATE_TEVENT  to delete the record (it's not deleting the record in table it just setting the flag of STOKZ to 'X') and after that im inserting the record with 'HR_INFOTYPE_OPERATION'.Here im successfully deleteing the old one and inserting the new record.The problem is  PDSNR field is incrementing
    when i try to insert the record  with 'HR_INFOTYPE_OPERATION' but i just want to update the old record instead deleting the old one and updating the new one.I dont want to unnecessarily  increase records in TEVEN whenever im updating records in TEVEN.
    Please help me with this issue
    Thanks,
    Hemz

    hi volker,
    Manually am able to update that field UNPSI.
    I have checked the table pa0584 manually updated value is found in the table.
    But the value which i have inserted using the FM created an empty record with the field UNSPI having 0 value.
    I have given all the fields into the record as same as when it is update dmanually.
    I dnt knw why the value is not updating.
      p0584_2-pernr = wd_comp_controller->gv_pernr.
      p0584_2-infty = '0584'.
      p0584_2-subty = '0002'.
      p0584_2-begda = '20100401'.
      p0584_2-endda = '20110331'.
       p0584_2-OBJPS = '01'.
       p0584_2-SPRPS = 'X'.
      p0584_2-seqnr = '01'.
      p0584_2-UNSPI = ls_actual_details-other_income.
      p0584_2-INTYP = '0002'.
      p0584_2-WAEHI = 'INR'.
      p0584_2-AEDTM = sy-datum.
      p0584_2-UNAME = sy-uname.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
      EXPORTING
        infty                  = '0584'
        number                 = wd_comp_controller->gv_pernr
       SUBTYPE                = '0002'
      OBJECTID               =  p0584_2-OBJPS
      LOCKINDICATOR          =  p0584_2-SPRPS
       VALIDITYEND            = p0584_2-endda
       VALIDITYBEGIN          = p0584_2-begda
       RECORDNUMBER           = '01'
        record                 = p0584_2
        operation              = 'INS' "lv_op_type
       TCLAS                  = 'A'
       DIALOG_MODE            = '0'
      NOCOMMIT               =
      VIEW_IDENTIFIER        =
      SECONDARY_RECORD       =
    IMPORTING
       RETURN                 = return_584_2
       KEY                    = key.
    Pls give some solutions
    Thanks
    Nalla B

  • ORA-04091:table XYZ is mutating,trigger/function may not see it ORA-06512

    Hi everybody
    i am facing mutating problem during data deletion fron XYZ table as
    ORA-04091:table XYZ is mutating,trigger/function may not see it ORA-06512 at "user.procdure_name",line 39 ORA-065
    i have table XYZ and have database trigger on this table
    and also have procedure "user.abc" in this procedure m selecting data from xyz table

    You didn't post the actual code. I was more interested in seeing table name and the trigger body.
    Anyways, mutation problem comes when you refer the same table on the trigger, on which it is based for some data manipulation on that table.
    For e.g, If inside your trigger body, you are doing INSERT on the same table, then it'll definitely result in mutation problem because this trigger will be fired endlessly (as it is after insert trigger).
    Please mark answer as helpful / correct, if it helps you
    Navnit

  • Internal PLSQL Tables Access via SQL. But how ?

    Hello,
    I want to write the result of a database query in an internal PLSQL Table. After that i would like work with this internal PLSQL Table
    in a Package/Procedure/Function.
    Important for me is to access the internal Table via SQL because i have to refactor a package wich is working with 46 Database Tables an plain SQL. I
    would like to change these DB Tables into internal PLSQL Tables.
    I have written a short example wich will explain my approach to solving this problem.
    The syntax will be accepted by the Database but my 'dbms_output.put_line' statement at the end is empty or blank.
    What do i wrong ? Would be nice if anyone can help me out.
    With best regards
    Jens
    pre work :
    create table PERSON_DB_TABLE
    (SURNAME  VARCHAR2(50),
    LASTNAME VARCHAR2(50));
    insert into PERSON_DB_TABLE values
    ('JENS','FOERSTER');
    insert into PERSON_DB_TABLE values
    ('MAX','MEIER');
    insert into PERSON_DB_TABLE values
    ('MARTHA','MUSTERMANN');
    create type PERSON_OBJECT as object (
        SURNAME  VARCHAR2(50),
        LASTNAME VARCHAR2(50));
    create type PERSON_NESTED_TABLE as table of PERSON_OBJECT;
    now my anonymous block
    declare
       v_PERSON_OBJECT        PERSON_OBJECT;
       v_PERSON_NESTED_TABLE  PERSON_NESTED_TABLE;
       v_PERSON_OBJECT_2      PERSON_OBJECT;
    begin
       for v_counter in (select SURNAME, LASTNAME into v_PERSON_OBJECT.SURNAME,
                                                                                            v_PERSON_OBJECT.LASTNAME
                                  from PERSON_DB_TABLE)
         loop
            v_PERSON_NESTED_TABLE := PERSON_NESTED_TABLE(v_PERSON_OBJECT);
         end loop;
       for v_counter in (select SURNAME, LASTNAME into v_PERSON_OBJECT_2.SURNAME,
                                                                                            v_PERSON_OBJECT_2.LASTNAME
                                  from TABLE (v_PERSON_NESTED_TABLE))
         loop
            dbms_output.put_line(v_PERSON_OBJECT_2.LASTNAME);
         end loop; 
    end;

    1386a7b8-e834-43bf-a0d4-922b548bb70b wrote:
    I need this, because my customer didn't like the idea to use Database Tables instead of Variables in the RAM. So he wants this procedure redesigned.
    As Mike says, keep this person away from your database.
    Customers should not be dictating how to implement technical solutions, they should be providing business and logical requirements.
    PL/SQL arrays/collections use expensive PGA memory, taking up valuable server resources.
    Copying data from the database to PGA memory to try and process it using PL/SQL is bad design.  SQL is designed specifically for data manipulation using database tables, so it's the ideal way to do process data... directly on database tables.

  • Compilation error when used SET or MULTISET operator on nested tables

    Dear All,
    I am getting Compilation error when used SET or MULTISET operator on nested tables inside a procedure.
    This is working fine in other DB installations of 10g but does not work in another 10g DB.
    it says "wrong number of parameter or datatype used in SET"
    Can any one suggest what went wrong here?
    Thanks in advance.

    Hi,
    Thanks for ur reply...
    Since MULTISET and SET operators are the new additions in base 10g release for manipulation of nested tables data, I am surprised that same is working in similar 5 DBs installations with 10.2.0.1.0 version, but does not work in the sixth.
    SET and MULTISET operators are used inside the PL/SQL procedure which is getting compiled in the above mentioned 5 DBs but not in sixth DB.
    it gives
    On line: 3112
    PLS-00306: wrong number or types of arguments in call to 'SET'
    Hope this clarifies the issue...

  • Dealing with User Defined Tables with the DI Server

    I have a general question about the best way of working with the data in user defined tables using the DI Server. It appears from previous posts that it is not possible to use the standard methods such as UpdateObject. Also since update/insert and delete statements or explicitly forbidden using the ExecuteSQL method then how do we interact with the data in the tables?
    Do we need to code our own data access layer for this type of access and is this a good practice?
    Is this type of functionality going to be available in a future release of the DI Server?
    Thanks

    Using SQL for Update/Insert/Delete is not forbidden on UDTs (at least non-UDO UDTs; UDO UDTs are somehow in a gray area since they carry internal fields + e.g. inserts require further manipulation in B1 tables...)...
    I.e. using ExecuteSQL to add data into UDTs is OK for DI Server...
    HTH,
    Frank

  • Table maintenance generator : EVENTS : please help me

    I need to use table maintenance generator to maintain a custom table through a custom transaction.
    I am using  event  BEFORE SAVE (01). It is working fine but small issues.
    1)After entering new entries for some fields(KEY FIELDS), when I press save button, remaining fields values to be populated. Seletion statements have written in FORM of the EVENT 01 (BEFORE SAVE).
    But the values for remaining fieldsare not populating immediately and but populating when I press BACK (F3). My requirement is with out presssing BACK  or F3 , fields to be populated.
    (note: SAP internal code..values are coming into TOTAL  structure..then I manipulated this internal table)
    PLEASE GUIDE ME, WHICH EVENT TO BE USED. importantly, which internal table/structure (like TOTAL we used for this requirement ) to be used for the proposed new EVENT? (Because lot of R&D to be done to find SAP structure)
    2) second requirement is: even after entering new entries, if we press ENTER, then also it should behave like SAVE like in the previous requirement. Please help me to find the EVENT and Internal SAP generated structure (like TOTAL we used for this requirement ).

    Hi Glen Anthony,
        Thanks for replay,
         I used foreign key relationship between those 2 internal tables....
    I used event 05: When creating a new entry. I want to know the custom logic by which my 2nd Internal table gets automatically updated when i update my 1st Internal table
    Thanks Glen.

  • Reg. external tables

    Hi,
    While gathering stats for external tables got an error using gather_stats (automatic stats gathering job).
    I have the below queries. can some one pls throw light on these.
    1.) why stats needs to gather on external tables? external tables have data outside the database and does not have any rows/indexes.
    so what is the need of gathering stats?
    2.) how to gather stats for an external table?
    3.) will there any impact if we dont gather stats for an external table?
    Database version : 11.2.0.3

    1005428 wrote:
    Hi,
    While gathering stats for external tables got an error using gather_stats (automatic stats gathering job).I've been using Oracle for quite some time and never received "an error" ... I've seen lots of error messages that begin with ORA though, do you have any specific ones?
    1005428 wrote:
    I have the below queries. can some one pls throw light on these.
    1.) why stats needs to gather on external tables? external tables have data outside the database and does not have any rows/indexes.You don't necessarily need to. However, if you are using the external table in some SQL queries with other tables in the database you would probably want the CBO to know some basic information about how many rows, etc... since that information is what drives the CBO's decisions on which query plan to come up with, better information = better query plan = less resource utilization.
    1005428 wrote:
    so what is the need of gathering stats?
    2.) how to gather stats for an external table?Consult the documentation
    http://docs.oracle.com/cd/E11882_01/server.112/e16638/stats.htm#PFGRF003
    The database can collect statistics for external tables in the following ways:
    GATHER_TABLE_STATS procedure
    GATHER_SCHEMA_STATS procedure
    GATHER_DATABASE_STATS procedure
    Automatic optimizer statistics collection processing
    If you are using GATHER_TABLE_STATS, then explicitly set the ESTIMATE_PERCENT option to NULL, 100, or AUTO_SAMPLE because sampling on external tables is not supported. Because the database does not permit data manipulation against external tables, the database never marks statistics on external tables as stale. If new statistics are required for an external table, for example, because the underlying data files change, then drop the existing statistics and regather them.
    If the monitoring feature is disabled by setting STATISTICS_LEVEL to BASIC, then automatic optimizer statistics collection cannot detect stale statistics. In this case, you must manually gather statistics. See "Determining Stale Statistics" to learn about the automatic monitoring facility.
    1005428 wrote:
    3.) will there any impact if we dont gather stats for an external table?Yes, no, maybe.
    It depends on what you are doing and how you are doing it.
    1005428 wrote:
    Database version : 11.2.0.3Cheers,

  • FDM11 Table Editor

    Hi
    I am not able to find table editor in FDM11 which was available in FDM931.How can i see FDM table data now
    Is this some installation config issue??Pls reply

    The table editor was identified as a potential security & SOX compliance risk. Moreover, direct manipulation within the tables potentially compromises the stability of the application.
    You can view tables through the reports module.
    I strongly advise against direct manipulation of data via a table editor (ex: SQL Manager, Toad, etc).

  • Time evaluation generate check out entry

    Dear Gurus,
    How can we generate Check out entries thru Time evaluation?
    The sales employees come to office in the morning, they punch in and leave for sales activity. They don't get overtime, but pay / absence quota deducted if they don't check in in the system.
    While running Time evaluation, I am getting error in TE03 (delimiting error). I hv tried creating second entry using TF00. Its not working. Has anybody any solution for this?
    Regards,
    Vijay

    Hi Gurus,
    I am rephrasing my requirements.  have 2 queries,
    1. Sales Employees make only Clock In entries. System should generate the clock out entry or should not throw any error message. System should consider total working time from daily work schedule.
       - TE30 function is generated the entry in TEVEN table based on planned end time, but we need to create the entry in IT2012 otherwise, while processing next days entry, it generates error.
       - Will TF00 create an entry in Time Events IT2051 ? IF yes, how can I tweak TF00 rule to generate Time out entry.
    2. General Staff working hours need to be calculated from Shift Start even if they come early. Max working time is 12 hours with 4hrs from start of end of Shift period
       - If shift start is 7AM, I have defining Start tolerance as 6AM to 7:05AM, but still the system is considering the Clock In time for hours worked. 
    I have to write this condition. How to write ?
       If Clock-in Time < Start Time
          Then   TIP->From = Start Time
    I believe it has to be put in TL10 after rounding the Check in & check outs.. so as to update table TIP,
    Please suggest,
    Regards,
    Vijay

Maybe you are looking for

  • How to create an InDesign Grep Expression to specific words

    I have a long list of congratulations wishes all following a certain pattern. How can I create a grep style with the following sequence: Congratulations to [name] upon..... The first two words of the paragraph are always: Congratulations to Followed

  • How to manage the operations on service order ?

    Hello, Do you know some bapi or MF to manage the operation on service order  (IW32). I have to create some operation, and in dialogue mode Iu2019m using  "Task list selection,  to reference object." But I need to do it by a bapi or MF. Tks a lot. R.

  • Summarize total for Row items in pivot table

    Hi, I have a certain number of row items and few fact columns. 2 of the row items are level based measures that will summarize on other conditions so I cannot have them in the Fact section. But for these 2 row items (in the Rows section) I want them

  • SAP Netweaver 7.3 Upgrade to SPS01

    Hi, I have installed SAP Netweaver 7.3 and now I need to upgrade to SPS01 (Required version for SAP Manufacturing Execution 6.0). Is SAP solution Manager the only way to do the upgrade? Br, Johan

  • BB Curve 8530 White Screen

    I keep getting a white screen I have done a reload which helped temporarily plus I have wiped it clean and reloaded as if it were a new phone but again this only helps temporarily.  Other than replacing the phone is there anything else I can try?