How to calculate open PO quantity
Hi all,
Can you let me know the way to calculate open PO quantity? WHich table do I need to get the value from? THanks in advance.
Hi
You can select the Open PO's from MKPF and MSEG tables.
All the GOODS RECEIPTS will be stored in MSEG table.
Against each PO item there will be GR's in MSEG table.
Take related Movement types and fetch the GR's received against each PO item by passing EBELn and EBELP fields to MSEG.
Again OPEN PO means, If the PO qty is 20 and the GR qty is 15 , then again it's a Open PO. So you have to take the PO qty for each item and take the all GR's for a single PO item (you have to LOOP MSEG, as it contains multiple records for a single EBELN and EBELP) and sum up the GR qty's .
Again here you have to substract the Returns and GI's depending on the movement types.
So find the total effective GR qty and compare with PO qty if both are same that PO is closed. If PO qty is more than GR qty it is still OPEN.
For each Item Check if the PO Item Quantity (EKPO-MENGE) is equal to the NEt total of EKBE-MENGE for VGABE= 1 (For Goods Recept).
for example EKPO-MENGE = 100.
and It is Partally GRed for 50 quantity, then it is still open. In this case the BELNR will still be there but it is still open.
Regards
Raj
Similar Messages
-
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 -
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 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 -
Function Module to calculate Open Contract Quantity
Hi All,
Is there a function module to calculate Open Contract Quantity?
Thanks.Hi Ravi,
Thanks for the reply.
For this FM, i need to pass the Sales Doc Number. Is there an FM where i can pass the contract number?
Best regards,
Sindy -
How to calculate Opening Balance / How to Enhance 0FI_AR_6 DS
Hi FI Experts,
I need Opening Balance in my BI report,
I am using 0FI_AR_6 DS , I have loaded data to CUBE, loaded Successfully.
In this Data Source I need G/L Account Number and Terms of Payment (Payment Terms)
I wrote the User Exit for this , then I check in RSA3, data is populating for those two fields.
When I Try to load the data in to BI, it is not loading , it is showing Request is still Running , records it is showing zero 0.
If I remove the user exit , data is loading fine.
My requirement is to calculate Opening Balance,
First I used 0FI_AR_4 DS , but I am not getting Accumulated Balance here, then I use the DS 0FI_AR_6 it have Accumulated Balance field but in this DS I dont have G/L Account Number and Terms of Payment (Payment Terms)
Its very urgent , we are in UAT stage
Need some inputs to resolve this..
Thanks & Regards,
SHAIK
Edited by: shaik on Jan 16, 2008 10:55 AMHey Shaik,
Why you are using AR extractors to get the G/L account opening balance ? As i understand the AR accounts post to a limited G/L account (known as the recon accounts) and it will not extract all the G/L accounts in the first place. So even if you manage to get the opening balance, AR extractors will not give you all the G/L accounts opening balance. If you need to get the opening balance for the G/L accounts then you need to look at G/L extractors.
For the AR extractors what is your extraction period range ? Have you included period '000' for your extraction ?
Hope it helps.
Thanks,
Soumya -
How to calculate Opening Stock for a particular date.
Hi Experts,
I have a sitution to calculate Opening stock for a particular date.
please help me with the necessary Fields & Tables required.
Appriciate If any Sample coding available.
Thanks & regards,
Venkat.Hi Venkat,
To Calculate Opening Stock & Closing stock there are different procedures.
It just depends of\n the client requirements & usage of the material.
For example, we have different types of stocks, like, Through Pipeline, Special, Unristricted, quality, safety,
and many types of stocks.... so all these types are indicated in MSEG tabe in SOBTZ field,...
Now Comimg to your Query, You need to calculate OPENING & CLOSING STOCK.
We have a similiar standard report in MB5B Tcode..
to get the same results in your report do like this...
For valuated stock go to the MARDH, MBEWH, MCHBH tables But I Prefer MBEWH.
here in MBEWH give the month & year and you get the result in LBKUM field...
For Special stock, You need to go to another table like MKOLH,,(I forgot still 2 more) and
give the month & year inputs and you will get the result in SLABS field.
and remaining MB5B refers to its deetails lists with different Movement types,
whcih you can get clearly from MSEG Table...
Hope you can write the select Queries accordingly.
Thanks & Regards,
Dileep .C -
How to calculate open balance Vendor Line Item Display(FBL1N)..?
hi,
is there any way to fetch data for open balnce in vendor report display(FI).
As I have to calculate Credit , Debit and Open balace , also Balance as on date. in Zreport with reff of FBL1N.
Vendor item data has been calculated from BSIk table. also open balance has to be fetched from with reference of Clearing doct and posting doct. i have
so if any FI technical or non techincal person has gone thru these things, those who have clear picture on these plese let me know.
Thnks in advance.Please note that most vendor line items wont have a PC assigned to them.
I am not sure if you are refering to classic view or new GL data.
Anyway you can use the sum button, and sub total for your levels.
If you want to get the information sub totalled by PC, then I guess you are using the new GL and document splitting.
If that is the case you cannot use FBL1N for this.
There is however a set of reports in Accounts Payable, called new Gl reports and they will provide you the general ledger view and not the entry level view, and you can use the sum and sub total option.
Please award points if this is useful.
Come back if you need further help. -
How to calculate opening and closing balance for period
Hi all,
i have to find out opening and closing balance.
the table structure of temporary table is
select * from hwcn_xn_fa_report_temp1 where asset_id=10029400
PERIOD_COUNTER CST_OP_BAL CST_ADDITION CST_TRANSFER CST_DISPOSAL COST_CLOSING_BALANCE
24108 0 0 0
24109 12000
24110 0 0 0
24111 0 0 0
in this table cst_op_balnce and cost_closing_balace is null
i have display cost_op_bal and cost_closing_balnce
cost_closing_balance=cst_op_bal+cst_addition+cst_transfer+cst_disposal
for period 2408 op_balnce=0 closing_bal=0
for period 2409 op_balnce=0 closing_balce=1200
for period 2410 op_bal=1200 closing_bal=1200
closing balance of dec will be opening bal of jan
thanks and regards
Edited by: user10664276 on Apr 19, 2009 11:08 PM
Edited by: user10664276 on Apr 19, 2009 11:13 PMHi,
user11118871 wrote:
Can you explain what that is? Thank you if you have one example.
ROWS BETWEEN UNBOUNDED PRECEDING AND 1 PRECEDING
When you use the analytic SUM (c) function, then, on each row, it returns the values of column (or expression) c from several rows in the result set added together.
Which rows? That depends.
If the analytic clause (the part in parentheses after OVER) does not include ORDER BY, then it is all rows.
If the analytic clause has an ORDER BY clause, but no windowing clause (that is, ROWS BETWEEN ... or RANGE BETWEEN ...), then the rows included in the sum are all rows up to and including the row where the function is being called (as sorted by the analytic ORDER BY).
If the analytic cluase has both ORDER BY and a windowing clause "ROWS BETWEEN x PRECEDING AND y PRECEDING", then the rows included in the sum are the rows from x to y rows before the one where the function is called.
Do some experiments with different values of x and y.
First, create a table like the one in the problem above, but simplified a little.
CREATE TABLE test_sum
( period NUMBER
, new_amt NUMBER
INSERT INTO test_sum (period, new_amt) VALUES (24108, 1);
INSERT INTO test_sum (period, new_amt) VALUES (24109, 4);
INSERT INTO test_sum (period, new_amt) VALUES (24110, 2);
INSERT INTO test_sum (period, new_amt) VALUES (24111, 8);
INSERT INTO test_sum (period, new_amt) VALUES (25001, 32);
INSERT INTO test_sum (period, new_amt) VALUES (25002, 16);
COMMIT;The original problem above used names that were meaningful for its application, and columns that have nothing to do with the SUM function. Let's simplify the former and lose the latter.
That problem involved the SUM of three columns added together. Since we just want to understand how the windowing clause works, let's simplify that to one column.
With these simplifications, my original query is:
SELECT period
, new_amt
, SUM (new_amt) OVER ( ORDER BY period
ROWS BETWEEN UNBOUNDED PRECEDING
AND 1 PRECEDING
) AS opening_balance
, SUM (new_amt) OVER ( ORDER BY period
) AS closing_balance
FROM test_sum
ORDER BY period;Given the data above, it produces these results:
. PERIOD NEW_AMT OPENING_BALANCE CLOSING_BALANCE
24108 1 1
24109 4 1 5
24110 2 5 7
24111 8 7 15
25001 32 15 47
25002 16 47 63So, for example, on the row where period=24110,
opening_balance=5, which is the total of new_amt from all rows up to but not including that row: 5=1+4, and
closing_balance=7, which is the total of new_amt from all rows up to and including that row: 7=1+4+2.
To really understand how the windowing clause works, do some experiments. Change the definition of opening_balance to include " BETWEEN x PRECEDING AND y PRECEDING". You'll find that:
(a) "UNBOUNDED PRECEDING" means the same as "n PRECEDING", where n is greater than the number of rows in your result set.
(b) "CURRENT ROW" means the same as "0 PRECEDING"
(c) x must be greater than or equal to y
(d) neither x nor y can be negative (but you can use "FOLLOWING" instead of "PRECEDING" to get the same effect).
For more, see the introduction to "Analytic Functions" in the [SQL Language manual|http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/functions001.htm#sthref972]
When you're finished, don't forget to
DROP TABLE test_sum; -
How to calculate total stock quantity in cube
Dear Master
I want to verify the data between BI report and cube whether correct or not.My report name is stock summary. It's giving report for Total quantity stock (0TOTALSTCK) for paricular date. This KF(0TOTALSTCK) inflow is 0RECTOTSTCK and outflow is 0ISSTOTSTCK. Somebody telling to get the Total quantity stock (0TOTALSTCK) value, I have to use following formula 0RECVS_VAL (Value Received into Valuated Stock) - 0ISSVS_VAL (Value issued from valuated stock). Please advice me which formula should I use to get the total stock quantity?.
Thanks a lot in advance
RajaPlease let met understand better, you have the following keyfigures:
- Receipts (Cumulative)
- Issues (Cumulative)
- Difference (Cumulative) populated during URules = Receipts - Issues (any routine with elaborated calculation behind?
- Stock (non-cumulative InFlow = Receipts, OutFlow = Issues)...
Is this correct?
Olivier. -
Open Order Quantity Inconsistent issue
Hi,
We are being using Open Order Quantity key figure in our BI model.Not Open Order Quantity key figure is inconsistent in BI system.
It has been used in several places.Hence i don't want go for redesing it.
Please some one can help me without creating new Open Order Quantity key figure.
Answer would be greatly appreciated.Hi
your query is not clear however making few assumption can give below inputs. Assume you are using LIS 11 extractor. Open order quantity varies from business to business , how do they actually define it.
Get the extact definiton from business how they calculate open order quantity , accoridngly build the keyfigure. for example if open order quantity is orders for which status is not complete then quanity = open order quantity.
EG: Using 2lis_11_VAITM
Restrictted key figure = UVALL not equal to 'C' then KBMENG is open order quanity.
Thanks,
Monika -
Calculate Opening and Closing Stock
Hi all,
Plz tell me logic how to calculate Opening Stock and Closing Stock of material of any particular date of month...........
Thanks in Advance.
Pradip PawarHi Pradeep
for a particular month for calculating opening stock is
use this logic
SELECT MBLNR BWART ZEILE MATNR WERKS LGORT SHKZG ERFMG ERFME
FROM MSEG INTO CORRESPONDING FIELDS OF TABLE IT_QUAN FOR
ALL ENTRIES IN IT_FINAL WHERE MATNR = IT_FINAL-MATNR.
IF IT_QUAN[] IS NOT INITIAL.
GETTING THE MATERIAL DOCUMENTS FOR SPECIFIED PERIOD
SELECT MBLNR BUDAT FROM MKPF
INTO CORRESPONDING FIELDS OF TABLE IT_BUDAT
FOR ALL ENTRIES IN IT_QUAN
WHERE ( BUDAT GE DATE1 AND BUDAT LT DATE2 )
AND MBLNR = IT_QUAN-MBLNR.
SELECT MBLNR BUDAT FROM MKPF
INTO CORRESPONDING FIELDS OF TABLE IT_BUDAT1
FOR ALL ENTRIES IN IT_QUAN
WHERE MBLNR = IT_QUAN-MBLNR
AND BUDAT LT DATE1.
ENDIF.
CLEAR INDEX.
IF THE MATERIAL DOCUMENT NUMBER IS NOT FOUND IN THE SPECIFIED PERIOD
*REMOVE IT
IT_QUAN1[] = IT_QUAN[].
LOOP AT IT_QUAN.
INDEX = SY-TABIX.
READ TABLE IT_BUDAT WITH KEY MBLNR = IT_QUAN-MBLNR.
IF SY-SUBRC NE 0.
DELETE IT_QUAN INDEX INDEX.
ENDIF.
CLEAR IT_QUAN.
CLEAR IT_BUDAT.
ENDLOOP.
SORT IT_QUAN BY MATNR.
LOOP AT IT_FINAL.
INDEX = SY-TABIX.
LOOP AT IT_QUAN WHERE MATNR = IT_FINAL-MATNR
AND WERKS = IT_FINAL-WERKS
AND LGORT = IT_FINAL-LGORT.
IF SY-SUBRC = 0.
IF IT IS IN CALCULATE QUANTITY
IF IT_QUAN-SHKZG = 'S'.
check the unit if it is gram then devide by 1000.
IF IT_QUAN-ERFME = 'G'.
IT_QUAN-ERFMG = IT_QUAN-ERFMG / 1000.
ENDIF.
IN_QTY = IN_QTY + IT_QUAN-ERFMG.
ENDIF.
IF IT IS OUT CALCULATE QUANTITY
IF IT_QUAN-SHKZG = 'H'.
IF IT_QUAN-ERFME = 'G'.
IT_QUAN-ERFMG = IT_QUAN-ERFMG / 1000.
ENDIF.
OUT_QTY = OUT_QTY + IT_QUAN-ERFMG.
ENDIF.
ENDIF.
ENDLOOP.
IT_FINAL-IN = IN_QTY.
IT_FINAL-OUT = OUT_QTY.
MODIFY IT_FINAL INDEX INDEX.
CLEAR: IN_QTY,OUT_QTY.
CLEAR IT_FINAL.
CLEAR IT_QUAN.
CLEAR INDEX.
ENDLOOP.
CLEAR: IN_QTY,OUT_QTY.
CLEAR IT_FINAL.
CLEAR IT_QUAN.
CLEAR INDEX.
FOR OPENING BALANCE
CLEAR INDEX.
LOOP AT IT_QUAN1.
INDEX = SY-TABIX.
READ TABLE IT_BUDAT1 WITH KEY MBLNR = IT_QUAN1-MBLNR.
IF SY-SUBRC NE 0.
DELETE IT_QUAN1 INDEX INDEX.
ENDIF.
CLEAR IT_QUAN1.
CLEAR IT_BUDAT1.
ENDLOOP.
SORT IT_QUAN1 BY MATNR.
LOOP AT IT_FINAL.
INDEX = SY-TABIX.
LOOP AT IT_QUAN1 WHERE MATNR = IT_FINAL-MATNR
AND WERKS = IT_FINAL-WERKS
AND LGORT = IT_FINAL-LGORT.
IF SY-SUBRC = 0.
IF IT IS IN CALCULATE QUANTITY
IF IT_QUAN1-SHKZG = 'S'.
IF IT_QUAN1-ERFME = 'G'.
IT_QUAN1-ERFMG = IT_QUAN1-ERFMG / 1000.
ENDIF.
IN_QTY = IN_QTY + IT_QUAN1-ERFMG.
ENDIF.
IF IT IS OUT CALCULATE QUANTITY
IF IT_QUAN1-SHKZG = 'H'.
IF IT_QUAN1-ERFME = 'G'.
IT_QUAN1-ERFMG = IT_QUAN1-ERFMG / 1000.
ENDIF.
OUT_QTY = OUT_QTY + IT_QUAN1-ERFMG.
ENDIF.
ENDIF.
ENDLOOP.
OPEN_QUAN = IN_QTY - OUT_QTY.
IT_FINAL-OPEN_QUAN = OPEN_QUAN.
MODIFY IT_FINAL INDEX INDEX.
CLEAR: IN_QTY,OUT_QTY.
CLEAR IT_FINAL.
CLEAR IT_QUAN1.
CLEAR OPEN_QUAN.
CLEAR INDEX.
ENDLOOP.
LOOP AT IT_FINAL.
IT_FINAL-CLOS_QUAN = IT_FINAL-OPEN_QUAN +
IT_FINAL-IN - IT_FINAL-OUT.
MODIFY IT_FINAL INDEX SY-TABIX.
CLEAR IT_FINAL.
ENDLOOP.
reward points to all helpful answers
kiran.M -
Hi
Kindly inform
1. How to take open PR quantity (not converted into PO) for Materials and Services from the system. In the same way how to get Open Service PO .
2. Does the requisition completed indicator gets close automatically after the requisitions are ordered.
3. Which table to refer to get the open service subline items (for both PR and PO), quantity, gross price, cost center, GL, etc.
Regards
ArvindHI,
There is a Standard Report for the Complete Pending PR ie., ME5A.
But for your Particular Requiremnt for your Pending PR quantity there is no Direct Feild that gives you That .
So in the Devlopment You Have to Write a Logic as Below
Penning OR QTY= PR Qty- PO Qty.
The Above canbe Found in Table EBAN. ( Master Table for all the PR details)
Penning PR Qty= (EBAN-MENGE) - (EBAN-BSMNG)
Regarding the Close Button of the PR ,it Give the Indicator Manually ,when the total PR is completly Created into PO.it is mostly used for Reporting.
Hope so it helps
Regards
Anjanna. -
How to calcualte opening balance of supplier for given period
Hi all,
i have to develoed suppler ledger report.please help me how to calculate opening balance of supplier.
Thanks and regards,Hi,
Are you looking out for the outstanding balances for the Supplier.
If in this case, if you are particular to know the opening balance of the supplier then you can run the report
called ' Supplier Open Balance Letter', wherein you can get the opening balance of the supplier. -
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.
Maybe you are looking for
-
I can't print only selected text since upgrading to Firefox 8.0. Using Mac OS Lion
Until Firefox 8.0, I could select text on any webpage and print only that text. Now, I can't even get a print dialog box with an option to "Print Selection" only. I also recently upgraded to OS Lion (from OS Leopard) on Mac. Any chance that that is t
-
What is the difference between books and audiobooks on itunes?
On my ipod classic, I can play audiobooks but books will not even sync to my ipod. Are books only usable on other apple products?
-
Creating additional input areas as required
Good Day; I have been asked to design a form using Livecycle that will replace an existing MS Word form. The form will be used to grant access to a total of 42 information systems. At first glance this did not seem to be a problem until I stated to d
-
I'm trying to use the PCI-GPIB controller to control lab equipment through MATLAB 6.1 (R12.1) under Linux. MATLAB's instrument toolbox seems to integrate with NI's board, but the MATLAB documentation says it requires the installation of a driver. I'v
-
I FIXED IT! (the "update" problem)
I'm sure others had figured this out first, but here it is anyway - to all those looking to fix the 2006-1-10 "update" that apple gave us..I have a nano and got this to work. Take note - YOU WILL LOSE YOUR MUSIC IF YOU DO THIS!!! 1. Open Windows Expl