Calculating as on date stock as in MB5B
Hi Team,
i debugged MB5B & MD04 and searched in SDN too but did not get the logic.
in my current logic i am using mara, marc mard, mkpf and mseg tables...
i've joined mara and marc tables. joined mkpf and mseg tables.
i am calucating mard(labst umlme insme speme einme retme) data also.
But could not able to get the as per the input given date.
Could anyone please let me know the procedure to calculate the as on date stock.
Regards,
Chinna
Did you look at this?
MB5B Report
Similar Messages
-
Calculating opening and closing stocks at a plant (on specific dates)
Hi,
I am to develop an ABAP-report. On the selection screen, I'll have plant, material, and a date range (date_1 and date_2). The report should show opening stock on date_1, closing stock on date_2, and then there is more segregation based on movement types (along with both stock-quantity and stock-value). I am stuck at how-to's around calculating opening (and closing) stock on a particular date.
Secondly, transaction MB5B has 3 options : batch stock, valuated stock, special stock ... One of these options uses table MBEW and other uses table MARD ... Which (all) tables will I need to use so as to get both stock-quantities and stock-values ?
Please advise. Thank you.
Regards,Hi
for second question answer is
you need to consider all batch stock, valuated stock, special stock ... One of these options uses table MBEW and other uses table MARD to get both stock-quantities and stock-values
hope it helps
Edited by: ppkk on Dec 10, 2008 10:58 AM -
All Inventories Value Report&Inventory Ageing Report& Current And as on Date Stock not matching
Hello All,
I am new to inventory. I need some help.
After opening the periods of purchasing and inventory for the month of April'15. The below reports should match in costing.
But they are not matching. Kindly help on this as its PROD.
Inventory Ageing Report
Current And as on Date Stock Statement With Value Report
All Inventories Value Report - Average Costing
Thanks
RRMBEWH is the valuation history, this is only updated with the first movement after a period closure. And the period is a month.
There is no table in SAP that holds the stock information on daily basis.
You have to develope this yourself. Easiest method by copying a table like MBEW and MARD daily to a Z-Table.
A stock situation at a certain date can be calculated with MB5B.
Edited by: Jürgen L. on Aug 5, 2008 4:06 PM -
No stock showing in Inventory on date stock report
Hi
I have created a Stock on date query at plant material level using standard cube 0IC_C03
to get stock quantity on posting date i have restricted 0TOTALSTCK
by 0CALDAY variable .
Correct me if any thing wrong to get on date stock.
When i m executing that report for date 20.07.2009 , it shows 0 qty for a given Plant(1001) and a given material(ABC)
where MB5B report in R/3 with same date show sum stock qty.
again i executed the report with 17.07.2009 , on which the material(ABC) was lastly transacted for that given plant(1001)
for this date i m able to match the qty with MB5B.
Then i check sum other stock report which is at 0CALMONTH level wen executed with 07.2009 shows correct qty.
Now my question is y it is showing 0 qty wen the stock is there in it ? is query definition not proper to get stock on date ?
Thanks and regards,
Sonal....Hi,
No need to restict.
in rows, calday, plant, materials
in column 0TOTALSTCK.
for 2 days data will look like this.
19/07/2009 -- 1001 -- 011235 --- 256 KG
20/07/2009 -- 1001 -- 011235 --- 280 KG
stock as on 19 in MB5B, after recipts and issue is 256 KG.
stock as on 20 th in MB5B, after recipts and issue is 280 KG.
based on issues and recipts, data will be added to total stock.
yes, stock will be last date posting date. as on today we can validate data till yesterday.
one more thing for plant whose values are not matching, did to drill down stock type and stock category and check data.
use RWBE t-code also for validation.
Best Regards. -
Interest Calculation on posting date and due date
Hi
I want vendor interest calculation on due date as well as posting date. Let me know how to get it. According to me only its possible on the basis of one date only.HEllo!
In the report RFINTITAR, you use the interest indicator customizing:
IMG > Prepare Item Interest Calculation > Ref. Date
(table V_T056UX) > field Ref.
(FI Item Interest Calculation: Reference Date)
You have the possibility to define what You need to be considered as
incoming payment due date, choosing between:
1 Value Date (or Baseline Date for Net Payment)
2 Document Date
3 Posting Date
4 Payment Baseline Date
As you can use one interest indicator per customer/vendor you can use only of the dates is used. But, in this
program you can use the BADI FI_INT_CUS01. Please, check if you can meet your business requirements using the methods
of the BADI.
REgards,
REnan -
Interest calculation on due date and not on invoice
Hello,
Pls can some one let me how to start interest calculation on due date and not invoice date.
In the interest calculation, T code FINT, the system calculates interest from invoice date till clearing date and not from due date till clearing date.
BR,
ZulfikarHello,
We have selected the Always calculate interest from net due date check box. but now when i run FINT transaction for a customer it is calculation interest from invoice date and not on due date. the item is already cleared.
The scenarion is
the net due date of the docuemnt is 30.07.2008 so the interest calculation should stard from 31.07.2008 till clearing date. but the interest calcualtion is starting from 01..07.2008 which is the invocie date.
BR,
Zulfikar -
Calculation based on date key figures in BEx
Hi Friends,
Hi Friends,
I need to creat report for sales order data, which involved the calculation based on dates.
In my cune iam having the data at the granual level with the dates as key figures. the calculation that i need to do is VTW = Actual PGI date - Customer want date.
1) whn i run the report at the granual level my VTW is working correctly. No issues.
2) when i run the report at higher levels the date fields are updated with X, as the system is unable to aggrigate the dates. The dates are at the material level in a sales order. I need to show the VTW at the sales order level (each one of the two dates are same for all the materials). So, when i run the report with out mataril at the sales order level...i wanto sea the bothe date fields in a single line and also the VTW calculated as the different between throse two dates.
3) Once we get the VTW correctly at the sales orde level. if i drill down the report for material, i want to sea both the dates in every record againest the matarial, but the VTW only aginest the first record...that is againest the sales order. I dont waht the VTW value repeated/duplicated for all the records againest the sales order,as VTW makes sence only at the Sales Order level.
Please suggest me hwo i can achive the resulsts by meeting both Point 2 and 3.
Thanks for ur help...in advance.
Thanks,
RenuHi..
I have the data from the extractore and in the cube as below.
SALES ORDER ITEM MATERIAL DATE1 DATE2
101 Item1 Mat1 01/01/2010 15/01/2010
101 Item2 Mat2 01/01/2010 15/01/2010
101 Item3 Mat3 01/01/2010 15/01/2010
I need the reports as below...
Report1:
SALES ORDER DATE1 DATE2 VTW (DATE2 - DATE1)
101 01/01/2010 15/01/2010 14
currently iam getting this Report1 output as below...
SALES ORDER DATE1 DATE2 VTW (DATE2 - DATE1)
101 X X 42
Report2: Out put required as below
SALES ORDER ITEM MATERIAL DATE1 DATE2 VTW (DATE2 - DATE1)
101 Item1 Mat1 01/01/2010 15/01/2010 14
101 Item2 Mat2 01/01/2010 15/01/2010
101 I tem3 Mat3 01/01/2010 15/01/2010
currently iam getting this Report2 output as below...
SALES ORDER ITEM MATERIAL DATE1 DATE2 VTW (DATE2 - DATE1)
101 Item1 Mat1 01/01/2010 15/01/2010 14
101 Item2 Mat2 01/01/2010 15/01/2010 14
101 I tem3 Mat3 01/01/2010 15/01/2010 14
As VTW is need to be measued at the sales order level and we always have the DATE1 & DATE2 as same for all the itesm, it should be shon as only 14 in the first record. It mean once iget the required output from Report one in a single line with VTW as 14, it should not repeat with every line , when i dril down the report for Items or materials.
Even if i can generate oly report2 as required in a single sheet ...that will be enough.
Plas kindly provide some solution as how we can achieve this,
Thanks,
Renu -
Post Calculation Computation for Date/Timestamps
Hello,
I would like to know how to apply Post Calculation Computation for Dates/Timestamps?
I had trouble trying to add this to the Post Calculation Computation area:
TO_CHAR(:P1_TARGETDATE, :DEFAULT_DATE_TIME_MASK);
or should it be something more like:
SELECT
TO_CHAR(:P1_TARGETDATE, :DEFAULT_DATE_TIME_MASK) FROM DUAL;
What would be the correct code to allow me to format a date/Timestamp where a Application Variable of DEFAULT_DATE_TIME_MASK could be used as well. (I dont want to use the existing Format Mask.)Just a hunch, but you might be having a problem because of the double quotes. Oracle likes single quotes. You also might want to forgo the quotes entirely.
As for an invalid number, is it possible that one of the values that you are adding might be NULL. You can't add NULL to a number or you get an error. There are two solutions to that. One would be to do an NVL around each number you are adding (changing it to zero if the value is NULL). The second option (and easier option) is to use the SUM function. Mathematical functions like SUM and AVG ignore those values that are NULL. -
Hi
We are customize the report refer to MB5B.
in mb5b it show the total value and the stock for the material for the date that we gvien. ( even in the old date)
we trying to capture the value for stock for stor location wise.
we need to know that how the system calculate the old price of the particular day stock.
suppose i need to calculte stock 100 pc on 01.01.2009.
from which table system pick the particular price of the material.hello,
can you please tell me the logic that you have used to ahceive this.
THanks
Sam -
Add stock types to MB5B report output
Hi,
We need to create a new report which will be a combination of MB5B and MB52.
In the sense, the new report should be able to give the stock on a particular posting date split into the different stock types like unrestricted, restricted, QI, blocked etc.
Please let m eknow if this is possible.
Thanks!
PMmaterial history may be available at the most for periods. you may have to transfer the data to a ztable from Mard on daily basis, may be as a job run in the night and can have a logic to fetch it from the ztable
-
Dear Sir,
Require one report for material inward and outward purpose, like below :----
Stock ledger date wise ________________
Posting Date Material code Opening Stock qty Receipt qty Issued qtyc losing Stock Mvt
This require with WBS /Project/Sales Order also .
*_Kindly note - SAP Standred report MB5B not usefull for us.
Thanks & Regards
Mukesh Chejara
SAP
+9198702226621Concerning posting date you check in the table MKPF.
So to summarize you use the Tables MSEG et MKPF
regards -
Hi Gurus,
I have a Requirement for calculating the cost for Subcontracting Non stock items N as it is getting calculated in standard functionality for subcontracting items of Type L.
This will be done in CK11n ( used to calculate the standard cost estimate of the product) for header as well as component materials.
please suggest the user exit or Badi where i can change.
Please refer the below logic-
BOM for the material 2000500 as Header and 1LPL0835298AB as a component and this component has an assembly with 7008508 as a component and this component is an Sub contracted item and this has an assembly with component 1LBA182151-3.
Price calculation for the material 7008508 (Item Category as N). Since this is sub contracted item the price will picked from field EINE-NETPR.
In EINA, pass the material (MATNR=7008508) to fetch the list of info records (INFNR) created for that material.
Then it has to input those info records to EINE table along with Purchasing organization (EINE-EKORG=PT02).
From the output of EINE table, it should compare the price (EINE-NETPR) of the PIR and should take the least price from those PIR`s.
If the currency is other than PLN, then it should be converted to PLN based on conversion charges.
For Material (MATNR=1LBA182151-3), it should pass the material number to table MBEW along with valuation area (BWKEY = WERKS).
From the output, it should check the Price control (VPRSV) ‘V’ or ‘S’
If ‘V’ the price will be picked from the field “VERPR”
If ‘S’ the price will be picked from the field “STPRS”
Also from the output, it should check the Price unit (PEINH) ‘1’ or other than ‘1’. If it is other than ‘1’ it should divide the VERPR or STPRS by PEINH. Then this is the price of the Material “1LBA182151-3”.
The material (MATNR=1LBA182151-3) should be passed to table “MARA” and will take the Base unit of measure from that table “MEINS”.
Br,
SuryaHi Surya,
Please put breakpoints in any of the below BADI's and check if any of them will trigger for your
requirement:
VALUATION_CK BAdI for Valuation in Product Costing
CK_KALAMATCON2_CI BAdI for CI Fields for Table KALAMATCON2
COSTINGRUN_CK Edit Costing Run
COST_APPORTION_CK Maint Apportionment Structure Joint Production: Dist Rules
CO_PROD_COSTING_CK Cost Management for Joint Products (Costing, Target Costs)
DATA_EXTENSION_CK For Data Enrichment in Product Costing
DYNPRO_EXTENSION_CK BAdI for Interface Enhancement in Costing
ORDER_COSTING_CK Enables Header Data Changes in Preliminary Order Costing
QUANTITY_STRUCT_CK Enables Quantity/Structure Changes in Costing
SUR_STOCK_TRANSF_CK Overhead on Materials with Stock Transfer Between Plants
Thanks
Sri -
How to perform calculations using column data in BI Publisher
Hello guys
I am very new to BIP, and recently I am learning to create new templates using XML files..
I am trying to create a report that has Account Amount, Amount Net Amount, PM_Amount and a New field say "X"
For Account Amount it is what it is, but for Net Amount it is "Account Amount/40%", for PM_Amount it is "Net Amount x (Account Amount/30)" and for field X it is "(Net Amount + PM_Amount)/column A" where column A is another data field in the XML file but it should not be included in the template report..
Could anyone help me with how to perform such kind of calculations in BIP Template builder? In OBIEE, it is very easy that I can just use column formula, but in BIP I still haven't figure out the way yet..
PLease advice
ThanksThanks for the reply..
I looked at the link you provided already, what I wanna know is how to exactly apply the expression in my calculation. In other words, I know that Column C = "Column A div Column B", but in BIP form property, how do I actually substitue "column A" with the actual column..
I wish I could post the XML, but it is huge, it contains 6 data sets and more than 100 columns. I only need 15 columns on my template.
On the form property of each measures, in the "advance tab", I see codes like <?accountamount?>. Now I wanna have a new column said "PM_Amt" which should be "(accountamount div %40) x column B". So I just randomly select another column said "payment". I rename it to "PM_AMT" and on its "advanced tab" it is still <?payment?>. So right there, if I wanna replace that code with a new one that does "(accountamount div %40) x column B" calculation, how would I do it? What would be the syntax including how to propertly refer to the right column field as part of the expression?
And do I have to always use xdofx between <>? how would I know?
Please advice if you understood what I am trying to say
Much thanks
Edited by: user7276913 on Sep 14, 2009 11:24 PM -
Custom calculation script (roll date forward)
I'm trying to add 6 days to a date that is in a user defined form field called PeriodBegin
The new calculated date should b e: PeriodBegin + 6 days and should display in a new form field called PeriodEnd
I've tried using some code that I've found on the web but can't get it to work. Help!Hi pauker11,
Read this tutorial from the acrobatusers.com Learning Center-
http://acrobatusers.com/tutorials/2006/date_time_part2/
and download the sample file DatesExample1 which includes a sample for adding a number of days to a date from another field.
Hope this helps,
Dimitri
WindJack Solutions
www.pdfscripting.com
www.windjack.com -
Calculating and Displaying Dates in Javascript
Hello,
I'm working on a flowchart form for my work, and am having issues getting a date to a) add correctly and b) display only certain portions of the date.
I have four fields:
CurrentDate - Displays the Current Date in MM/DD/YYYY format
DropDownList1 - Contains a list of projects end users can choose from
TextField1 - Displays text that tells the end user how many days the proejct will take
DateField1 - Should add the CurrentDate + the Number of days the project will take and return a new date in the same MM/DD/YYYY format
*Disclaimer* - I am not very experienced with scripting, and chose to go with JavaScript as I do have some previous past experience.
Here is what I have for my code right now:
if (DropDownList1.rawValue == 1){
TextField1.rawValue = "2 Days";
var AddDate = (Date.valueOf(CurrentDate) + (2*1000*60*60*24));
DateField1.formattedValue = Date(AddDate);
else if (DropDownList1.rawValue == 2){
TextField1.rawValue = "1 Day";
else if (DropDownList1.rawValue == 3){
TextField1.rawValue = "2 Days";
else if (DropDownList1.rawValue == 4){
TextField1.rawValue = "2 Days";
else if (DropDownList1.rawValue == 5){
TextField1.rawValue = "4 Days";
else if (DropDownList1.rawValue == 6){
TextField1.rawValue = "5 Days";
else if (DropDownList1.rawValue == 7){
TextField1.rawValue = "4 Day";
The end result is that the TextField1 displays the correct day, but the DateField1 displays a long string of the exact time and date of... well, the time - so no adding takes place. What I need is for the date to be displayed as MM/DD/YYYY. What am I doing wrong? I've only added the calculation to the first "if" statement, and will continue on to the rest once it is functioning.The following code will work in a LiveCycle Designer button using the "JavaScript" language option:
var oNow = new Date(); // get date time object
console.show(); // oepn and clear the JavaScript console
console.clear();
console.println("oNow = " + oNow);
console.println("oNow.getFullYear() = " + oNow.getFullYear());
console.println("oNow.getMonth() = " + oNow.getMonth());
console.println("oNow.getDate() = " + oNow.getDate());
console.println("oNow.getDay() = " + oNow.getDay());
console.println("oNow.getHours() = " + oNow.getHours());
console.println("oNow.getMinutes() = " + oNow.getMinutes());
console.println("oNow.getSeconds() = " + oNow.getSeconds());
console.println("oNow.getTimezoneOffset() = " + oNow.getTimezoneOffset());
The following script uses FormCalc and can be used with a button for testing:
var oDate = Date() // get today's date
var Year = Num2Date(oDate, "YYYY") // get year four digits
var Month = Num2Date(oDate, "MM") // get month 2 digits with leading zero
var Date = Num2Date(oDate, "D") // get date without leading zero
xfa.host.messageBox( Concat("oDate: ", oDate, " Year: ", Year, " Month: ", Month, " Date: ", Date) )
var MyDate = "Feb 23, 2008" // a string data
var Year = Num2Date( Date2Num(MyDate, "MMM D, YYYY"), "YY" ) // 2 digit year
var Month = Num2Date( Date2Num(MyDate, "MMM D, YYYY"), "M" ) // month without leading zero
var Date = Num2Date( Date2Num(MyDate, "MMM D, YYYY"), "DD" ) // day with leading zero
xfa.host.messageBox( Concat("MyDate: ", MyDate, " Year: ", Year, " Month: ", Month, " Date: ", Date) )
Maybe you are looking for
-
Why can't I can't open RAW photos (from an new canon eos 5.1) in Bridge (cs 5.1)- just get the logo, no thumbnail, works in Finder.
-
Upgraded to 7.0.2 and now iTunes will not show a video horizontally
I have an iphone 4s. Since upgrading to 7.0.2, itunes will now show a video horizontally. The portrait view is also much smaller. I tried changing settings, but I haven't found how to fix this.
-
How do i start doing SolMan integration with HP Quality Center?
Hi guyz, I am new in this SAP field with zero knowledge on it and my first task being assigned to me is to integrate SolMan with HP Quality Center. So how do i start? What do i need to know before doing the integration? As iI know by far SolMan need
-
Creating nested folders in the resource view
Hi, Does anyone know if there is a way to create a set of nested folders in the resource view in one go? The following works if the path /home/cosmos already exists but fails if only /home exists, i.e. it looks like the createfolder method can only c
-
New custom Template not using SRM theme when displayed
Hi All, I have built a custom ABAP screen for SRM and generated and published the new template. When it runs, though, it looks like an R/3 screen instead of the slick SRM Theme. I generated it as a WebGUI with the standard theme 99. Any ideas what I