Quantcast
Channel: SCN: Message List - Reporting and Printing
Viewing all 2719 articles
Browse latest View live

Opening & Closing closing Stock

$
0
0

Dear Experts,

 

                    Please find the below query for Opening and Closing Stock of RM, where in I have been trying to arrest the Inventory Transfer quantity & Value  in IN QTY & OUT QTY. I used Transtype<> 67 to arrest but the same is not working out for me...

 

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

 

Declare @FromDate Datetime

 

 

Declare @ToDate Datetime

 

 

Declare
@ItmsGrpNam varchar(100)

 

 

 

 

 

select @FromDate =min(S0.Docdate)from dbo.OINM S0 where S0.Docdate >='[%0]'

 

 

select @ToDate =max(S1.Docdate)from dbo.OINM s1 where S1.Docdate <='[%1]'

 

 

select
@ItmsGrpNam =max(s2.ItmsGrpNam)from dbo.OITB S2 Where S2.ItmsGrpNam ='[%2]'

 

 

Select  a.Itemcode,max(a.Dscription)as ItemName,

 

 

(Select i.InvntryUom from OITM
i where i.ItemCode=a.Itemcode)as UOM,

 

 

sum(a.OpeningBalance)as OpeningBalance,

 

 

sum(a.OpeningValue)as OpeningValue,

 

 

sum(a.INq)as'IN',

 

 

(selectSUM(ISNULL(T100.TRANSVALUE,0))from oinm T100 WHERE T100.ITEMCODE = A.ITEMCODE

 

 

AND T100.DOCDATE >=
@FROMDATE

 

 

AND T100.DOCDATE <=
@TODATE AND T100.INQTY
<> 0)AS [IN Stock Value],

 

 

sum(a.OUT)asOUT,

 

 

(selectSUM(ISNULL(T100.TRANSVALUE,0))from oinm T100 WHERE T100.ITEMCODE = A.ITEMCODE

 

 

AND T100.DOCDATE >=
@FROMDATE

 

 

AND T100.DOCDATE <=
@TODATE AND T100.OUTQTY
<> 0)*-1 AS [OUT Stock Value],

 

 

((sum(a.OpeningBalance)+sum(a.INq))-Sum(a.OUT))as Closing ,

 

 

(selectSUM(T100.TRANSVALUE)from oinm T100 WHERE

 

 

T100.ITEMCODE
= A.ITEMCODE AND T100.DOCDATE < @TODATE)AS [Closing Value Transaction],

 

 

 

 

 

(Select i.LastPurDat from OITM
i where i.ItemCode=a.Itemcode)as'Last Purchase Date',

 

 

(Select b.ItmsGrpNam from OITB
b where
b.ItmsGrpCod =
I1.ItmsGrpCod)as'Group Name'

 

 

from(Select  N1.Itemcode, N1.Dscription,(sum(N1.inqty)-sum(n1.outqty))

 

 

as
OpeningBalance,

 

 

(sum(N1.Transvalue))

 

 

as
OpeningValue,

 

 

0 as
INq, 0 asOUTFrom dbo.OINM N1 innerjoin OITM i on i.ItemCode = N1.ItemCode

 

 

innerjoin OITB b on b.ItmsGrpCod = i.ItmsGrpCod

 

 

Where N1.DocDate <@FromDate
and b.ItmsGrpNam
= @ItmsGrpNam

 

 

GroupBy N1.ItemCode,N1.Dscription

 

 

 

 

 

UnionAll

 

 

 

 

 

select N1.Itemcode, N1.Dscription, 0 as OpeningBalance,0 as OpeningValue,

 

 

sum(N1.inqty), 0 asOUTFrom dbo.OINM N1 innerjoin OITM i on i.ItemCode = N1.ItemCode

 

 

innerjoin OITB b on b.ItmsGrpCod = i.ItmsGrpCod

 

 

Where N1.DocDate >=
@FromDate and N1.DocDate
<= @ToDate

 

 

and N1.Inqty >and b.ItmsGrpNam =
@ItmsGrpNam

 

 

GroupBy N1.ItemCode,N1.Dscription

 

 

 

 

 

UnionAll

 

 

select  N1.Itemcode, N1.Dscription, 0 as OpeningBalance,0 as OpeningValue, 0 ,sum(N1.outqty)asOUT

 

 

From dbo.OINM N1 innerjoin OITM i on i.ItemCode = N1.ItemCode

 

 

innerjoin OITB b on b.ItmsGrpCod = i.ItmsGrpCod

 

 

Where N1.DocDate >=
@FromDate

 

 

and N1.DocDate <=@ToDate
and N1.OutQty > 0 and  b.ItmsGrpNam = @ItmsGrpNam

 

 

and N1.Transtype ='67'

 

 

GroupBy N1.ItemCode,N1.Dscription) a, dbo.OITM I1 ,OITB b1

 

 

where a.ItemCode=I1.ItemCode

 

 

and I1.ItmsGrpCod = b1.ItmsGrpCod

 

 

GroupBy a.Itemcode ,I1.ItmsGrpCod , b1.ItmsGrpNam 

 

 

Havingsum(a.OpeningBalance)+sum(a.INq)+sum(a.OUT)> 0

 

 

OrderBy a.Itemcode

---------------------------------------------------------------------------------------------

 

Thanks,

 

Bhoopathi.K


MANUAL SAP B1-ESTRUTURAÇÃO DE CÓDIGO DE IMPOSTOS

$
0
0

Colegas,

 

gostaria de saber qual o Manual devo me utilizar para estudar a estruturação do Código de Imposto no SAP B1-Versão 9.

 

Att,

Re: MANUAL SAP B1-ESTRUTURAÇÃO DE CÓDIGO DE IMPOSTOS

$
0
0

Hi,

 

This forum for English users. Please repost in English to get quick assistance.

 

Thanks & Regards,

Nagarajan

Re: Tax report.

$
0
0

Hi,

 

Before proceeding to Report , you have to create a UDF on code level , which has two options like Input Section/Output Section.

 

Further the same UDF will help you in your report to distinguish the same by applying the formula in same.

Report on todays invoices

$
0
0

Can anyone help me

 

I am trying to create a report to show all the invoices created today - I am doing this is query generator in sap business one

 

I want to then add this to an alter so that the user will be notified and run this

 

The query I am writing is as follows

 

 

SELECT T0.[DocNum],t0.[DocDate],t0.[CardCode],T0.[CardName],T1.[Slpcode] FROM OINV T0 INNER JOIN OCRED T1 ON T0.CardCode WHERE T0.[DocDate] - Getdate() AND T1.[SlpCode] = '28'

Re: Crystal Report as Default Print Layout Parameter

$
0
0

Thank you so much for your help.

 

the problem is solved

 

Regards

Re: Report on todays invoices

$
0
0

HI,

 

you can use this query

 

 

SELECT T0.[DocNum],t0.[DocDate],t0.[CardCode],T0.[CardName],T1.[Slpcode] FROM OINV T0 INNER JOIN OCRD T1 ON T0.CardCode =T1.CARDCODE WHERE T0.[DocDate] = Getdate()

 

  • Then save this query in query manager:
  • Go to Administration > Alert Management
  • Set the Alert to desire USer

Let me know if you need any help regarding settings of alert .

 

Please mark answer as correct or helpful at end of discussion

Re: Report on todays invoices

$
0
0

Thanks for your help..

 

But it returns no data.

 

I have keyed in a couple of invoices but they aren't being reported by this query ?


Re: Purchase Price Comparison by Items

$
0
0

Hi experts,

 

Just to represent the report format in a better way. We want it to look like this:

 

Item Code

Latest Purchase Price (PO) P1Previous Purchase Price (PO) P2Price Difference (P1 - P2)
TM001402515
TM00250500

 

 

Thanks in advance.

 

 

Regards

Kanu

Re: Report on todays invoices

$
0
0

Hi,

 

Try this query:

 

SELECT T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], T1.[SlpName] FROM OINV T0  INNER JOIN OSLP T1 ON T0.SlpCode = T1.SlpCode WHERE T1.[SlpCode] = '28' and  T0.[DocDate]  = CONVERT(VARCHAR(10),GETDATE(),110)

 

I don't think your OCRD table in your query.

 

Thanks & Regards,

Nagarajan

Re: MANUAL SAP B1-ESTRUTURAÇÃO DE CÓDIGO DE IMPOSTOS

$
0
0

Nagarajan, good night .

 

 

Thank guidelines.

 

 

I wonder qua manual should I use to study the structure of the Tax Code in SAP B1-Version 9.

Re: Report on todays invoices

$
0
0

Thanks..

 

But still returns no data.

 

Keyed in sales orders and copied to invoice using todays date.

 

Get no data  message

Re: Report on todays invoices

$
0
0

Hi,

 

Please run above query and post your query result here. Make sure slpcode is correct.

 

Thanks & Regards,

Nagarajan

Re: Report on todays invoices

$
0
0

Nagarajan

 

I checked the slpcode and you are correct it was wrong.

 

I changed it to a correct number and it worked fine.

 

If I just wanted to run this for all sales employees what should I remove.  Sorry if this is a bit basic but my sql query skills are some what lacking.. 

Re: Report on todays invoices

$
0
0

Hi,

 

For all sales employee, try this:

 

SELECT T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], T1.[SlpName] FROM OINV T0  INNER JOIN OSLP T1 ON T0.SlpCode = T1.SlpCode


WHERE   T0.[DocDate]  = CONVERT(VARCHAR(10),GETDATE(),110)


Thanks & Regards,

Nagarajan


Re: Report on todays invoices

$
0
0

That works fine

 

Thanks for your help..

Re: Opening & Closing closing Stock

$
0
0

Dear Experts,

 

                   Any inputs !.

 

Regards,

 

Bhoopathi.K

Re: Inventory transfer two report preview

$
0
0

Hi,

 

Please close this thread by marking correct/helpful answer.

 

Thanks & Regards,

Nagarajan

Re: Inventory transfer two report preview

$
0
0

Hi ,   you are welcome ,   Please close this thread by choose Correct or Helpful answer if you got solution?? -Rajesh N

Re: Inventory transfer two report preview

Viewing all 2719 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>