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
Similar Messages
-
64,000 character limit on UDT user defined field column
Hey All.
We are storing more then 64,000 characters into a UDT user defined field column as it stores a large XML document. How can I retreive this information from the UDT using the DI API? Everytime I try to do this using either the UDT object or SAP recordset it chops off the data to 64000 characters. The UDF was created as a "TEXT" type using B1 client and when I look in the database it has a datatype of NTEXT.
Is this a bug or is there no way using DI API to retreive all the data?Curtis,
Apologies for my delay in getting back to you.
I do not know the reasoning behind the limit. As far as 2007A is concerned, the documentation that I was looking at when I first responded to your question was the 2007A SDK Help documentation, so I would say it is the same in 2007.
I believe that you can use ADO to access data in SAP Business One as there are other ISV's that use ADO, just not access via stored procedures directly to the Business One database. ADO and ODBC connectivity have rules in place for data validation, although it is recommended that you use the Business One API's for data access as much as possible. You could also store data in your own tables in a separate database and retrieve from there.
Eddy -
Hi All,
Is there a limit on the number of user-defined fields? In SBO 2005 PL03 I cannot create more than 30 UDFs on the BP table. I get the following error: WTR1 Error(1)
The record limit of 8060 is not close to being reached.
Thanks in advance,
AdeleAdele:
Im running 2005 PL06, and I created 38 fields to try ypur problem, and I can keep creating fields.
The strange thing is your error is in the WTR1 table, that is the Inventory transfer rows table.
may I suggest that you try fewer fields, maybe one, with the total length of your 30 fields? that way, you'll discard a maximum number of fields issue.
Harold Gómez -
Issue while deleting user defined field in oim 11.1.1.3
All,
Made a mistake while creating user defined field called "Profile for" (loing to OIM -> advanced -> configuration -> User configuration). We are trying to delete it. It appears to get deleted from user attributes screen. But when we run LDAP User Create and Update Reconciliation Task we get the following error below:
oracle.iam.ldapsync.exception.ProcessLDAPReconDataException: oracle.iam.ldapsync.exception.ReconEventCreationException: Thor.API.Exceptions.tcAPIException: Profile for - LDAPUser object does not exists for resource object
Is any thing else need to be deleted adn cleaned up?
thanks in advance,
Prasad.How do i check what resource object the recon task is running against. here is what i found so far.
I cannot find LDAPUser resource object when i query Resource Management -> Resource Objects in design console. Same thing with Manage Resource and search (here i only find Xellerate User, Xellerate Organiztion, USERS_GTC, and Installation) in OIM advanced administration menu.
The LDAP User Create and Update Reconciliation job itself has the following parameters (batch size, last change number, OIM employee type, OIM User organization name, OIM user type)
I also decompiled LDAPUserChangesReconTask and it is looking for LDAPUser metadata from MDS directly.
Prasad. -
Use of user define field in Task list
Hi,
Please give the solution for the strange requirement of the client as:
My client wants to define the operation for preventive maintenace in two parts like
check temperature : 45 deg celcius.
check temperature should be like operation and rest what he has to check to be defined in other field i.e. both should not be together.
so i find the solution as user defined fields in the task list where i can define this second parameter.
But the problem is that system is not proposing this second field in the preventive order, only operation field is proposed.
Please suggest some solution, how can this requirement can be mapped.Both operations of the inspection lot will need to be completed at some point. They are in the same lot so they belong together. Both operations should be available to the user. (Unless you used workcenters and security to limit users to specific workcenters).
Once set up, it will only be available to new inspection lots. Few things in SAP are retroactive.
Craig -
SALES ORDER: Total of a Field from the Grid in a User-Defined Field in ORDR
Hello!
I created a User-Defined Field called "U_Soma" in table ORDR (Marketing Documents / Title).
I need this U_Soma field Totalize the content of another User-Difined Field called "U_TotalPorUM" created in table RDR1 (Marketing Documents / Rows). It must get the Sum the value of all rows in the current record being edited.
Using the Query below, it works fine with already saved records:
SELECT SUM(T1.[U_TotalPorUM]) FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.DocEntry = $[ORDR.DocEntry]
However, I need that it work with non saved (yet) records.
Thank you!
VALERIO OLIVEIRA
Edited by: ValerioOliveira on Apr 22, 2010 10:14 PMGordon, thank you for your fast answers!
In other circumstances I would agree with you.
But the U_Soma field must be used to control the maximum weight of a charge.
It becames very usefull if user can see that the charge limit is reached, still when the Sales Order is being edited.
(The U_TotalPorUM field shows the weight of each item).
I would appreciate any help!
Thanks a lot!
VALERIO OLIVEIRA
Edited by: ValerioOliveira on Apr 23, 2010 7:28 PM -
User Defined Fields/data items
How can I add user defined fields on runtime in a pre-defined data blocks wiht the user defined attributes of data type, length and format masks.
Ofcouse I should have those fields defined in DB first.
Thanks for any helpI have a similar need.
I have a DB table that stores a list of questions and data types/sizes/usages of the answers required by the user of the form.
In a multi-record database block, I currently list the questions, and supply a Text Item to capture the user's answers, and then provide validation code to check for the proper data type & number of characters.
I would like to be able to use the data type/size/usage information that is stored with each question to create, at runtime, an appropriate item (numeric text item max length 3, or character drop-down list box, or character text item with an LOV, etc.) for each question record. In other words, one record could have a drop-down list box, while another record could have a numeric text item.
I think that I can create separate fields for each type of item, and then enable/disable the fields when required, but this solution is less elegant than the programmatic solution that I desire.
Is there a way to do this programmatically in Oracle Forms 6.0.5.0.2 for Windows, or with an OCX, or some other add-in? We do not have Oracle Applications in this group. Is there a way to get "FlexField" without having Oracle Applications?
I agree that this is a normal requirement these days as administrator-type users (as opposed to data-entry end-users) of applications want to be able to dynamically customize the app for their usage.
Oracle needs to address this issue by creating the ability in Forms/Reports to create customizable apps.
Thank you in advance for any help you can provide. -
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 RegardsHi,
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 -
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.vijaiVijaya,
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 -
User Defined Field in Material master
Hi Friends,
Can we add any user defined fields in any views in material master (preferably with F4 help)
If so, please let me know how to do it and its impact.
Regards
RamHi Ramachandran,
Of course.
1. If there is an existing Material Class, use it, unless modifying that class interferes with existing business processes. Otherwise create a new class using CL01. Use class type 001.
2. Create a characteristic using CT04 that represents your new field. The characteristic will be your new field name and the description will be the description.
3. Using CL02, assign the characteristic to the existing material class, or to the new one you just created in step 1.
4. If this is a new system, you will have to create user instructions as to how to maintain the field. The field will exist in the Classification view of the Material master in MM01/02/03, and the contents can be edited just like any field.
5. If this is an existing system, you will have to populate this field in all of the existing material masters. Depending on the size and complexity of data, you may have to create a Legacy System Migration Workbench (transaction LSMW) project to bring all the fields up to date.
As far as F4 help, depends on where you want to see it. Within the classification view of the material master, it is possible to establish a validation in CT04 that will require your users to pick from an established validation list when they select the F4 key. If you want F4 help in other places, you should consult your ABAP'ers, who should be able to set this up for you.
Impact of a new characteristic/class is zero. Impact of adding a characteristic to an existing class is dependent on your current use of the existing classes. Writing reports which use these data is a well understood technique within the ABAP community. Although the field will not exist in MARA table, it can still give you the same functionality as if it did.
I do not recommend that you add a field to MARA, even though this is possible. Although hotpack upgrades will leave a customer generated MARA field alone, whatever functionality you create to use this new field will be endangered with every OSS note and every hotpack upgrade you install. Since Characteristics and Classes are considered master data, SAP hotpacks pretty much leave them alone.
Regards,
DB49 -
User defined field with Linked Table property
Hi All,
I know this has been posted several times but I cannot get this to work. I am trying to add a user defined field and link it to a table.
I am getting the error "The field 'Related Table' should consist of 8 alphanumeric characters with no valid or default values "
Everything I check says that the code I am using is correct. Is it possible the problem is that I am trying to connect to an SAP table instead of a user defined table. Is it possible to link a user defined field to an SAP table?
My code below:
oUserFieldsMD.TableName = "OITM"
oUserFieldsMD.Name = "SHP"
oUserFieldsMD.Description = "Must ship via"
oUserFieldsMD.LinkedTable = "OSHP"
oUserFieldsMD.Type = SAPbobsCOM.BoFieldTypes.db_Alpha
oUserFieldsMD.SubType = SAPbobsCOM.BoFldSubTypes.st_None
oUserFieldsMD.EditSize = 8
oUserFieldsMD.Size = 8
oUserFieldsMD.Mandatory = SAPbobsCOM.BoYesNoEnum.tNO
Thanks
KarenHello Karen,
you cannot link a userfield to a system table. it has to be link to a user table.
oUserFieldsMD.LinkedTable = "OSHP"
when you have error, just try to do it using the same value in the application. If you cannot do it, it means you cannot do it neither with the DI
Sebastien -
User Defined field and User defined values.
Curently testing this in the demo database before rolling it out to a customer.
I added a user defined field to my item master data base called Lengthcm of type Amount.
I have created a query:
SELECT u_lengthcm = CASE
WHEN $[oitm.blen1unit] = 5 THEN $[oitm.blength1] * 2.54
WHEN $[oitm.blen1unit] = 6 THEN $[oitm.blength1] * 2.54 * 12
ELSE 0 END
Length unit 5 is inches and length unit 6 is feet.
In Item Maintenance then I create a user defined value for the lengthcm field linked to the query and set to auto-update when the blength1 field changes.
This works perfectly for 1 inch through 9 inches (1" through 9") and fills in the centimeter value. When I put in a value in feet (1', 2'), it does nothing and if I put in any value of 10" or greater gives an error message:
[Microsoft][SQL Server Native Client 10.0][SQL Server] Arithmetic overflow error
converting nvarchar to data type numeric. 'Received Alerts' (OAIB).
Checking database structure back end, blen1unit is of type small int, blength1 is numeric of size 19, 6 and so is my lengthcm field.
Edited by: Danielle Ostach on Mar 18, 2011 8:18 PM
Edited by: Danielle Ostach on Mar 18, 2011 8:19 PM
Edited by: Danielle Ostach on Mar 18, 2011 8:20 PM
Edited by: Danielle Ostach on Mar 18, 2011 8:21 PM
Edited by: Danielle Ostach on Mar 18, 2011 8:21 PMHi Danielle ,
Try this...
SELECT u_lengthcm = CASE
WHEN $[oitm.blen1unit] = 5 THEN (cast(($[oitm.blen1unit]) as decimal(19,6))) * 2.54
WHEN $[oitm.blen1unit] = 6 THEN (cast(($[oitm.blen1unit]) as decimal(19,6))) * 2.54 * 12
ELSE 0 END
Regards,
Sachin -
[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 -
How to provide value to a User Defined field thru java code
I am using OIM 11.1.1.5.
I have a user defined field called Unique-Customer-Number. This field need to be pre-populated during user creation (using OIM Web UI) and the value comes from a java code.
Can any of you tell me the high level steps to implement this.
Thanks!
KabiThanks Rajiv,
I just followed everything on metalink 1262803.1. My console shows the followings during Metadata import.
weblogicImportMetadata.bat :-
Starting import metadata script ....
Please enter your username :weblogic
Please enter your password :
Please enter your server URL [t3://localhost:7001] :t3://10.10.99.99:7001
Connecting to t3://10.10.99.99:7001 with userid weblogic ...
Successfully connected to Admin Server 'adm_server01' that belongs to domain 'server01'.
Warning: An insecure protocol was used to connect to the server. To ensure on-the-wire security, the SSL port or Admin port should be used instead.
Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root.For more help, use help(domainRuntime)
Disconnected from weblogic server: adm_eimsdv1s01
End of importing metadata script ...
Exiting WebLogic Scripting Tool.
How I will I know that my plugin/ event-Handler is registered successfully. Is there any screen where I can see all registered plugins ? -
Confirmation of User defined fields on CO11N
Dear All,
Can anybody tell me how to confirm user defined field during operation confirmation of an order. I have created a user field key and assigned in the operation detail screen in routing. Is it required to include a freely defined screen for CO11N in customizing or any other setting is there.
Thanks in advance for your valuable inputs.
Regards,
Uday Parchure<b>Define Customer-Specific Detail Areas for Single Screen Entry</b>The following enhancement is available for production orders:
CONFPP07 define detail areas for single screen entry
With this enhancement you can define your own detail areas (screens), which can be issued for single screen entry of time ticket confirmations.
Enhancement CONFPP07 contains the following enhancement components:
Function module exits
EXIT_SAPLCORU_S_100 Transfer data from SAPLCORU_S to customer-defined screen
EXIT_SAPLCORU_S_101 Return data from customer-defined screen to SAPLCORU_S
Display documentation
Screen areas
Screen areas that you can define yourself are available.
Activities
1. Create the enhancement
To do so, create a new project, or use an existing project.
2. Activate the project.
Your enehancement only takes effect after you have activated it.
Further Notes
Enhancememnts, as opposed to modifications, are fundamentally independent of releases since they are not made in the SAP original, but in a name space that is reserved for customers.
you have to create a customer defined screen and attach as in the link. Add the Freely definable detail screen in OPK0. Confirm the user defined fields.
Regards
MSR
Message was edited by:
Soundararajan Murugesan
Message was edited by:
Soundararajan Murugesan
Maybe you are looking for
-
Mail.app acting weird...
A friend of mine recently bought the new iMac 20". I'm helping her convert over to the Mac world, which hasn't gone very well. The first thing we did was try to setup her mail accounts, ((2 of them - .mac and work). When setting this up, .mac account
-
I installed Oracle 8i on XP succssfully and connected to database using SQL/plus with no problems. I installed Oracle Forms 6i on a different oracle home, it installed fine, but I could not connect to Database from Forms. The listener is runing and I
-
KDEbase but cant start :/ ( edited first post)
Ok, what am I missing here, I have Asus EeePc 701¸, did everything by the book, but chosen kdebase instead of kde because of small 4gig mem card in my Eee... Added exec startkde to xinitrc, but after I type startx i get bunch of errors and no KDE...
-
I have looked at everything but I keep seeing an event from early October as the first event in my day view and not my current days event. Any ideas on how I can change this so that it only looks from today forward and not backwards
-
In the middle of using lens correction tool or noise reduction filter, my new imac crashs, I have lightroom sometimes on, and Firefox brawser with music streming, any ideas why?