Skip to Content
author's profile photo Former Member
Former Member

MATRIX COMBOBOX TO DATABASE UDT (IT'S URGEENT)

Dear SAP'S Guru's,

I have created a ".srf" form in screen painter inside that form there is a matrix with one column as a "COMBOBOX"..

COMBOBOX" has two fields "name and code"..

QUERY IS

I want to store the selected value in the database

how should i do??//

i have done all the things but problem is only

how to save combo box value in table.????

send me some sample code

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 06:12 PM

    Hi sandesh,

    You can catch the value of the combobox like this :

    oCombobox.Selected.Value

    After you can add or update the table like this :

    usertab = company.UserTables.Item("EMP")

    usertab.Code = "a11"

    usertab.Name = "s11"

    usertab.UserFields.Fields.Item("U_EmpId").Value = 1500

    usertab.Update()

    You can look too at this post :

    update-user-table-from-matrix

    Hope i help you

    Michael

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.