on 03-15-2012 7:08 PM
quisiera hacer un query donde en lugar de poner [%0] parametro y solo aparezca formatcode , quiero que también me aparezca el acctname de la tabla oact. es decir en mi query si yo quiero seleccionar algo me aparezca almomento de la seleccion, el codigo de formato y el nombre de la cuenta, sin embargo para mi rango utilizaré el codigo de formato. como puedo hacer esto en sap?.-
bueno ya hice esto...
DECLARE
@FORMATOC1 AS NVARCHAR(50),@FORMATOC2 AS NVARCHAR(50)
DECLARE
@CTAS TABLE(CTA NVARCHAR(MAX))
INSERT
INTO @CTAS
SELECT
(formatcode+'-'+acctname)
FROM
OACT
where
formatcode is not null
order
by formatcode asc
set @formatoc1=(select cta from @ctas where cta='[%0]')
pero no me aparece como quiero...quien puede ayudarme???
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
mmm no puedo, entonces?, que otra manera puede haber para que me salga la cuenta el formato y el nombre de la cuenta?, es más fácil para el usuario encontrar sus parametros de esta manera. bueno y no son en si tablas temporales si no variables de tabla, creo que hay una diferencia entre estas dos.
http://grimpidev.wordpress.com/2008/04/23/tablas-temporales-versus-variables-de-tabla/
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.