on 10-09-2014 10:58 PM
Buena tarde gente, espero puedan orientarme acerca de lo siguiente, necesito crear dos campos en campos definidos por el usuario, todo esto en Factura de proveedores, los campos los quiero llamar "cdi" y "uuid". Pueden indicarme los paso para crearlos? Gracias.
Buena tarde Reynaldo te voy a dar los pasos para que puedas hacer tu requerimiento:
1) Herramientas / Herramientas de Personalizacion / Campos Definidos por el usuario
2) Documentos de Marketing / Titulo
3) Boton Crear
4) Pones el nombre que requieres y la descripcion , poniendo atencion al tipo de dato que requieras , ya sea numerico, alfanumerico etc.
ya explorando en otras opciones puedes agregar otras funciones como valores definidos por default etc. Boton Crear. Listo.
Espero que mi respuesta sea de utilidad. y si es lo que buscabas la marques como respuesta correcta.
saludos cordiales
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Gracias por contestar Armando Muñoz Sulecio, creé el primer campo, pero, al tratar de crear "UUID" me marca el siguiente error:
Límite del servidor SQL para la longitud de los datos de línea (8060 bytes) [Mensaje 131-405]
Hola Reynaldo
El error que te está siendo mostrado no tiene que ver con una limitación de SAP Business One, sino de la base de datos. Viene explicado en la siguiente nota:
La solución propuesta es eliminar los UDF que no utilices en la tabla afectada.
Un saludo
Hola Reynaldo
Al indicar en esa pantalla tu usuario y clave del SCN te debería permitir acceder a ver el contenido de la nota. No obstante si no puedes verlo te lo pego aquí:
Symptom
The total length (sum of all fields) of a record in an MS-SQL and Sybase
table cannot be longer than 8060 bytes. This restricts the number of
user fields that may be added to a table.
When updating user defined fields an error might appear regarding maximal length of record, That is due to the fact that the SQL creates a temporary column in the table in order to make an update and this temporary column can not be created if the length of the table is close to 8060 bytes.
In this situation it will be possible to ADD fields to the table but not possible to update them.
In order to confirm whether the above issues affects your DB, please look at the following notes:
For problems in updating UDFs please read further the solution in this note.
Cause Limitation
Solution Attached query "UDF_LengthTest_Select_SQL2000.txt" & "UDF_LengthTest_Select_SQL2005 or Above.txt" will help you
to detect Tables that are about to exceed the size or their UDFs cannot be updated.For SQL 2000, use "UDF_LengthTest_Select_SQL2000.txt"For SQL 2005 or SQL 2008, use "UDF_LengthTest_Select_SQL2005 or Above.txt"
In case you got any result - You cannot add UDF to these tables and in some cases won't be able to update UDFs for these tables.
How to analyze the query result:
For each table which was detected by the query, UDFs in the table must be truncated
or unused UDFs have to be removed. Use the following for removing unused UDF's:
1. Go to the SAP Business One menu 'Tools > User-Defined Fields > Manage User Fields' and delete UDF from here
2. Or use the API DI - go to the SDK helpfile (sdk_en.chm) for information on how to do this. You can look up the 'UserFieldsMD' object. For further information or questions on this, go to the SDN forums http://scn.sap.com/welcome
General information:
/* User Fields Length
AlphanumericLen*2
Address 508
Phone 40
Text 16
Numeric (9-12)4
Numeric (8) 20
Numeric (>12) 20
Numeric (<8)Len*2
Date 8
Hour 2
Units\Totals9
Link 16
Image 400
*/
Other terms
Field Length, MSSQL, Sybase, User Fields,8060,Update UDF, UDF, upgrade,
SAP Business One
Te adjunto también el txt con las queries que sirven para detectar qué tablas están apunto de excederse.
Un saludo
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.