User Defined Field that gives the date output of the last price update.

We would like to create a User Defined Field (UDF) with a Formatted Search (FMS) on the Item Master form that gives the date output of the last price update specifically the wholesale price.
Last Price Update
Pricelist 2 = Wholesale
Is this feasible?
If it is feasible what is the recommended approach?
Current working UDF on Item Master.
/* Date output is based on all the latest updates on the Item Master.*/
select max(updatedate)
from aitm
where itemcode = $[oitm.itemcode]
Resources that were helpful.
1.(Note:1165947 - Tracking Item Price Changes.)
2. Case 4-I6: Query on price updates. Mastering SQL Queries for SAP Business One By: Gordon Du

Thank you Gordon,
We are looking for the date output of the 'Last Price Update' based on 'Pricelist 2 = Wholesale' which is the challenge.
These 2 are the parameters for the date output, I should have mentioned that in my original message.
Last Price Update
Pricelist 2 = Wholesale
Per reading a bunch of other similar Forum Questions it looked like it is might not be possible to do. With there being no date on the AIT1 table and AITM.Updatedate is based on any and all updates not just last 'Last Price Update' and not sure how to use the loginstanc.
Thanks,
Vern

Similar Messages

  • User defined field that looks up a system table?

    I want to create a user defined field that looks up parts in the items table (i.e. OITM).
    I know I can use a formatted search and that works, but I don't want users to be able to edit the field after the item has been looked up and pasted into the field.
    In the user defined field menu, there doesn't seem to be a solution to this. The only solution I can think of is to create a user defined table and then move over the items, and then periodically have the table be updated from the master item table (OITM).
    Thoughts?

    Here is the stored procedure I wrote, but it doesn't seem to work:
    IF @transaction_type IN ('A', 'U') AND @Object_type = '97'
    BEGIN
    IF NOT EXISTS (SELECT T0.ItemCode, T1.U_Part FROM [dbo].[OITM] T0, [dbo].[OOPR] T1
    WHERE T0.ItemCode = T1.U_Part AND T1.DocEntry = @list_of_cols_val_tab_del)
        BEGIN
            SELECT @error = 1, @error_message = 'Testing'
        END
    END
    So basically, I have a UDF called U_Part in the Sales Opportunity form, which will have a formatted search to look up parts, but if a user changes the text to something else (which is possible because it's a basic text field), then this should look up what is in that UDF and check it against the Item Master and give an error if it doesn't exist. However it isn't doing anything.
    Any ideas?
    Edited by: Gary Rey on Jan 21, 2009 4:56 PM

  • Can i create user-defined fields that are checkboxes?

    I need to create a set of user defined fields on Activities that are a checkboxes. I cant see any options in the manage user fields dialog to set the field as a checkbox, the only options are alphanumeric, Datetime, Units & Totals etc.
    Can user defined fields be added that appear as checkboxes? if so, how do i do it?

    What you need will not be available by UDF.  You need SDK programming for any Check Boxes.  However, you may use predefined list for UDF to imitate part of functions of the check box.
    Thanks,
    Gordon

  • User Defined Fields & AD Connector

    Hello All
    I am having a bit of trouble understanding the flow of information from Xellerate User to AD connector table/provisioning and was hoping someone could help me out. Basically, I have a set of user defined fields that I need to get provisioned to active directory. I have follow the AD connector documentation for adding the new fields to the resource form and process definition but I still do not see the new values for the data showing up in the UD_ADUser table to be provisioned to AD. Not sure if there is a pre-populate adapter I need to add to move the data from USR to UD_ADUSER or if there is some other data mapping that needs to be done, but any help or guidance (end to end) would be helpful.
    Thanks
    Nick

    Suren
    I did the adapter (pretty much copied the last name adapter) but when I update the values in the web console for the user defined fields, it is not updating the values in the UD_ADUSER table. I am also getting this value in the OIM log...do you know what could be causing this.
    2010-09-09 11:47:00,696 DEBUG [XELLERATE.ADAPTERS] Class/Method: tcAdpEvent/finalizeEntityAdapter entered.
    2010-09-09 11:47:00,696 DEBUG [XELLERATE.ADAPTERS] Class/Method: tcAdpEvent/finalizeEntityAdapter - Data: No Return Value mapping defined - Value:
    2010-09-09 11:47:00,696 DEBUG [XELLERATE.ADAPTERS] Class/Method: tcAdpEvent/finalizeEntityAdapter left.
    I reviewed the mapping in the form adapter properties and made sure there are variables mapped and made sure that the adapter has the proper variables mapped and still seems to be coming up.
    Any help you can give would be appreciated.
    Thanks
    Nick

  • Linking a User Defined Field in Items table

    How to Link a User Defined Field in 'Item Master Data' table, to my own User Defined Table?
    Example:
    In Item Master Data table, I want to add 3 User Defined Fields, for e.g, Country, State and Region.
    When the value of Country combo is changed, values loaded in State and Region combos should change automatically.
    I'm storing the relationship between Country,State and Region in my own user defined table. I want to load the comboboxes with a query from that table.
    Or, if there's no solution to the above problem:
    when the Item Master data table is opened, can we launch our own form?
    Is there a way to specify that?
    Please reply me back.. I'm a beginner learning SAP.
    With Thanks in advance,
    Geetha
    Key: Loading a user defined field through Query defined by us.

    Geetha,
    You should search this forum on user defined fields as you will find many posts that may assist you with your question.
    HTH,
    Eddy

  • User Defined Fields & Tables Problem

    After the upgrade to B1 2007 and converting our database to 2005 compatibility as per the upgrade directions, we’re having some weird issues with our user defined fields and tables. 
    •     Our user defined fields that used to be alpha-numeric when set up in B1 are now in the database as nvarchar(MAX), even after updating the fields in the Manage User Defined Fields screen.  B1 is obviously not setting the right field information as per its interface.
    •     We’re can no longer add records to user defined tables through the B1 interface, though we can add them fine through SQL Server or an ODBC interface.  The error we are getting is
    [Microsoft][SQL Native Client][SQL Server]Conversion failed when converting the nvarchar value '-3 @PASSWORDS' to data type int. (CINF)
    .  I don’t understand where this problem is coming from because there isn’t even a data field that is an integer, so I don’t know what it’s trying to convert.

    Derek,
    I would suggest you post this question to SAP Support by creating a message.  Also search for any notes on this from https://websmp201.sap-ag.de/notes
    Suda

  • User defined Field Size limit

    Hi,
    would anyone know if there is a limit of the number of user defined fields that can be addeded to SAP Business One (2004A on SQL server 2000)?
    I think there is (in a diffrenet way). It looks like there is a maximmum byte size  - 8060.
    I have the following user fields already in the business partner master data screen .
    A - alphanumeric size = 50
    B - alphanumeric size = 20
    C - alphanumeric size = 20
    D - alphanumeric size = 20
    E - alphanumeric size = 254
    If I try to change B to size 254 ,This is the error message I get.
    "[CUFD] [Microsoft][ODBC SQL Server Driver][SQL Server] Warnning: The table 'ACRD' has been created but it's maximum row size 'User Fieds - Descr' (8522) exeeds the maximum number of bytes per row (8060)..."
    there is nothig else wqrong with the field exept I cannot make it size 254 (I can if I delete the field E though), so I definitely think it is SAP restricting the size. SQL Server does not have this size restriction. I can manually go and change the size using SQL Server Enterprise manager for example.
    I have managed to change the size directly on ACRD, and
    CUFD but dont thinks this is a very approprite way of handilng it.
    Is this an undocumented restriction/feature in SAP or have I missed reading about this ?
    Thanks in advance,
    Indika.

    Hi Spiros,
    I hope you are right. But I have experiences this with many atleast 3 other seperate installations. They were all SQL Server, ranging from Enterprise versio, to Developer version to standard.
    However I can directly change the size in SQL Server without an issue as I mentioned. This proves that this not an issue with SQL Server. Could it be some sort of a flag in the SAP? I get this on the SAP US demo company for example.
    If anyone else had the problem please do respond.
    Thanks,
    Indika

  • User Defined Fields on System Form

    Dear All,
                   I want to know that how much User Defined Fields can be added on a system form. My problem is that I am developing an add-on for the Item Master Data. And I have used a lot of User Defined Fields on Item Master Data Forms which contains table 'OITM'. Now if I am trying to add any extra User Defined fields in OITM Table, I am not able to do so. I am getting an error as  'Internal Error Occurred'. What can i do regarding this problem.?  Help me. It is something very important.
    Thanks and Regards

    Hi,
    There is theoretically no limit on the number of UDF for a table. there is however a maximum number of characters for a record in SQL Sever.
    As far as I know this is 4000 in SQL Server 2005 and older and 8000 in SQL Server 2008.
    pls check Microsoft for the exact numbers
    Regards
    Ad

  • Escalating user defined field

    Hi,
    iam new to SBO and i need to write add ons in VB.net code. we have a user defined field in purchase order and sales order.
    the reuirement is that a windows servisce program should run at regular intervals and trap the records  using tha user defined field.
    I need to write a stored procedure to capture those data.
    could u please help me ?
    thanks & regards
    --Ravi

    First, does the registry value actually exist on the workstation? At
    HKEY_LOCAL_MACHINE\Software\xxxxx.com\Location
    Second, how is the AutoFill set for that UDF? You'll find that in the Collection Option Set, in the "Collection Editor" tab, and you can edit it if "Run Collection Editor: Always" is turned on in the "General" tab.
    In the Collection Editor tab, find your UDF - Workstation, User, Inventory - and look at the AutoFill column. If it's set to "Always", then it should always populate during a scan. If it's set to "WhenEmpty", it'll only populate if nothing has already populated the field. If it's set to "Never", it'll never populate.
    Third, has an inventory scan run on the workstation in question? Nothing will be populated until a scan has taken place and the resulting WIF has been returned to the Collection Server and successfully loaded. You can force an immediate scan if you need to, but a scan must happen.
    -- Tim --
    Originally Posted by pcwoodring
    I have created a user-defined field called Location. I have set its default value to the following registry key -> %HKEY:HKEY_LOCAL_MACHINE\Software\xxxxx.com\Locati on
    From the Web Asset Management window, it displays it as text, not retreiving the actual registry key
    What am I doing wrong?
    Example:
    Other Information
    Field Value
    Location %HKEY:HKEY_LOCAL_MACHINE\Software\xxxxx.com\Locati on

  • [Ask] User Defined Field

    Guys, I have two questions here...Hope you guys can help me solving the problems...
    1. How to make user defined field that link to user defined table?
    2. Can I make Query with Inventory master data as a base?
    Thx guys...

    Hi Dear,
    You can do this through SDK also as
    1) Create one UDT named OCT_ITEMSUBGRP1 as
    CreateTable("OCT_ITEMSUBGRP1", "Item SubGrroup1", 0)
    Create Table Procedure is
    Private Sub CreateTable(ByVal txttablename As String, ByVal txtTableDescription As String, ByVal txtTabletype As Integer)
            Dim iRet As Double
            Try
                OCT_tables = OCT_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
                If OCT_tables.GetByKey(CStr(txttablename)) = False Then
                    OCT_tables.TableName = txttablename
                    OCT_tables.TableDescription = txtTableDescription
                    OCT_tables.TableType = txtTabletype
                    iRet = OCT_tables.Add()
                    OCT_Application.SetStatusBarMessage("The Table " & txttablename & " is Added.", SAPbouiCOM.BoMessageTime.bmt_Short, False)
                    System.Runtime.InteropServices.Marshal.ReleaseComObject(OCT_tables)
                Else
                    OCT_tables = Nothing
                End If
                If iRet <> 0 Then
                    OCT_Application.MessageBox(OCT_Company.GetLastErrorDescription)
                End If
                OCT_tables = Nothing
                GC.Collect()
            Catch ex As Exception
                OCT_Application.MessageBox(ex.Message)
            End Try
        End Sub
    Step 2) Creating the Linked Field
    Create_FieldLinked("OITM", "SubGrp1", "Company Classification", 0, 0, 8, "OCT_ITEMSUBGRP1", "")
    Create Linked Table Procedure is
    Private Sub Create_FieldLinked(ByVal txttablename As String, ByVal txtFieldname As String, ByVal txtFieldDescription As String, ByVal type As Integer, ByVal subtype As Integer, ByVal size As Integer, ByVal linktable As String, ByVal ValidField As String)
            'Create Instance of UserTablesMD object 
            OCT_FieldL = OCT_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
            Try
                OCT_FieldL.Name = txtFieldname
                OCT_FieldL.Type = type
                OCT_FieldL.Size = size
                OCT_FieldL.Description = txtFieldDescription
                OCT_FieldL.SubType = subtype
                OCT_FieldL.TableName = txttablename
                OCT_FieldL.EditSize = size
                If linktable <> "" Then
                    OCT_FieldL.LinkedTable = linktable
                    OCT_FieldL.Size = 8
                    OCT_FieldL.EditSize = 8
                End If
                IretCode = OCT_FieldL.Add()
                OCT_Application.SetStatusBarMessage("The Field " & txtFieldname & " is Added.", SAPbouiCOM.BoMessageTime.bmt_Short, False)
                If IretCode <> 0 Then
                    OCT_Application.MessageBox(OCT_Company.GetLastErrorDescription)
                End If
            Catch ex As Exception
                OCT_Application.MessageBox(ex.Message)
                System.Windows.Forms.Application.Exit()
            End Try
            OCT_FieldL = Nothing
            GC.Collect()
        End Sub
    Hope this will help you..
    Warm Regards,
    Mahendra

  • Populate User Defined Fields

    Hello everyone,  I have an add on that puts a button on the invoice that when clicked, brings up a screen to fill in some information and submits the information.  The add-on then takes some of that info and populates UDFs on the invoice and submits the invoice.  1.  My first question is, do I have to have the UDF's visible in order to populate them?  I found that I received an error when I tried to set their value when they were not visible, but wasn't sure if there was a way around that.  2.  I am finding that it is difficult to track which UDF form links to the invoice form.  Is there a way to tie back the UDF form (-133) to the invoice (133)?  It is not FormTypeCount, because that goes solely by the order in which the screens were displayed...  Please let me know.  My true goal here is for someone to be able to have multiple invoices up with multiple versions of my add on and when they submit, they all submit the right thing. 
    Your assistance as always is greatly appreciated.  Thank you so much.

    Hi, today I've also looked for a solution to be sure that the UDF-Form (in my case for sales quotation) is always open.
    Now I do it with activating View User Defined Fields:
    SboUI.Menus.Item("6913").Activate()
    when the Form is opened.
    Catching Item-Event et_FORM_LOAD seems to be too early for that.
    Now I'm catching the Menu-Event ('after') for Sales Quotation:
    MenuEvents:
    If pVal.MenuUID = "2049" And Not pVal.BeforeAction Then
       SboUI.Menus.Item("6913").Activate()
    End If
    And preventing the UDF-Form to be closed
    Item Events:
    If pVal.FormTypeEx = "-149" (....) Then
       If pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_CLOSE And pVal.BeforeAction Then
          BubbleEvent = False
       End If
    endif
    I'm still not sure if this is really a good solution...

  • OIM user defined field in process form

    I am trying to create a user defined field (UDF) in a process form. The UDF would be a drop down list of values for the status field.
    I've tried to do this by going to the Administration list, and double clicking on User Defined Field Definition. Then selecting the Form Designer. I can add a column but I cannot add values to the drop down. I know I'm probably doing this wrong.
    How do I add a UDF drop down and its values to a process form?
    Thanks!

    1. Create lookup table for the drop down contents.
    2.In the process form--->go to the properties tab-->select the User defined filed name-->add property--->property Name drop down list -->select lookup code-->in the property value-->provide the lookup table name-->save
    Edited by: user13513300 on Feb 24, 2011 1:45 AM

  • User defined fields in Goods Issue and Goods Reciept

    Hello,
    I would like to know how to add user defined fields in the Goods Reciept and Goods Issue matrix. These two are not displayed under user defined fields management.
    Thanks,
    Edited by: Martin Kamau on Apr 15, 2009 5:34 PM

    Martin,
    From within the SAP Business One user interface under Tools > Customization Tools > User-Defined Fields - Management, you need to add to the Marketing Documents > Tile and/or Rows, etc.
    Eddy

  • SBO crashes on changing user defined field setting for a form

    Hi,
    when i try to change the user defined field settings(Tools->User-Defined Fields->Settings) for a form, say Sales order form, on clicking on OK button SBO crashes displaying runtime error messagebox.
    This happens only when my addon is running.
    Anyone encounter this behavior?
    Thanks,
    Satish.

    Hi Barend,
    I have put in the filters.The form 38(user-defined fields settings form) is not included in the filters.So it should not get any events. I get the following error
    Microsoft Visual C++ Runtime Library
    Runtime Error!
    Program ..m Files\SAP Manage\SAP Business One\SAP Business One.exe
    This application has requested the runtime to terminate it in an unusual way.Please contact the application's support team for more information.
    Thanks,
    Satish.

  • Validating User Defined Fields on the OIM User Object

    Hello everyone,
    I'm currently using the OIM 11g, and am curious how to provide data validation for user defined fields.
    We currently have two user-defined fields for day of birth and month of birth, which have been set to required, but I would like to take this a step further and actually validate that the data being entered is numerical (two characters max), and if it's not, a red box appears around the field notifying the admin that the entry needs to fit the expected criteria.
    One example already in OIM is that of the email field. It appears to be using a regex to identify that data entered is of a certain format.
    Can anyone here point me in the direction of some proper documentation so that I may learn how to incorporate this into my environment? Thanks!

    Hi Kate,
    The only way to do it, is with Form Settings. Do not give them authorisations on Form Settings. You can then untick the "Active" tick box on certain fields and tick it on others. This can then be done, when you log on as the user him/herself.
    Regards
    Carin

Maybe you are looking for

  • Retriving of data

    how to retrive data lost while updation the i phone Please help special contacts

  • Java Caching techniques..

    How can any one please provide me the pointers for Java caching techniques for performance enhancement of a a code. Thanks Naxy

  • Can somebody please help me !!!

    i have an ipod shuffle and i have songs in it, but when i try to put it in another computer or a different itunes, it states " this ipod is linked to another computer " so it gives me the option to erase all the songs in my ipod and replace them with

  • OO ABAP MATERIAL NEEDED

    pls send me OO ABAP material and some example programs.

  • Getting Error 9812 when trying to buy music from ITunes store

    I want to buy one song from the ITunes Store. I am able to access the song, but when I push the "Buy Song' button, it says "Unable to access Itunes store - an unknown error occurred - 9812". I have tried to fix ITunes through the Control Panel - this