cancel
Showing results for 
Search instead for 
Did you mean: 

Modificar Estatus de Facturas

Former Member
0 Kudos

                Sólo una consulta en que consiste que en ocasiones si me permite modificar el estatus de una factura y en otras no??

Accepted Solutions (1)

Accepted Solutions (1)

javier_facessantos
Contributor
0 Kudos

Hola Jorge

Parece que esa funcionalidad ("Modificar estatus de documento a Abierto") es exclusiva de facturas de clientes basadas en facturas de anticipo, pues el reabrirlas sería inprescindible para abonarlas. Viene explicado en  la ayuda de SAP:

http://help.sap.com/saphelp_sbo882/helpdata/af/44/fd8a11a7100484e10000000a155369/content.htm

Viene explicado en el segundo párrafo de "Atención"

Un saludo

Former Member
0 Kudos

HOPLA JAVIER QUIERO REPLICAR EL INFORME DE ANALISIS DE VENTAS PARA AGREGAR COLUMNAS PERO:

TENGO EL SIGUIENTE QUERY PERO ME ARROJA DIFERENCIAS EN ALGUNOS ARTICULOS CUANDO  ESTOS TIENEN DESCUENTOS, FACTURAS DE ANTICIPOS, O ESTAN ABIERTOS.

EN FIN CUADRA EN UN 80 %, NECESITO EL 100% ME PODRIAN AYUDAR POR FAVOR

SELECT  ItemCode,  

        Sum(TotFac) - SUM(TotNC) as  'FacturadoNeto',  

        Sum(GBrutaFac)-SUM(GbrutaNC) as  'GBruta',  

        Round((Sum(GBrutaFac)-SUM(GbrutaNC))/case when  (Sum(TotFac) - SUM(TotNC))= 0 then 1 else (Sum(TotFac) - SUM(TotNC)) end  *100,2) as '% Margen'  

FROM (  

SELECT   

ItemCode = T1.ItemCode,

Marca = (Select T2.FirmName from OMRC T2 JOIN OITM T3 on T2.FirmCode = T3.FirmCode where T3.ItemCode=T1.Itemcode),

TotFac = Sum(T1.Linetotal),   

GBrutaFac = SUM(T1.GrssProfit),  

TotNc= 0,  

GbrutaNC = 0  

FROM OINV T0 (NOLOCK) INNER JOIN INV1 T1 (NOLOCK) ON T0.DocEntry = T1.DocEntry                                   

WHERE (T0.[DocDate] >='20140101' AND  T0.[DocDate] <='20141231')

  and T0.DocType  = 'I' -- solo facturas por articulos  

Group by  T1.ItemCode 

Union  

SELECT   

ItemCode = T1.ItemCode,  

Marca = (Select T2.FirmName from OMRC T2 JOIN OITM T3 on T2.FirmCode = T3.FirmCode where T3.ItemCode=T1.Itemcode),

TotFac = 0,  

GBrutaFac = 0,  

TotNc= Sum(T1.LineTotal),   

GbrutaNC = SUM(T1.GrssProfit)  

FROM ORIN T0 (NOLOCK) INNER JOIN RIN1 T1 (NOLOCK) ON T0.DocEntry = T1.DocEntry                                   

WHERE (T0.[DocDate] >='20140101' AND  T0.[DocDate] <='20141231')

  and T0.DocType  = 'I' -- solo NC por articulos  

Group by T1.ItemCode

Union

SELECT   

ItemCode = T1.ItemCode,  

Marca = (Select T2.FirmName from OMRC T2 JOIN OITM T3 on T2.FirmCode = T3.FirmCode where T3.ItemCode=T1.Itemcode),

TotFac = 0,  

GBrutaFac = 0,  

TotNc= Sum(T1.LineTotal),   

GbrutaNC = SUM(T1.GrssProfit)  

FROM ODPI T0 (NOLOCK) INNER JOIN DPI1 T1 (NOLOCK) ON T0.DocEntry = T1.DocEntry                                   

WHERE (T0.[DocDate] >='20140101' AND  T0.[DocDate] <='20141231')    

  and T0.DocType  = 'I' -- solo Fact Anticipos por articulos  

Group by T1.ItemCode

) T  

Group by  ItemCode, Marca

Answers (0)