Import data to User defined table

Dear All
I created a user define table , it is so simple . and I make it as master object and also define it as a form.
I am going to import data from excel file, I also prepared import template form DTW (maintenance interface)
but I cannot import data. always it shows me error (65172).
Would be grateful if you can advice me in this matter.
thanks

Check this Note 804685 - Add records to UDO tables using the DI API
in this link [https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=804685]

Similar Messages

  • Import data in user define table through DTW.

    Hi experts,
    Can any one tell me how can i import data from excle in User define tables through DTW. Is any other way/tool avaliable to
    import data from excel sheet to User define tables
    BR,
    Hari

    Hi Hari,
    I suppose u did not do the following..
    1. Open DTW, in the menu click on advanced and clik on maintain interface...
    2. Now here select the UDT which u want to impot the data.
    3. right click on the UDT and click on Create template for structure
    4. NOw u use this tempalte and try.
    Please inform of the outcome  so that i can think of another soluton.
    Hope it helps,
    Vasu Natari.

  • Update the data in user-defined table

    Dear All,
    Is there anyway we can insert / update the data in user-defined table in a batch instead of update it from the interface one by one? Our customer has 1,000+ data need to be imported.
    They are on SAP2007A SP00 PL45, SQL 2005, CA localization. Thanks a lot.
    Regards,
    yuka

    Dear Yuka,
    If it is UDT, you may use any SQL query to insert, update it. It is not under SAP support anyway.
    Thanks,
    Gordon

  • IMPORT DATA TO USER DEFINED TABLESPACE

    I HAVE FACED A PROBLEM REGARDING IMPORT DATA IN A USER DEFINED TABLESPACE.FOR DOING THIS AT FIRST I HAVE CREATED A TABLESPACE SAY USERS ASSOCIATED WITH A DATAFILE NAME AND PATH IS 'D:\ORACLE\ORADATA\ORCL\USERS01.DBF' ITS SIZE IS 200M.IN THE SAME PATH THERE IS A TEMPORARY TABLESPACE ASSOCIATED
    WITH A DATAFILE NAMED 'D:\ORACLE\ORADATA\ORCL\TEMP01.DBF' ITS SIZE IS 80M.
    THEN ASBESCO USER CREATED IN USERS TABLESPACE THROUGH THIS SQL COMMAND.
    CREATE USER ASBESCO IDENTIFIED BY ASBESCO
         DEFAULT TABLESPACE USERS
         TEMPORARY TABLESPACE TEMP
         QUOTA UNLIMITED ON USERS
         QUOTA UNLIMITED ON TEMP;
    GRANT PRIVILAGE TO ASBESCO USER BY THIS SQL .
    GRANT CONNECT,RESOURCE,DBA TO ASBESCO;
    MY EXPORT FILE NAME IS ASBESCO.DMP WHICH IS EXPORTED FROM ANOTHER MACHINE. I WANT TO IMPORT THIS INTO MY MACHINE'S SPECIFIED TABLESPACE. ITS SIZE IS APPROX 26 MB.
    NOW I MPORT ASBESCO.DMP FILE THROUGH THIS COMMAND..
    IMP SYSTEM/<SYSTEM PASSWORD> FILE= ASBESCO.DMP FROMUSER=ASBESCO TOUSER=ASBESCO.
    AFTER SUCCESSFULL IMPORT OPERATION I HAVE SEEN ALL OBJECTS IN ASBESCO USER ARE CREATED IN SYSTEM TABLESPACE NOT USERS TABLESPACE. WHY?
    IT IS TO BE NOTED THAT I HAVE NOT MENTIONED THE DEFAULT TABLESPACE 'USERS' WHEN I CREATED MY USER OBJECTS.

    Please change to lower case letters
    If the user has UNLIMITYED tablespace privilige
    Revoke it
    If the user has a privelegs on a tablespace
    Revoke it
    Create a new tablespace and assign it to the user as Default tablespace.
    then import

  • How to add data in User Defined table

    Hello Experts,
    I have design form in screen painter , 3 text boxes and labels, 2 add buttons with uid 1 and 2 , and
    i have created tables and fields maually and registered new object i have also mentioned table name and alias in property box with fields i have created with userdefined fields as   ex: U_age etc and table @EMP in property box 
    I am loading this form as xml file to SAP B1 every thing works fine but when i click add button no data is added to table what is the problem
    Please suggest

    Hi,
    Are you using UDO or not?
    If not you have to write code by hand for manage data insert, update, search, and so on...
    Regards.
    Diego

  • Save data into user defined table while save button is triggered in VF01.

    Hi experts,
                  I got a requirement related to performance in our business process.Before saving the billing document in vf01 that means all the data is entered in vf01 and ready to click on save.
             While we click on SAVE button the data is transfered to the related tables like VBRK,VBRP,KONV,VBKD.......so on.
              I created a sales register depending on the above tables.As there are many records it is taking time and if we give 2years data to be displayed it is going to run time.For this i created a ztable and tried to insert in to ztable in the background by an abap program.Till this it is fine but in the database the table i created is taking more space when compared to other tables like vbrk,vbrp,konv,ekko,ekpo.....(huge data tables).
                So i decided to insert the required data of VF01 tcode into ztable simultaneously while they are being saved in VBRK,VBRP,KONV,VBKD.
                    In what way i have to proceed to insert required data of vf01 into my own ztable when we save button is triggered.Pls help me with a sample code if possible.
                  If possible please let me know why ztable is occupying more space in database as  i mentioned above.
                    Helpful answers are rewarded without failure.
    Thanks,
    Anand.

    What is the purpose of all this? Why do you need to duplicate the data in some Z table?
    If this is for some kind of reporting purposes, then look into using the Logistics Info System:
    http://help.sap.com/saphelp_470/helpdata/en/c1/37544e449a11d188fe0000e8322f96/frameset.htm

  • How to fill the records from a User Define Table to PO item Grid

    Hi To all,
    I need to fill data from User Define table records into Purchase Order Item Grid.
    I created an UDF Filed in PO - Header Part - "PRS"(Filed Name)
    By using Formatted Search in itemcode column, i called a query,
    "Select itemcode, qty from (@user define tablename) where PRS = $http://OPOR.U_PRS"
    For eg:
    Output from querry
    ItemCode Qty
    ABC 1
    DEF 2
    DFG 7
    SDGD 9
    By using formatted search it is filling only first data in to itemcode column in PO Grid.
    Please help, how can i fill ALL the data in to my PO Grid?
    Thanks in Advance
    SAGAR

    The easisest way is to create datasource and the result bind to grid.
    Datasource:
               oDBDataSource = oForm.DataSources.DBDataSources.Add("@usertablename")
                Dim xoConditions As SAPbouiCOM.Conditions
                Dim xoCondition As SAPbouiCOM.Condition
                xoConditions = New SAPbouiCOM.Conditions
                xoCondition = xoConditions.Add
                xoCondition.BracketOpenNum = 1
                xoCondition.Alias = "u_zn"
                xoCondition.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                xoCondition.CondVal = "cond"
                xoCondition.BracketCloseNum = 1
                oDBDataSource.Query(xoConditions)
    binding (example for matrix, in grid is simillar)
                oMatrix.Clear()
                Dim cols As SAPbouiCOM.Columns
                Dim column As SAPbouiCOM.Column
                cols = oMatrix.Columns
                column = cols.Item("colX")
                column.DataBind.SetBound(True, "@usertable", "u_x")
    oMatrix.LoadFromDataSource()
    hoep it helps
    Petr

  • 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

  • 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

  • Help needed for data updation in User Defined Tables

    Hello Experts,
    I am developing one add-on in SAP B1 8.8 to input data in a User Defined Table described as under
    Table Name
    DriverMst UDT Type is No Object
    Description
    Stores the Driver master data which are used to get reference in Sale Delivery Form and Driver data management activity
    User defined fields
    Data Name
    Data source
    Size
    Pane Level
    Description
    Driver Code
    Code
    Alphanumeric
    0
    No object table fixed field
    System Name
    Name
    Alphanumeric
    30
    0
    No object table fixed field
    Full Name
    FullName
    Text
    50
    0
    Father Name
    FatherName
    Text
    50
    0
    Birth Date
    BirthDate
    Date
    0
    Phone Number
    PhoneNo
    Alphanumeric
    50
    0
    Mobile No
    MobileNo
    Alphanumeric
    13
    0
    I have created one form using screen painter displaying text boxes and bind them to the table.
    This form is working absolutely fine when there are some data in table (i.e. Browse using navigation)
    My problem is, when I click add button from tool bar the "OK" button turn to "Add" that means the form is set to Add mode, but when I click "Add" button after entering some data nothing happens and input data is not stored in Table. The same "OK" Button turned to "Update" when I do changes in loaded data, but my changes are not reflected to table after I click "Update".

    Thanks Nagarajan,
    None.
    There is no such query. The table fields is directly linked to Edit Box or Combo Box in form.
    From the examples I learned that I have to do something like this to get my table updated
    Dim oUsrTbl As SAPbobsCOM.UserTable
    Dim Res As Integer
    oUsrTbl = oCompany.UserTables.Item("DRIVERMST")
    oUsrTbl.Code = oBPC.Value 'Item Specific of Driver Code Edit Box
    oUsrTbl.Name = Left(oBPN.Value, 30) 'Item Specific of Name Edit Box
    oUsrTbl.UserFields.Fields.Item("U_FullName").Value = oMFN.Value
    oUsrTbl.UserFields.Fields.Item("U_FatherName").Value = oFTHN.Value
    oUsrTbl.UserFields.Fields.Item("U_BirthDate").Value = oDOB.Value
    oUsrTbl.UserFields.Fields.Item("U_PhoneNo").Value = oPHN.Value
    (Similar For rest ofthe fields)
    Res = oUsrTbl.Add()
    Just let me know that is this necessary to do like above.. To be frank there are few more fields and matrices on the form which I didn't mentioned. I am just trying to get recovered from first step to proceed further.
    Regards

  • HOW TO TRANSFER USER DEFINED TABLE DATA IN NEW DATABASE

    Dear all , I am trying to transfer user defined table data,in new database ,can you please tell how i can do it

    Thanks for Quick responce
    I have Following databases
    1) Targate Database EOU TEST
    2) Source database  STI_BLANK
    Table @MACHINE
    I tried But it has some error
    INSERT INTO EOU TEST.@MACHINE
    SELECT STI_BLANK.@MACHINE* FROM STI_BLANK.@MACHINE
    Edited by: Abhijit Bhise on Apr 1, 2010 3:27 PM
    Edited by: Abhijit Bhise on Apr 1, 2010 3:28 PM

  • User Defined Table locked when multi users try to save data?

    Hi All,
    I am having a problem with User Define Table (UDT). I am just checking if somebody having the same problem as mine (any patch level).
    I've developed an add-on to save additional data to some UDTs upon saving a Production Order. I added my code in FormDataEvent (After Action = True and ActionSuccess = True).
    Here are my sequences to save the data:
    1. Start Transaction
    2. Remove Existing Data from 3 UDTs linked to the production order number.
    3. Save to table 1, using UserTable object
    4. Call function A to save to table2 , using UserTable object
    5. Call function B to save to table 3, using UserTable object
    6. Commit Transaction.
    Note: I have a try catch and rollback the transaction if any exception thrown by .NET and SAP. Below are parts of my coding to handle exception from SAP
                    If oUserTable.Add() <> 0 Then
                        oCompany.GetLastError(ErrCode, ErrMsg)
                        Throw New ApplicationException(ErrCode & "-" & ErrMsg)
                    End If
    in the try catch block, i add the following code
                If oCompany.InTransaction Then
                    oCompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_RollBack)
                    SBO_Application.MessageBox("[SaveRoute]:" & ex.Message)
                    Return False
                End If
    Now, the issue is in some occasions, when multi users try to save the Production Order, the data get deleted from the UDTs, but some of the data did not get saved yet it did not throw an exception. From our observation, it only happens when multi users are trying to save to the same table.
    Does anybody having the same or similar issue? Really appreciate if you can share on this.
    Many Thanks,
    Harianto Ng

    I Believe you should look carefully where in your code writting, you should start transaction and be sure of using end.transaction commit if the insert sends a succesfull message, and rollback it for negative message.
    I used to start transacción right before .add method
    Wha DBMS are u using?
    Hope it helps.

  • Uploading Data in a User Defined table

    Hello Experts,
    I have a user defined table YFEED_TABLE_2 as a local object in the System. i want to upload some data from TEXT file to the table using LSMW TCode..
    But after selecting  u201CMaintain Object Attributesu201D in LSMW transaction...in the "STANDARD BATCH/INPUT METHOD", I have select an Object like Vendor master, material master,...few more are there...
    i don't know which object to Choose...how could i know that object is mapped to the target table  YFEED_TABLE_2 ...
    Please Help....
    Anupam...

    >
    Ankur Parab wrote:
    > Hi,
    > Use BDC recording method in LSMW and do a recording of SM30 transaction to maintain data in your Z table.
    >
    > Regards,
    > Ankur Parab
    Please tell me the procedure to perform BDC recording in LSMW & do a recording of SM 30 transaction???
    COuld please also tell me how to perform a new recording in transaction SHDB???
    Please Help...
    Anupam.,...

  • How to read and write data to a user defined table?

    I have created a srf with 2 edit box and a ok buttin, I want to insert data to the user defined table i created using sql query while i press OK button..
    Please provide the complete code to insert and select da from the user defined table.

    Hi,
    You can use the code below.
    Dim ret As Long
    d
    Private Sub Add_Table_Click()
        Dim oUserTablesMD As SAPbobsCOM.UserTablesMD
        Set oUserTablesMD = oCompany.GetBusinessObject(oUserTables)
        ' When adding user tables or fields, use a prefix
        ' identifying your partner name space. This will
        ' prevent collisions from different partner add-ons
        ' SAP's name space prefix is "BE_"
        'Set the two mandatory fields
        oUserTablesMD.TableName = "T1"
        oUserTablesMD.TableDescription = "Table1"
        'Add the table (which contains 2 default, mandatory fields, 'Code' and 'Name')
        ret = oUserTablesMD.Add
        If ret <> 0 Then
            oCompany.GetLastError ret, Str
            MsgBox Str
        Else
            MsgBox "Table: " & oUserTablesMD.TableName & " was added successfully"
        End If
    End Sub
    Private Sub Add_UDF_Click()
        Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
        Set oUserFieldsMD = oCompany.GetBusinessObject(oUserFields)
        oUserFieldsMD.TableName = "T1"
        oUserFieldsMD.Name = "AlbUDF"
        oUserFieldsMD.Description = "Albert UDF"
        'Add the field to the table
        lRetCode = oUserFieldsMD.Add
        If lRetCode <> 0 Then
            oCompany.GetLastError ret, Str
            MsgBox Str
        Else
            MsgBox "Field: '" & oUserFieldsMD.Name & "' was added successfuly to " & oUserFieldsMD.TableName & " Table"
        End If
    End Sub
    Private Sub Add_Data_Click()
        Dim oUserTable As SAPbobsCOM.UserTable
        Set oUserTable = oCompany.UserTables.Item(1)
        oUserTable.GetByKey ("T1")
        'Set default, mandatory fields
        oUserTable.Code = "A"
        oUserTable.Name = "Albert"
        'Set user field
        oUserTable.UserFields.Fields.Item("U_AlbUDF").Value = "1"
        oUserTable.Add
        If ret <> 0 Then
            oCompany.GetLastError ret, Str
            MsgBox Str
        Else
            MsgBox "Value to field: '" & oUserTable.UserFields.Fields.Item("U_AlbUDF").Name & "' was updated successfuly to " & oUserTable.TableName & " Table"
        End If
    End Sub
    Regards,
    Noor

  • USER DEFINED TABLES IN XL REPORTER

    Hello,
    I have a user defined field based on a user defined table with code and name. I call my user defined field in XL reporter. This field varied with the data that I report. I would like to know how I can add the name of the table in my XL report. We can call additionnal tables, but I don't know how I can write the instruction to do it with a variable field.
    Thanks
    Isabelle LAGUERRE
    Serena
    France

    Isabelle,
    Usere Defined Tables are not supported by the XL Report Writer.  There is not a method to import UTD's at this time.  User Defined Fields (UDF's) are supported.
    Eddy

Maybe you are looking for

  • AD - SunDS 5.2 minumal access rights required to set passwords in DS

    Hi, I am doing Identity Integration for one of our clients with MIIS 2003. Among other connections we will have: MS Active Directory -> Sun DS 5.2 I have already set up password synchronization pushed out from AD to DS and it works just fine. What I

  • FI AR: Partial payments for open invoices

    Hi Experts, Greetings to all. We are using standerd data source 0FI_AR_04, Our data flow is Data source to DSO 0FIAR_O03 to CUBE 0FIAR_C03. Could you please tell me how to calculate due date analysis for partial payments. I checked the SAP note 52223

  • My "edit playlist" button has disappeared!

    Recently, my "edit playlist" button has disappeared all together when I right-click a playlist. I do know how to manually add to a playlist, but it's inconvenient. It's there when I click File, but I can't click on it. I've tried calling Apple, but o

  • Help!about AVCustomRecv.java

    Hi,anyone has tried the sample program "AVCustomRecv.java"from sun?I'm using it to receive the RTP data AVCustomTrans.java generated,but it does not work.Here is the message: Registered payload 101 as: mypcm/rtp, Unknown Sample Rate - Open RTP sessio

  • ASG_START_EVENT_IND should update all to 0 if TERM

    I am facing this scenario ASSIGNMENT_ID ASG_START_EVENT_IND W_EVENT_SUBG_CODE EVENT_CODE 4897 1 ASG~START ASG~START 4897 0 TERM~INVOLUNTARY TERM~INVOLUNTARY~I-RESIGN~ON~AGREEMENT ASG_START_EVENT_IND should update all to 0 if TERM, but oracle doesn't