on 10-02-2015 1:00 AM
ESTIMADO FORO SAP,
ACUDO A USTEDES PARA TENER SU APOYO EN UNA BF,
EN LA IMAGEN OBSERVARAN UNA PRIMERA LISTA OPCIONAL DE VALORES LLAMADA: U_Tipo Y DE ACUERDO A SU VALOR DESEO QUE MUESTRE ALGUNAS OPCIONES EN LA SEGUNDA OPCION. U_TIPO2 (AA)
ESTA ES MI CONSULTA:
SELECT $[OCRD.U_TIPO2]
FROM OCRD
WHERE $[OCRD.U_Tipo] = (case When $[OCRD.U_Tipo] = '1' then (SELECT Segm2 FROM [PRUEBAS MHO 17072015].dbo.[SN] Where (Numb = '1'))
When $[OCRD.U_Tipo] = '2' then (SELECT Segm2 FROM [PRUEBAS MHO 17072015].dbo.[SN] Where (Numb = '2'))
END)
MI LISTA DE CONTENIDO LO TENGO EN OTRA TABLA LLAMADA SN, AHI TENGO LA RELACION DE ACUERDO AL U_Tipo vs U_TIPO2
AGRADEZCO EL APOYO BRINDADO!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Como te han explicado en otros post, lo correcto sería que crearas 2 tablas de usuario.
1 .- Sector (Code, Name)
Insertas (COMERCIAL, EDUCATIVO, SERVICIOS MEDICOS, OTROS SECTORES)
2.- Segmento (Code, Name, CodSector)
Insertas los valores que puedes tener y los vinculas con Sector por el CodSector.
3.- Creas 2 campos de usuario en la ficha del IC.
En el primero colocas una busqueda formateda de tipo Select solo de la tabla Sector y del campo Name. SELECT T0.[Name] FROM [dbo].[@SECTOR] T0
En el segundo colocas una búsqueda formateada vinculada a refrescar cada vez que cambia el dato del primer campo y visualizar valores guardados por el usuario.
SELECT T0.[Name] FROM [dbo].[@SEGMENTO] T0 inner join [dbo].[@SECTOR] T1 on T0.[U_CodSector]=T1.code where t0.U_CodSector=$[OCRD.U_Sector]
En el trabajo normal en la aplicación, primero seleccionas el Sector y después seleccionarías el Segmento que estaría basado en los valores según el sector que hayas especificado.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
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.