Want to Group by Std Prices

HI Frds
I have a requirement that i have to group similiar standard price.
For Eg..
month year            std price
001 2008              26.022,37
002 2008              26.613,32
003 2008              26.613,32
004 2008              26.613,32
According to the example i need to group by std price..i.e
I need output like this
Group 1
001 2008              26.022,37
Group 2
002 to 004 2008              26.613,32
Same std prices should be in a group .
Thanks
Raja Guru

see this example
SELECT kunnr gjahr zuonr MAX( budat ) AS budat
       INTO CORRESPONDING FIELDS OF t_date
       FROM bsid
       WHERE bukrs  = rbukrs
       AND   gjahr IN rgjahr
       AND   kunnr IN rkonto
       AND   blart  IN ('DZ','MP') 
       AND   umskz = ' '  
       AND   shkzg  = 'H'
       AND   zuonr IN rzuonr
       GROUP BY kunnr gjahr zuonr

Similar Messages

  • How to change std price

    Hi
    For a mat price control is maintained with V, & std price also maintained during creation.
    Now want to change the std price.
    In MR21 its not allowing me to change moving avg price,if price control is V.
    Is there any way? pls advise..

    Hi,
    Use Tcode MASS to change data.
    Go to MASS - select object type as  BUS1001001 (material) - Execute - here select the tab FIELD and select the line with field: price control again execute then enter. input the number from and to of the materials for which you are require to change the price control and execute.
    I hope this helps
    Regards,

  • Std price to Moving Avg Price & VICE VERSA

    Dear,
    Im MM01 - Trnx I maintained Moving Avg price ,  i want to convert to Std price  in the given scenorios
    1) Newly created MMR - P.O Created - Mtl not inwarded so far
    2) Mtl already transactions done , so many times.
    Also explain if its Std price to Moving avg what steps need to be done.
    Regards,
    Suresh.P

    Hi
    Under certain conditions, you can change the type of price control:
    From standard price to moving average price :-
    You can make this change at any time. The moving average price (which until now has been updated for informational purposes only) replaces the standard price and is used for valuation from now on.
    From moving average price to standard price:-
    You cannot make this change in the following two cases:
    1. If the material master record is set up as a valuation header record for a material subject to split valuation .
    2. If the standard price comes from costing and is not equal to the moving average price
    If the change is possible, the moving average price becomes the standard price, which is then used for valuation.
    You change the type of price control by overwriting the price control indicator in the material master record with the new indicator.
    Changing the type of price control for a material does not change the value of the material stock, since in both cases the current price becomes the new price.
    I hope it will solve your problem. Please revert back.
    Regards
    Raj.......

  • Material std. price change

    hii
    Can we change the std. price of material...if yes..then pls tell me t.code..?
    regards
    Rekha sharma

    hi rekha,
    Are you talking about changing the "Price control" (Price control S to V) or just a standard price amount in a material?
    If you want just the amount then use MR21. And then give the new value as the new price.
    If you want to change the price control then it has few prerequisites prior change it.
    You need to delete all open PO line items, Production Orders and stocks.
    Then only you can change the control. And it will give all open orders when you try to change it.
    If you delete all then you can use MASS to change it mass level.
    Hope this will helpful.
    thanks & BR
    sandun

  • I have photos I want to group together in one album, but can't do this because some may have the same number. How can I combine them all into one album?

    I have photos I want to group together in one album, but can't do this because some may have the same number. How can I combine them all into one album? I was trying to move several albums onto a USB drive and it stated all other files exist at this location.  They are pictures taken at different times and have the same number I guess.

    In iPhoto albums may contain photos with the same file name - iPhoto handles that just fine
    If you are exporting them to move somewhere else use the sequential file name feature of export to give each file a unique name
    LN

  • Issue with Std price & Overheads at the time of goods issue

    Hi Experts,
    Please help me on below concern.
    system is taking the std price at the time of goods issue as we marked price control "S" for all materials to track the PPV seperately. So once we run the std costing system is calculating the std cost= direct material+overheads and updating the same in std price in accounting 1 tab.
       But as per our requirement at the time of goods issue system has to take only direct material not overheads,  also one more problem is at the time of actual overheads calculation in the period end , system is calculating overheads on total of direct material+overheads instead of direct material only.
      So please suggest how to config the system to meet my client's requirement.
    Thanks&Regards,
    Spandana.

    Hi Ajay,
      Thanks for your inputs.  In the std costing run system is showing components as below.
    Material cost       110$
    Material overheads  10$
    Labor cost  20$
    Labor Overheads 10$
    In this Material cost 110$ , materials overheads also included(100$+10$). Why system is calculating Material overheads twice please suggest what mistake i did.
      The material overhead percentage rate is 10%.
    As per my client requirement system should calculate components as shown below
    Material cost 100$
    Material overheads 10$
    Labor cost  20$
    Labor overheads 10$
    Please advise its very urgent, your inputs will be rewarded with points.
    Thanks&Regards,
    Spandana.

  • Problem in bdc to change  std price to moving price

    hi
    I had created BDC for changing std price ' S ' to moving price ' V ' . I had done recording for MM02 Trans.
    At the time of creation of material ,MM person selects different views for same type of material .
    moving price presents  in Accounting 1 View. In recording this view was at 13th position  .but If I check my BDC for other material while running BDC in foreground it takes MRP1 view which is at 13th position 
    because here the no of views are more as compared to the recorded material .Again position of recording is also not matching.
    please advice what to do in this case ?
    Thanks in Advance.
    Regards,
    Atul

    hiii,
    take the PSTAT field from mara for that particular material and make the following changes in ur code.
      PERFORM POPULATE_BDC_TAB1  tables itab1 USING :
         '1' 'SAPLMGMM' '0060',
         ' ' 'BDC_CURSOR' 'RMMG1-MATNR',
         ' ' 'BDC_OKCODE' '/00',
         ' ' 'RMMG1-MATNR' new_material,
         ' ' 'RMMG1-MBRSH' ind_sec,
         ' ' 'RMMG1-MTART' mat_type.
    PERFORM POPULATE_BDC_TAB1  tables itab1 USING :
           ' ' 'BDC_OKCODE' '=P+'.
    SEARCH pstat FOR 'K'. "BASIC DATA
      IF sy-subrc = 0.
        PERFORM POPULATE_BDC_TAB1  tables itab1 USING :
         ' ' 'MSICHTAUSW-KZSEL(01)' 'X',
         ' ' 'MSICHTAUSW-KZSEL(02)' 'X'.
      ENDIF.
        SEARCH pstat FOR 'V'. "SALES ORG DATA
      IF sy-subrc = 0.
        PERFORM POPULATE_BDC_TAB1  tables itab1 USING :
         ' ' 'MSICHTAUSW-KZSEL(04)' 'X',
         ' ' 'MSICHTAUSW-KZSEL(05)' 'X',
         ' ' 'MSICHTAUSW-KZSEL(06)' 'X',
         ' ' 'MSICHTAUSW-KZSEL(07)' 'X',
         ' ' 'MSICHTAUSW-KZSEL(08)' 'X'.
      ENDIF.
      CLEAR flag_pur.
      SEARCH pstat FOR 'E'. "PURCHASING
      IF sy-subrc = 0.
        PERFORM POPULATE_BDC_TAB1  tables itab1 USING :
         ' ' 'MSICHTAUSW-KZSEL(09)' 'X',
         ' ' 'MSICHTAUSW-KZSEL(10)' 'X',
         ' ' 'MSICHTAUSW-KZSEL(11)' 'X'.
    *************SHAFI********
        flag_pur = 'X'.
      ENDIF.
        SEARCH pstat FOR 'D'. "MRP
      IF sy-subrc = 0.
        PERFORM POPULATE_BDC_TAB1  tables itab1 USING :
         ' ' 'MSICHTAUSW-KZSEL(12)' 'X',
         ' ' 'MSICHTAUSW-KZSEL(13)' 'X',
         ' ' 'MSICHTAUSW-KZSEL(14)' 'X',
         ' ' 'MSICHTAUSW-KZSEL(15)' 'X'.
      ENDIF.
    SEARCH pstat FOR 'P'. "FORECASTING
    IF sy-subrc = 0.
       PERFORM POPULATE_BDC_TAB1  tables itab1 USING :
        ' ' 'MSICHTAUSW-KZSEL(16)' 'X'.
    ENDIF.
      SEARCH pstat FOR 'A'. "WORK SCHEDULING
      IF sy-subrc = 0.
        PERFORM POPULATE_BDC_TAB1  tables itab1 USING :
         ' ' 'MSICHTAUSW-KZSEL(17)' 'X'.
      ENDIF.
      PERFORM POPULATE_BDC_TAB1  tables itab1 USING :
             '1' 'SAPLMGMM' '0070',
           ' ' 'BDC_OKCODE' '=ENTR'.
      SEARCH pstat FOR 'Z'. "GENERAL PLANT DATA/STORAGE LOCATION
      IF sy-subrc = 0.
        PERFORM POPULATE_BDC_TAB1  tables itab1 USING :
         ' ' 'MSICHTAUSW-KZSEL(01)' 'X',
         ' ' 'MSICHTAUSW-KZSEL(02)' 'X'.
      ENDIF.
    ****************shafi**********
      IF NOT v_drg IS INITIAL.
        PERFORM POPULATE_BDC_TAB1  tables itab1 USING :
        ' ' 'MSICHTAUSW-KZSEL(02)' 'X'.
      ENDIF.
      SEARCH pstat FOR 'S'. "WAREHOUSE MGMT
      IF sy-subrc = 0.
        PERFORM POPULATE_BDC_TAB1  tables itab1 USING :
         ' ' 'MSICHTAUSW-KZSEL(03)' 'X',
         ' ' 'MSICHTAUSW-KZSEL(04)' 'X'.
      ENDIF.
      SEARCH pstat FOR 'Q'. "QUALITY MGMT
      IF sy-subrc = 0.
        PERFORM POPULATE_BDC_TAB1  tables itab1 USING :
         ' ' 'MSICHTAUSW-KZSEL(05)' 'X'.
      ENDIF.
      SEARCH pstat FOR 'B'. "ACCOUNTING
      IF sy-subrc = 0.
        PERFORM POPULATE_BDC_TAB1  tables itab1 USING :
         ' ' 'MSICHTAUSW-KZSEL(06)' 'X',
         ' ' 'MSICHTAUSW-KZSEL(07)' 'X'.
      ENDIF.
      SEARCH pstat FOR 'G'. "COSTING
      IF sy-subrc = 0.
        PERFORM POPULATE_BDC_TAB1  tables itab1 USING :
         ' ' 'MSICHTAUSW-KZSEL(08)' 'X',
         ' ' 'MSICHTAUSW-KZSEL(09)' 'X'.
      ENDIF.
    make sure that u have the ok code 'P+' for view which are displayed after u press page down event.
    Hope it helps u..
    Regards,
    Anil N.

  • (javascript) I want to group in existing pathitem

    <ai cs5><javascript>
    I creat 5 pathitem in the K_layer, i want to group them.
    code:
            var myDoc =  app.activeDocument;       
            var K_layer = myDoc.layers.add();
            var k01 = K_layer.pathItems.add();  k01.name='01';
            var k02 = K_layer.pathItems.add();  k02.name='02';
            var k03 = K_layer.pathItems.add();   k03.name='03';
            var k04 = K_layer.pathItems.add();  k04.name='04';
            var k05 = K_layer.pathItems.add();  k05.name='05';
            var mygroup = K_layer.groupItems.add();
            for (var i=0; i<K_layer.pathItems.length; i++)
                    K_layer.pathItems[i].move(mygroup, ElementPlacement.PLACEATEND);
    result:
         just 01,03,05 into the mygroup, 02,04 still in K_layer.
         I don't know why ?
    1.    I try K_layer.pathItems.length=5 is correct
    2.    and also i try
         K_layer.pathItems[0].move(mygroup, ElementPlacement.PLACEATEND);
         K_layer.pathItems[1].move(mygroup, ElementPlacement.PLACEATEND);
         K_layer.pathItems[2].move(mygroup, ElementPlacement.PLACEATEND);
         K_layer.pathItems[3].move(mygroup, ElementPlacement.PLACEATEND);
         K_layer.pathItems[4].move(mygroup, ElementPlacement.PLACEATEND);
         stop in the pathItems[3] and show 「error 1302 no such element」
    anybody to help, thx~

    result:
         just 01,03,05 into the mygroup, 02,04 still in K_layer.
         I don't know why ?
    when you remove k01 to move it into the group, all other rearrange their indexes, so k02 becomes pathItem[0] hence, in the next run, it gets skipped since your moving pathItem[1] (k03 at this point).
    do it like this
    var myDoc =  app.activeDocument;      
    var K_layer = myDoc.layers.add();
    var mygroup = K_layer.groupItems.add();
    var k01 = mygroup.pathItems.add();  k01.name='01';
    var k02 = mygroup.pathItems.add();  k02.name='02';
    var k03 = mygroup.pathItems.add();   k03.name='03';
    var k04 = mygroup.pathItems.add();  k04.name='04';
    var k05 = mygroup.pathItems.add();  k05.name='05';

  • Set up std. price for proc.type F parts (External Procurement)

    Experts,
    what is the comon way to set up Std. price for materials with Proc.Type F (External procurement). Current I am using KKPAN and set cost out of PIR and material burden as seperate line.
    Looking for a way to have the material burden as fixed value in the system which I can use as base for calculation.
    Thanks in advance
    Jörg

    Dear ,
    For any FG material you should have Standard Price (S)  in Cost2 view  getting updated thrugh CK24 after ck11n done during production process .
    For any Externally procured item , you should have MAP or Planned price with Valdidty .Generally duing planned cost estimaiton , planned price will be considered  while you will do good issue agianst production order , systm will consider  the MAP to calcualte the cost of the material .
    Now to update the price you should carry out MR21 with new price for company code , validdity date , price control indicator  and valution variant .
    Generally in project scinario , you can use MAP for FG material .
    refer :
    http://help.sap.com/saphelp_47x200/helpdata/en/47/60ff6249f011d1894c0000e829fbbd/content.htm
    http://www.sap-img.com/materials/price-control-v-or-s-in-material-type.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/47/60ff0749f011d1894c0000e829fbbd/content.htm
    Regards
    JH

  • Moving average prices and std prices

    hi friends,
    i have a doubt abt prices...
    which will b assigned for raw materials-standard price? or avg moving price? and why?
    if possible explain clearly about avg.moving price and std.price
    for spit valuation what price we will use??
    help me out..
    thanks in advance...
    venkat

    Standard price are used for products that do not fluctuated frequently.  It is usually used for finished or semi finished products.
    Moving average price are used mainly for raw materials that are purchased externally.  The advantage of using moving average price for your raw materials is that your inventory costs will always reflect the current market cost.
    SAP strongly recommends that you do not select price control V for semi-finished products and finished products, because doing so will very easily cause the calculation of unrealistic valuation prices. SAP recommends: 
    Price control V for raw materials and trading goods; price control S for semi-finished products and products
    We recommend that you only use price control V for materials procured                          
    externally. Materials produced in-house should be subject to a                                 
    standard price control.                                                                        
    Generally all raw materials (ROH), spare parts (ERSA), traded goods (HAWA) etc. are assigned as moving average price (MAP)  because of the accounting practice of accurately valuating the inventory of such materials. These materials are subject to the purchase price fluctuations on a regular basis.
    The semi-finished goods (HALB) and finished products (FERT) are valuated with standard price because of the product costing angle. If these were to be MAP controlled, then finished/semi-finished product valuation would fluctuate due to data entry errors during backflushing of material and labour, production inefficiencies (higher cost) or efficiencies (lower cost). This is not a standard accounting and costing practice
    For Split valuated material it is recommended to use Moving average price

  • Use of Std Price in APO

    Hi All,
    Please let me know the use of standard price in APO that is updated from R3. Our scenario in APO include DP, CTM, deployment and TLB. We do not run SNP optimizer.
    As CTM does not recommend based on cost, can std price field be deleted without affecting anything in APO in the scenario mentioned.
    This is as per our client requirement, request for speedy response.
    Thanks,
    Umesh

    Hi Umesh,
    I am not clear on your requiment.
    As Gustavo said Standard price does not come to APO from R3. Even though in your environment standard price is transferred to APO using custome modifications you should have business reason/use behind that.
    Even if you are having standard price in custome field and If you are using standard CTM, Deployment (heuristic) and TLB then it will not impact any of the standard functionality.
    If you can give more details about your scenario, it will be more helpful.
    Regards,
    Harshil Desai

  • Discount Group and Special Prices

    Hello Everyone
    I have a scenario where by the discount given in both Discount Group and Special Prices needs to work in conjunction.Now at the moment if i give it in both discount group and Special Prices for BP,only Special Price discount is being picked up ie its given precedence over Discount Group.Is there any setting that i need to change to make this work.I have to show the difference in discount elsewhere,so only i need to map this in both discount group and special prices.
    Thanks and regards
    Raghu

    hi raghu ram,
    Check the wiki page in this link
    How is the default item unit price determined in marketing documents?
    https://www.sdn.sap.com/irj/scn/wiki?path=/pages/viewpage.action&pageid=29524391
    Hope it will solve problem.
    Jeyakanthan

  • Need to use Group By but only want to group some of the columns not all

    Hello all! I am having some issues here. I am rather new to SQL and I am getting stuck with grouping. I have the query below but I only want to group by these columns, instead of all the columns in my select statement.
    ah.fund,
    ah.dept,
    ah.org,
    ah.acct,
    t.fund,
    t.dept,
    t.org,
    t.acct
    This will eventually go into Oracle reports builder. Is there any way I can archive this at all? The query will return all the t for a given time period, but they need to be grouped by the fully qualified account number which consists of the fund, dept, org and acct columns.
    Thanks in advance!
    SELECT ah.fund,
         ah.dept,
         ah.org,
         ah.acct,
         LPAD(ah.fund,3,0)||LPAD(ah.dept,2,0)||LPAD(ah.org,4,0)||SUBSTR(ah.acct,1,2) acct_no,
         LPAD(ah.fund,3,0)||LPAD(ah.dept,2,0)||LPAD(ah.org,4,0)||ah.acct acct_no1,
         t.fund,
         t.dept,
         t.org,
         t.acct,
         t.ACTIVITY_DATE,
         t.TYPE,
         t.AMT,
         t.description,
         t.TRANS_NO,
         t.RECEIPT_NO,
         DECODE(t.PO_NO,NULL,t.JOURNAL_NO,t.PO_NO) J_NO,
         DECODE(t.WARRANT_NO,NULL,t.WIRE_NO,t.WARRANT_NO) W_NO,
         t.VENDOR_NO,
         v.name||' ' ||v.first_name name,
         MIN(ah.eod_date)
    FROM ah,
         t,
         v
    WHERE ah.fund BETWEEN SUBSTR(:p_acct_from,0,3) AND SUBSTR(:p_acct_to,0,3)
         AND ah.dept BETWEEN SUBSTR(:p_acct_from,4,2) AND SUBSTR(:p_acct_to,4,2)
         AND ah.org BETWEEN SUBSTR(:p_acct_from,6,4) AND SUBSTR(:p_acct_to,6,4)
         AND ah.acct BETWEEN SUBSTR(:p_acct_from,10,5) AND SUBSTR(:p_acct_to,10,5)
         AND FLOOR(ah.acct/10000) IN (6,8)
         AND SUBSTR(ah.acct,3) != '000'
         AND ah.eod_date BETWEEN :p_from_date-1 AND :p_to_date
         AND t.fund (+) = ah.fund
         AND t.dept (+) = ah.dept
         AND t.org (+) = ah.org
         AND t.acct (+) = ah.acct
         AND TO_DATE(t.activity_date, 'dd-mon-yy') >= TO_DATE(:P_FROM_DATE,'dd-mon-yy')
         AND TO_DATE(t.activity_date, 'dd-mon-yy') <= TO_DATE(:P_TO_DATE,'dd-mon-yy')
         AND t.type IN( 'PI','JE','PR','VD','VU','AC','AD')
         AND (
              (:p_year = TO_CHAR(CURRENT_DATE,'YYYY')
              AND (t.po_no IS NULL
              OR (select TO_CHAR(open_date,'YYYY') FROM r WHERE po_no = t.po_no ) = TO_CHAR(CURRENT_DATE,'YYYY') ) )
              OR ((select TO_CHAR(open_date,'YYYY') FROM r WHERE po_no = t.po_no ) = :p_year )
    AND v.vendor_no (+) = t.vendor_no
    GROUP BY ah.fund,
         ah.dept,
         ah.org,
         ah.acct,
         t.fund,
         t.dept,
         t.org,
         t.acct,
         t.ACTIVITY_DATE,
         t.TYPE,
         t.AMT,
         t.description,
         t.TRANS_NO,
         t.RECEIPT_NO,
         DECODE(t.PO_NO,NULL,t.JOURNAL_NO,t.PO_NO),
         DECODE(t.WARRANT_NO,NULL,t.WIRE_NO,t.WARRANT_NO),
         t.VENDOR_NO,
         v.name||' ' ||v.first_name
    ORDER BY LPAD(ah.fund,3,0)||LPAD(ah.dept,2,0)||LPAD(ah.org,4,0)||SUBSTR(ah.acct,1,2),
         LPAD(ah.fund,3,0)||LPAD(ah.dept,2,0)||LPAD(ah.org,4,0)||ah.acct;

    In reports builder you can group the columns without having to group it in your query. It is also known as the break report which contains multiple groups in its data model.
        |            Q_1               |
                      |
                      |
        |       GRP_department         |
        | dept_no                      |
        | dept_name                    |
                      |
                      |
        |         GRP_employee         |
        | emp_no                       |
        | emp_first_name               |
        | emp_last_name                |
        | emp_middle_name              |
        | emp_date_of_birth            |
        | ...                          |
        ------------------------------

  • Std-Price calculation with Quote arrangement

    Hello Experts,
    I set up a quote arrangement (MEQ1) for one Material. This quote arrangement including two production version 0001 and 0002 with proc.type E, as third line I added a vendor with proc. type F.
    How can I calculate the std. price based on the proc. type F line, line should be slected by the system automatically and not based on the prod. versions (E).
    Thanks in advance
    Jörg

    Hi Ajay,
      Thanks for your inputs.  In the std costing run system is showing components as below.
    Material cost       110$
    Material overheads  10$
    Labor cost  20$
    Labor Overheads 10$
    In this Material cost 110$ , materials overheads also included(100$+10$). Why system is calculating Material overheads twice please suggest what mistake i did.
      The material overhead percentage rate is 10%.
    As per my client requirement system should calculate components as shown below
    Material cost 100$
    Material overheads 10$
    Labor cost  20$
    Labor overheads 10$
    Please advise its very urgent, your inputs will be rewarded with points.
    Thanks&Regards,
    Spandana.

  • Std price of material updation in SAP system

    dear all
    I had created a material CLC Block in material master & had mention the Std price for the same. say 28 rs/unit
    Then i had change the std price for that particular material by T-code MR21.
    say 30 rs/unit.
    the system shows the updated new price for that material in Master, but when we make GRN for the same material by movememt type 501 q, the system takes the old pirce only. ie 28 rs/unit.
    the cost gets book w.r.t old price only.
    pls help me out in this mater in detail.
    thank in advance to all SAP experts
    regard
    parikshit

    hi
    udo
    thanks for your valuable input.
    I had test the procedure what you had explain.
    i had assign the price w.r.t WBS no & it works
    thanks once again
    regards
    parikshit

Maybe you are looking for

  • Safari Opens to Wrong URL

    Ever since I downloaded the latest Mac Office 2011 Service Pack, no matter what URL I list as my Home Page preference in Safari, it opens to another page that I never selected. Over 26,000 people have viewed/commented on this issue with no viable ans

  • Report Conversion Tool - problem with logging in table OBJ_G_MIGRATION

    Hello Community-Members, since several days I am searching different BO-Communities for a solution, but I didn't find any threats about my problem. I am new to BO XI R3.1 and I want to convert deski-reports with the report conversion tool. I tried it

  • Passing vector into class/methods

    I am new to Vectors check this simple code out. I am trying to pass a vector onto another class then add an integer element to it. I see that its looking for an identifier but i dont unerstand how the code is for an identifier for a vector. ERRORS: .

  • Hyper-V checkpoint disk size growth out of control

    Hi, i have hyper-v with exchange server installed on VM. i have used checkpoint in vm production. but i'v got trouble with my disk space. my vm is suddenly pause-critical because of out of disk space that used by checkpoint. based on microsoft recomm

  • Yosemite only recognises 16gb RAM out of 32gb

    Hi guys, Until a month ago when I upgraded to Yosemite, Maverick recognised the 32gb RAM physically installed on my machine, after the upgrade to Yosemite (currently 10.10.1), the system ONLY recognises 16gb RAM. I have a 27-inch mid 2010 iMac, 2.93