How to get Opening Balance for Stock Report in Crystal Report?
Dear Experts,
I am using SAP B1 8.82.
I am new to crystal report and now trying to do a monthly stock report with the following format:
Species BatchNum OpeningBal QtyInKD QtyInRD QtyInCD Adj ClosingBal
ABC T1234 17.43 10.16 17.43 0.00 0.00 10.16
ClosingBal = OpeningBal + QtyInKD - QtyInRD - QtyInCD + Adj
Parameters:
- DateFrom
- DateTo
- WarehouseFrom
- WarehouseTo
I am having problem in defining formula to get the opening balance for each item. The report is grouped by species, whscode & batchNum.
Anyone please share with me how to write the formula for opening balance in stock report.
Thanks.
Best Regards,
Leng
Hi
Check the below discussion it may helps you
Opening Stock Batchwise
With Regards
Balaji Sampath
Similar Messages
-
How to get Open Balance for the year and Total Ending Balance?
For a given account, how to get Open Balance for the year (Cumulative Ending Balance) and Total Ending Balance (Cumulative Ending Balance)?
Is there any function module available? or should I read from some tables? Please advice.Hello Paul,
You could try calling one of the following BAPIs - see which one meets your requirement. They are documented well so shouldn't be a problem finding out the correct one for your requirements.
BAPI_GL_GETGLACCBALANCE
BAPI_GL_GETGLACCCURRENTBALANCE
BAPI_GL_ACC_GETBALANCE
BAPI_GL_ACC_GETCURRENTBALANCE
BAPI_GL_ACC_GETPERIODBALANCES
BAPI_COND_VAL_DECRE_BALANCES
You might have to put in some of your own logic after the BAPI call to get what you want.
Hope this helps,
Cheers,
Sougata.
p.s. Also look at FM FAGL_GET_ACCOUNT_BALANCE
Edited by: Sougata Chatterjee on May 7, 2008 11:47 AM -
How to calculate Opening balance for a customer?
Hi Experts,
How to calculate Opening balance for a customer? I am trying to develop a report where in i have to get opening AR balance,current sales,adjustments etc of a customer. Please let me know how can i do this. I have some tables with me KNC1, BSAD, BSID.
Thanks in Advance.
Sharat Chandra.Say for example ..
Get the opening bal for Customer 'K' in CCode 'C1' in 2008 ..
First get all items from BSEG ..
Select * from BSEG where KUNNR eq 'K'
and BUKRS eq 'C1'
and GJAHR eq '2008' .
Sum all the DMBTR values (This is the total value).
Second get the cleared items form BSAD for the above entries;
Select * from BSAD for all entries in BSEG where KUNNR and BUKRS and XBLNR eq BSEG-XBLNR.
Sum all DMBTR values ( this is cleared value).
Third substract the cleared value from total to get Open value.
This is a overview .. you should go to the tables and look for fields and etc.. and then define the logic meeeting your requirements .... this is a genric undersatnding ....
Thanks,
Aditya. V -
How to get opening balance of a g/l account using query ?
Dear all,
I'm developing consolidated g/l accounts debit,credit totals month wise with opening & closing balances thru query based report,
i'have got expected results except opening balance g/l account,
How to get opening balance of a g/l account based on date as conditonal parameter ?
Any one throw light on this ?
JeyakanthanHi ,
Please kindly help me on this.I don't know how to calculate opening bal and closing bal over a period of time by Quarter, and how to generate the reprot using crystal reports and please suggest me on this how to go ahead with this report.
Here you can go through the reprot requirement , and also an attachment of my Report template.
we have "Category of Investment" , "Income On Investment" ,"Gross yield" and "Net yield" are report fields.
1)"Category Of Investment " is Hardcoded.
2)In this we have to get "Investment" column from VTBFHAPO(BZBETR Field) table Database based on
Flow type(SFHAZBA) in VTBFHAPO table ='0100' for bonds category.
3)"Income on Investment" also we will get from DB using the following formula.
Income On Investment= "Interest IncomeAmortizationCapitalgain"
4)With the Date field(Making Date dimension based on date(DCRDAT) field in VTBFAHPO table.
By Current Quarter,Year to Date,Last year)
5)Opening bal---Investment
Purchase--Flowtype=0100
Meturity/Sales--Flowtype=0200
Closing balance=Opening bal+(Investment or Purchase)-(Meturity or Sales)
'0100' '0200'
Here '0100' and '0200' are Flow types based on this i need to get value from the same Field.
we need to Calculate "Gross yield" .
The bellow are formulas to evaluate "Gross yield "
Ist Qtr .Gross yield=Investment income/(((April opening balanceApril closing balance)/2)((May opening balanceMay Closing Balance)/2)((June opening balance+June closing balance)/2))/3)
Ist qtr. Year to date Gross yield=Investment income/(((April opening balanceApril closing balance)/2)((May opening balanceMay Closing Balance)/2)((June opening balance+June closing balance)/2))/3)
Investment income=interest incomeamortisationcapital gain
Iind Qtr.Gross yield=Investment income/(((July opening balanceJuly closing balance)/2)((Aug opening balanceAug Closing Balance)/2)((Sept. opening balance+Sept. closing balance)/2))/3)
Iind Qtr. Year todateGross yield=Investment income/(((April opening balanceApril closing balance)/2)((May opening balanceMay Closing Balance)/2)((June opening balanceJune closing balance)/2))((July opening balanceJuly closing balance)/2)((Aug opening balanceAug Closing Balance)/2)((Sept. opening balance+Sept. closing balance)/2))/6
This data should display over a period of time. based on "Current Quarter","YearToDate" and "Last year"
The quarter starts from April,i,e FY, I Like this i need to generate the report.
Thanks in advance. -
How to find Opening Balance for Cash Book
Hello Friends,
I am Creating one Report for Cash Book.(Means : For Perticuler GL Account)
I have no idea how to find Opening Balance for some Perticuler Date.
Ex.
Current date: 07/06/2007
and i want to find Opening Balance on 26/05/2007
i have Function for Calculating Opening Balance,
Group No: 3006 Business Object General Ledger Account
BAPI_GL_ACC_EXISTENCECHECK Check existence of G/L account
BAPI_GL_ACC_GETBALANCE Closing balance of G/L account for chosen year
BAPI_GL_ACC_GETCURRENTBALANCE Closing balance of G/L acc for curr year
BAPI_GL_ACC_GETPERIODBALANCES Posting period balances for each G/L account
but they show current opening balance, and i want for perticulaer Date..
How to find Opening Balance for Cash Book
please Help me out
Thanks
Gaurav TripathiHi Maruthi,
Opening balance for a cutomer for a given period, u need to first find closing balance of that customer in the previous period. For eg. Suppose u want to find opening balance for customer 'A' for month of Nov'06, then U have to find wot was his closing balance in at end of Oct'06. Hope this solves u r problem -
Hi Expert,
How to enter opening balance for last year to closing balance to this year opening balance explain deeply helpful for me Thanks in advance.
Example
All Bank A/C, Cash Book, Vendors, Customers, like that how to enter closing to opening balance.
With Warm regards,
SelvaDear,
As per SAP standard there is no need to carry forward the balances as the system will do a virtual carry forward into next year opening without creating any FI documents.
If your business scenario demands then you can use the transaction code F-02 for posting a carry forward balances, this will not effect any of your balances but only creates a FI document.
If your R3 version is SAP ECC5 or 6 then use the transaction code FAGLGVTR -
How to query opening balance for all customer or Vendor for an speci. date
Hi,
How to query opening balance for all customer or Vendor for an specific date?
Example:
put any date and query will show all customer/ Vendor that date opening/current balance.
Regards,
MizanHi mizan700 ,
Try this
SELECT T0.[DocNum] As 'Doc No.', T0.[CardCode] As 'Customer Code',
T0.[CardName] As 'Customer Name',(T0.[DocTotal]-T0.[PaidSys]) As 'O/S Balance'
FROM OINV T0 INNER JOIN OCRD T1 ON T0.CardCode = T1.CardCode
INNER JOIN OCRG T2 on T1.GroupCode = T2.GroupCode
INNER JOIN INV1 T3 ON T0.DocEntry = T3.DocEntry
WHERE T0.[DocStatus] ='O'
AND
(T0.[DocDate] >='[%0]' AND T0.[DocDate] <='[%1]')
Regards:
Balaji.S -
How to get Inventory Balances for PO data
Hi Guys,
How to get Inventory Balances for PO data.
from which tables I can get it ?
We are migrating material data to a new plant.. for this process.. The inventory data also has to be moved..
I am using BAPI_GOODMVT_CREATE to post inventory balances for the new plant.
ThanksHi,
Try MARC, MSKA, MARD .
Thanks,
Krishna -
Problem in getting opening balance for multiple GL Account
Hi,
I am working on a Trail Balance Report in which i am trying to fetch the data for the opening balance for multiple GL Accounts but it is not coming accurate.. Here is the link to the code which i am using currently right now:-
http://docs.google.com/View?id=dfxswwff_13fgpdcbgt
here i am showing the logic for the data of previous year only... i.e. data from begining to 1 day less of the date-low.Hi,
It is a tranparent table which is getting data from the 2 other tables,the filling of this table is right. The execution of this query is right in the program but the problem comes when it is trying to calculate the opening balance for the respective GL Account present in the query it is not doing it. i.e. if there are 2 gl account ids having 3 rows of data each it is not calculating the of it in a single row.. i hope it is clear now... -
How to find opening balance for customer?
Hello Abapers,
I have a requirement as i need to find opening balance for particualr customer in a company.This is related to FI/CO modules.Please solve my porblem.
Waiting for your favourable replies
Regards
MaruthiHi Maruthi,
Opening balance for a cutomer for a given period, u need to first find closing balance of that customer in the previous period. For eg. Suppose u want to find opening balance for customer 'A' for month of Nov'06, then U have to find wot was his closing balance in at end of Oct'06. Hope this solves u r problem -
How to enter opening balances for business partners
pls let me know end to end process to enter opening balances for business partners.
thank
reemaHi Reema....
There are two processes you can enter OB for BP.
1. Bill waise
2. Total
If you want to go for Bill wise then its better to upload the AP and AR invoice under service category via DTW.
If you want to go for Total BP balance then go to Administration> System Initialization> Opening Balance--> Opening Balance Business Partner.
Regards,
Rahul -
How to Get Opening Balance?
Hello All,
from our legacy system we inputed it to SBO... now i want to get the summary of all the opening balance. how can i get the data that i wanted to. is there a built in report in SBO for this?
Please advice.
FIDELHello,
When in the Trail Balance selection criteria window, on the left hand side there is an option of selecting the Opening Balance.
User can select the Opening Balances radio box and the balances would appear on the window under the column O/B in the Trial balance window.
Hope it helps.
Regards,
Jitin Chawla -
How to get the total page number when using Crystal Report in JSP
In my JSP, I use the class CrystalReportViewer to generate and display the report views. But this class only sypply the function to get the info of the active view.
Thus with this info, I only can get the active view's page number. How can I get the report total page number without showing the last page first?
Thanks.Anything you do without submitting to form has to be done on the client side (ususally by JavaScript) using data which has been send already from the server.
With JavaScript you can do quite a bit. You can download tables which don't necessarilly appear on the screen, loading them into JavaScript arrays by dynamically generating javascript. Then you can pick up events like drop-box selection and use these tables to chose what you do next (e.g. preloading other fields, setting drop box content etc.).
Or, you can cause forms to be submitted when actions like a selection happen without the user clicking a button. It's generally a matter of how much data you'd need to transmit.
Another posibility is to use a Java applet, which can generate requests to the server and handle the results as it chooses. That are a number of problems with that but occasionally it's the best solution.
What you can't do is to handle user input inside a JSP. The JSP has come and gone before the user even gets to see your form. -
HOW TO CALCULATE OPENNING BALANCE
HI Experts..
How to calculate Opening balance for previous period using variables in Reports using debit and credit.
Example:
Opening balance is the balance for an account for the previous period. In other words, if the user is running a report for Period 1, 2006, the opening balance is actually the ending balance from Period 12, 2005 (December 31st, 2005).
I am Using 0FIAR_O03 ODS ..
Very Urgent Issue..
If Possible Stp by Step..
Cheers
Purushottam
09891683828
[email protected]Hi Saloni,
to get the debit and credit you would be using a variable 0I_FPER(Fiscal year / period), which is a user entry interval variable.
now to get the opening balance you will have to create a customer exit valiable and the low value of 0I_FPER will have to popuplated by writied the code for the customer exit valiable. you will have to restrict the key figure DEB_CRE_LC for this customer exit variable with the operand as less than(< Fiscal Year /Period from 0I_FPER)).
If the above was useful please assign reward points.
Regards
Venkata Devaraj -
How to Calculate Opening balance
Hi BW Gurus,
How to calculate Opening balance for previous period using variables in Reports using debit and credit.
Example:
Opening balance is the balance for an account for the previous period. In other words, if the user is running a report for Period 1, 2006, the opening balance is actually the ending balance from Period 12, 2005 (December 31st, 2005).
Thanks in advance
DJHi Friend,
If Your Prob is solve then tell me how to find perticular month balance amount.
i m create cash book report for perticuler GL Account , i use BKPF + BSEG for this
i found all entries,
But at last i want to Opening Balance for perticuler date.
like 01/05/2007 opening balance = 10000 as per tcode FS10N
and in 26/05/2007 ??????
how to find exact date opening balance is there any function for same
or any procedure..
Thanks
From
Gaurav
Maybe you are looking for
-
Airport Express/Apple TV Support?
Hey, Have been searching through the forums but unable to locate any information around support for Apple TV With Aiport Express In short, I have an iMac, MBPro, iPad, iPhone 4 and Apple TV. Just moved in to a new flat and looking at how to get a mul
-
Can I make more than one edit in a clip in Imovie?
I converted a VHS tape to an MPEG 4 file and wish to edit multiple portions of it. The tape was converted and is only in one clipping. I'm new to IMovie and can't seem to be able to make more than one edit. Where have I gone wrong or is it not possib
-
Missing Icons in SE80 & Javascript errors
Hi All, I am trying to write a basic web dynpro for abap in an ECC 6.0 system and am getting Java script errors and missing images when I switch to the view editor in SE80. All of the images are missing in the layout tab. Instead of seeing the images
-
Everytime I use the pen tool and then convert to selection from the path, it automatically inverses it. Also when I try to fill the path, it fills the inverse as well. Anyone know what might be causing this?
-
In which process get a address of object/variables
Hi every one i want to know that how can obtain memory addresses of variable or object. can it possible without using native thanks in advace surendra