User Table Keys

Dear All,
I observed a button "Keys" in the "User Defined Fields-Management" screen. What is the purpose of the button and how can we utilise the keys?
Regards
Bharath S

Hi Bharath,
Refer This......
Link: [url] Functions of 'Keys' button in UDF management
Link: [url] How to make a User Defined Field to take only unique values?
Thanks
Shafi

Similar Messages

  • User Table Key set up in User defined field management

    Dear  Expert,
    what is use of User Table Key set up in User defined field management in SAP B1.
    Thanks.
    Sridharan.R
    Edited by: Sridharan.R on Oct 4, 2011 8:26 AM

    Hi,
    Once a UDF is created and a value is entered in it, the same cannot be retrieved in any of the layouts and reports unless a Key is generated for that UDF. By assigning a Key to that UDF, the same UDF can be used in Crystal Reports or any other Reporting tool to extract its values from SAP. These reporting tools searches the Uniqueness of the UDF Values with this Keys only.
    For eg.: When you develop a report and select a table from which you need the fields to be shown in the layout. In that, the only fields whose keys are generated are only available to use in the report.
    Hope its clear to you.
    Regards,
    Papil

  • Foreign keys to same table / Who columns in User table???

    Hi All,
    We are designing a database for our client and we are using common columns in all tables like CreatedBy and UpdatedBy which are foreign keys to USER table. My question is can we use these two columns in USER table and have the foreign key constraints to the same tables?
    USER table script will look like following..
    CREATE TABLE XX_USER
         User_ID                              VARCHAR2(10)
    ,     CreatedBy                         NUMBER(10)
    ,     UpdatedBy                         NUMBER(10)
    ,     User_Name                         VARCHAR2(100)     NOT NULL
    ,     Designation                         VARCHAR2(100)     NOT NULL
    ,     CONSTRAINT USER_ISACTIVE_CHECK CHECK (Is_Active in ('Y', 'N'))
    ,     CONSTRAINT USER_KEY PRIMARY KEY (User_ID),
    ,     CONSTRAINT USER_CREATED_BY FOREIGN KEY (CREATED_BY)
         REFERENCES XX_USER (USER_ID)
    ,     CONSTRAINT USER_UPDATED_BY FOREIGN KEY (UPDATED_BY)
         REFERENCES XX_USER (USER_ID)
    );I think what I am doing (the above script) is not correct. Could someone please suggest me how can solve this issue?
    Thanks in advance,
    Oraebs

    user8644385 wrote:
    We are designing a database for our client and we are using common columns in all tables like CreatedBy and UpdatedBy which are foreign keys to USER table. My question is can we use these two columns in USER table and have the foreign key constraints to the same tables?You can. After fixing synatx errors:
    SQL> CREATE TABLE XX_USER
      2  (
      3   User_ID        VARCHAR2(10)
      4  , CreatedBy     NUMBER(10)
      5  , UpdatedBy     NUMBER(10)
      6  , User_Name     VARCHAR2(100) NOT NULL
      7  , Designation   VARCHAR2(100) NOT NULL
      8  , Is_Active     VARCHAR2(1)
      9  , CONSTRAINT USER_ISACTIVE_CHECK CHECK (Is_Active in ('Y', 'N'))
    10  , CONSTRAINT USER_KEY PRIMARY KEY (User_ID)
    11  , CONSTRAINT USER_CREATED_BY FOREIGN KEY (CreatedBy)
    12       REFERENCES XX_USER(USER_ID)
    13  , CONSTRAINT USER_UPDATED_BY FOREIGN KEY (UpdatedBy)
    14       REFERENCES XX_USER(USER_ID)
    15  )
    16  /
    Table created.
    SQL> Now USER_ID is a string while CreatedBy/UpdatedBy is a number. Even though it is allowed, it limits USER_ID to numeric strings and causes implicit conversions while validating. So I would change CreatedBy/UpdatedBy data type to VARCHAR2(10).
    SY.

  • Adding keys to user tables

    In the process of trying to add a key to a user table, I am being told that there are other users attached to the database.  The only user attached to the database is me and I have no other connections running that I know of.  The process continues if I click on the ignore button but then fails with the message "other users are currently connected to the database".  Any suggestions?

    Hi Greg,
    Which database platform are you using?
    If it's SQL then I recommend you check the Current Activity node in SQL Enterprise Manager (or the Activity Monitor in SQL Server Management Studio if you are using SQL 2005). If there are any processes linked to the database then they will show up in this screen, regardless of their source (e.g. SBO, ODBC etc). If you are sure that the process can be safely removed then you can right-click it and choose Kill Process. Repeat until there are no unwanted processes on the database.
    An alternative is just to stop and restart the SQL Server service but obviously you'd need to make sure that no users were connected to it via any applications.
    Hope this helps,
    Owen

  • MRP Run with User Exit key for Follow up material

    Dear Gurus,
    I want to run MRP only for followup materials by using User exit key. For example i have a material X(with discontinued Indicator as 1) and it's follow material is Y.
    So we have a user exit key as ZFL, with coding as shown below. Now when i run MD01 with user exit key ZFL and parametre as 1, it only runs MRP for material X and not for material Y. What else we need to do so that when i run MD01 with user exit key ZFL, it shoudl consider both X and Y. 
    WHEN 'ZFL'.
    DATA : BEGIN OF ITAB5 OCCURS 0,
    KZAUS LIKE MT61D-KZAUS,
    END OF ITAB5.
    TRANSLATE USER_PAR TO UPPER CASE.
    SPLIT USER_PAR AT ',' INTO TABLE ITAB5.
    IF ITAB5[] IS INITIAL.
    EXIT.
    ENDIF.
    CLEAR: NO_PLANNING, STOP_PLANNING.
    READ TABLE ITAB5 WITH KEY KZAUS = MT61D-KZAUS.
    IF SY-SUBRC <> 0.
    NO_PLANNING = 'X'.
    ENDIF. 

    Hi Kumar,
         You can use either MRP Type, MRP Controller, MRP Group in this user exit to control the MRP run. For these set of Materials you have to assign any of same value or at least differentiate these material from other material. Then only you can control the MRP by using this user exit even though if you use different MRP Group and MRP Controller. In User Exit, you may have to add your dependent material's MRP Group/MRP Controller. Make sure that these set of materials are different than all other materials.
    If you don't have any plan to run MRP for other materials then as per Ajit suggestion you make that material's MRP type as "ND". But, in your business case they may want to activate the MRP for all the material not now but may be latter.
    Thanks

  • User tables belonging to the dbo schema were found in the database...

    Hi
    I´m running SAP on windows server 2003 R2 x64 sql 2005.
    I have installed a sandbox system based on NW 7.01 SR1 ECC 6.0. It´s only abap.
    After that I wanted to make a system copy of our production system to the the sandbox. So my sql colleague took a full backup of the production database and restored it into the sandbox.
    Now I´m trying to run the system copy installation sapinst - SAP ERP 6.0 EHP4 Ready (Support Release 1) - Sotware life Cycle Options - System Copy - MS SQL Server - Target System Installation - Central System - Based on AS ABAP - Central System...
    I choose custom and say it´s a Homogeneus System Copy (MS SQL Servver-specific)
    After that I choose "Use existing database" but the it say:
    *User tables belonging to the dbo schema were found in the database ES0. SOLUTION: You can only install an SAP system in a database with no user objects belonging to the system schema dbo. If there already is an SAP system in the database (MCOD), or you install a Java Add-In, you might have to convert the existing system to its own schema, or contact your SAP support.*
    I have searched the forums and can´t find anything I can use. I found someone wrote that I should change the control.xml file under sapinst directory:
    Proceed as follows:
    1. Stop SAPinst.
    2. Open the file control.xml in the sapinst log directory and look for the following lines:
    AllowNew: mig ? ?false? : ?true?,
    AllowDboObjects: mig ? ?true? : ?false?,
    3. Change these lines to
    AllowNew: ins ? ?true? : ?false?,
    AllowDboObjects: ins ? ?false? : ?true?,
    4. Save the control.xml, restart SAPinst and choose ?Continue old installation?.
    but it is not helping.
    Please advise me.
    If this is the wrong forum please tell which one is correct.
    Best regards
    Thomas
    Edited by: Thomas Aastrøm on Feb 23, 2012 3:49 PM

    Hi again
    Phase 11 is ok now. We changed the database owner to sap SIDadm.
    But now it fails at phase 12 (Move MS SQL Server objects from one schema to another)
    An error occurred while processing option SAP ERP 6.0 EHP4 Ready - Support Release 1 > Software Life-Cycle Options > System Copy > MS SQL Server > Target System Installation > Central System > Based on AS ABAP > Central System. You can now:
    Choose Retry to repeat the current step.
    Choose View Log to get more information about the error.
    Stop the option and continue with it later.
    Log files are written to C:\Program Files/sapinst_instdir/ERPEhP4/LM/COPY/MSS/SYSTEM/CENTRAL/AS-ABAP/.
    sapinst.log:
    INFO 2012-02-24 13:18:55.427
    Execute step MoveSchema of component |NW_ABAP_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_MSS_DB|ind|ind|ind|ind|2|0|MssSysCopy|ind|ind|ind|ind|10|0|MssSchemaMove|ind|ind|ind|ind|2|0
    ERROR 2012-02-24 13:18:56.349
    FCO-00011  The step MoveSchema with step key |NW_ABAP_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_MSS_DB|ind|ind|ind|ind|2|0|MssSysCopy|ind|ind|ind|ind|10|0|MssSchemaMove|ind|ind|ind|ind|2|0|MoveSchema was executed with status ERROR .
    ERROR 2012-02-24 13:18:56.146
    MDB-05053  Errors when executing sql command: [Microsoft][ODBC SQL Server Driver][SQL Server]Object 'ep0.AFKO' does not exist or is not a valid object for this operation.
    <p> SOLUTION: If this message is displayed as a warning, you can ignore it. If this is an error, contact SAP support.</p>
    INFO 2012-02-24 13:19:02.583
    An error occured and the user decided to retry the current step: "|NW_ABAP_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_MSS_DB|ind|ind|ind|ind|2|0|MssSysCopy|ind|ind|ind|ind|10|0|MssSchemaMove|ind|ind|ind|ind|2|0|MoveSchema".
    ERROR 2012-02-24 13:19:02.770
    FCO-00011  The step MoveSchema with step key |NW_ABAP_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_MSS_DB|ind|ind|ind|ind|2|0|MssSysCopy|ind|ind|ind|ind|10|0|MssSchemaMove|ind|ind|ind|ind|2|0|MoveSchema was executed with status ERROR .
    What to do?
    Best Regards
    Thomas

  • Link Button to User Table

    Hi. I have tried to search for this but cant get anything. I know how to add a link button to a matrix column when the link is to an SBO Business Object. what i need to do is to add add a link button to a user table.

    Hi,
       Sorry for delayed reply. I will be active in weekends.
    STEP 1: Catch The Event
    STEP 2: Load The New Form using code and Keep the form invisible
    STEP 3: Assign The Key Value To The form through your coding
    STEP 4: Navigate to Key value through code/write logic to get retrive details for given Key value of scree
    STEP 5: Make the form visible.
    HTH.
    With Regards
    B.Ravi Shankar

  • Help with setting up User Table/Picklist

    Hello:
    I am creating an application where I am using a custom authentication scheme and capturing all user information in a separate table. When the user logs in it will refer to the table to identify a user name and password stored in the table.
    I am allowing users to create their own user accounts which will default to basic access levels. Further along in the process users will be required to select an individual to approve something. I want to use a pick list so that the approver name is entered consistently every time. The user table has the following format:
    Column Name Data Type Nullable Default Primary Key
    USERNAME VARCHAR2(8) No - 1
    PASSWORD VARCHAR2(8) No - -
    FNAME VARCHAR2(30) No - -
    LNAME VARCHAR2(30) No - -
    EMAIL VARCHAR2(50) No - -
    ADMIN VARCHAR2(1) Yes - -
    APPROVER VARCHAR2(1) Yes - -
    I'd like the users to be able to select from a pick list that displays LNAME, FNAME. I don't know how to have both fields show up in a pick list.
    Alternatively I'd like (if possible) to keep the two seperate fields for the creation of the user accounts so that I can get a consistent LNAME, FNAME format and people aren't entering it backwards (i.e. Smith, Joe v. Joe Smith).
    If I cannot show the two fields in the picklist, is there a way where I could add a self calculating filed to the table that will concatenate LNAME", "FNAME?
    Thanks for any help you can provide.

    RKD,
    Create a dynamic list of values.
    select lname||', '||fname displayed, username returned
    from user
    order by 1You can display anything you want, independent of the returned value. And that includes concatenating items together (or doing other calculations/manipulations).
    -David

  • How to find Apex user table

    Hello,
    Please let me know, how to find the apex user table. I need to validate unique user based on the same, for which I am using below function,
    DECLARE
    VAL BOOLEAN;
    BEGIN
    VAL := APEX_UTIL.IS_USERNAME_UNIQUE(p_username =>
    :P6_USERNAME );
    END;
    However in this case it is returning always 'FALSE', saying new user exist.
    Kindly help me in fixing this issue.

    Hello Andre,
    I am validating records from apex_workspace_apex_users, to check whether user is present or not,
    While creating validation, I select SQL-> Not Exist and below query,
    select 1 from apex_workspace_apex_users where user_name = :my_user.
    If this record is present, it should throw an customised error, however it shows the error of "Unique key violation error...".
    Can you please help me out whether while creating validation I should select (EXIST or NOT Exist). Since I am still confuse with the same.
    Thanks,
    Girish

  • FNDLOAD lcts for User Tables, EIT Definitions, Elements

    Hi,
    Can someone point me to lcts for the following :
    1. HRMS user tables (structure and values)
    2. EIT definition and values (Generic one or particular to Life Event Extra information)
    3. Element and element link definitions.
    Regards.

    Hi Vinayak,
    We wrote our own custom LCT file to migrate Links. iSetup doesn't provide migration for element links.
    Ofcourse - you may need to edit the API call as we needed few segments to migrate.
    # $Header: ele_links.lct 1.0.0.0 2007/01/18 12:41:05 appldev ship $
    # links.lct - LINK loader file
    # -- DEFINE SECTION --
    # Entities:
    # LINK_INFO
    # Parameters:
    # BUSINESS_GROUP_ID
    # ELEMENT_NAME
    DEFINE LINK_INFO
    KEY BUSINESS_GROUP_ID VARCHAR2(100)
    KEY ELEMENT_NAME VARCHAR2(100)
    BASE ELEMENT_BG_ID VARCHAR2(100)
    BASE ELEMENT_LEG_CODE VARCHAR2(100)
    BASE BUSINESS_GROUP_NAME VARCHAR2(100)
    BASE EFFECTIVE_START_DATE VARCHAR2(100)
    BASE EFFECTIVE_END_DATE VARCHAR2(100)
    BASE COSTABLE_TYPE VARCHAR2(100)
    BASE LINK_TO_ALL_PAYROLLS_FLAG VARCHAR2(100)
    BASE MULTIPLY_VALUE_FLAG VARCHAR2(100)
    BASE STANDARD_LINK_FLAG VARCHAR2(100)
    BASE TRANSFER_TO_GL_FLAG VARCHAR2(100)
    BASE COSTING_SEGMENT11 VARCHAR2(100)
    BASE BALANCING_SEGMENT11 VARCHAR2(100)
    END LINK_INFO
    # -- DOWNLOAD SECTION --
    # For each entity, specify the SQL statement to use to flesh out
    # its entity definition. SELECT columns must be in same order and
    # datatype as the entity's attributes as defined above.
    # Convert dates to varchar2 using:
    # to_char(sysdate, 'DD/MM/YYYY')
    # Protect against null parameter passing using
    # and (:parm is null or (:parm is not null and col like :parm))
    # -- DOWNLOAD SECTION --
    # For each entity, specify the SQL statement to use to flesh out
    # its entity definition. SELECT columns must be in same order and
    # datatype as the entity's attributes as defined above.
    # Convert dates to varchar2 using:
    # to_char(sysdate, 'DD/MM/YYYY')
    # Protect against null parameter passing using
    # and (:parm is null or (:parm is not null and col like :parm))
    DOWNLOAD LINK_INFO
    "select l.business_group_id, t.element_name,
    t.business_group_id element_bg_id,
    t.legislation_code element_leg_code, b.name business_group_name,
    '1900/01/01 00:00:00' effective_start_date,
    fnd_date.date_to_canonical(l.effective_end_date),
    l.costable_type, l.link_to_all_payrolls_flag, l.multiply_value_flag,
    l.standard_link_flag, l.transfer_to_gl_flag,
    c.segment11 cost_seg11, bc.segment11 balance_seg11
    from pay_element_links_f l, per_business_groups b, pay_element_types_f t,
    pay_cost_allocation_keyflex c, pay_cost_allocation_keyflex bc
    where l.business_group_id = :BUSINESS_GROUP_ID
    and l.business_Group_id = b.business_group_id
    and l.element_type_id = t.element_type_id
    and t.element_name = nvl(:ELEMENT_NAME, t.element_name)
    and trunc(sysdate) between t.effective_start_date
    and t.effective_end_date
    and l.cost_allocation_keyflex_id = c.cost_allocation_keyflex_id(+)
    and l.balancing_keyflex_id = bc.cost_allocation_keyflex_id(+)"
    # -- UPLOAD section --
    # For each entity, specify the pl/sql block to use to upload the
    # entity into the database. Bind names must match DEFINE attribute names.
    # If the relevant tables have table handlers defined, use the LOAD_ROW
    # procedure.
    # Non-leaf entities must include the BEGIN keyword.
    # Child entities may use bind names from their parents' definitions.
    # Use command line parameters to control branching between desired behavior.
    # For example, in the upload statement below, we use the parameter
    # UPLOAD_MODE to specify whether we are doing a regular upload or a
    # special upload of translated columns.
    UPLOAD LINK_INFO
    " Declare
    l_tmp NUMBER;
    cursor link_csr (p_bg_id NUMBER, p_et_id NUMBER) is
    select element_link_id
    from pay_element_links_f
    where business_group_id = p_bg_id
    and element_type_id = p_et_id;
    cursor elem_csr (p_bg_id NUMBER, p_el_nm VARCHAR2) is
    select element_type_id
    from pay_element_types_f
    where ((:ELEMENT_BG_ID IS NULL AND
    legislation_code = :ELEMENT_LEG_CODE)
    or (:ELEMENT_BG_ID IS NOT NULL AND
    business_group_id = p_bg_id))
    and element_name = p_el_nm;
    l_bg_id NUMBER;
    l_et_id NUMBER;
    l_link_id NUMBER;
    l_ed DATE;
    l_esd DATE;
    l_eed DATE;
    l_comment_id NUMBER;
    l_ovn NUMBER;
    l_warn BOOLEAN;
    l_cost_segs VARCHAR2(1000);
    l_bal_segs VARCHAR2(1000);
    Begin
    l_bg_id := 456; --- Either hard code this or pass it as parameter...
    open elem_csr (l_bg_id, :ELEMENT_NAME);
    fetch elem_csr into l_et_id;
    If elem_csr%NOTFOUND Then
    Close elem_csr;
    raise_application_error(-20001, 'Unable to find Element Name: ' ||
    :ELEMENT_NAME);
    End If;
    Close elem_csr;
    open link_csr(l_bg_id, l_et_id);
    fetch link_csr into l_link_id;
    If link_csr%NOTFOUND Then
    close link_csr;
    l_ed := fnd_date.canonical_to_date(:EFFECTIVE_START_DATE);
    pay_element_link_api.create_element_link
    (p_effective_date => l_ed
    ,p_element_type_id => l_et_id
    ,p_business_group_id => l_bg_id
    ,p_costable_type => :COSTABLE_TYPE
    ,p_link_to_all_payrolls_flag =>
    :LINK_TO_ALL_PAYROLLS_FLAG
    ,p_standard_link_flag => :STANDARD_LINK_FLAG
    ,p_transfer_to_gl_flag => :TRANSFER_TO_GL_FLAG
    ,p_cost_segment11 => :COSTING_SEGMENT11
    ,p_balance_segment11 => :BALANCING_SEGMENT11
    ,p_cost_concat_segments => l_cost_segs
    ,p_balance_concat_segments => l_bal_segs
    ,p_element_link_id => l_link_id
    ,p_comment_id => l_comment_id
    ,p_object_version_number => l_ovn
    ,p_effective_start_date => l_esd
    ,p_effective_end_date => l_eed);
    l_eed := fnd_date.canonical_to_date(:EFFECTIVE_END_DATE);
    If l_eed != to_date('31-DEC-4712', 'DD-MON-YYYY') Then
    l_ed := l_eed;
    pay_element_link_api.delete_element_link
    (p_effective_date => l_ed
    ,p_element_link_id => l_link_id
    ,p_datetrack_delete_mode => 'DELETE'
    ,p_object_version_number => l_ovn
    ,p_effective_start_date => l_esd
    ,p_effective_end_date => l_eed
    ,p_entries_warning => l_warn);
    End If;
    Else
    dbms_output.put_line('Link already exists for element: ' || :ELEMENT_NAME);
    End If;
    End; "
    Edited by: vaibhav468 on Sep 28, 2009 4:44 PM

  • How do I create new user table in program and then access it?

    I am writing an application where I check for the existence of user objects when the add on starts and run the setup if the objects do not exist. I can create the user tables and fields but after the setup completes these objects still are not visible.
    If the user objects exist when the add on is first run everything is detected correctly.
    When a user object is added in SAP the user is eventually prompted to restart so I suspect something needs to happen prior to the add on being able to use the new fields.
    Does the add on need to wait for the DI Server to perform some action? Do I need to just quit the add on's class and rerun it, disconnect and reconnect to the company, or get a new Application and/or company object?
    What I want to do is figure out a way for the add on to automatically run the configuration if the user tables and fields do not exist yet and then kick off the regular add on code. I haven't seen anyone else's code so I don't know what is recommended or required here.
    Thanks for any assistance!

    I found that the add on can validate the existance of the user fields if I disconnect from the company object, set the SAPbouiCOM.Application and SAPbobsCOM.Company objects to null, set the new application, context, and company objects, and reconnect once more.
    HOWEVER...
    I still have to wait for the client to be restarted manually before I can run any of the form I added to the menu.
    So, I'd still like to know what the best practice is here. Should I just exit after setting up the tables and tell the user to restart SAP?

  • Crystal Report error trying to retrieve data from a user table

    Hi,
    I'm making crystal report application with VS 2005 and I need to retrieve data form a user table. I'm using Pull method, I configure the connection and parameters by code.
    I think that the problem could be the @ that is used to identify these tables. Please, if some body had this problem before and have a solution, please let me know asap.
    Thanks

    Hi Andrea,
    I had the same problem today. I upgraded from Crystal Version 8 to 11 and the problem was solved. Maybe it is too late for you, but I wanted to post the solution if anybody else has the same problem.
    Regards
    Guillermo

  • HOW CAN I ADD/UPDATE/INSERT IN A USER TABLE WITH MATRIX

    Hi All,
    I have one User table (Defined as No Object) and what i need to do is a form with a matrix to Add/Update/Delete data in my user table.
    I already create the form and the matrix that already give me the user table data. But now i have several problems to solve.
    First I try to add a new row but this new row get the data of the last row in the matrix. What i needed is a blank row to add new data in the user table.
    Second, when i change data in matrix and do update in the form, sap show me the message that the operation is successfully done but the data in the user table in not updated.
    I am trying to do one forma like whe can find in Setup-> General -> Freight.
    Can anyone help me?
    Best Regards,
    Luis Duarte

    Hi,
    If ur dealing with a simple form like that U can as well use the direct table form, and just provide a FMS to auto matically fill the code and name. U can directly use the form by.. Tools-->UserDefined Windows
    Or
    Comming to ur problem.... when ur adding a new row clear the data sources so that u'll get a blank row.
    And for update the best thing to do is delete all the records in the table and again insert all the records directly from the matrix.
    Hope it helps,
    Vasu Natari.

  • How to save matrix do user table?

    Hi,
    I have created on system form matrix as:
                        oNewItem = oOrderForm.Items.Add("a", SAPbouiCOM.BoFormItemTypes.it_MATRIX)
                        oNewItem.Top = 150
                        omatrix1 = oNewItem.Specific
                        oColumns = omatrix1.Columns
                        oColumn = oColumns.Add("#", SAPbouiCOM.BoFormItemTypes.it_EDIT)
                        oColumn.TitleObject.Caption = "#"
                        oColumn.Width = 20
                        oColumn.Editable = False
                        oColumn = oColumns.Add("code", SAPbouiCOM.BoFormItemTypes.it_EDIT)
                        oColumn = oColumns.Add("name", SAPbouiCOM.BoFormItemTypes.it_EDIT)
                        oColumn = oColumns.Add("cesta", SAPbouiCOM.BoFormItemTypes.it_EDIT)
    This matrix i have bounded to datasource as:
                oDBDataSource = oOrderForm.DataSources.DBDataSources.Add("@SKIL_ATTACH")
                oConditions = New SAPbouiCOM.Conditions
                oCondition = oConditions.Add
                oCondition.BracketOpenNum = 2
                oCondition.Alias = "U_PATH"
                oCondition.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                oCondition.CondVal = "xxx"
                oCondition.BracketCloseNum = 1
                oDBDataSource.Query(oConditions)
                oItem = oOrderForm.Items.Item("a")
                omatrix1 = oItem.Specific
                oColumns = omatrix1.Columns
                oColumn = oColumns.Item("cesta")
                oColumn.DataBind.SetBound(True, "@SKIL_ATTACH", "U_XCESTA1")
                oColumn = oColumns.Item("code")
                oColumn.DataBind.SetBound(True, "@SKIL_ATTACH", "CODE")
                oColumn = oColumns.Item("name")
                oColumn.DataBind.SetBound(True, "@SKIL_ATTACH", "NAME")
                omatrix1.LoadFromDataSource()
    The user table has 3 my fields (U_Path, U_xcesta and U_xcesta1) abd 2 fileds (code and name) - this two fields i didnt create, i think that are some system fields?
    On the system form everything seems to be ok, I can add rows, modify data, set new data, ... After changing any data in this matrix, the system button will change from OK to Update or Add and after click on this button in status bar is OK, the data was added or updated...
    The problem is, that in user table aren`t data modified and there are still old data.
    I tried to make update manually as:
                    oItem = oOrderForm.Items.Item("a")
                    omatrix1 = oItem.Specific
                    omatrix1.AddRow(1, 0)
                    Dim cell As SAPbouiCOM.Cell
                    Dim col As SAPbouiCOM.Column
                    Dim ed As SAPbouiCOM.EditText
                    col = omatrix1.Columns.Item("code")
                    cell = col.Cells.Item(1)
                    ed = cell.Specific
                    ed.String = CStr("some data")
                    omatrix1.Columns.Item("cesta").Editable = True
                    omatrix1.Columns.Item("cesta").Cells.Item(1).Click(SAPbouiCOM.BoCellClickType.ct_Double)
                    omatrix1.FlushToDataSource()
                    omatrix1.AddRow(1, 1)
    but nothing happens and data in table are still old. What I`m doing bad? Could anyone help me please?
    Please be patient, because Im working with SBO for short time. Thanks!

    I solved is through manual updating and inserting to database as"
                        oUserTable = oCompany.UserTables.Item("SKIL_ATTACH")
                        oOrderForm.DataSources.DataTables.Item(0).ExecuteQuery("SELECT coalesce(max(convert(integer, code)),0) as max from dbo.[@SKIL_ATTACH] with(nolock)")
                        oUserTable.UserFields.Fields.Item("U_Popis").Value = "xxxxx"
                        oUserTable.UserFields.Fields.Item("U_PATH").Value = "xxxxx"
                        oUserTable.UserFields.Fields.Item("U_OP").Value = "xxxxx"
                        lRetCode = oUserTable.Add
    It works, but I think that it is not the easiest way.

  • How to bind the data from user table into user report

    Hi All,
      Please assist me to bind the data from user table into user report. I did create an user table with data and create a user report template (using Query Print Layout). How can I display my data into report format which I created before? Any sample program or document I can refer?
    Platform: SAPB1 2005A
    Add On Language: VB.Net 2003
    Thanks.
    rgds
    ERIC

    Hi Ibai,
      Thanks for your feed back. I give you an example.
    Let say now i wanna print employee list, so i will go
    1. Main Menu -> Reports -> HR -> Employee List
    2. Choose the Selection Criteria -> OK
    3. Matrix will display (Employee List)
    4. I can print the report click on print button
    5. Printing report
    My target
    1. Main Menu -> Eric_SubMenu -> Employee List
    2. Matrix will display (Employee List)
    3. Print button
    4. Print report
    My problem
    Now I would like to use my own report format. My own report format means I wanna add on my logo or do some customization within the employee report. So how I am going to do? I only able to display the employee list in matrix. How do I create a new report format and display it.
    Thanks.
    rgds
    ERIC

Maybe you are looking for

  • Connect a pc to my network?

    I have an imac G5 connected to the internet with an airport extreme and my new roommate has the misfortune to own a pc laptop running windows XP that she'd like to connect to my network. Basically I have been surfing for ages and looking in all the b

  • Start up disc problems and my imac will not boot from the cd.

    Hi All, I have a start up disc that needs repaired, according to ONYX so then reading the apple support guide it seems I boot from my OSX CD that came with my iMac and use First Aid. However when I insert my OSX CD my imac reads it fine, as it does w

  • ITunes Error Signature

    iTunes wont start after installing EventType : BEX P1 : iTunes.exe P2 : 10.2.1.1 P3 : 4d756476 P4 : icuuc40.dll P5 : 4.0.0.3207 P6 : 4d3b6a8e P7 : 00073335 P8 : c0000409 P9 : 00000000 C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\WER8cb7.dir00\iTunes.exe.mdmp C

  • Lightroom 4 Catalog

    How can I move my Lightroom 4 catalog (data, not photos) from my local drive to an external drive? My local drive is running out of space.

  • 9i New features

    Would like to know where I can find 9i new features. Just the new features. Internet sites would be very helpful. Thanks for all the help.