Passing the Opening Balance for the 1st peroid of the quater
HI ,
Passing the Opening Balance for the 1st peroid of the quater: The report format is as follows
Code-Desc-Amount
1001-AAAA-1000
1002-BBBB-2000
1003-CCCC-3000
The output is based on quaterwise. If I enter the first period of the particular quater, it will show the reports for the whole quater. I created the report and working fine.
But the problem is that, if it is AAAA, i need to pass only first period of that quater else total of the quater.
Can you please, explain me how to do this....
Thanks and Regards
Rajesh
Hi Pooja,
RSA3 only shows records in setup table, which is collected by MCNB.
by MCNB, you could only get the current opening stock, and in order to calculate the open stock in previous month,
you'd have to load the history movement via 2lis_03_bf.
Thanks & B.R.
Vince
Similar Messages
-
How to get the opening balances for lessthan selected date in cubes.
Hi All,
my task is to get the opening balances for the selected date.
Ex: If I select date say 31-1-2013, I should get the sum of values which are less than the selected date.
in sql:
select sum(balance) from banktrans where banktrans.transdate < 31-1-2013;
BankTable BankTrans
BankId BankId
balance
transdate
BankTable (records):
SCB
BankTrans(records):
a) SCB, 15000, 10-02-2013
b) SCB, 20000, 31-01-2014
c) SCB, 50000, 21-09-2012
If I select date as 31-01-2014, I should get the value as 65000
If I select date as 10-02-2013, I should get the value as 50000
Date will be dynamic selection from years months days hirearchy ( time dimension)
How can i achieve this?
any help is much appreciated.
Thanks,
RakeshDear David,
I've tried the below with static date but i'm not getting the values which are sum of less than the given date.
I've given 1st jan 2013 as static date and I need to get the sum of values which are less than the 1st jan date.
CREATE
MEMBER
CURRENTCUBE.[Measures].[OPENBALANCE]
AS
Sum({Null:[Time].[Years
Quarters Months Weeks Days].[Days].&[2013-01-01T00:00:00]},[Measures].[AmountCur]]),
FORMAT_STRING
= "Standard",
VISIBLE
= 1
can you plz check the above once and guide me.
Thankyou,
Rakesh -
How to query the opening balance for an specific account for an spec. date
Hi all,
for my user query I need to calculate the opening balance for an cash account for an specific date.
Any ideas, how can I do this?
Or may be you know a field in an SBO table that already contains information I need...
Best Regards,
InnaHi Inna,
to find the opening balance for an account or a business partner, please see SAP Note [1114253|https://service.sap.com/sap/support/notes/1114253] :
Symptom
How to find the opening balance of a business partner or G/L account.
Other terms
Account, customer, supplier, vendor, creditor, debitor, start, initial, first, opening balance, business partner, G/L, SAP Business One
Reason and Prerequisites
Consulting
Solution
There are several possible approaches:
Approach 1 - Business Partner Opening Balance:
1. Go to Business Partners -> Business Partner Master Data -> find the Business Partner
2. Click on the orange link arrow next to the field 'Account Balance' in the header region of the window.
3. Untick the boxes next to 'Posting date from', 'Display' and 'Display Unreconciled Trans. Only'.
4. Click on the button 'Refresh'.
5. Find 'OB' in the column 'Origin', this is the opening balance journal entry.
Approach 2 - Business Partner Opening Balance:
1. Go to Business Partners -> Business Partner Master Data.
2. Click on the orange link arrow next to the field 'Account Balance' in the header region of the window.
3. Untick the boxes next to 'Posting date from', 'Display' and 'Display Unreconciled Trans. Only'.
4. Click on the button 'Refresh'.
5. Double click on the column header 'Posting Date' to find the earliest transaction on the business partner account. This transaction could be opening balance, verify this with the company accountant.
Approach 3 - G/L Account Opening Balance:
1. Go to Financials -> Chart of Accounts -> click on the account name once.
2. Click on the orange link arrow next to the field 'Balance'.
3. Untick the boxes next to 'Posting date from', 'Display' and 'Display Unreconciled Trans. Only'.
4. Click on the button 'Refresh'.
5. Find 'OB' in the column 'Origin', this is the opening balance journal entry.
Approach 4 - Business Partner and/or G/L Account Opening Balance:
1. If using SAP Business One 2005 SP01 or earlier, go to Reports -> Query Generator -> click on 'Execute'.
2. If using SAP Business One 2007 or later, go to Tools -> Queries -> Query Generator -> click on 'Execute'.
3. Ignore the red system message in the bottom of the screen.
4. Click on the pencil icon in the top left of the window, the field with 'SELECT *' will change colour to white, then yellow when activated by clicking in the field.
5. Copy the query below:
SELECT T0.[TransId], T0.[Debit], T0.[Credit] , T0.[CreatedBy], T0.[TransType] FROM [dbo].[JDT1] T0 WHERE T0.[TransType] = '-2' and T0.[ShortName] = '[%1]'
6. Click on 'Save' and give the query an appropriate name and select the appropriate category.
7. Click on 'Execute'.
8. Click on 'Existing Values'.
9. Select the G/L account or the Business Partner name from the list and click on 'OK'.
10. The system message 'Records retrieved by this query #' (# = number of records) will pop up. Click on 'OK'.
All the best,
Kerstin -
Opening balance for vendor in debit
Hi
When I post the opening balances for vendors it is showing the vendor balance as debit.(+) Is this correct or it should show vendor balance in credit and customer balance as debit ?
Regards
SekarHi,
This was the JE:
VENDOR 1000 (Debit)
OP BAL(Asset) 1000(Credit)
Remarks: BPartners Opening Balance
Thanks and Regards,
Sekar
Edited by: S. Gamaliel Sekar on May 17, 2011 11:38 AM
Edited by: S. Gamaliel Sekar on May 17, 2011 11:39 AM -
Sales Order Revenue Calculation for the opening balance
Hi
Using SLA tables I wrote the following function to calculate the opening balance for the given period for gieven sales order. The problem is that is is very slow. How do I achieve the same result using the AR Interface Tables?
CREATE OR REPLACE FUNCTION APPS.REV_OPENING_BAL(period_in varchar2,so_number_in varchar2)
RETURN NUMBER IS
rev_open_bal NUMBER:=0;
BEGIN
rev_open_bal:= 0;
SELECT nvl(sum(xdl.UNROUNDED_ACCOUNTED_dr),0) - nvl(sum(xdl.UNROUNDED_ACCOUNTED_cr),0) into rev_open_bal
FROM gl_code_Combinations c, xla_events xe, xla.xla_transaction_entities xte,
xla_distribution_links xdl, XLA_AE_LINES xal, xla_ae_headers xah
WHERE xah.AE_HEADER_ID = xal.AE_HEADER_ID
AND xal.AE_HEADER_ID = xdl.ae_header_id
AND xal.AE_LINE_NUM = xdl.ae_line_num
AND xdl.event_id = xe.event_id
AND xe.entity_id = xte.entity_id
AND xe.application_id = xte.application_id
AND xte.source_application_id = 222
AND c.code_combination_id = xal.code_combination_id
AND to_date( period_name, 'MON-RR' ) <= to_date( period_in, 'MON-RR' )
AND accounting_class_Code in ('REVENUE','UNEARNED_REVENUE')
and (SELECT interface_header_attribute1
FROM ra_customer_trx_all
WHERE customer_trx_id = source_id_int_1) = so_number_in;
RETURN rev_open_bal;
EXCEPTION WHEN NO_DATA_FOUND THEN
rev_open_bal := 0;
RETURN rev_open_bal;
END APPS.REV_OPENING_BAL;
/Did you figure this out?
I am trying to write a report to reconcile the sub-ledgers to GL as part of a conversion from 11 to R12 and would like to be able to dynamically go against the various sub-ledger tables without writing a new script for each sub-ledger.
Or some easier way.
Any thoughts on this?
Thanks, -
To caluclate the opening balances
I want to calulate the opening balances and closing balances for each month in the result like this :
Month uom Opening Closing
Apr
May
Jun
Jul
Aug
sep
Oct
Nov
Dec
Jan
Feb
Mar
SELECT UOM,
SUM(OPSTK) OPSTK, SUM(OPVAL) OPVAL
SUM(INQTY) INQTY, SUM(INVAL) INVAL,
SUM(OUTQTY) OUTQTY, SUM(OUTVAL) OUTVAL,
SUM(CLSTK) CLSTK, SUM(CL_VAL) CL_VAL
FROM
SELECT
UOM, ITEM_CODE, ITEM_NAME,
ROUND(OPSTK/CNV/ML,2) OPSTK, ROUND(OPVAL,3)OPVAL,
ROUND(INQTY/CNV/ML,2) INQTY, ROUND(INVAL,3) INVAL,
ROUND(OUTQTY/CNV/ML,2) OUTQTY, ROUND(OUTVAL,3)OUTVAL,
ROUND((NVL(OPSTK,0)+NVL(INQTY,0)-NVL(OUTQTY,0))/CNV/ML,2) CLSTK,
ROUND((NVL(OPVAL,0)+NVL(INVAL,0)-NVL(OUTVAL,0)),3) CL_VAL
FROM
SELECT
ITEM_UOM_CODE UOM, ITEM_CODE, ITEM_NAME,
IU_CONV_FACTOR CNV,
IU_MAX_LOOSE_1 ML
FROM OM_ITEM,OM_ITEM_UOM
WHERE ITEM_CODE = IU_ITEM_CODE AND IU_UOM_CODE = ITEM_UOM_CODE
SELECT
SL_ITEM_CODE OP_ICODE,
SUM(DECODE(SL_RCVD_ISSD,'R',1,'I',-1)*SL_QTY_BU) OPSTK,
ROUND(SUM(DECODE(SL_RCVD_ISSD,'R',1,'I',-1)*SL_VAL_1),2) OPVAL
FROM OS_STK_LEDGER
WHERE SL_DT < TO_DATE(:P249_DATE1,'DD-MM-YYYY')
GROUP BY SL_ITEM_CODE
SELECT
SL_ITEM_CODE TX_ICODE,
SUM(DECODE(SL_RCVD_ISSD,'R',1)*SL_QTY_BU)INQTY,
SUM(DECODE(SL_RCVD_ISSD,'R',1)*SL_VAL_1) INVAL,
SUM(DECODE(SL_RCVD_ISSD,'I',1)*SL_QTY_BU)OUTQTY,
SUM(DECODE(SL_RCVD_ISSD,'I',1)*SL_VAL_1) OUTVAL
FROM OS_STK_LEDGER
WHERE SL_DT BETWEEN TO_DATE(:P249_DATE1,'DD-MM-YYYY') AND TO_DATE(:P249_DATE2,'DD-MM-YYYY')
GROUP BY SL_ITEM_CODE
WHERE ITEM_CODE = OP_ICODE(+)
AND ITEM_CODE = TX_ICODE(+)
AND ITEM_CODE LIKE 'R%'
--AND ITEM_CODE LIKE :P249_ITEMCODE
ORDER BY ITEM_CODE
GROUP BY UOM
The below given query gives me the opening and closing balances, for the date range entered by me.
For ex. if I enter the date in TO_DATE(:P249_DATE1,'DD-MM-YYYY') field as '01-04-2008', then i get the opening balance for the month April. The SL_DT is the date column in the table.
Kindly guide me for this to solve..There seems to be a problem with your query formatting. I've formatted it and the ORDER BY clause is not needed in the In line view. Remove it. I have added new GROUP BY column.
SELECT UOM,
SUM(OPSTK) OPSTK, SUM(OPVAL) OPVAL
SUM(INQTY) INQTY, SUM(INVAL) INVAL,
SUM(OUTQTY) OUTQTY, SUM(OUTVAL) OUTVAL,
SUM(CLSTK) CLSTK, SUM(CL_VAL) CL_VAL
FROM ( SELECT UOM, ITEM_CODE, ITEM_NAME,
ROUND(OPSTK/CNV/ML,2) OPSTK, ROUND(OPVAL,3)OPVAL,
ROUND(INQTY/CNV/ML,2) INQTY, ROUND(INVAL,3) INVAL,
ROUND(OUTQTY/CNV/ML,2) OUTQTY, ROUND(OUTVAL,3)OUTVAL,
ROUND((NVL(OPSTK,0)+NVL(INQTY,0)-NVL(OUTQTY,0))/CNV/ML,2) CLSTK,
ROUND((NVL(OPVAL,0)+NVL(INVAL,0)-NVL(OUTVAL,0)),3) CL_VAL
FROM ( SELECT ITEM_UOM_CODE UOM, ITEM_CODE, ITEM_NAME,
IU_CONV_FACTOR CNV,
IU_MAX_LOOSE_1 ML
FROM OM_ITEM,OM_ITEM_UOM
WHERE ITEM_CODE = IU_ITEM_CODE AND IU_UOM_CODE = ITEM_UOM_CODE
( SELECT SL_ITEM_CODE OP_ICODE,
SUM(DECODE(SL_RCVD_ISSD,'R',1,'I',-1)*SL_QTY_BU) OPSTK,
ROUND(SUM(DECODE(SL_RCVD_ISSD,'R',1,'I',-1)*SL_VAL_1),2) OPVAL
FROM OS_STK_LEDGER
WHERE SL_DT < TO_DATE(:P249_DATE1,'DD-MM-YYYY')
GROUP BY SL_ITEM_CODE
( SELECT SL_ITEM_CODE TX_ICODE,
SUM(DECODE(SL_RCVD_ISSD,'R',1)*SL_QTY_BU)INQTY,
SUM(DECODE(SL_RCVD_ISSD,'R',1)*SL_VAL_1) INVAL,
SUM(DECODE(SL_RCVD_ISSD,'I',1)*SL_QTY_BU)OUTQTY,
SUM(DECODE(SL_RCVD_ISSD,'I',1)*SL_VAL_1) OUTVAL,
trunc(SL_DT, 'MM')
FROM OS_STK_LEDGER
WHERE SL_DT BETWEEN TO_DATE(:P249_DATE1,'DD-MM-YYYY') AND TO_DATE(:P249_DATE2,'DD-MM-YYYY')
GROUP BY SL_ITEM_CODE, trunc(SL_DT, 'MM')
WHERE ITEM_CODE = OP_ICODE(+)
AND ITEM_CODE = TX_ICODE(+)
AND ITEM_CODE LIKE 'R%'
--AND ITEM_CODE LIKE :P249_ITEMCODE
GROUP BY UOM;Cheers
Sarma. -
Initialize the opening balance.
How can I specify the opening stock date when i Initialize the opening balance in Transaction MCNB, and doed the Initializing the opening balance mean that the first time extract data records into setup table, then can do full update for opening balance?
Denny,
we need to load data once for BX. where it is asking for date. are yo talking abt termination date? that should be any future date.
let me know if i miss some thing.
Regards,
Nagesh Ganisetti. -
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... -
Entering opening balance for a new company
Hi all
I am using AP, GL and CM. After successful testing on test environment the customer now is forwarding in live environment.
He has prepared open balance for all accounts and i should migrate these balances in the system.
This balance sheet prepared from the customer is balanced so debits equals to credits.
The currency of this company is ALL, and in this document there are few accounts that are in EUR and USD, but in total the converted amounts of these accounts(accounts that has balance in foreign currency) together with other accounts in ALL are balanced.
Now i have to enter in the GL module three different journals, one in ALL, one in EUR and the last one in USD, with the exchange rates given by the customer.
The question is here. These three journals are not balanced, and i wanted a suggestion which is the best way to enter the open balance for this customer.
Thank you and best regardsHi Octavio
So the document sent from the customer is like this:
Acc. No------------Debit ALL-----Credit ALL----------Debit EUR-------Credit EUR----------------Debit USD----------Credit USD
Acc. 1--------------100
Acc. 2--------------150-------------------------------------100
Acc. 3--------------150-------------------------------------100
Acc. 4--------------200-----------------------------------------------------------------------------------------200
Acc. 5--------------200-----------------------------------------------------------------------------------------200
Acc. 6---------------------------------800
Now accounts in foreign currency should have their balances in foreign currency and the converted amount is giving the balance in local currency.
so i have to register three journals or am i wrong?? As you can see the journals in each currency are not balanced.
Thanks again
Edited by: user567002 on Nov 26, 2010 3:13 AM
Edited by: user567002 on Nov 26, 2010 3:15 AM -
Regarding opening Balances for customer as on date
hi
Experts..
hw to caluclate the opening balances for customers as on date.
wt is the procedure & please give the tables names and send needed stuff.
Thanks & Regards
Spandanahi..
Use the BAPI 'BAPI_AR_ACC_GETOPENITEMS'.
it will give you opning bal for customer.
example:
DATA: GT_LINE TYPE TABLE OF BAPI3007_2,
WA TYPE BAPI3007_2.
CALL FUNCTION 'BAPI_AR_ACC_GETOPENITEMS'
EXPORTING
COMPANYCODE = bukrs
CUSTOMER = kunnr
KEYDATE = date
IMPORTING
RETURN = lt_bapireturn1
TABLES
LINEITEMS = gt_line.
table gt_line will have the details of the open items for the customer.
regards,
Padma -
AP opening Balance for one year
Hi
I need opening balance upto 2009,total purchases and payment from which table i can get opening balacne fro specif year and total purchases and payments
ThanksDear Experts,
I also have the same requirements, I want to load the Opening balance for the year 2011.
I Never load this, and any help would be highly appreciated.
Thanks,
Atul -
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,
LengHi
Check the below discussion it may helps you
Opening Stock Batchwise
With Regards
Balaji Sampath -
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 -
FBCJ - change the opening balance value
Hi Guys,
How can I change the opening balance value in FBCJ transaction?!
Thanks
Daniel DortaHi !!
You have to options to do here
1. Reveres the receipt entry which was passed wrongly by some other Tcode
2. The difference amount found in FBCJ & FBL3N, post in Receipt side of FBCJ & Post the same amount as an expenses from FB01
This adjustment entry will work as a reversal for the previous entry which was made by mistake
You problem will be solved
Regards
Shamulheq -
Posting the opening balance of Assets in GL account through OASV
Hi,
When we are entering the opening balance in assets GL account through OASV , system gives error
" Document number is 1000000000 is already assigned to company code with document type 01"
Asset GL account is alreay having some balances.
Pl let us know that how can we increase the number ranges for 01 document type.
thanks
harishHi!
Check this links
Re: Opening Balance
Opening Balance
Opening Balance
Re: Question regarding Opening Balance
Maybe you are looking for
-
Hi all, how can I create a simple statement with two column conditions (table: ROZA, fields MVE, INP, outvariable VRNI): If MVE is 1 and INP 1 then variable VRNI should return 3, any other condition should return 1. How can I create this in select st
-
'Unknown Error' when running a file download in SM36/7 - fine when manual.
I am running a program through a scheduled job (in SM36/7), and the program downloads a file to a specified directory/folder on my file server. I am using the method cl_gui_frontend_services=>gui_download to do this. However, this process fails in th
-
What is going on with my phone and what can I do to fix the problem?
This is the second time this has happened to my phone. For some random reason, it decides to shut off on me. No matter how many times I press the home button or the lock button, it still acts as if it's powered off. It makes no sound, nor any vibrati
-
Special Stock Indicator B - I cannot find this indicator in the list
Does anyone know if was discontuned .replaced in ECC6.0 or 46C. Looking for B to use for customer stock that is in one of my plant . Not consignment stock. Any help ?
-
How can I delete application's cache(temporary files) in ipod touch2g
My ipod ha became very slow and memory is very low. Thanks in advance :/