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

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

  • Creating User Defined Fields via DI API

    Hello,
    Has anyone tried creating User Defined Fields via DI without direct database intervention ? My add on relies on some UDF's that have to be created on install.
    Thank you

    I regularly use the UI API to do this.  You can find several discussions on this forum.  I have not put this in my installation program, but I use UserFieldsMD in the DI API and a CSV file from Excel to store the information about the fields.

  • Not able to create user defined field

    hi experts
    i am not able to create a user defined field through, 'user defined field management ' window,
    when i am selecting this window SAP B1 is hanging ,later i need to close the application .what should be the problem ,
    please help me to solve this issue
    thanks in advance
    ajith

    hi
    thanks for reply
    following is the my sap b1 version and PL
    SAP Business One 2007 B (8.60.035)  SP: 00  PL: 08  2007B_CORE_080709_0214
    yes i created user defined fields in employee  master records
    kind regards
    ajith

  • Create User-defined field for Marketing Documents

    I need to create a User-Defined field for Marketing Documents under Title and Rows.
    I need to do it via .NET instead of manually go into SAP to create it.
    Does anyone can give me idea on how to do this?

    Hi David,
    There are examples of how to do this in the SDK samples (look for MetaDataOperations project in the DI samples).
    There are also examples in the SDK help. Here's one:
    Private Sub AddUserField()
    '// The UserFieldsMD represents a meta-data object that allows you
    '// to addremove fields from tables or change the fields' characteristics
        Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
    '// In any meta-data operation there should be no other object "alive"
    '// but the meta-data object, otherwise the operation will fail.
    '// This restriction is intended to prevent a collisions.
        '// The meta-data object needs to be initialized with a
        '// regular UserFields object
        Set oUserFieldsMD = oCompany.GetBusinessObject(oUserFields)
        '// When adding user tables or fields to the SAP Business One database
        '// use a prefix identifying your partner name space
        '// this will prevent collisions between the various partners add-ons
        '// SAP's name space prefix is "BE_"
        '// Set the Fields' mandatory properties
        oUserFieldsMD.TableName = "OCRD" '// BP table
        oUserFieldsMD.Name = "BE_UserField1"
        oUserFieldsMD.Description = "A user field"
        oUserFieldsMD.Type = db_Alpha '// am alphanumeric type
        oUserFieldsMD.EditSize = 20
        '// Add the field to the table
        oUserFieldsMD.Add
    End Sub
    Kind Regards,
    Owen

  • Problem in creating user defined fields

    hi,
       i created nearly 25 userdefined fields. after that b1 is not allowing me to created further, I like to know any restriction is there to create or kindly give me the solution to create.
    Regards
    R.vijai

    Vijaya,
    This kind of bottlenecks are common when using SQL Server 2000 where it has a row size limitation.
    Click on the link below and read the thread as it also related to the similar error.
    Error in defining the User Defined Fields
    Suda

  • How can we add user defined fields in My Account Profile?

    Hi,
    When adding new field for user,user groups,my resource,organizations and request all exist in the drop down menu list but the MyAccount(In the page where we add user defined fields).
    Please help me to add user defined field in MyAccount also.
    Thanks in advance.

    Hi,
    As I said before it is not that straight forward.If you will decompile tcViewProfileAction .class using any java decompiler you will find out that data in setAccountProfile method is not getting set through formmetadata.xml . If you are well verse with struts then only you can achieve what you are trying to do.You need to extend tcViewProfileAction class and also tcViewProfileForm class and then you need to modify tjspViewProfileTiles.jsp .It will not be easy job.Usually in implementation we do not change action class until its absolutely required as oracle also do not recommend that so now its between you and your client to make a call if they want to go for such customization.I won't recommend you do that.
    Regards
    Nitesh

  • 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

  • Create user defined field categories programatically

    i have an addin that creates multiple UDF's that are then managed/validated on the main form  and i would like to prevent the user from amending the UDFs from within the UDF pane so that my validation is always used.
    What I would like to do is to create a UDF category from within the addin and assign my UDFs to that category so that they are not shown by default.
    I cannot see that this is possible, does anyone know if it is?

    Gordon,
    The functionality via code is not currently available in looking at the UserFieldsMD and UserTablesMD objects offered.  If you need to keep users out of this area, you can use Authorizations to block users, but of course if they need to create other tables or user fields outside of your add-on ... that could cause a problem.
    Apologies,
    Eddy

  • B1 create User Defined Field as nvarchar(max) in SQL 2005 database

    Hi everyone,
    I just created a UDF in B1 as alphanumeric(12), and noticed that B1 created a field in SQL 2005 as nvarchar(max) instead of nvarchar(12). I tested with both 2005A SP01 patch 14 and patch 20. It always creates UDF as nvarchar(max). Is this a bug? It will cause db file use more disk space and also reduce the query performance. Also, B1 won't create the index on the UDF even if you select the option.
    Thanks for help,
    David

    Hi David,
    I was running on patch 19 when I wrote my earlier posts. I'm now running patch 20 without any issues. I also have a range of clients who are running SBO 2005A SP1 on various patch levels above 10 (though not all are on SQL 2005) and I've yet to come across this issue.
    Did you log this with SAP Support? Have they come up with any suggestions?
    Maybe this will work:
    1) Start SBO. When you get to the login screen, click on Choose Company.
    2) Change the Current Server field from SQL 2005 to SQL 2000. Reenter your server settings if prompted
    3) Login as normal and try and create your field.
    4) Log out and go back in to change back to SQL 2005
    Kind Regards,
    Owen

  • Problem with creating User Defined Fields

    Hello,
    I have a big problem on one customers db. Everytime when user logs in SBO, he got immediatley after login message, that db structure was modified and user must click OK to continue (close all form - in this case is still no form opened).
    I tried to uninstall all addons to be sure that its not addon related but when is only clean SBO there, the message still pops up. It seems that somewhere in db is stored that this message must pops up.
    When I copied this db localy from custromer, the message still occurs.
    Is here someone who met this prolem and solved it?
    Thanks
    Petr

    Hi Petr,
    Just to remind that if you send a message to SAP based on Suda's answer belows:
    Petr,
    This is very unusual, Please check SAP Notes and also send a message to support. This should not be happening.
    Madhan: Just FYI - Petr is one of the Senior Implementation and SDK consultants who has spent a long time on the product and I am 100% sure that he knows the basics you are pointing to very well.
    Suda
    you must really make sure that you have performed support level 1 and level 2. If not, the SAP support will be happy to bill the message about 80 euro.
    Rgds,

  • Error when Create User Defined Field

    Hi all, i got an error when create UDF
    Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    Here is part of my code
    oUserFieldMD.Name = fieldname
            oUserFieldMD.Description = fielddesc
            oUserFieldMD.Type = fieldtype
            oUserFieldMD.DefaultValue = defaultValue.ToString()
            If fieldtype <> SAPbobsCOM.BoFieldTypes.db_Date Then
                oUserFieldMD.Size = fieldlength
                oUserFieldMD.EditSize = fieldlength
            End If
            If fieldtype = SAPbobsCOM.BoFieldTypes.db_Float Then
                oUserFieldMD.SubType = SAPbobsCOM.BoFldSubTypes.st_Price
            Else
                oUserFieldMD.SubType = SAPbobsCOM.BoFldSubTypes.st_None
            End If
            oUserFieldMD.TableName = tablename
            lRetVal = oUserFieldMD.Add()
            prgbar.Value = prgbar.Value + 1
            If (lRetVal <> 0) Then
                msgs.Add(tablename & " - " & fieldname & " : " & oCompany.GetLastErrorDescription())
            Else
                msgs.Add(tablename & " - " & fieldname & " : successfully created!")
            End If
    the error come when reach lRetVal = oUserFieldMD.Add()
    what is wrong with my code ?
    thanks.

    This could be a x64/x86 problem. Try following this thread
    [GetCompanyService|GetCompanyService] and recompile your code for the platform you need.

  • Creating a user-defined field in VL06

    Dear all ,
    Please guide me how to add few user defined fields in the output list of standard VL06 transaction code - (Delivery Monitor Report - WS_DELIVERY_MONITOR) - I have to add in the option of 'List Outbound deliveries' -
    Pls revert.
    Thanks in Advance.
    P.G.R

    Hai
    Follow the bellow steps for creating User Defined Field Exit
    Step by step procedure for creating Field Exits
    There are eight steps to creating a field exit:
    Step 1: Determine Data Element
    Step 2: Go To Field Exit Transaction
    Step 3: Create Field Exit
    Step 4: Create Function Module
    Step 5: Code Function Module
    Step 6: Activate Function Module
    Step 7: Assign Program/Screen
    Step 8: Activate Field Exit
    Step 1: Determine Data Element
    - Before you can begin adding the functionality for a field exit, you must know the corresponding data element.
    - An easy way to determine the data element associated to a particular screen field is to:
    Go the appropriate screen.
    Position the cursor in the appropriate field.
    Press ‘F1’ for field-level help.
    Click on the ‘Technical info’ pushbutton (or press ‘F9’) on the help dialog box.
    On this Technical Information dialog box, the data element will be specified if the field is 'painted' from the ABAP/4 Dictionary.
    Step 2: Go To Field Exit Transaction
    - The transaction to create field exits is CMOD.
    - You can use the menu path Tools -> ABAP/4 Workbench -> Utilities -> Enhancements -> Project management.
    - From the initial screen of transaction CMOD, choose the Text enhancements -> Field exits menu path.
    - After choosing this menu path, you will be taken to the field exits screen. From here, you can create a field exit.
    NOTE : Even though you use transaction CMOD to maintain field exits, you do not need to create a project to activate field exits.
    Step 3: Create Field Exit
    - From the field exit screen of transaction CMOD, choose the Field exit -> Create menu path.
    - After choosing this menu path, a dialog box will prompt you for the appropriate data element .
    - Enter the data element name and click the ‘Continue’ pushbutton.
    - Now, you will be able to create the function module associated to the data element’s field exit.
    Step 4: Create Function Module
    - You will automatically be taken to the Function Library (SE37) after entering a data element name and clicking the ‘Continue’ pushbutton.
    - In the ‘Function module’ field, a function module name will be defaulted by the system based on the data element specified. This name will have the following convention:
    FIELD_EXIT_<data element>
    - You can add an identifier (an underscore followed by a single character ).
    - The first function module for a data element’s field exit must be created without an identifier.
    - To create the function module, click on the ‘Create’ pushbutton, choose menu path Function module -> Create, or press ‘F5’.
    - After choosing to create the function module, you will get the warning: "Function module name is reserved for SAP". This message is just a warning so a developer does not accidentally create a function module in the field exit name range. By pressing ‘Enter’, you will be able to go ahead and create the function module.
    - Before coding the function module, you will have to specify the function modules attributes -- function group, application, and short text.
    Step 5: Code Function Module
    - From the function module’s attributes screen, click on the ‘Source code’ pushbutton or choose the Goto -> Function module menu path to the code of the function module.
    - Here you will add your desired functionality for the field exit.
    - Remember that field exit’s function module will have two parameters -- one importing parameter called "INPUT" and one exporting parameter called "OUTPUT". These parameters will be set up automatically by the system.
    - You must remember to assign a value to the OUTPUT field. Even if the value does not change, it must be moved from the INPUT field to the OUTPUT field.
    Step 6: Activate Function Module
    - After coding the function module, you must remember to activate it.
    - Use the Function module -> Activate menu path to activate the function module.
    - At this point, you can return to the field exit transaction.
    - You should be able to 'green arrow' back to this transaction.
    - When you return to the field exit transaction, you will see an entry for the newly created field exit.
    - At this point, the field exit is global. That is, it applies to all screens that use a particular data element. On any screen that uses the data element, the corresponding field exit function module will be triggered, once it is active.
    - Also, the field exit will not be triggered yet because it is inactive.
    Step 7: Assign Program/Screen
    - This step is only needed if you want to make a field exit local.
    - To make a field exit local, select the field exit and click on the ‘Assign prog./screen’ pushbutton.
    - In the dialog box , indicate the appropriate program name and screen number.
    This information indicates that the field exit is local to the specified screen in the specified program.
    - In the dialog box, you determine which function module gets executed for the field exit by specifying the identifier in the ‘Fld. Exit’ field.
    - If this field is left blank, the function module triggered will be 'FIELD_EXIT_<data element>'.
    - If a single-character identifier is entered into the field, the function module triggered will be 'FIELD_EXIT_<data element>_<identifier>'.
    Step 8: Activate Field Exit
    - The field exit must be active for it to be triggered by the system.
    - Activate the field exit by choosing the Field exit -> Activate menu path.
    - After assigning the field exit to a change request, its status will change to ‘Active’ and it will be triggered automatically on the appropriate screen(s).
    NOTE : In order to activate the field exit the profile parameter abap/fieldexit = YES must be set on all application servers
    Regards
    Sreeni

  • 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

Maybe you are looking for

  • Unable to retrive the email id of the internet sales user who curren logged

    Hi friends, I need to send a email to the customer support email id  while changing the ship to address, from the currently logged "Internet User" email id in the order screen Is there any class/method there in ISA API so that it retrives the current

  • Validation Select works on FF not on IE

    Hi guys! Made a few tweaks on the site today, and I just realized that my Validation Select Widget was not working on IE 7 (!). I'm completely puzzled. It works fine on Firefox, as always... could someone shed some light? Here's the page: http://www.

  • Alerts at field level

    Hi All, i have reqmt that for one specified column in the table,if it is updated the alert should send mail notification. For ex: if you update the only EMPLOYEE_NUMBER field in PER_ALL_PEOPLE_F table ,it should sent mail notification to the concerne

  • Looking for  a code to change networks

    hi im looking for a code to change networks can someone please help me

  • Multiple Selection in Table

    Hi, I have a table control which is configured for multiple selection. But, I need to get the list of selected rows? How can I do it? I didn't find any methods on the table control or at the context node. Can anyone guide me out of this issue? Thanks