Dispaly  range of material and plant

hi,
firends i want the code for the display of ranges between two number of material, date and plant on that base i have to get data for plant, date of posting, customer
like that
ie if i give material 400000004 to 400000007
              plant      dp01 to dp02
date 13.04.2006 to 30.1.2007
on this information i have to get values for material docu number date of posting , customer
i am geting for single value now i want for multiply values
thanks and regards
shafeeq ahmed

select material docu number date of posting , customer from XXXX into table itab where material in s_material and plat in s_plant and date in s_date.
loop at itab.
write: / itab-material docu number date of posting , customer.
endloop.
Cheers

Similar Messages

  • /SAPAPO/SDRQCR21 program is not working correctly if we run the program for range of material and plant wise

    Hi APO Experts,
    In our project, we have received more sales order inconsistencies which is not clearing by CCR program and it is clearing by  program /SAPAPO/SDRQCR21 with option as Build Reqmts from Doc. Flow, So We have decided to schedule the background job on daily basis for program /SAPAPO/SDRQCR21 with option as Build Reqmts from Doc. Flow, performing the testing in our quality system and observed the below strange behavior. 
    When I am running the program /SAPAPO/SDRQCR21 with Range of products and some location range with option as Build Reqmts from Doc. Flow, in Background job. In output it is suggesting to delete one sales order. If I checked that Sales order in ECC, it is for an different location, that is not part of my selection and the order is open. In MD04 the Qty is showing 1 ( as per sales order) but in APO RRP3 view the order qty is showing Zero. I have run the CCR, it is coming in different in content and if I push, the different is not going to APO.
    I have tried running the program /SAPAPO/SDRQCR21 with plant which is mentioned in that sales order with option as Build Reqmts from Doc. Flow, in Background job , it is suggesting this sales order under update option correctly.   
    Can you please help me understand why it is behaving differently like the location is not part of my selection and why it is suggesting the wrong action. And also whether is it advisable to run the /SAPAPO/SDRQCR21 with option as Build Reqmts from Doc. Flow at plant range and material range in background job.
    Thanks & Regards,
    Sundaram Radhakrishnan

    Sundaram,
    It sounds to me like the sales document records in the OLTP and in APO were created at different times.  This is common in Dev and Qual environments when the systems are commonly created at two different times, and each was a copy of an existing system that contained sales data.  The order number you see in //rrp3 is somewhat irrelevant; system generally uses the guid for many activities.
    FYI during Dev and Qual refreshes, if you are copying from a production environment that contains data, it is always best to create the OLTP and SCM images at the same time, and to copy them both to the Dev and Qual systems at the same time.  If you don't do this, you are faced with the additional tasks associated with getting the copied systems back into synch.
    If this is Dev or Qual, I suggest that you just completely wipe out all sales orders in APO and rebuild them using the CIF.
    If this is a mature production environment, the only time I have ever seen this issue is due to improperly created CIF enhancements.  Speak to your developers to find the root cause, and correct this problem.  Then, wipe out all sales orders and rebuild with CIF.
    Best Regards,
    DB49

  • User Exit to check whether chapter id for Material and Plant combination is maintained while creating sales order

    Hello all,
    my requirement is, system should give error message while creating sales order, if chapter ID is not maintained for a material and plant combination.
    please suggest the user exit.

    Hi
    CASE 1 : All Plants are excisable.
    In Material master , Foreign Trade data tab-  mentioned Control code field mandatory. ( i.e nothing but Chapter ID)
    CASE 2 : Few Plants are excisable
    In the Case 2 you need to go for Enhancement
    Program Name : MV45AFZB 
    User Exit:            USEREXIT_CHECK_VBAP ( Item Level Check )
    By using above user exit you write a logic with the help of ABAPer
    Plant and Chapter ID combination table : J_1IMTCHID

  • Need help on enhancement of 0CO_OM_OPA_1 with Material and Plant

    Hi,
    I have a requirement that need to build a BW report which shows Actual costs and Planned Costs of Service Orders. We are getting Actual costs from 0CO_OM_OPA_6 and now i am getting planned costs from 0CO_OM_OPA_1. For actual costs we are getting Service Orders, Material and plant from Satandard DS 0CO_OM_OPA_6. Where as For Planned Costs standard data source 0CO_OM_OPA_1 is not having Material and Plant information. For this we decided to enhance 0CO_OM_OPA_1 with Material and Plant.
    But we are not sure the source tables for material and plant and the logic to extract these data from the tables. Can anybody please help me out.
    Thanks for your supprt in advance.

    It's possible you may need to use a CO-PA (profitability analysis) datasource instead of 0CO_OM_OPA_6.  0CO_OM_OPA_6 extracts data from CO tables. 
    Based on the path you provided "...Profit. segment...", the requested data might exist with CO-PA.
    If you determine the required data resides in CO-PA, you'll have to create a datasource based on the operating concern.  You can perform a search within the online docs for steps to create this datasource.
    Hope this helps.
    Rod

  • Transaction code to display exception messages by material and plant

    Hi,
    Is there a transaction code or standard report in SAP  to display exception messages by material and plant? I see the exception messages by individual material and plant in MD04 but I need to see a collective view. I tried Collective access in MD04 and MD46 but they are not giving me exception groups but I need exceptions listed out by material and plant.
    Thanks.

    Visu,
    I have never seen such a report.
    MD06 does support fine tuning the output display, once the list has been generated.  If you use this feature, the resulting display is the entire list as created by selecting the initial parameters (such as exception group), but with the specific items that contain your selected message highlighted.  If you are addressing the messages interactively, you can select the review (glasses)  screens, and scroll through just the ones which contain your  selected exception message(s).
    To try this, execute MD06.  Select the groups as necessary.  Execute.  Wait for the list.  Now, immediately, select 'search' (binoculars).  Experiment with the output.
    As mentioned in the previous post, if MD06 does not meet your needs, you will need to have a custom report written.
    Rgds,
    DB49

  • How to get material and plant by providing control key as input ?

    How to get the material and plant info based on control key values using a function module?
    kindly help..

    Hi,
    Check the FM
    K_VALID_PLANTS_OF_MATERIAL.
    Sandeep Kaushik

  • Plannning Material and Plant for MRP Run

    Hi,
    If I have a material (01) extended on 2 plants, on one plant (A) we have production and planning/MRP + stock and on the other one (B), just stocking and transfer. B's requirements are to be entered and planned at A. I also want stock at B to be considered with stock at A when MRP runs at A. In the material master, I have some settings. I want to know if these would be any good:
    Material 01 on Plant A:
    MRP PD
    Strategy 40
    Lot size EX
    Coverage profile applied
    Material 01 on Plant B:
    MRP ND/PD tried both
    Strategy 40
    Lot size EX
    Coverage profile applied (same)
    Planning material: Material 01 itself
    Planning plant: Plant A
    I particularly want to know about points 5 and 6. Will they make any difference if I run MRP on scope of planning(all plants) or just plant A? Will stock at B be considered? What difference does that setting make in my case? Please help!
    Thanks!

    No sales on Plant A. Only transfers and STO's. Stock is STO'd to Plant B (and other Plants, as well)
    Plant B sells the stock.
    Yes, I want to load the forecast in Plant A (COPA to SOP to DM to MRP). What do I do in this case?
    I tried another case, as well. In that I put a special procurement on the material in Plant B view and marked it as external procurement. (the planning material and plant were there, didn't remove)
    Then I entered the forecast in both plants separately (PIRs for both Plants) The requirements from Plant B made STPO Planned orders in Plant B and STCK Planned orders in Plant A. I am using coverage profiles (period is month, standard length 25 days, target 10 days for 1st period for 2 months, target 10 days for 2nd period  for 1 month, target 10 days for the rest of the horizon) Not using any consumption modes.
    The results I am getting don't make sense to me. I have attached screen shots for both plants MD04 and the MRP + work scheduling views

  • FM / BAPI to update STEUC field in marc Table basing on material and plant

    Hi,
    I need to to update STEUC field in marc Table basing on material and plant. please suggest FM / BAPI.
    Thanks.
    raviraj.

    Hi
    Try this BAPI function module:
    " BAPI_MATERIAL_MAINTAINDATA_RT "
    Data: LS_HEADDATA TYPE BAPIE1MATHEAD,
             LS_RETURN TYPE BAPIRETURN1,
              LT_PLANT TYPE TABLE OF BAPIE1MARCRT,          LS_PLANT TYPE BAPIE1MARCRT,
              LS_PLANTX TYPE BAPIE1MARCRTX,          LT_PLANTX TYPE TABLE OF BAPIE1MARCRTX.
            CALL FUNCTION 'BAPI_MATERIAL_MAINTAINDATA_RT'
                   EXPORTING
                       HEADDATA   = LS_HEADDATA
                   IMPORTING
                       RETURN     = LS_RETURN
                   TABLES
                       PLANTDATA  = LT_PLANT
                       PLANTDATAX = LT_PLANTX.
    Check the PLANTDATA in the above fm in which pass your ''STEUC'' to BAPIE1MARCRT-CTRL_CODE......
    Hope this works.....

  • Any ideas why placing Material and Plant in same DIMENSION is a bad idea?

    Hi,
    I place Material and Plant in the same dimension and a colleague argued that it is a bad combination in the same dimension although he did not explain.
    Can you provide some examples to explain to me why  this is a good or bad combination?
    What are the rules in making decisions on which characteristics go into the same dimension?
    Thanks

    1.
    m:n relation
    If I place a Material and Plant in a dimension, let's say 5 plants and 1000 materials, then there will be 5 x 1000 = 5000 material-plant combinations.
    1. Is this 5000 material-plant combination taking place in the Dimension or in the cube?
    In the dimension table.
    Remember we are trying to see that the size of the dimension table is lot smaller than the size of the fact table.
    m:1 relation
    Similarly, if I place a Material and in a dimension, let's say 5 Material Groups and 1000 Materials, then there will be 5 x 1000 = 5000 Material-Material-Group combinations.
    2. What is the difference between the
    5000 Material-Material-Group combinations &
    5000 Material-Plant combinations ?
    Here the example is wrong. Imagine if 200 materials each fall under one material group, then there are not 5000 combinations but only 5 material groups with 200 each.
    3. And why does one improves performance over the other
    i.e. why is the
    5000 Material-Material-Group combinations better than that of 5000 Material-Plant combinations
    In the second case the dimension table is lot smaller and improves performance.

  • Characteristics values for material and plant

    Hi Experts,
    I need to fetch characterstic values from a class Y-xx . I belive badi BAPI_CLASS_GET_characteristics
    will give the result but my problem is in selection screen I am passing material no and plant
    for this material and plant i need to fetch the characteristics values from the Y_xx class
    Could any one suggest the BADI or FM or tables to fetch the results
    Thanks in advance

    Hi,
    Go to MEK2, here enter the freight condition type, go to the output screen as pr the access maintained and select the line item and click on "Scales" button to see the from and to value.
    Also you can check the same in "Conditions" button in Purchase Info record.

  • Outbound delivery allows only the unrestricted stock for particular material and plant

    Hi,
    In STO I have an problem the outbound delivery creations allows all stocks under unrestricted, Quality inspection, Block stock.
    I want the outbound delivery creation of a particular material and  plant it allows only the stock under the unrestricted only. It doesn't allows the stocks under the Quality inspection and Block stocks.
    I need to know how to configure this or how to solve my requirements.
    Regards,
    Ramesh N

    Dear Mohammed ,
    as per your scenario , there is two movement type has to trigger in the Delivery level according to the plant and material combination .
    as per my knowledge it will not configurable in standard process . this will possible with user exit logic only .
    follow the below logic to achieve your issue .
    you have to create two item categories and two schedule lines with (655 &653) , that means your movement type has to trigger at sales order level only . write a logic in the user exit - MV45AFZZ -USEREXIT_MOVE_FIELD_TO_VBAP , if this combination matches then automatically item category has to over write other wise it will copy the existing item category .at delivery level you can see two movement types in item level.
    wait for other experts solution , if any standard is possible or not  .
    Regards,
    C.B Reddy.

  • Characteristic values for the material and plant combination...

    Hi Friends,
    I would like to know how can we maintain the characteristic values for the combination of Material and Plant though the material is not batch managed?
    Thanks in advance,
    Ram

    Hi Rajendra,
    Thanks for quick reply. I am maintaining under classification view but it does not ask plant any where. So the value will be same across all the plants but i want to maintain characteristic values separately under each plant for same material.
    Regards,
    Ram

  • Production Order on basis of Material and Plant

    Hi,
    I want to know the table name from which i can get the Production Order on the basis of Material No and Plant no

    Hi,
      Production Order Header Table -
    >AFKO
      Field Name :     
      Order Number      --- AUFNR
      Production Order Item Table   -
    >AFPO
      Field Name:
      Order Item Number       -
    POSNR
      Material Number         -
    MATNR
      Plant                   -
    DWERK
    Regards,
    nandha

  • Inforecord with Vendor, Material and Plant combination information.

    Hi All,
    I Want to extract Info records with the combination of Material, Vendor and plant.
    As i tried in a017, EINE and EINA.
    Thanks a lot.
    Warm Regrds,
    Syam Kumar
    Edited by: Syam Kumar Dodda on Oct 6, 2011 10:28 PM

    ME1M can be used.
    If your writing query using A017, the system won't let you do that due to performance issue of select statement for pooled tables, you need use a different approach using ABAP program.
    Look at the note [856193|https://service.sap.com/sap/support/notes/856193]
    Edited by: Jeevan Sagar on Oct 6, 2011 4:38 PM

  • Uploading Material and Plant Masterdata

    Hi BW experts,
    I am trying to upload master data from R/3 Prod for 0Material & 0MAT_PLANT.  My upload failed as some of the materials and plants created in R/3 have been created with a space character at the end of the name (i,e '1000 ' as a plant, note the space at the end).  This should normally happen as in R/3 a conv exits stops users creating unacceptable names but it seems the exit has been modifed!  What a pain! 
    I have decided to replace the space with a unscore character (i.e '1000_') so this way it can be read into BW, although we would not report on this errornous material or plant name.  The code is as follows:
    DATA: LEN TYPE I.
    LEN = STRLEN( TRAN_STRUCTURE-MATNR ).
    TRANSLATE TRAN_STRUCTURE-MATNR+LEN USING ' _'.
    and I have used it in the transfer routine for 0PLANT and 0MAT_PLANT.  The load goes on but fails with the following error for 0MATERIAL & 0MAT_PLANT:
    DATA_OFFSET_TOO_LARGE   
    CX_SY_RANGE_OUT_OF_BOUNDS
    An exception occurred. This exception is dealt with in more detail below   
    . The exception, which is assigned to the class 'CX_SY_RANGE_OUT_OF_BOUNDS',
    was neither                                                               
    caught nor passed along using a RAISING clause, in the procedure           
    "COMPUTE_MATERIAL" "(FORM)"                                               
    Since the caller of the procedure could not have expected this exception   
    to occur, the running program was terminated.                             
    The reason for the exception is:                                           
    The system tried to access field "TRAN_STRUCTURE-MATNR" with type "C" and  
    length                                                                    
    18 in the current program "GPBMDZFJE4YBL86FIMHZC52BNOE " using offset 18.  
    Partial field access is not allowed with an offset specification that is   
    larger than actual field length.                                           
    Could this be due to the code?
    Thanks for you help and guidance where you can provide.
    DV

    Hi Edwin,
    I am not too good with ABAP so you may need to help verify the code for me little.  Do you mean the code should look like this:
    DATA: LEN TYPE I.
    LEN = STRLEN( TRAN_STRUCTURE-WERKS ).
    TRANSLATE TRAN_STRUCTURE-WERKS+LEN-1 USING ' _'.
    If i have the code wrong can you please help?
    Thanks Edwin
    DV

Maybe you are looking for

  • HT4111 Can a bluetooth mouse be used with ipad2?

    I CAN'T GET MY BLUETOOTH MOUSE TO PAIR,

  • Does this forum suck for you too?

    I don't mean the content. I find these Flash forums very useful and helpful. It's the performance of the actual forum site that makes me increasingly want to avoid this place. Click any thread and it may or may not load, and when it does (often on th

  • ITunes 7.11 cannot run

    I just upgraded my iTunes to 7.1.1. When I try to run the program, it gives me an error note "iTunes cannot run because it has detected a problem with your audio configuration". I have no clue what went wrong, can someone help me to resolve this prob

  • CSS rules show up in design mode, but not in live or in browser.

    So some rules work in the browser some appear when in design mode, but not in live mode or in the browser.  In one case there is no competing rules I applied background color and border color to a dynamic table and I see the colors in design view.  I

  • Third Party Drop ship and availability check against Product Allocations.

    Dear All - We are facing a situation where we need to create a third party drop ship Sales Order with an item category which still reaches out to APO and confirms against the product allocation quantities. This is not supported by standard SAP. Has a