Que about User made table....

Hiii ... Dear ABAPers
I have a que regarding table :
my question is
" i made a table called "yvinward" and also populated it with some data ... but with the some reason i needed to change the field name of my table ... i changed the
field using se14 trasction for "adjust database table and save data" option.....
when i came back to table i came to know that data that column was contained whose name i have changed now  vanished....howwwww its possible???????/
and when i try to maintain the data by " create entries " or sm30 i got error?????
now how to solve this problem......
I m waiting for ur reply.....
Cool Regards,
Nirav Parekh . . .

... but with the some reason i
> needed to change the field name of my table ... i
> changed the
> field using se14 trasction for "adjust database table
> and save data" option.....
>
> when i came back to table i came to know that data
> that column was contained whose name i have changed
> now  vanished....howwwww its possible???????/
When you change the name of a column in SE14, what you are doing effectively is modifyin the table. That means, you deleted the old column from the table definition (along with the contents of course) and added a new column. That exlains why your data went missing.
You need to regenerate the table maintenance dialog.

Similar Messages

  • User stats table - columns' names description

    Hi,
    I have question about creation user stats table. I have created such a table:
    EXECUTE DBMS_STATS.CREATE_STAT_TABLE ('PIOTR', 'piotr_sysstats', 'USERS');Here is stats table structure:
    SQL> desc piotr_sysstats;
    Name                                      Null?    Type
    STATID                                             VARCHAR2(30)
    TYPE                                               CHAR(1)
    VERSION                                            NUMBER
    FLAGS                                              NUMBER
    C1                                                 VARCHAR2(30)
    C2                                                 VARCHAR2(30)
    C3                                                 VARCHAR2(30)
    C4                                                 VARCHAR2(30)
    C5                                                 VARCHAR2(30)
    N1                                                 NUMBER
    N2                                                 NUMBER
    N3                                                 NUMBER
    N4                                                 NUMBER
    N5                                                 NUMBER
    N6                                                 NUMBER
    N7                                                 NUMBER
    N8                                                 NUMBER
    N9                                                 NUMBER
    N10                                                NUMBER
    N11                                                NUMBER
    N12                                                NUMBER
    D1                                                 DATE
    R1                                                 RAW(32)
    R2                                                 RAW(32)
    CH1                                                VARCHAR2(1000)Does someone know what each of this columns store? I will be very appreciated if someone help me find information about user stats tables.
    Peter D.

    Google is your friend and Wolfgang Breitling rules! :)
    http://www.centrexcc.com/SQL%20Tuning%20with%20Statistics.ppt.pdf
    Gints Plivna
    http://www.gplivna.eu

  • Another user modified table rdr3

    Hi
    I got error "Another user modified table rdr3" when try to update additional expenses on sales order form.
    Case: Update Add. expences through my code based on condition and document updated well with add. expenses
    but after that if i update add. expenses through system functionality <b>means By pass my code</b> based on some condition, SBO throws this error.
    Help needed!???

    In what event are you performing your update?  I was getting the same message when I did my update in the in "item clicked" (for the update button) and this is evidently before the form does the update.  It saw the changes I made to the record and therefore aborted the update.
    I moved my update to item-pressed and that solved the problem.  But it's been a little more complicated than that for me.
    As far as I can tell, SBO updates the object on the form AFTER the BeforeAction event is triggered from item pressed.  But the way my debugging suggests it happens is that if there are no errors from that update, while item pressed does get it's AfterAction triggered, the form is no longer in update mode - it's in OK mode. So it seems that the update really needs to happen from OK mode but there's one more complication.
    At least for the item master form, button 1 can be in OK mode after doing an Update (which will work), but will also be in OK mode after a find (where the user types, for instance, an item number and presses enter, rather than the find button).  So what I am doing is setting a flag on item pressed/update mode/before action that let's me know that update is requested.  then in item pressed/find mode/after mode I test for update requested, then update the object and turn off my flag:
      Case Is = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED
        If pVal.ItemUID = "1" Then
           Select Case pVal.FormMode
                Case Is = SAPbouiCOM.BoFormMode.fm_UPDATE_MODE
                         If pVal.BeforeAction Then
                            g_UpdateModeStarted = True
                         End If
               Case Is = SAPbouiCOM.BoFormMode.fm_OK_MODE
                          If g_UpdateModeStarted Then
                               If pVal.Action_Success Then
                                  UpdateItem()
                                  g_UpdateModeStarted = False
                               End If
                          End If
    WARNING:  I am very new to SBO programming and haven't even taken the class yet.  This works for me but I imagine that others in this forum might say I'm going about it all wrong.  But since no one else has offered a solution to this yet, I thought I'd let you know how I got around the problem.
    Good Luck!

  • Using one user account table across multiple databases but account used as a foreign key

    I want to use one user account table from one database and use it across a couple other databases. The problem is that I want some tables to use the primary key from the user account table as a foreign key to access the data when the user logs in. Is this
    the right way of going about it? Do I have to create a user account table in all my databases? What is the best practice to handle this problem? Thanks in advance.

    You can use Triggers or using replication. 
    more info: 
    Add Foreign Key relationship between two Databases
    SQL Server Replication
    Saeid Hasani [sqldevelop]

  • User defined table types sometimes show up a unknown data type in Profiler

    A couple of our users have a problem when using user defined table types. Calls are made using UDTT as variables and these are then passed to a stored procedure as parameters. Sometimes the application returns a timeout. In such situations a Profiler-Trace
    shows the following:
    declare @p4 unknown
    whereas the correct trace (that is sometimes displayed) should be:
    declare @p4 dbo.ReportFilterTableType
    ReportFilterTableType is a UDTT. The users do have correct permissions for the UDTT (otherwise they would never be usable for the user). What could be the reason that the data types for the variable
    @p4 in the example are sometimes returned as unknown and at other times are returned correctly as
    ReportFilterTableType? Could this possibly be a network related issue?
    Thank you.
    Graham Goodwin Email: [email protected]

    I know this is a old post, but i am also facing the same issue that too in my production server. Did you find any workarround for this issue. Please do reply. Critical problem we are facing.
    Alka, Is your problem timeouts when passing TVP parameters, or is it that a Profiler Trace shows type "unknown" for the TVP data type name?
    If your problem is timeouts, be aware that TVPs do not have statistics so the optimizer might not be able to generate an optimal plan for non-trivial queries. Declaring a primary key or unique constraint on the table type may help since that will provide
    useful cardinality information.  You may need to resort to hints in some cases.
    I suggest you start a new thread with details of your specific situation if the information in this thread doesn't help.
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • API to Maintain User Defined Tables in Oracle Apps

    Hi,
    Is ther any API to INSERT/UPDATE the Values into the User Defined Tables. I found one API (+AD_DD+) which is all about registring Table/Rows/Columns to it but NOT about VALUES.
    Please help me out.
    Thanks !

    Yes, check below -
    Regarding the UDT(User Defined Tables)

  • Another user-modified table  'Items' (ODBC -2039)

    I have a problem with the Items object. I have a folder on the Item MasterData  form and a extra table that stores the info from that tab.
    When I try to update an item i get this error message :
    Another user-modified table  'Items' (OITM or OITW) (ODBC -2039)
    I can update items normally if my addon is stopped. I have read something about a similar message about PO, but I get the error on all items( even newly added ones) so I don't think it's about them being involved in PO.
    Any ideas on this matter ?

    Hi,
    I faced a similar error once, i also modified the Item Master screen and added a tab with an extra table, then i was modifing the FORM MODE explicitly.
    If ur are modifing the FORM MODE explicitly we may get this error.
    Vasu Natari.

  • Where can I get more information about User exits?

    Where can I get more information about user exits,their related Tables and the source code of an User exit?
    Thanks

    would you please give the Internet addresses of these places?
    Mostly I want to get the source of some user exits in Oracle Application.
    If you know how and where can I get these sources,I'll appriciate if you let me know.
    Regards

  • Query SQL with variables Parameters and user defined tables

    Hi  everyone
    I got a problem about Query SQL
    [dbo].[@CSOURCE]  is a user defined table
    select * from [dbo].[@CSOURCE]
    you can get the result in following
    code    name
    T01      newspaper
    T02      TV
    T03      radio
    T04      friends
    when I execute the following SQL   Statements ,I get an error
    SELECT T0.CardCode , 0.CardName ,T1.Name ,T2.SONumber
    FROM OCRD T0    LEFT JOIN [dbo].[@CSOURCE]  T1 ON T0.U_CSOURCE = T1.Code
                                 LEFT JOIN (SELECT  T0.CardCode ,COUNT(T0.DocNum)SONumber
                                 FROM ODLN T0  INNER JOIN OCRD T1 ON T0.CardCode = T1.CardCode
                                WHERE T1.GroupCode =111
                                AND   (T0.DocDate >=[%0] or [%0]='')
                                AND   (T0.DocDate <=[%1] or [%1]='')   
                                GROUP BY T0.CardCode) T2 ON T0.CardCode=T2.CardCode
    WHERE T0.GroupCode =111
    and  T0.CardType ='C
    Is there anyone can correct it for me
    thank you very much
    Edited by: Li Mishan on Jul 17, 2008 9:36 AM
    Edited by: Li Mishan on Jul 17, 2008 9:40 AM

    I am sorry .It is just a mistake of my typewriting.
    The following is the whole SQL
    dbo.@CSOURCE is a user table.It's content is
    code  name
    T01    newspaper
    T02    TV
    T03    radio
    T04    friends
    declare @m int
    declare @FromDate DateTime
    declare @ToDate DateTime
    set @m=(SELECT count(*)  FROM ORDR T0 WHERE T0.DocDate >=[%0] and  T0.DocDate <=[%1])
    set  @FromDate=[%0]
    set  @ToDate=[%1]
    /*****************If I do not connect user tavble dbo.@CSOURCE ,I will succed *****************************************************/
    SELECT T0.CardCode ,T0.CardName ,T2.SONumber,T1.Name
    FROM OCRD T0  LEFT JOIN [dbo].[@CSOURCE] T1 ON T0.U_CSOURCE = T1.Code
                               LEFT JOIN (
                                                SELECT T0.CardCode ,COUNT(T0.DocNum)SONumber                                            FROM ODLN T0 INNER JOIN OCRD T1 ON T0.CardCode = T1.CardCode
                                                WHERE T1.GroupCode =111
                                                AND (T0.DocDate >=@FromDate or @FromDate='')
                                                AND (T0.DocDate <=@ToDate  or  @ToDate ='')                                                                               
    GROUP BY T0.CardCode
                                            ) T2 ON T0.CardCode=T2.CardCode
    WHERE T0.GroupCode =111
    and T0.CardType ='C'
    when I excute the SQL, It return a error , whith says the column name '%0'  is invalid.
    If I delete "set @m=(SELECT count(*)  FROM ORDR T0 WHERE T0.DocDate >=[%0] and  T0.DocDate <=[%1])"
    and rewrite "set  @FromDate='2008.05.01' set  @ToDate='2008.07.01' "
    It Shows the following results
       CardCode     CardName     SONumber     name
    1      000070        Deng. Jiahua   1                newspaper
    2      000293        LU .Weijuan    1                radio
    3      000313         Xie .Jifang       3               TV
    Edited by: Li Mishan on Jul 18, 2008 4:42 AM
    Edited by: Li Mishan on Jul 18, 2008 4:43 AM
    Edited by: Li Mishan on Jul 18, 2008 5:43 AM

  • UDT and UDF - User-defined Tables and Fields

    Dear All,
    I am writing a Query to permit the Cashier to check her Cash entries and balances on a Daily basis.
    Basically, it's a General Ledger, but I want the Query - Selection Criteria window to display only a few GL codes namely GL codes 1240601, 1240602, 1240603 etc.
    I don't know if I am doing it right. This is what I did (SAP B1 8.8):
    UDT
    I created a UDT called TEST2 using:
    Tools -> Customization Tools -> User-defined Tables - Setup
    UDF
    Then I created a field in the UDT called GlCod using User-Defined Fields - Management
    Title : GlCod
    Description : GL Code
    Type : Alphanumeric 30
    Field Data
    In the Field Data window, I ticked the Set Valid Values for Fields checkbox and filled in the blanks as follows:
    #                  Value                Description
    1                 1240601             Cash in Hand (Rs)
    2                 1240602             Cash in Hand (USD Notes)
    3                 1240603             Cash in Hand (Euro Notes)
    etc...
    Query
    Then I wrote my Query (see below).
    When I run it, I get the Selection Criteria screen as I wanted:
    Query - Selection Criteria
    GL Code                                   ...............   (arrow here)
    Posting Date                              ...............
    [OK]                [Cancel]
    When I click on the GL Code arrow, I get a window with the exact choices I need. It looks like this:
    1240601 -  Cash in Hand (Rs)
    1240602 -  Cash in Hand (USD Notes)
    1240603 -  Cash in Hand (Euro Notes)
    Executing the Query
    The Query seems to run normally, but nothing is generated on the screen, and there's no Error Message.
    What can be wrong about this query?
    I suspect that the GL codes in JDT1 and TEST2 are not of the same data type, so that INNER JOIN returns nothing.
    Thanks,
    Leon Lai
    Here's my SQL
    declare @TEST2 TABLE
    (GlCod varchar(30))
    declare @GlCod nvarchar (30)
    set @GlCod =/*SELECT T0.U_GlCod from [dbo].[@TEST2] T0 where T0.U_GlCod=*/  '[%0]'
    declare @refdt datetime
    set @ref=/*SELECT T1.RefDate from [dbo].[JDT1] T1 where T1.RefDate=*/ '[%1]'
    select
    t1.Account as 'GL Code',
    t1.RefDate as 'Posting Date',
    t0.U_GlCod as 'Restricted GL Codes'
    from JDT1 T1
    INNER JOIN @TEST2 T0 ON T0.[U_GlCod] = T1.[Account]
    WHERE
    t1.RefDate <= @refdt
    and
    t0.U_GLCod = @GlCod

    Try this:
    declare @GlCod nvarchar (30)
    set @GlCod =/*SELECT T0.U_GlCod from [dbo].[@TEST2] T0 where T0.U_GlCod=*/  '[%0]'
    declare @refdt datetime
    set @refdt=/*SELECT T1.RefDate from [dbo].[JDT1] T1 where T1.RefDate=*/ '[%1]'
    select
    t1.Account as 'GL Code',
    t1.RefDate as 'Posting Date'
    from JDT1 T1
    WHERE
    t1.RefDate <= @refdt
      and
    T1.[Account] = @GlCod
    (There is no need to declare the memoria table @test2 if you already created one table with this name.
    And there is no need to a join.)
    Edited by: István Korös on Aug 15, 2011 1:27 PM

  • Know about user activity

    Hello,
    We have the need of knowing the following data about users:
    1.- How many time is the user conected every day.
    2.- Which days do users  connect.
    We have tried with the audit, sm19, but the information we need is not there.
    I know with STAT/STAD transaction we can seethese data, but it will be a lot of daily work and we cannot aim that time.
    Do you know any other way to do it? Something like some tables to extract the data and make a report?
    Thanks and best regards,
    Alfonso.

    Hi Alfonso,
    You can query table USR02 which contains informations about user, last logon date (TRDAT) and last logon time (LTIME), but the duration is not stored.  
    Also, report RSUSR200 can record the users logon date and time.
    Br,
    Javier

  • A question about users assigned roles extraction

    Dear all,
    I have a question about users assigned roles list extraction. I need the list of the users who have already been created along with their assigned roles. According to what I found on Google, there is a table named AGR_USERS which provides the roles assigned to each user. Yet, this table provides only the SAP ID of each user along with the assigned roles. What I need more is to have also the first name and second name of each user.
    So, do you know any table providing at least the following information:
    1) First name of each user
    2) Second name of each user
    3) SAP ID of each user
    4) All assigned roles to each user.
    NOTE: I really need to have first name and second name in separate columns
    Thanks in advance,
    Dariyoosh

    >
    Shekar.J wrote:
    > Agr_users for the user ID and role assignments
    > USR02 to check the validity of the User ID
    > and USER_ADDR for the first name and last name
    >
    > You can create a Table join of the above 3 tables to retrieve the data you require
    Thanks to you and others for your attention to my problem
    I don't know anything about ABAP programming, is there any transaction allowing to create this join? As it seems to me the column "UNAME" in the table "AGR_USERS" and the column "BNAME" in the table "USER_ADDR", both refer to the SAP ID of the user. As a result the condition of the join would be "WHERE (UNAME = BNAME)", is there  any transaction/programme allowing to create this join?
    Thanks in advance,
    Dariyoosh

  • 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

  • Practical limitations to user defined table

    Hi all,
    I am thinking of setting up a user defined table which will have 5 columns and around 45,000 rows.  It will be used in a simple formatted search to retrieve the value in column 5 when the values in columns 3 and 4 match an item code and an invoice header code on an invoice. 
    Will a table of this size slow things down significantly?
    Regards, David.

    Hi David,
    It shouldn't be that slow, but if you're worried about performance, you can also add indexes (keys in SBO) to the UDT.
    For that go to User-Defined Field - Managment (I'm using SBO 2007), select the table and press the button Keys. Make sure no one else is connected for you to add the index (not even an add-on), otherwise you'll get an error.
    Hope this helps,
    Ian

  • About user sapsys

    Dear expert,
      I read some message about user sapsys. However, i still could not understand the concept or running mechanism.
    please give me a clear explanation. where can i find this user ? why was there such user sapsys in sm50?.
      thank you very much.

    HI,
    Sapsys is used for internal purpose in SAP server and is not harmful. But if it increases it can be logged off as well. But in many cases sapsys is used for OS jobs, CCMS monitoring hence it may impact if not handled carefully
    SAPSYS is a group. It's used for DEV - QA - PRD to share files (especially /usr/sap/trans), for <SID>adm and ora<SID> to talk to each other and share files also.
    SAPSYS is a user group name in sap os .SAPSYS is an internal communication user, which access the tables from the dictionary and give access to the users.
    Check in SM21 and ST02,
    Thanks
    Ramakrishna.

Maybe you are looking for

  • Unable to get a complete backup of iPhone 3

    I have an iPhone 3 and just got a hand-me-down 4 from my nephew. I've got my AT&T number/account transferred to the iPhone4, and am trying to move everything from the 3 to the 4, and am having a problem getting all the data, apps, etc. backed up to m

  • Problem while postings a MIRO for partial deliveries.

    Hi, We ar facing a problem while posting a Miro for the Planned delivery costs for the import orders. when we receive an item in partial consignment of the same order. The system will allow for the first time to post the deliver cost, after this the

  • The getBuiltInScopes method was not found

      I have an application that has worked for quite a while. I have made no changes to the code since the last time I used it. Basically, the code creates a zip file with input for an involved report. I used it in March of this year it worked fine. I'v

  • HT4946 PROBLEM TO UPDATE TO NEW VERSION OF IOS 5

    i would like to ask about the "where itune backup are restored on your computer". i am following the instruction under the window vista and windows 7, and the note mention that we have to press the "RETURN"key, what is the return key??

  • Parallel Currency Depreciation Areas.

    Hi, I have activated parallel currencies (Hard Currency - EUR & Indexed Based - USD) concept to my company code.  I am trying to settle WBS, that time I am getting error message "Company code XXXX manages parallel currencies in Asset Accounting. For