Record milli-second into Activity Log table

Hello,
Can we have any option to make ME logs into its table(s) the time stamp by milli-second like 2011-03-24 10:31:08.123?
[Background]
We develop a custom program to request SAP ME to perform signoff, adjust qty, start and complete.
The 4 requests will request one by one in the described sequence.
When we perform above program with an active status SFC and confirm how ME's Activity Log Report displayed.
Then, the sequence was strange.
[operation sequence]
1. SIGNOFF, 2. ADJUST_QTY, 3. START, 4. COMPLETE
[Activity Log displayed]
1. ADJUST_QTY, 2. COMPLETE, 3. SIGNOFF, 4. START
We This log will make user confused.
According to our engineer, all of these 4 actions are recorded with same time stamp like 2011-03-24 10:31:08.000.
So, I think if there's some option to allow mill-second log into ME database, it will be a solution.
(I guess, the other log tables like production log, resource_time_log and production_comment are also in similar situation.)
Best Regards,
Takahiro Uesugi

Takahiro,
Such changes have already been implemented for some customers to meet requirements of their workload. Not sure about including them into future releases. You need to discuss this with SAP consultants to submit the change for review by Product Management.
Regards,
Sergiy

Similar Messages

  • 2LIS_06_INV -  Records not getting into the setup table ..Please help..

    Hello Gurus,
    I am trying to setup 2lis_06_inv but i am not able to understand why i am not able to get any records in the setup table.The job shows finished in few seconds.
    What can be the possible reason for this?
    I activated the datasource using RSA5. I setup the Update Mode to 'Direct Delta' in LBWE ( Extraction Cockpit). I deleted the data in the setup table and then ran the OLI6BW tcode and gave tomorrow's date for finishing the job and then ran the job. The job shows finished in a few seconds but no data gets into the setup tables.
    Error message in log says:
    Recompilation has not selected anything -> Refer to error log
    Message no. MRBW015
    Diagnosis
    This error message was issued for one of the following reasons:
    No documents exist
    No selection criteria were entered
    BW updating has not been activated
    Any help is deeply appreciated.

    Hi,
    Check table RBEX on R/3 side whether any entries exists in that or not.
    if it does not contain any entry it will not bring any data.
    Check the link.
    2LIS_06_INV   Extractor problem
    Regards
    SH

  • How to enable logging of database changes of  Z tables into a log table.

    Dear Team,
    We have 8 Z tables and we need to log the changes in these tables. Earlier Change Document process was proposed but now we know that the possible changes in the Z tables will be many and this can cause too many entries in CDHDR and CDPOS tables. Going through so many entries of Change Document tables will decrease the system performance. The other option involves enabling the Log data base changes for the Z data base tables, but this will also cause the system to slow down as per SAP F1 help on "Log data changes" checkbox.
    description-"Note: Activating logging slows down accesses that change the table. First of all, a record must be written in the log table for each change. Secondly, many users access this log table in parallel. This could cause lock situations even though the users are working with different application tables."
    So we came to a solution where we can create a Z table and we will log the above mentioned Z table changes in the Z Change table but I have no idea how to implement the suggested solution. Please help me on this.
    Regards
    Amit

    Hi,
    Have a suggestion..
    Have custom fleld as LOG with char 1 and date field (sy-datum) in all the 8 ztables. The ztables are updated either through SM30 or from custom program, making sure who ever changes the record if manually then fill that flag field as 'X' and if by program then populate the field with value 'X'.So you will know based on the flag field whether changed or not.similarly for date field updatin as well.
    Now create a custom program to update the new ztable . Schedule this program daily may be at midnight..Read the 8 ztables with having flag = 'X' and update the new ztable. Once done clear the FLAG  from all the 8 ztables to space for that day and update the date field in the custom program.
    So for that particular day the records were written to new ztable and all the 8 ztables are having flag value as space and date will be sy-datum.
    Now for next day again do the same procedure.
    Hope this gives you an idea.
    Regards,
    Nagaraj

  • Data is not Loading into Active data table on DSO in BI 7.0

    Hi,
    Iam loading data from a flat file to ODS in BI 7.0, the data is loading up to PSA and New data table , But the DSO is not activating, after all possible steps like, automatically setting/ manualy doing  /  through Process Chain....still unable to do it....Cud u pls tell the reason and solution.

    Hi Sri,
    Did you get any solution for this issue. Your input is highly appreciated.
    We are also running on the same boat, I am using the End-Routine to fill up the 2 fields (one is Key figure and Characteristics) from one DSO to the other. In my case along with all other fields this key figure is also populating before and after the Activation of DSO. But the new Characteristics is populating in the update table (/BIC/A***40) before activating the DSO, once I activated the DSO the new characteristics is not filling up in the (/BIC/A***00), rest are coming without issues.
    I built the same logic for other current data DSO (write optimized) from other DSO to fill the same fields with the similar logic in the end routine, it is up and running without any issues.
    Thanks,
    Dileep

  • Writing a trigger to update the QOH in a Parts table for for each item of the order whenever the order is filled. The trigger is for the OrderItem table when an item record is inserted into the OrderItem table.

    Any ideas?

    Hi,
    If orderitem and parts are the only tables involved, and each orderitem references only 1 part, then it's pretty simple: just update parts, like this
    UPDATE  parts
    SET     qoh       = qoh - :NEW.quantity
    WHERE   part_num  = :NEW.part_num;
    If you can modify filled orderitems (e.g., DELETE orderitems or change the part_num after the order is filled, or change the status from filled back to unfilled then it's more complicated; you might have UPDATE the :OLD.part_num as well as the :NEW.part_num
    I hope this answers your question.
    If not, post your best attempt, along with a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Since you're asking about a DML statement, such as UPDATE, the sample data will be the contents of the table(s) before the DML, and the results will be state of the changed table(s) when everything is finished.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • How can I inserting file's line into a oracle table in physycal order

    How can I insert the file's line into a oracle table in the same physycal order that they exists in the file ?
    I am using "SQL to FILE" km to performing file load into Oracle table, but the order which the records are insered into the oracle table doesn't match with the order of file's lines
    How can I guarantee the same file's physycal order in the oracle table( target ) and file( source ) ?
    Is it possible throught ODI ?
    Thanks,
    Luciana

    Hi,
    although I understand why use "File to Oracle( SQLLDR )" KM, I haven't the guarantee that in the agent's machine the Oracle Client installed and because when I openned the others projects I saw that anyone in my company use this KM( "File to Oracle( SQLLDR )" )
    Tha's why I ask for anyone lead me whith the modification of the previous post in the "uLKM File to SQL", specifing the km step e where put the RECNUM pseudo column
    This is fundamental for my ODI project
    When I try to alter the "Create Work Table" and "Load Data" step of my "uLKM File to SQL" km, the execution returned me the error below:
    =====================> Create Work Table Step
    create table <@= vWorkTable @>
         C1_LINHA_ARQ     VARCHAR2(500) NULL, RECNUM NUMBER(10)
    =====================> Load Data Step
    select     LINHA_ARQ     C1_LINHA_ARQ
    from      TABLE
    /*$$SNPS_START_KEYSNP$CRDWG_TABLESNP$CRTABLE_NAME=ARQ_INSS2SNP$CRLOAD_FILE=/arquivos_odi/ccrs/in/#CCRS_CAD_INSS.vpNOME_ARQUIVOSNP$CRFILE_FORMAT=DSNP$CRFILE_SEP_FIELD=09SNP$CRFILE_SEP_LINE=0D0ASNP$CRFILE_FIRST_ROW=0SNP$CRFILE_ENC_FIELD=SNP$CRFILE_DEC_SEP=SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=LINHA_ARQSNP$CRTYPE_NAME=STRINGSNP$CRORDER=1SNP$CRLINE_OFFSET=1SNP$CRLENGTH=500SNP$CRPRECISION=500SNP$CR$$SNPS_END_KEY*/
    insert into ODI_RUN_CONV.C$_0TMP_ODI_INSS_DADOS_ARQ
         C1_LINHA_ARQ, RECNUM
    values
         :C1_LINHA_ARQ, RECNUM
    =====================
    984 : 42000 : java.sql.BatchUpdateException: ORA-00984: column not allowed here
    984 : 42000 : java.sql.SQLSyntaxErrorException: ORA-00984: column not allowed here
    java.sql.BatchUpdateException: ORA-00984: column not allowed here
         at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:629)
         at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:9409)
         at oracle.jdbc.driver.OracleStatementWrapper.executeBatch(OracleStatementWrapper.java:211)
         at com.sunopsis.sql.SnpsQuery.executeBatch(Unknown Source)
    ...Thanks again gyus,
    Luciana
    Edited by: 933810 on 31/05/2012 06:04
    Edited by: 933810 on 31/05/2012 06:07
    Edited by: 933810 on 31/05/2012 06:14

  • Capture PO errors to log table

    Please let me know if there is a way to capture SAP standard errors raised during PO creation into a Z log table.
    EX: SAP raises Message 06, message number 882, is there a way to capture this error into a log table.
    Thanks for your help.

    In PO processing using ME21N/ME22N a lot messages are not issued individually, but are presented in a list in a pop-up window.  Not sure if this is true of the messages you want to capture.
    If you look at the following code implemented in the CHECK method of "ME_PROCESS_PO_CUST" BADI, you will see it adds a customer message to this list using the macro MMPUR_MESSAGE from the MM_MESSAGES_MAC include.
    Perhaps there is also a macro for reading the messages. 
    Even if not, the macro code should show how you could read them and then you could place code in this user exit to get the messages and log the relevent ones to a Z table
    [code]
    METHOD if_ex_me_process_po_cust~check.
    NB: Add Type Group MMMFD to implementing class properties tab
    DATA: lt_items TYPE purchase_order_items,
    l_item_wa TYPE purchase_order_item,
    l_item TYPE mepoitem,
    l_total TYPE brtwr,
    l_matkl TYPE matkl,
    l_flag TYPE c.
    INCLUDE mm_messages_mac. "useful macros for message handling
    CLEAR: l_total, l_flag.
    CALL METHOD im_header->get_items
    RECEIVING
    re_items = lt_items.
    Loop through items and calculate total
    LOOP AT lt_items INTO l_item_wa.
    CALL METHOD l_item_wa-item->get_data
    RECEIVING
    re_data = l_item.
    l_matkl = l_item-matkl.
    l_total = l_total + l_item-brtwr.
    Check if any lines missing contract number
    IF l_item-konnr IS INITIAL.
    l_flag = 'X'.
    ENDIF.
    ENDLOOP.
    IF l_flag = 'X'.
    IF l_total > 5000.
    mmpur_metafield mmmfd_agreement.
    mmpur_message 'E' '06' '999'
    'Purchase order over $5000.00 requires a contract' '' '' ''.
    invalidate the object
    CALL METHOD im_header->invalidate( ).
    LOOP AT lt_items INTO l_item_wa.
    CALL METHOD l_item_wa-item->invalidate( ).
    ENDLOOP.
    ENDIF.
    ENDIF.
    ENDMETHOD.
    [/code]
    Hope this is of some use.
    Andrew

  • Cut and Paste in Baby Record template, Daily Log table

    Apologies if the answer is obvious, but I just had a baby and my brain is working on very little sleep, and I don't have time to read through the user guide to find the answer, if in fact it's in there.  I've been using the Daily Log table in the Baby Record template, but I can't seem to figure out how to add new categories/lines without literally having to recreate every single category level manually.  That seems incredibly time consuming and inefficient.  Isn't there a way to copy one date (with all three subcategories of Food, Diaper and Sleep) and paste to create the rows for the next date?  For instance, I just manually created an entry for 1/19/2012, and then manually added the three subcategories and had to retype in the names "Food," "Diaper," and "Sleep," and then had to manually add lines for each entry under those subcategories.  Instead, I want to copy the entier hierarchy for 1/19/2012 and then paste it and change the date to 1/20/2012, and so on, so I only have to create the hierarchy once and then can just enter in my data.
    Thanks in advance for any help you can provide. 

    Not a very intuitive template, to my thinking.
    Let's try to unravel the 'magic.'
    Categories on this template are created automatically from the entries in column B (which is hidden).
    Category rows are created automatically when you check the "Insert Categories form the following" checkbox in the Reorganize dialogue. When the box isn't checked, these Category rows don't exist.
    Start by unchecking the box and unhiding column B when your interest is in adding data
    To create a new category, you need only make an entry in column B that is different from the entries already there.
    For data entry, I'd forget about immediately creating a full set of categories for each new date. Instead, try this:
    On 7 July, 2009 at 7:15 AM the baby has a bottle of formula. To record that entry:
    Select the row where the most similar event took place on the previous day (6 July, 2009, 76:10 AM Food Formula), row 12 in the illustration below.
    Press option-down arrow to insert a new, empty row below the row containing that event. The selection will move down to the first cell in the new row.
    Reslect the previous row, then drag the Fill control handle (the small circle at the bottom right corner of the blue selection rectangle) down to fill the contents of row 12 into row 13.
    Note that the Date in column A increments by 1, and now shows 7 July, 2009, the date of the event to be recorded.
    Time has also incremented by one hour, and will need to be edited.
    The other two values, "Food" and "Formula" are the same as there were in the previous row.
    Edit the time in column C, and the entry is done.
    Make other entries in a similar manner.
    When done, click the reorganize button and sort the table by Date (column A). You may want to add two sub-sorts, by Activity (column B), then by Time. Each subsort is done within the previous category. Note that Time entries actually create Date and Time values in the cell, with the Date part equal to the date the entry was made.. If all entries for a specific date are not made during a single day sorting on time will give unexpected results,
    Regards,
    Barry

  • Function module to add record into incompletion log of creating sale order

    Hi SD Experts,
    Do you know any function module / class  to add record a into incompletion log procedure of creating / changing sale order process? We can do it through configuration OVA2 but I need to add more condition before adding to this table.
    Thanks,
    Duy

    Hi,
    Refer to The SDN Post : [user exit to update the incompletion log in sales order for pricing error |Re: user exit to update the incompletion log in sales order for pricing error]. 
    Limitation : While creating Sales order, this works only for document type with external number range as the code required for updating XVBUV require Sales Order Number.
    Regards
    Vinod

  • Logging the entries daily into a Z table Vs Volume

    Hi Experts,
    Am working on a Billing EXTRACTing report, in this system approximately 1,000 invoices will be created per day.
    After filtering the selection as per user selection criteria, approximately 200 (per day) invoices will be seleted by my report, but, functional guy(business analyst) is asking me to insert all these 200 per day into a Z table (say log table). But, am thinking it's not a good practise!! because adding/log these 200 entries per day to a Z table, dont know How big this Z table will become after 1 year!!
    So, pls. suggest me Is there any other way/idea to get resolved this requirement?
    Thank you

    Sorry for not writing all my requirement in my posting.
    Necessity: As soon as my prog. writes a Invoice record entry of VBRK into application server, I hv to create/insert a record with this Invoice into my Z table (which contains a Z field-say STATUS FLAG field), by adding a FLAG saying that, this Invoice sent to appication server (and there by to a legacy ssystem), say STATUS FLAG shuld populate with "S"-Successful....so that, next  execution of my prog. will avoid/skip this Invoice re-sending again!!
    Thank you

  • Insert multiple rows into a same table from a single record

    Hi All,
    I need to insert multiple rows into a same table from a single record. Here is what I am trying to do and I need your expertise. I am using Oracle 11g
    DataFile
    1,"1001,2001,3001,4001"
    2,"1002,2002,3002,4002"
    The data needs to be loaded as
    Field1      Field2
    1               1001
    1               2001
    1               3001
    1               4001
    2               1002
    2               2002
    2               3002
    2               4002
    Thanks

    You could use SQL*Loader to load the data into a staging table with a varray column, then use a SQL insert statement to distribute it to the destination table, as demonstrated below.
    SCOTT@orcl> host type test.dat
    1,"1001,2001,3001,4001"
    2,"1002,2002,3002,4002"
    SCOTT@orcl> host type test.ctl
    load data
    infile test.dat
    into table staging
    fields terminated by ','
    ( field1
    , numbers varray enclosed by '"' and '"' (x))
    SCOTT@orcl> create table staging
      2    (field1  number,
      3     numbers sys.odcinumberlist)
      4  /
    Table created.
    SCOTT@orcl> host sqlldr scott/tiger control=test.ctl log=test.log
    SQL*Loader: Release 11.2.0.1.0 - Production on Wed Dec 18 21:48:09 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    Commit point reached - logical record count 2
    SCOTT@orcl> column numbers format a60
    SCOTT@orcl> select * from staging
      2  /
        FIELD1 NUMBERS
             1 ODCINUMBERLIST(1001, 2001, 3001, 4001)
             2 ODCINUMBERLIST(1002, 2002, 3002, 4002)
    2 rows selected.
    SCOTT@orcl> create table destination
      2    (field1  number,
      3     field2  number)
      4  /
    Table created.
    SCOTT@orcl> insert into destination
      2  select s.field1, t.column_value
      3  from   staging s, table (s.numbers) t
      4  /
    8 rows created.
    SCOTT@orcl> select * from destination
      2  /
        FIELD1     FIELD2
             1       1001
             1       2001
             1       3001
             1       4001
             2       1002
             2       2002
             2       3002
             2       4002
    8 rows selected.

  • How to display records into a non table base block..

    Hi,
    Can anybody help me how to display records into a non table base block....
    Find below is my coding but it only display the last record in the first line
    in the block.
    PROCEDURE CREATE_CARTON_QUESTION IS
    CURSOR car_c IS
    select /*+ rule */ question_id, question_description
    from WHOP.QADB_QUESTIONS
    where question_category = 'Carton'
    and question_active_flag = 'Y';
    v_found VARCHAR2(10);
    v_status boolean;
    v_error      varchar2(150);
    v_count number;
    car_r car_c%rowtype;
    begin
    begin
    select count(*) into v_count
    from WHOP.QADB_QUESTIONS
    where question_category = 'Carton'
    and question_active_flag = 'Y';
         exception
         when no_data_found then
         v_count := 0;
    end;
    if v_count > 0 then
    for car_r in car_c loop
    ---populating carton questions
    :la_carton.carton_question_id     := car_r.question_id;
    :la_carton.carton_question_answer     := 'N';
    :la_carton.carton_error_details     := null;
    :la_carton.attribute2          := car_r.question_description;
    end loop;
    end if;
    end;
    Thanks in advance.
    Regards,
    Jun

    Hi SNatapov,
    Thanks for you reply but still I get this error...
    FRM-40737 Illegal restricted procedure GO_BLOCK in WHEN-VALIDATE-ITEM trigger.
    Please note that I call that program unit in the last field of my control block inside when-validate-item trigger the questions should be display in la_carton block which is my non-base table block.
    Find below is the code....
    begin
    go_block('la_carton');
    first_record;
    for car_r in car_c loop
    ---populating carton questions
    :la_carton.carton_question_id := car_r.question_id;
    :la_carton.carton_question_answer := 'N';
    :la_carton.carton_error_details := null;
    :la_carton.attribute2 := car_r.question_description;
    next_record;
    end loop;
    end;
    Hoping you can help me this problem...
    Thanks in advance.
    Regards,
    Jun

  • Validate the record while uploading into table

    Hi,
    I am uploading records into the table, and it so happened that an incorrect record full of text data was there in theinput file, it got uploaded along with the records,
    hence I need to modify the code to check for such data -it is text data.
    I have an 'empid' field (only numbers). I used that field to check for numeric data some thing like this...
    if itab-empid+0(1) between '0' and '1'.
    move-corresponding itab to DTABLE.
    APPEND DTABLE.
    else.
    continue.
    endif.
    it is not working, throwing a short dump.
    is there a better way to validate this? All I am doing is if empid field has any text data do not read into the internal table.
    Thanks,
    SK

    Hi,
    Check this, It will work.
    if itab-empid CO '12345 67890'.
    move-corresponding itab to DTABLE.
    APPEND DTABLE.
    else.
    endif.
    Regards
    L Appana

  • Insert records into non base table

    Hi
    I would like to insert records into a table when a button is clicked. The table is a non base table. I am trying to save records displayed in a form into a history table which is not part of the form. I am using the following code stored in a program unit then called when the button is pressed. It doesn't generate any error but the records are not inserted. Can anyone please help.
    hist_id := 1;
    cust_name := :CUSTOMER.cust_name;
    loan_date := :LOAN.loan_date;
    return_date := LOAN.return_date;
    FORMS_DDL('INSERT INTO LOAN_HISTORY VALUES'||hist_id||','||cust_name||','||loan_date||','||return_date);

    Why do you need forms_ddl built in for a DML statement to be used in form?
    U can directly use insert.
    hist_id := 1;
    cust_name := :CUSTOMER.cust_name;
    loan_date := :LOAN.loan_date;
    return_date := LOAN.return_date;
    INSERT INTO LOAN_HISTORY VALUES (hist_id,cust_name,loan_date,return_date);
    It should work perfectly.

  • How to parse and retrieve records from xml files into columns in Table

    Hi
    I attached the thing what i tried.
    Table to hold the XML COntent:
    create table xmlfile(xml_con sys.xmltype);
    Inserting Xml file content into the Above table:
    insert into xmlfile values(sys.xmltype.CreateXml('<Root><name>RAM</name><age>23</age></Root>'))
    SQL> select * from xmlfile;
    XML_CON
    <Root>
    <name>RAM</name>
    <age>23</age>
    </Root>
    SQL> select extractValue(xml_con, '/Root/name') content from xmlfile;
    CONTENT
    RAM
    This one works fine
    But if the file content is as below( contains MUltiple Records)
    insert into xmlfile values(sys.xmltype.CreateXml('<Root><Record><name>RAM</name><age>23</age></Record><Record><name>SAM</name><age>23</age></Record></Root>'))
    SQL> select extractValue(xml_con, '/Root/Record/name') content from xmlfile;
    ERROR at line 1:
    ORA-19025: EXTRACTVALUE returns value of only one node
    Can anyone help me 4 this issue-How to extract multiple records from the XML file inthis manner(from PL/SQL without using JAVA)
    OR
    If there is anyother way to do this please tell me?

    SQL> SELECT EXTRACTVALUE (COLUMN_VALUE, '//name') NAME,
           EXTRACTVALUE (COLUMN_VALUE, '//age') age
      FROM TABLE
              (XMLSEQUENCE
                  (EXTRACT
                      (XMLTYPE
                          ('<Root>
                              <Record>
                                <name>RAM</name>
                                <age>23</age>
                              </Record>
                              <Record>
                                <name>SAM</name>
                                <age>23</age>
                              </Record>
                            </Root>'
                       '/Root/Record'
    NAME       AGE      
    RAM        23       
    SAM        23       
    2 rows selected.

Maybe you are looking for