Object Key in the table BKPF

hi,
can somebody tell me how the data is filling to the filed " object key"(AWKEY) in the table "BKPF". do we define this in the configuration in FI?  is there any link with the document number ??
G

Hi
For every document you create the system creates automatically on reference key number and that stores in table 'BKPF' in field 'AWKEY'.
To see the reference key number  for the document, just goto document display and click on Header Data icon.
Regards
Laxmiprasad

Similar Messages

  • Refreshing Entity Objects after Altering the table

    Hi,
    My Entity Object is based on a table... and View Objects on the Entity Objects. Now if I alter the table (just changing the width of the column), that change is not visible on the Entity Object. Is there any way I can automatically refresh the Entity Objects after altering the table(only column width is changed).
    (Changes made to Entity Objects manually are reflected in the View Object correctly.)
    Regards
    Faiyaz

    'changing the width of the column' means changing the size of the column in the table description in the database. For e.g.. In the original table I had a column OIL_KEY NUMBER(6). Now I change the column to be of size 12 i.e. OIL_KEY NUMBER(12). This does not get refreshed in the Entity Object.

  • Fm or metod that retrieve the lock object name from the table name

    HI ALL,
    there is FM or method that retrieve the lock object name from the table name ?
    Best regards
    Nina

    CALL FUNCTION 'ENQUEUE_REPORT'            
    EXPORTING                                
    gclient                     = sy-mandt   
    gname                       = 'RCTMV'         "Table Name
      GTARG                       = ' '       
      GUNAME                      = SY-UNAME  
    IMPORTING                                 
      number                      =           
      SUBRC                       =           
      TABLES                                  
        enq                         =  lt_seqg3
    EXCEPTIONS                               
       communication_failure       = 1        
       system_failure              = 2        
       OTHERS                      = 3

  • Foreign keys at the table partition level

    Anyone know how to create and / or disable a foreign key at the table partition level? I am using Oracle 11.1.0.7.0. Any help is greatly appreciated.

    Hmmm. I was under the impression that Oracle usually ignores indices on columns with mostly unique and semi-unique values and prefers to do full-table scans instead on the (questionable) theory that it takes almost as much time to find one or more semi-unique entries in an index with a billion unique values as it does to just scan through three billion fields. Though I tend to classify that design choice in the same category as Microsoft's design decision to start swapping ram out to virtual memory on a PC with a gig of ram and 400 megs of unused physical ram on the twisted theory that it's better to make the user wait while it needlessly thrashes the swapfile NOW than to risk being unable to do it later (apparently, a decision that has its roots in the 4-meg win3.1 era and somehow survived all the way to XP).

  • On reversal of Invoice the table BKPF not getting updated properly

    Hi
    I have an issue, that when we create the Commercial Invoice, accounting document generated automatically. And after that due to some reason when we reverse the same through  VF11, the accounting document which was created while doing the invoicing not getting updated by "reversed with (STBLG)" field and "reversal Indicator (XREVERSAL) field in the table BKPF.
    However when I test the some scenario in Development and Quality server the same field is getting updated.
    I have already checked the Billing Document Type of SD and accounting document type but found everything in place.
    I am unable to get what is missing,and why this is happening in Production server only.
    Need your input at the earliest.
    Thanks in advance
    Regrads
    AA

    Hi
    thanks to all for their suggestion, the issue resolved with the help of SAP.
    For the forum members information :-
    This is standard system behaviour.
    BKPF-XREVERSAL is only populated/filled in the reversed original
    and in the reversal FI document if BKPF-STBLG and BKPF-STJAH
    are populated/filled in reversed original and reversal FI document.
    BKPF-STBLG and BKPF-STJAH are only populated/filled in reversed
    original and reversal FI document if the new/real cancellation
    procedure (-> with automatic clearing of the open items) is executed,
    and the new/real cancellation procedure is not executed, if an
    open item of the original, to be reversed FI document, has already
    been cleared (-> also see note 309208).
    Regards
    Amitesh Anand
    Edited by: AA on Apr 25, 2009 11:37 AM

  • Lock Object (Not locking the table)

    Hi Guys
    I have a custom table ZDRAD same like standard table DRAD with an additional 'DATE' field . ZDRAD's Key fields are same like DRAD . I have created a lock object 'EZDRAD' where I put name = 'ZDRAD' (Custom table) and mode = 'EXCLUSIVE CUMULATIVE' . Now I want to lock the table(Whole table) before modifying/Inserting/deleting the records in se38. Please check the code below and suggest me if I am passing wrong values to the lock object Function module.
    Code
    TABLES : ZDRAD.
    CALL FUNCTION 'ENQUEUE_EZDRAD'
    EXPORTING
       MODE_ZDRAD           = 'E'
       MANDT                = SY-MANDT
       DOKAR                = ' '
       DOKNR                = ' '
       DOKVR                = ' '
       DOKTL                = ' '
       DOKOB                = ' '
       OBZAE                = 0
       OBJKY                = ' '
       X_DOKAR              = ' '
       X_DOKNR              = ' '
       X_DOKVR              = ' '
       X_DOKTL              = ' '
       X_DOKOB              = ' '
       X_OBZAE              = ' '
       X_OBJKY              = ' '
       _SCOPE               = '2'
       _WAIT                = 'X'
       _COLLECT             = ' '
    EXCEPTIONS
       FOREIGN_LOCK         = 1
       SYSTEM_FAILURE       = 2
       OTHERS               = 3
    *IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    IF SY-SUBRC = 0.
    ZDRAD table is locked.
        P_L_LOCK_STAT = 'X'.
        EXIT.
      ELSE.
    ZDRAD table is not locked
        CLEAR P_L_LOCK_STAT .
      ENDIF.

    Hi Kanthimathi
    That is numeric field . Please suggest me how can i check the lock.

  • Error:- The object key has the following invalid value: R3TR TABU

    Hi,
    My request have already been transported to Production server. Now In Dev. I'm deleting an entry from table V_T001K_ASSIGN. When I try to save its asking me to create a request. When I create a new request and save I get the following error:
    Object key values invalid (internal syntax error).
    Please help.
    Regards,
    Sriram

    are you deleting a unique primary key entry? I mean to transport an entry to further clients, the TR needs the primary key information, so that it knows which entries are included in the TR. Please check the TR object details if the information is correct..
    It should basically have
    R3TR TABU V_T001K_ASSIGN
    and in the key details, it should have the primay key of the entry u deleted.
    Thanks,
    Bikash

  • How to create a foreign key for the table from two different tables?

    Hi All,
    I have a three table like below. In the below table SAMPLE_CONS_CHECK and SAMPLE_CONS2_CHECK will be having the primary key for NAME column. The same SAMPLE_CONS3_CHECK table also having the primary key for NAME column and forieign key for SAMPLE_CONS_CHECK and SAMPLE_CONS2_CHECK tables. See the below code 2
    code 1:
    CREATE TABLE SAMPLE_CONS_CHECK
            (NAME VARCHAR2(10),
            SERIES  VARCHAR2(5)
    CREATE TABLE SAMPLE_CONS2_CHECK
            (NAME  VARCHAR2(5),
             MODEL  NUMBER
    CREATE TABLE SAMPLE_CONS3_CHECK
            (NAME  VARCHAR2(5),
             MODEL_NO  NUMBER
            )code 2
    alter table SAMPLE_CONS_CHECK
    add constraint SAMPLE_CONS_CHECK_pk primary key (NAME)
    alter table SAMPLE_CONS2_CHECK
    add constraint SAMPLE_CONS2_CHECK_pk primary key (NAME)
    alter table SAMPLE_CONS3_CHECK
    add constraint SAMPLE_CONS3_CHECK_pk primary key (NAME)
    ALTER TABLE SAMPLE_CONS3_CHECK ADD
    CONSTRAINT SAMPLE_CONS3_CHECK_FK1 FOREIGN KEY
         NAME
    ) REFERENCES SAMPLE_CONS_CHECK
        NAME
    ) ON DELETE CASCADE;
    ALTER TABLE SAMPLE_CONS3_CHECK ADD
    CONSTRAINT SAMPLE_CONS3_CHECK_FK2 FOREIGN KEY
         NAME
    ) REFERENCES SAMPLE_CONS2_CHECK
        NAME
    ) ON DELETE CASCADE;From the above schenario i am able to insert the data to SAMPLE_CONS3_CHECK table. But the parent data is already available in the parent table. The problem is here two different constarints from two different tables. While inserting, it is checking from both the tables whether the parent is exist or not.
    How can i solve this problem? Can anyone halp me about this?
    Thanks
    Edited by: orasuriya on Aug 8, 2009 2:02 AM

    Actually the design is completely incorrect.
    What you say is
    I have
    'foo', 'foo series'
    'foo','foo model'
    'foo',666
    By virtue of table3 referring to both table1 and table2.
    This means you actually need to have 1 (one) table:
    'foo','foo series','foo model', 666
    And the 'problem' disappears.
    Sybrand Bakker
    Senior Oracle DBA

  • Error while renaming indexes and keys in the tables

    hi gems...good afternoon..
    i am using oracle 11gr2 database.
    when i am trying to rename the primary key, foreign key, indexes of all the tables as per the standard, then the following error is given...
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01000: maximum open cursors exceeded
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01000: maximum open cursors exceeded
    ORA-01000: maximum open cursors exceeded
    currently the maximum open cursors parameter is set to 300.
    please help..thanks in advance

    thanks a lot for your help..
    there are total 162 records in the v$open_cursor for that user.
    among that the open cursor is only 4 and open-recursive cursor is only 6 for that user.
    in my session i am executing only the renaming of the constraints and nothing more.
    When i have queried the v$open_cursor for cursor_type='OPEN' for all the users, then i got that it has exceeded the value of open_cursors parameter.
    So how can i resolve that....

  • DBMS_CDC find only the columns that are changed along with the primary key in the table

    Hello,
    We are having a requirement to find the change data in the production environment.
    We are planning to use the DBMS_CDC utility.
    But for  example in the create change table 1 picked emp_id,ename, address, salary,dob.
    I have a sample data of
    empid
    ename
    address
    salary
    DOB
    1
    test1
    24 test street
    2000
    20-Jan-98
    2
    test2
    25 test street
    2500
    15-Aug-97
    if ename for empid 1 is changed to test1_test3 from test1.
    My CDC is capturing  the values in the old and new values in the 5 columns.
    But i need to get only the empid (primary key of the source table) and the ename column as only that's been updated not the rest of the 3 columns.
    Can i accomplish this.
    Please advice.

    Hello,
    Thanks for the information.
    but if i change the change table  then i will miss the other columns right?
    I want to get the columns( empid and ename) only if ename is changed. i.e when ever any column in emp table changes i need to get all the columns where the data is changed along with the primary key columns empid.
    Is there any way i can tweak the parameters so that i can achieve this or is there any other way using the cdc i can get this data.
    Thanks

  • REFRENCEING PRIMARY KEY IN THE TABLE

    Hi,
    I want to refer the composite primary key column into one table that is i have one primary key with three columns and i want to refer only one column as a forigen key in the other table.
    how do i do that ?
    regards
    gaurav
    null

    Foreign keys have to map to primary keys. If your master table requires three columns to uniquely identify a record then its children must have those three columns as well. This can lead to the apparently absurd situation where you have tables whose keys consist of more columns than the actual table data.
    The alternative is to use an artificial ID column as the PK and make the other columns an unique key. The problem with synthetic primary keys is that it makes it difficult to identify children or grandchildren: you always have to join with the parent table or denormalise your data.
    Example: ORDERS identified by Ord_No
    ORDER_ITEMS identified by ord_itm_no
    Natural key: ORDERS PK = order_no
    ORDER_ITEMS PK = order_no
    , ord_itm_no
    Here it is easy enough to find which items belong to Order 1234 just by querying ORDER_ITEMS table.
    Synthetic key: ORDERS PK = id
    UK = order_no
    ORDER_ITEMS PK = ORDERS.id, id
    UK = order_no, ord_itm_no
    Here to find which items belong to Order 1234 you have to query ORDERS to find the ID before querying ORDER_ITEMS table. You have to have triggers on the ORDER_ITEMS table to populate the denormalised columns order_no and ord_item_no.
    Which approach you take ought to depend upon your database and what you do with it but it take on the flavour of a religious war. The orthodox view (the word of Codd) firmly supports using natural keys.
    ciao, APC

  • Keys in the table

    I am new to writing SQL queries to pull the data from more than one table. how many keys can a table have. Can there be a combination of more than one key to identify a unique record in a table. How will I know which keys should be used to join the tables.

    Depending on one's definition of "key", a table can have as many keys as you would like. A table can have only one primary key, but you can declare as many columns or combinations of columns as unique keys as you would like. Subject, of course, to the limit of ~1000 columns per table and the combinatorial limit on the number of ways that many columns can be combined.
    Yes, you can define either the primary key or a unique key as a combination of multiple columns.
    How will I know which keys should be used to join the tables.Option 1 would be to have an ERD diagram on hand to show the relationships between tables.
    Option 2 would be to query the DBA_CONSTRAINTS table (or, more likely, to look at the table definition in your favorite PL/SQL IDE) and to look at the foreign key relationship between the parent and the child tables.
    Justin

  • Remove the primary key constraint and add new primar key to the table.

    Hi all,
    We had a design plan to remove a primary from the table on column X(VARCHAR) and add a new primary key on column Y(sequence)(dimensional table). Instead, I am planning to create a unique index on the column Y (I am referring column Y in my Fact table).
    I am using the column Y while joining the dimensional and fact table. Now, my question is.
    Is the retrieval will be faster if I make column Y as primary key or Is it the performance same if I create a unique index on it ?
    Note: Both column X and Y in dimension table are unique and not null. Don't want to alter the existing system hence want to create unique index .
    Please suggest.
    Thanks and Regards
    Nagaraja Akkivalli

    When you define a column as Primary key column you give certain information to Oracle that i can use when accessing that table. And similarly when you say a column as Unique Key column you give certain details to oracle that i can use when accessing that table.
    So it is up to you to decide if the what that column is meant to do. And decide based on that.
    For example a Unique column can have NULL values. But a primary key cannot have NULL value. This piece of information can be critical to oracle to generate the best plan.

  • Hash keys and the table Pagesize.

    Hi,
    We look to be running into some performance issues running on TimesTen 5.1.25, and feel that we may be running into a problem of having the hash size set too small, as we are seeing lock contention on the index hash values.
    The documentation says that the hash size can only be changed by recreating the table, however the documentation also states, that to resize a hash index, the "ALTER TABLE owner.name SET PAGES = CURRENT;" statement can be used.
    Could you please explain which of these statements is correct, and whether this may be leading to greater lock contention, or whether we should be looking elsewhere.
    Regards,
    mgh

    Yes, an undersized hash index can lead to performance issues and excessive contention. One should always size the index based on the formula PAGES = (maximum number of rows) / 256. The ttXactAdmin utility can be used to investigate lock and latch contention on the hash index. The degree of impact depends on the ratio of actual rows to expected rows. If A is the actual number of rows and H is the number of rows for which the hash index has been sized then the ratio A / H should always be <= 1. If it exceeds 1 by a small amount (e.g. 1.1) then the impact is small but once it exceeds one by a significant amount e.g. 1.5 upwards then the impact increases very quickly.
    In 5.1, the only way to resize the index is by unloading the table data to a file (ttBulkCp), dropping the table, re-creating with the 'correct' hash index sizing and then reloading the data (ttBulkCp).
    The ability to resize the index using ALTER TABLE was introduced in TimesTen 6.0.
    Since this is an obvious and well known source of performance problems and increased contention I would recommend that you try to eliminate this issue in the first instance and see if that improves things. If it does not then you can move on to investigate other areas.
    Chris

  • AWTYP in the table BKPF

    Hi Experts, I am trying to enter AWTYP manually in t code F-22. I tried to customize it by changing field status varien in OBC4. But i couldnot do that. Is it possible to make the Field AWTYP manually inputable?
    Elaboration: when I post a debit invoice in F-22, the awtyp is always bkpf. It is given by system but because of testing purpose, i want to enter it manually as WBRK. Please suggest, if possible.

    Hi,
    AWTYP (Reference Transaction) is a field where posts automatically while posting the Accounting document number.
    There are different kind of Reference Transaction are there.
    1. From FI side Accounting document BKPF
    2. From MM side Material document MKPF
    3. From SD side Billing document VBRK
    Those are standard SAP Reference Transactions, system itself updates that field, we can't change those types.
    Logically Reference Transaction is as same as Header Table
    Ravi Polampalli

Maybe you are looking for