on 05-09-2016 8:29 PM
Buenas tardes,
Estoy tratando de listar todas ventas de los artiulos con numero de serie pero me trae todas incluyendo las facturas que fueron canceladas por una nota e credito. Alguiende ustedes sabe como hacer esto posible
Buen día,
Juan Carlos y Cluaudio, me fue de mucha ayuda su valiiosa informacion, pude terminar mi cnsulta.
Muchas Gracias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Estimado Diego, Juan Carlos esta en lo correcto, soy nuevo en SAP y estuve buscando lo mismo que tú y me di cuenta el TargetType en -1 es cuando la factura esta vigente, también encontré otra variable InvntSttus cuando esta en 'C' es porque esta anulada la factura y cuando esta en 'O' está vigente,y cuando esta en 14, es porque esta asociada a una nota de crédito: de tejo un EJ:
select top 10 TargetType ,* from INV1 where year(DocDate) = 2016 and InvntSttus = 'O' --Factura vigente
select top 10 TargetType ,* from INV1 where year(DocDate) = 2016 and InvntSttus = 'C' --Factura Anulada
Saludos cordiales
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
En las partidas de la factura hay un campo TargetType (o TrgtType). Cuando esté vacío o con -1, es porque no se ha vinculado a ningún documento. Busca los que tengan el valor '14' y esos son los que fueron vinculados a Nota de crédito (total o parcialmente).
Saludos,
JC.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
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.