on 04-25-2013 9:54 PM
Estimados.
Hice esta consulta Formateada.
Declare @TMPCantidad AS Decimal (19,6)
Declare @TMPKilos AS Decimal (19,6)
Declare @TMPMetros AS Decimal (19,6)
Declare @TMPUnidad AS Decimal (19,6)
SELECT @TMPCantidad=$[$38.11.0]
SELECT @TMPKilos=$[$38.9.0]
SELECT @TMPMetros=$[$38.8.0]
SET @TMPUnidad = @TMPCantidad / @TMPKilos / @TMPMetros
SELECT @TMPUnidad
y me aparece este errores....
1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near '$38.11.0'.
2). [Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near '$38.9.0'.
3). [Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near '$38.8.0'.
4). [Microsoft][SQL Server Native Client 10.0][SQL Server]Statement 'Alertas recibidas' (OAIB) (s) could not be prepared.
No logro detectar a que se deben...
me puede ayudar???
Atte.
Sergio Rojas
Hola
Puedes intentar sin de la siguiente manera SELECT @TMPCantidad=$[$38.11]
Saludos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Buenos días, trata lo siguiente
Declare @TMPCantidad AS Decimal (19,6),@TMPKilos AS Decimal (19,6),@TMPMetros AS Decimal (19,6),@TMPUnidad AS Decimal (19,6)
SET @TMPCantidad=$[$38.11.NUMBER]
SET @TMPKilos=$[$38.9.NUMBER]
SET @TMPMetros=$[$38.8.NUMBER]
SET @TMPUnidad = ((@TMPCantidad / @TMPKilos) / @TMPMetros)
SELECT @TMPUnidad
Primero, esto lo debes colocar en el query manager, luego guardarlo, asignarlo a un campo y por ultimo ejecutarlo en el campo donde lo dejaste. SI LO EJECUTAS EN EL QUERY MANAGER TE DARÁ ERROR.
También puedes revisar el siguiente tutorial : Crear Busquedas formateadas en SAP B1
Saludos.
User | Count |
---|---|
101 | |
14 | |
10 | |
5 | |
4 | |
3 | |
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.