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

Validation from User defined field

Hai

I created the three user defined fields (namley BasicPay,DA,Gross) for the module

Human Resource - > Employee Master Data. In Add mode,i entered the values for BasicPay and DA and in the lost focus event of DA i made the two values to get added and displayed in the "Gross" user defined field and this worked.

In the lost focus of Gross user defined field i need to made that value(Gross field value) to get displayed in the Salary field of Employee Master Data ->Finance tab --->Salary field.

The form UID for the Userdefined fields are "-60100" and for the Employee Master Data it is "60100".

Please any one give me the solution .....

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Aug 13, 2008 at 07:36 AM

    Hi,

    for any header userdefined field (which you have on the right side) the formtype is always the same with a minus before.

    i show you with a vb6 code how to access them:

    SBOApplication.Forms.GetFormByTypeAndCount(-60100, 1).Items.Item("U_FIELD").Specific.Value

    hope it helps you 😊

    lg David

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 13, 2008 at 07:35 AM

    Hi Mohana,

    I guess in the same event take a new form object and set the value.

    Dim oForm as SAPBoUi.Forms
    oForm = SBO_Appln.Forms.Item(FormUID) 'Give id as 60100
    Oedit = oForm.Items.Item("").Specific 'Give the exact field.
    Oedit.Value = sal 'Set the value here.

    I gues this solves it.

    Vasu Natari.

    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.