How get quantity based Material wise ?
My req is to get the data based on material ..in SAP QUERY
Suppose in table ZMATQ.
Input:
Material. Quantity currency(price).
1001 10 20.00
1001 20 25.00
1001 25 30.00
2001 40 45.00
2001 45 28.99
2001 50 37.00
In this they need drill down of quantity.
Like 1001 they need all quantity in drill down.
N in list it sld display only one material no at time
E.x
Output:
Material quantity currency(price)
1001 drill down of all quantity Which come in 1001 material respective price
2001 drill down of all quantity Which come in 2001 material respective price.
How to do this as I m taking from single table ..
Thxs
Similar Messages
-
How to get the unoccupied material number in a number range
How to get the unoccupied material number in a number range.for example, I wang to get a number between 1500000 and 1599990 which is unoccupied as my material number to be created. Is ther any FM or codes?
Dear,
You can get this information from Tcode SNUM or you can access database table NRIV. -
How to get invoice via material document
HI,
How to get invoice via material document is there any table or any inderect way?
thanks
panduHi Lakshimipathi,
thanks for your reply.
i have checked in vbfa but it's not showing anything.
my client is providing below information and asking that invoice number.
material,
plat,
material doc,
movement type,
posting date.
i have ran the mb59 by giving material , plant , movement type and Archive info struct as Z_MM_MATBE. here i got the material doc and same doc i have checked at table levle but it's showing.
and how can i get invoice number by using this information..
please letme know if you have any idea.
thanks in advance.
pandu. -
How to get PERNR based on user ID
Hi All,
How to get PERNR based on userid.
please help me in resolving this.
Thanks for the support.
Regards,
Dhananjaya R Ehope this will help u
DATA: t_pernr LIKE pa0105-pernr,
t_email LIKE pa0105-usrid_long.
STEP 1 - Find personnel number for UNAME
SELECT SINGLE pernr
INTO t_pernr
FROM pa0105
WHERE subty = '0001'
AND endda >= sy-datum
AND begda <= sy-datum
AND usrid = p_uname.
Employee record found*
IF sy-subrc = 0.
STEP 2 - Find email address for personnel number*
SELECT SINGLE usrid_long
INTO t_email
FROM pa0105
WHERE pernr = t_pernr
AND subty = '0022'
AND endda >= sy-datum
AND begda <= sy-datum. -
How to cummulate the quantity based on the date condition?
hi,
In my query,i need to cummulate the open quantity based on the two date condition.
If my Schedule line date > system date, i need to cummulate the open quantity.
But in my query level i am getting 0 or 1 based on the above condition.
i am struggling to cummulate the open qty based on the above condition.
can any body throws an idea to resolve my issue.
Regards,
ravi.Thanks for suggestion,Almost i narrow down my issue to get the proper result.
But i have one doubt.
Is it possible to user Formula variable (Processing by replacement path-Reference char as Scheduline date) in my Calculated Key Fig calculation.?? But here i am created Scheduline date as Characher infoobject.
Actually i am created Scheduline date as Character InfoObject,If i am using the following condition like
(Schedule line date > system date) its throwing "X" value.
For the above issue,if i am changing the Scheduline date as Key figure InfoObject means i will get the proper output for the condition(Schedule line date > system date) either 0 or 1.
Is it correct????
Regards,
Ravi. -
Get acitivity quantity based on period in table COSL
Hello All,
I have one query.. regarding selecting activity quantity based on period entered in selection screen of select-options.
suppose period is 2 then activity quantity would be LST002, and if period is 4 then LST004.. .....if period= 6 , then LST006.... so on....... but the problem is there are total 17 activity quantity in table COSL and if I code for 'IF'stattement or 'CASE' statement it is goes long coding .. please suggest some other way to get this .Simplest way:
Use case statement, coding will be bit more but its simplest to maintain.
Another Way:
You can use DO loop.
DO 17 times.
concatenate 'LST0' counter in lv_variable.
....Process logic here..
END DO.
When you concatenate strings and store value 'ITAB-LST001' in your variable, you can access value in that variable as: ( lv_variable ).
so lv_variable = ITAB-LST001 and ( lv_variable ) = 1000.00
Best Way:
You can use field symbol. Similar to 2nd way. Search SDN and you get loads of info about using field symbols.
thnx,
Keep ABAPing.
Ags.. -
How to get CHARG based on matnr
Hi Experts,
I want to get PO batch(CHARG) based upon matnr.I am using BAPI_PO_GETDETAIL and receiving PO details by providing purchase order number.The line item table there is no field called charg. ..
So How to get Charg based upon matnr
Thanks & Regards
MathiHello,
Get from the table
MCHA - Batches
Regards,
Vasanth -
How to get the Next Material Document Number
Hi,
Please let me know How to get the next Material Document Number using Functional Module,
Material Document number are in MSEG table.
Regards,
GaneshHi Ganesh,
if you want the next matrial number then first of all you have to define it as a number range in transaction snro.After creating the number range you have to define the interval.
now you can use your number range by calling the function module
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = '01' " here you have to give the number range number which you have defined in number range
object = 'ZPRODLOG' " Number Range
IMPORTING
number = wa_prod_error_log-seqnr " sequence number generated,in your case material number field
EXCEPTIONS
interval_not_found = 1
number_range_not_intern = 2
object_not_found = 3
quantity_is_0 = 4
quantity_is_not_1 = 5
interval_overflow = 6
buffer_overflow = 7
OTHERS = 8.
each and every time next number will get generated .
i hope this will help you.
Thanks,
Tanmaya -
How to print total stock in smartform by material wise
Dear Experts,
I am trying to print total material stock which is issued and receipt during entered date in a smartform ,Here I want to print totatl stock issued n receipt by material wise in seperate line .For that I fetch alldata and put into one internal table .In smartform I am using table for printing data.
Edited by: BharatRathod on Mar 8, 2010 11:43 AM
Edited by: BharatRathod on Mar 8, 2010 11:46 AMHi,
Try using the CALCULATIONS tab in the tables for printing the total stock in smartforms.
Regards,
Sharin. -
Evaluation Comparision - Material wise Price,Quality and Delivery Scores
Hi All
I am new to QM and i am developing a custom report for vendor evaluation. For that report i need material wise scores of price,quality and delivery and based on this we need to perform some calculation.
In ME64 transaction i can able to see the General evaluation and Material wise evaluation for a pur.org,vendor and material combination.
From which table can i select this material wise scores.From table ELBP i can able to see only genral score and table ELBM has no entries.
Currently i can able to get the correct data by submitting ZRM06LBEW (Copy of ME64) in my report for pur.org,vendor and material combination.But i assume it may lead to performance issue.
So kindly suggest me any table,function module or BAPI to get the reuired data.
Thanks & Regards
P.Thangarajhii..
Explore Exit MM06L001.
Description for the same is for your reference which is copied as it is on the source:.
User Exits - Vendor Evaluation
Enhancement MM06L001 comprises four function exits, which are invoked during the calculation of the scores for the subcriteria. The enhancement makes it possible to replace the standard scoring method by customers' own methods.
Implementation Guide (IMG)
To allow a customer's own scoring methods to be used, an indicator must be set for the relevant subcriteria in the IMG in the step Define criteria.
Function modules
The function modules for enhancement MM06L001 are as follows:
EXIT_SAPLMEL0_001
for the general criteria
EXIT_RM06LBAT_001
for the quality criteria if the vendor evaluation is carried out in the background
EXIT_SAPMM06L_001
for the quality criteria if the vendor evaluation is carried out online
EXIT_RM06LBEW_001
for the quality criteria when the scores for the semi-automatic and automatic subcriteria are determined
The following data is passed on to the function modules:
XLIFNR (Vendor number)
XEKORG (Purchasing organization)
XHKRIT (Main criterion)
XTKRIT (Subcriterion)
XKRTYP (Scoring method)
The function modules then supply the scores in the parameter XBEURT.
Coding example
The following example shows how a customer's own scoring method can be stored for the subcriterion "On-time delivery performance". The following coding can be added to program ZXM6LU01 for this purpose:
CASE XKRTYP.
WHEN '3'. "Ermittlungsmethode f・ die Termintreue"
(Scoring method for on-time delivery performance)
XBEURT = 50. "kundeneigene Logik"
(Customer's own logic)
ENDCASE.
In this case, 50 points are always awarded for a vendor's on-time delivery performance.
Function/Program:
EXIT_RM06LBAT_001: User Exits for Vendor Evaluation
EXIT_RM06LBEW_001: User Exits for Vendor Evaluation
EXIT_SAPLMEL0_001: User Exits for Vendor Evaluation
EXIT_SAPMM06L_001: User Exits for Vendor Evaluation
Regards,
Amol -
How to find the month wise Overall result
Hi,
calculating share percentage of order quantity based on Overal result.
if given the fiscal period range in the variable(for ex 001.2006 to 009.2006) Overall result considering sum of all Order quantity data between this range.
But need to calculate share percentage based on month wise in this fiscal period range,for this regard should consider the sum of overal result in month wise.
How to calculate the month wise overall result?
regards,
Hari.Hi Hari,
You need to enable the results row for your Month char in the query. Then use a new formula with the function %CT to get the percentage share of individual values wrt to overall result of that month.
Hope this helps... -
Material wise Daily Stock Report
Hi ABAP Guru's
I got a requirement to develop an report which lists the stock(Opening Stock and Closing stock) for each material of a plant in given date range.whose Values to be matched with either MB5B or MC.9 Tcodes.I have found few tables for Stock like MBEW,MARD but those values are not matching with the Transactions.Can u tell me exactly how can i develop this report.? I'll be very thankful if u do the same.
Thanks and Regards,
Rahul.Hi
In MC.9 it will show both stock quantity and value in storage locationwise.But from MBEW you will get it only in plantwise not in storage locationwise. In S032 you can see quantity field is always correct but value field will be wrong because it's not correctly updating there. To match with MC.9 what you have to do is you should calculate both quantity and value logically in the program. In detail you can get quantity and unit price from the MBEW table (Check unit price field i forgotten) and see the quantity in each storage location and then do a multiplication... Also check the movement type values are mathing or not all the time..U Can Use MB51 transaction for this purpose.....Also take values from table s032, and mard...
Before doing "Stock Ledger Report" take care of so many things..From Mbew you are getting current stock quantity and value in "Plantwise". Give today's date in MC.9 or in MB5B or in MC50(check all plants cumulated checkbox), i am very sure this figure's will match...Now if you need to display only todays quantity and value you can direclt display this..But if you want a perfect stock ledger report this one will not work..I mean if u need the faculity like get the stock quantity and value of a material in the past date no table's will store this entry you have to apply logic.
The logic is you know today's stock quantity and value..Also you know all the Purchase and consumption happened in this period.(Bwart in mseg table)..Now do back-calculation until your date reaches..Be clear with the point, for eg: 01.01.2007's opening stock = 31.12.2006's closing stock. And Yesterdays closing stock = todays' stock + All the purchase - all the consumption..(Purchase and consumption you can calculate from bwart field..) ...Like this do back-calculation upto your selection-screen date....You can get it...Revert back if you are still not able to solve this, because i have done it previously...
Reward All helpfull answers... -
Table to get "stock of material on a past date "
Hi Guru's,
Can anyone tell me "how to get stock of material on a past date".
Pls tell me from which Table you can fetch these values and in what logic.
Any Input is highly appreciated.
Thanks and Regards,
SelvaHello,
You can get the stock from the table MARDH, MCHBH period wise.
this table is use for history stocks.
Regards
Bhima -
Material wise Vendor List & Vendor wise material list
Hi all,
Can any body help me how to get the report for
1) Material wise vendor report: that mean list showing the list of vendors from which that material is purchased and
2) Vendor wise material list: that mean list of materials purchased from a perticular Vendor...
Will be rewarded for answers...
ShashHi ,
Use T. Code: SE16 and enter EINA table name.
If u want report for material / vendor, Enter material in MATNR field and execute and get the report.
If u want report for/ vendor /material, Enter Vendor l in LIFNR field and execute get the report.
Regards,
Biju K -
I want to maintain payment terms...material wise
hi,
Experts,
here i want to maintain vendorwise and material wise payment terms....Vendorwise payment terms its ok i got it but how to maintain paymet terms for material.....is there any way to do maintain material wise payment term...
thaks in advance.......
Regards....
sunil.....
Helpful Ans will be awarded...Hi,
Sorry to say but all the alternatives suggested did not work.
Because fundamentally what you are trying to do Sunil is not logical.
e.g. X person wants 100 qty of material, y person wants 2000 qty of material, the terms of payment are always dependent on the quantity of material, never on the material.
also various other factors play a role in determining payment terms:
like credit check,
payment history,etc
these terms are all related to the customer only.
thus depending upon the fact that majority of its dependant fields are invovled with customer, it can only be configured with respect to customer.
plz clarify on the situation as to why do you need to configure it on material basis.
regards,
Siddharth.
Maybe you are looking for
-
Can't seem to keep my MacBook Air from disconnecting ..
I've looked up a variety of solutions online, and have applied each one with no accurate results. My Airport seems to be fully connected at all times, but once every so often, my page won't load, and my usual progression is to pull the dropdown from
-
Help needed in Multiple Receivers sceenarios using BPM
Hi, I am new to BPM. As per my requirement, based on a business logic i may split the messages into two at message mapping. If i have spitted the messages into two, it should go to different receivers. Or if my logic hasnt splitted the mesaage means
-
Hey Guys, I hope you can anwer my question Nice greetings
-
SUBMIT a report passing a selopt
Hi all gurus, I'm facing this strange issue: Report A, a.k.a. the caller, has a select-option as input parameter, defined in this way: SELECT-OPTIONS: so_objid FOR crmd_orderadm_h-object_id. This report performs a sequence of SUBMIT statements on oth
-
Reports don't show on SCCM 2012 SP1 Console
Hello everyone, We are encountering a strange issue with the SCCM 2012 reporting services. I was creating a custom report earlier. At some point, and I don't know exactly how, I could not open the Reports hive on the 'Monitoring' wunderbar. No report