Quantcast
Channel: SCN : Unanswered Discussions - Reporting and Printing
Viewing all 776 articles
Browse latest View live

How to get Receipt & Issue Value sumaries of Item from Warehouse Journal (OINM) ?

$
0
0

How to get query Inventory Balance Summary as below from Warehouse Journal (OINM) because i found difference value compare with Trial Balance they are Receipt Value on Landed Cost and Issue Value on Inventory Revaluation such as my queries below . I'm not sure it correct or not ? Please help. OINM keep all transaction ?

 

Item CodeItem DescriptionOB-QtyOB-ValueReceipt-QtyReceipt-ValueIssue-QtyIssue-ValueCls-QtyCls-Value
AAADescAAA55.000130.660450.0001,082.88039.00095.130466.0001,118.410
BBBDescBBB137.0001,808.5106.00080.58012.000161.160131.0001,727.930
Total192.0001,939.170456.0001,163.46051.000252.290597.0002,846.340

 

Select

--a.[Group],

--a.[ItmsGrpnam],

a.ItemCode,

a.[Name],

a.[Whse],

SUM(a.[OB-Qty]) [OB-Qty],

SUM(a.[OB-Value]) [OB-Value],

sum(a.[Receipt-Qty]) [Receipt-Qty],

sum(a.[Receipt-Value]) [Receipt-Value],

sum(a.[Issue-Qty]) [Issue-Qty],

sum(a.[Issue-Value]) [Issue-Value],

SUM(a.[Cls-Qty]) [Cls-Qty],

--Max(a.[Avg-Cost]) [Avg-Cost],

SUM(a.[Cls-Value]) [Cls-Value],

a.[Inventory Unit]

From

(select

--SUBSTRING(T0.[ItemCode],1,2) [Group],

--T2.[ItmsGrpNam],

T0.[ItemCode],

max(T1.[ItemName]) [Name],

max(T0.[Warehouse]) [Whse],

(sum(isnull(t0.inqty,0)) - sum(isnull(t0.outqty,0)) ) [OB-Qty],

sum(isnull(t0.transvalue,0)) [OB-Value],

0 [Receipt-Qty],

0 [Receipt-Value],

0 [Issue-Qty],

0 [Issue-Value],

0 [Cls-Qty],

--max(T0.[CalcPrice]) AS 'Avg-Cost',

0 [Cls-Value],

T1.[InvntryUom] AS 'Inventory Unit',

T1.[BuyUnitMsr] AS 'Purchase Unit',

T1.[SalUnitMsr] AS 'Sales Unit'

 

FROM   

OINM T0

INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode 

INNER JOIN OITB T2 ON T1.ItmsGrpCod = T2.ItmsGrpCod

 

WHERE

T0.[DocDate] < '[%0]'

AND SUBSTRING(T0.[ItemCode],1,2) <> 'XX'

 

GROUP BY

--T2.[ItmsGrpNam],

T0.[ItemCode],

T1.[ItemName],

T0.[Warehouse],

T1.[InvntryUom] ,

T1.[BuyUnitMsr] ,

T1.[SalUnitMsr]

--T1.[AvgPrice]

 

 

UNION ALL

 

 

select

--SUBSTRING(T0.[ItemCode],1,2) [Group],

--T2.[ItmsGrpNam],

T0.[ItemCode],

max(T1.[ItemName]) [Name],

max(T0.[Warehouse]) [Whse],

0 [OB-Qty],

0 [OB-Value],

(sum(isnull(t0.inqty,0))) [Receipt-Qty],

SUM(CASE WHEN T0.[InQty] <> 0 THEN T0.[TransValue]

when T0.TransType = '69' then T0.TransValue

ELSE 0 END) [Receipt-Value],

(sum(isnull(t0.outqty,0))) [Issue-Qty],

SUM(CASE WHEN T0.[OutQty] <> 0 THEN T0.[TransValue]*-1

when T0.TransType = '162' then T0.TransValue*-1

ELSE 0 END) [Issue-Value],

0 [Cls-Qty],

--max(T0.[CalcPrice]) AS 'Avg-Cost',

0 [Cls-Value],

T1.[InvntryUom] AS 'Inventory Unit',

T1.[BuyUnitMsr] AS 'Purchase Unit',

T1.[SalUnitMsr] AS 'Sales Unit'

 

FROM   

OINM T0

INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode 

INNER JOIN OITB T2 ON T1.ItmsGrpCod = T2.ItmsGrpCod

 

WHERE

T0.[DocDate] >= '[%0]' and T0.[DocDate] <= '[%1]'

AND SUBSTRING(T0.[ItemCode],1,2) <> 'XX'

 

GROUP BY

--T2.[ItmsGrpNam],

T0.[ItemCode],

T1.[ItemName],

T0.[Warehouse],

T1.[InvntryUom] ,

T1.[BuyUnitMsr] ,

T1.[SalUnitMsr]

--T1.[AvgPrice]

 

 

UNION ALL

 

 

select

--SUBSTRING(T0.[ItemCode],1,2) [Group],

--T2.[ItmsGrpNam],

T0.[ItemCode],

max(T1.[ItemName]) [Name],

max(T0.[Warehouse]) [Whse],

0 [OB-Qty],

0 [OB-Value],

0 [Receipt-Qty],

0 [Receipt-Value],

0 [Issue-Qty],

0 [Issue-Value],

(sum(isnull(t0.inqty,0)) - sum(isnull(t0.outqty,0)) ) [Cls-Qty],

--max(T0.[CalcPrice]) AS 'Avg-Cost',

sum(isnull(t0.transvalue,0))  [Cls-Value],

T1.[InvntryUom] AS 'Inventory Unit',

T1.[BuyUnitMsr] AS 'Purchase Unit',

T1.[SalUnitMsr] AS 'Sales Unit'

 

FROM   

OINM T0

INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode 

INNER JOIN OITB T2 ON T1.ItmsGrpCod = T2.ItmsGrpCod

 

WHERE

T0.[DocDate] <= '[%1]'

AND SUBSTRING(T0.[ItemCode],1,2) <> 'XX'

 

GROUP BY

--T2.[ItmsGrpNam],

T0.[ItemCode],

T1.[ItemName],

T0.[Warehouse],

T1.[InvntryUom] ,

T1.[BuyUnitMsr] ,

T1.[SalUnitMsr]

--T1.[AvgPrice])a

 

Group By

a.ItemCode,

a.[Name],

a.[Whse],

--a.[Group],

--a.[ItmsGrpnam],

a.[Inventory Unit]


To add header to a Spool generated by backgrounf job

$
0
0

HI,

 

I am working on a request where user want to add a disclaimer message as a header to spool report which is generated through a background job and send to a group of users.

 

Can we acheive this request with out ABAP code changes?

 

Thanks

Hari Duggineni.

Mapping Sales Invoices with Delivery Notes

$
0
0

Hi All

 

I Am trying to run a query manager where it reports all my sales invoices numbers mapped to the delivery note they are linked to (via relationship map I assume)

 

I have selected what I think but it is to much and crashes SAP. Can anyone help me?

 

 

Thanks

Printing Issues

$
0
0

Hi experts,

 

We have created crystal reports and imported as layouts. The issue is while taking print, print out is coming as 'Top to Bottom" manner not in "left to right ". To be more clear,

 

 

Print out is coming as below one.

Capture1.JPG

 

 

 

But we want it as like below one,

Capture2.JPG

 

(Export to PDF coming properly....)

 

Any idea to solve the issue....

 

Thanks in Advance,

Parvatha Solai.N

Query manager - user supplied Parameters how to?

$
0
0

Good afternoon.  Our company is a new client for SAP Business One and I have been handed several SQL queries that I need to turn in to "reports" within SAP B1.  These queries will also need to to be delivered to our zedsuite portals (hence why I need to deliver them through the query manager, so that i can then publish them to the B1 Web API.

 

Several of these reports have user supplied parameters that need to be used.

 

The two parameters that I need to query the user for are:

  • a "School Year field" - ideally a single select list i.e. 2014-2015 or 2015-16
  • A student username - free text input field.

 

How do I do 'convert' this SQL query so that it can be used in the query manager and then delivered to the zedSuite web API - specifically, how do I define these parameters??

 

I have a Crystal version of this report that works for internal people BUT  zedsuite cannot display the crystal reports - hence my need to develop a second version of the report for delivery to the portal.

 

Sample Query:

 

SELECT DISTINCT

    CRD1.U_V33_SHP2_STUD_ID AS StudentID,

    @schoolYear AS SchoolYear,

    ORDR.DocNum AS OrderNumber,

    'Sales Order' AS ObjectType,

    ORDR.DocDate As DocDate,

    CRD1.U_V33_SHP2_STUD_ID AS CustomerNumber,

    CRD1.U_V33_SHP2_STUD_LNAM + ', ' + CRD1.U_V33_SHP2_STUD_FNAM AS CustomerName,

    RDR1.Quantity AS QuantityOrdered,

    RDR1.OpenQty AS QuantityBackordered,

    ORDR.DocNum AS InvoiceNumber,

    ORDR.DocDate AS InvoiceDate,

    RDR1.ItemCode AS ItemCode,

    RDR1.Dscription AS ItemDescription,

    ship.U_TrackNum AS FedExTrackingNumber,

    RDR1.SerialNum AS SerialNumber

FROM [@V33_SHIP_PLD] ship

    join ORDR on ship.U_DocNum=ORDR.DocNum

    join RDR1 on ORDR.DocEntry=RDR1.DocEntry

    join CRD1 on ORDR.CardCode=CRD1.CardCode AND ORDR.ShipToCode=CRD1.Address

WHERE ORDR.CardCode = 'CPACYBER'

    AND CRD1.U_V33_SHP2_STUD_ID = @studentID

    AND ORDR.DocDate >= CONVERT(datetime, LEFT(@schoolYear, 4) + '-07-01 00:00:00', 120)

    AND ORDR.DocDate <= CONVERT(datetime, RIGHT(@schoolYear, 4) + '-06-30 23:59:59.998', 120)

Ledger printout problem

$
0
0

Hi all ;

 

 

I need really urgent help from you.

 

I have a trouble printout of ledger.

 

In print out just titles are amiss.

 

But other numbers or letters are shapely and we can read clearly .

 

Specialities are  I9SWIN , front end,.

 

How can i fix this problem for titles need to be clearly like other characters.

 

Regards;

Tumecan

Correct method for importing stock items with MUOM and MUOM pricing

$
0
0

Hi

 

What is the correct order that stock items need to be imported (by Template Number) in order to completely establish and setup a complex MUOM environment. No measurements and only a few thousand stock items but ALL items have varying units of measure  e.g. Carton40, Carton80, Carton24,Carton12, Each, Outer, Inner etc.,

 

and not all items are available in all of the units.

 

So some items are available in Each, Carton12 and Carton 24 and each have their own individual pricing and then another set of items may be available in Each and Carton80 only with their own pricing.

 

Do I:::

 

Set all base Units of Measurement up

Leave the stock unticked to auto add all UOM as this could confuse at Sales time

 

then

 

Import ITM1

 

Import ITM12

 

Import ITM9

 

Is it important to either do all at once, 2 together, or all one by one in a specific order????

 

I can find nothing outlining this and if you have something that's complex and not straightforward -- buy each and a box and a carton....with thousands of items............we can't afford to do 20 Test Imports to see what the errors in the file imports are. Where has SAP outlined the above import process in detail???

 

Marilyn

picture size exceeds limit

$
0
0

I am trying to import a new logo file into print preferences for a customer and am getting the error "Picture size exceeds limits".

 

The file size is less that the existing logo file, and the pixel dimensions are smaller.

 

Does anyone know what governs the "size" that SAP Business One will accept?


Map GBP bank detas to UK customers and Euro to export

$
0
0

HI All

 

I'd like to set the system up so I can allocate my sterling bank details to print for my UK customers on their invoices and my Euro bank details to print on invoices for my export

 

My system support told me it is not possible but surely anything is possible, any comments would be appreciated

 

Regards

Linking OINV to OCRD

$
0
0

I am trying to write a quick query in B1 and am having difficulty linking the OINV table to the OCRD table. The reason I need to do this is that the city and state of the Ship-To address is in OCRD in individual fields but in OINV it is in a continuous string.

 

Any help would be much appreciated.

 

Regards,

 

Akil

When two payments come in on the same day how to show the sum of both

$
0
0

I have last payment and amount on my AR query. The issue is when two payments come in on the same day it will only show one of the two. Does anyone know how I could ask for the last payment based on last date.. and the total of the payments that come in on that day? Below is my query showing aging with payment terms, remarks, last payment and amount, I really want the last payment date and sum of amounts from that date. SELECT   T1.CardCode AS "CardCode",   T1.CardName AS "CardName", T2.[PymntGroup],   SUM(T0.BalScDeb - T0.BalScCred) AS "Balance",    SUM(CASE WHEN DATEDIFF(day, T0.DueDate, GETDATE()) < 0 THEN T0.BalScDeb - T0.BalScCred ELSE 0 END) AS "Future",   SUM(CASE WHEN DATEDIFF(day, T0.DueDate, GETDATE()) BETWEEN 0 AND 30 THEN T0.BalScDeb - T0.BalScCred ELSE 0 END) AS "0-30",   SUM(CASE WHEN DATEDIFF(day, T0.DueDate, GETDATE()) BETWEEN 31 AND 60 THEN T0.BalScDeb - T0.BalScCred ELSE 0 END) AS "31-60",   SUM(CASE WHEN DATEDIFF(day, T0.DueDate, GETDATE()) BETWEEN 61 AND 90 THEN T0.BalScDeb - T0.BalScCred ELSE 0 END) AS "61-90",   SUM(CASE WHEN DATEDIFF(day, T0.DueDate, GETDATE()) BETWEEN 91 AND 120 THEN T0.BalScDeb - T0.BalScCred ELSE 0 END) AS "91-120",   SUM(CASE WHEN DATEDIFF(day, T0.DueDate, GETDATE()) > 120 THEN T0.BalScDeb - T0.BalScCred ELSE 0 END) AS "121+",CAST(T1. [Free_Text]  as varchar(250)) as Rmk , t.DocDate AS LastPmtDate , t.[DocTotalSy] AS LastPmtAmt FROM   JDT1 T0   INNER JOIN OCRD T1 ON T0.ShortName = T1.CardCode Left outer join  OCTG T2 On T1.GroupNum = T2.GroupNum LEFT JOIN (SELECT MAX(DocEntry) AS LastPmt, CardCode FROM ORCT GROUP BY CardCode) p ON T1.CardCode = p.CardCode LEFT JOIN ORCT t ON p.CardCode = t.CardCode AND p.LastPmt = t.DocEntry WHERE   BalScDeb <> BalScCred and T1.CardType = 'C' GROUP BY   T1.CardCode, T1.CardName, T2.[PymntGroup], Cast ( T1. [Free_Text] as varchar(250)), t.DocDate, t.[DocTotalSy]

File system full

$
0
0

Hi All,

 

Last 4 day's facing issue regarding Printing

 

when user gives print all print goes on error

 

Error  Message - File system full (file Drive:\usr\sap\[SID]\D02\data\000001807300001.[SID])

 

Drive has 14 GB free Sapce

 

I have clear all log, batch log, reorg job, trace list still facing issue

 

Frequently cheeking Temse sp12 Inconsistency Report & clear every 15 to 20 minutes

 

Refer Number of notes but nothing has worked.

 

We have SAP Sybase Database and Windows Server 2008 OS

Crystal report sample for Sap Business One

$
0
0

Hi , I am starting to work with Crystal report. Can anyone  provide me  sample crystal report for using with INV1 and OINV table ?

or any sample report from like trial balance etc.

 

thanks for helping

PLD

$
0
0

I am building a PLD sales quote to not include certain items based on a Y/N flag on each line.  I have made the field dependent on this flag and have been able to hide the line items appropriately.

 

My issue is hiding the lines does just that.  If I hide the lines, there is blank space on the print out where they should be.  Is there a way to suppress them and not have the blank space on the layout?

 

Thanks,

Ryan

How to change Report Description

$
0
0

Hi,

Can you guys help me to overcome the issue,

I created a classical report with interactive based on Radio button. And  i want to display different heading for different report. not in interacitive it should be in basic list.

 

 

Thanks,


Crystal Report slow to generate

$
0
0

Hello

 

I'm using SAP B1 8.82 PL 10 and Crystal Reports 12.1.3.1028

 

All reports were working fine and timely yet suddenly a few weeks ago reports are now slow with invoices taking almost two minutes to generate. There have been no hardware changes, no new software on the server and the network is performing well.

 

Some of the SAP B1 clients receive the error message: "Logon failed. Details: [Database Vendor Code: 18456] Logon failed. Details: [Database Vendor Code: 18456] Error in File INV20023 {...}{....rpt} Unable to connect: incorrect log on p"

 

The server has plenty of RAM (16gb) I monitored the performance charts as I requested a Crystal Report and did not see any spikes in RAM or Processor use.

 

Has anyone got any ideas of things to try?

 

Many thanks

about FIFO stock aging report

$
0
0

Dear All

 

I would like to get the stock in date (goods receipt PO or production order doc date) when I issue the related item.

 

For example

GRPO0001        2012-01-02        10pcs

DN0001             2012-06-01        4pcs

GRPO0002        2013-01-02        10pcs

DN0002             2013-06-01        10pcs


As at 2013-12-31, remaining 6 pcs for 1 item, how can I know the remaining item stock in date is 2013-01-02

 

For example

GRPO0001              2012-01-02        10pcs

Inventory Transfer    2012-03-02        4 pcs   from warehouse A to warehouse B

GRPO0002              2013-01-02        10pcs

Inventory Transfer    2012-03-02        4 pcs   from warehouse B to warehouse A

DN0001                   2012-06-01        4pcs

DN0002                   2013-06-01        10pcs


As at 2013-12-31, remaining 6 pcs for 1 item, how can I know the remaining item stock in date is 2013-01-02


Regards

Edmund

Report with PO no, PO price, Agreement no, Agreement price

$
0
0

Dear All,

 

Please help me to t-code or other procedure to fetch report in SAP consisting PO no, PO price, Agreement no, Agreement price.

I want to check whether after maintaining agreement price in SAP and raising PO is there any changes in PO price against agreement price.

 

Thanks in advance,

 

Vijay Sharma

I have generated a query but some entries are duplicates

$
0
0

Hello,

 

Could anyone please advise how I can remove the duplicate entries from my query?

 

The query is a simple one. I want to report on BP reference numbers, Job locations, when the jobs were completed (date & time), cost centre, project code and the username of the person who raised the sales order.

 

 

 

 

 

Select

T0.[NumAtCard], T0.[U_IIS_sskJobLoc], T0.[U_IIS_sskJobStatusD], T0.[U_IIS_sskJobStatusT], T0.[U_IIS_sskCostCode], T0.[Project]

 

 

From

ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OUSR T2 ON T0.UserSign = T2.USERID

 

 

Where

T2.[U_NAME] =[%0] AND  T0.[NumAtCard] Like '4106_%%'

 


When the query is executed, most of the lines are duplicated once, twice or three times.

 

Is there a way I can remove the duplicates?

 

 

 

 

Many thanks.

SAP Print Spooler Error

$
0
0

When printing large jobs with program RFFOUS_C the job fails when the
printer has any basic error and provides a message that says:

 

"Error during print request output. l_rc = 2"

 

The printer errors are simple items like out of paper or bin is full.
This is a MICR printer provided by Troy and we have contacted them and
they have confirmed the printer is working appropriately and it is a
software issue. We are using access method U and device type
TROYMICR. Any assitance would be greatly appreciated.

Viewing all 776 articles
Browse latest View live


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