Material Based Plant Allocation

Dear All,
My requirement is -
Suppose my company deals in manufacturing of Pencils and we have three major materials - wood, lead, and paint.
So what i want is whenever a PR is raised for material type a particular parameter should be automatically allocated.
For example -
case1 : whenever I raise a PR for material type "wood", purch org should be only "JO59"
case2 : whenever I raise a PR for "lead", and if the PR value is more than 100,000 purch org should be "JO59" if it is less then purch org should be "KO59"
Is this possible?
Please help me out.

Thanks Kunal for the reply,
Can you please elaborate more on defaulting PurOrg for material as u said its possible (if possible step wise)
And is there no way to put a condition on this allocation, not even programming??
Harsh Sarun

Similar Messages

  • How to fetch the current stock of material based on Plant?

    Hi Experts,
    Could any one tell how do i need to get the current stock data of the material based on Plant.
    Thanks in advance.
    Regards,
    Abdur Rafique

    Hi ,
    MBEW stores the value of particular stock . T-code to find stock MMBE compare both wiht table and tcode.
    please let me know if you still find any issues .
    Thanks and regards,
    Rajeshwar

  • 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.....

  • 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

  • PO Release Strategy - Only for non material based

    Experts,
    I have a requirement to implement a release strategy for a single plant for POs for NON material based purchases ( only for using account assignments, cost centers etc).
    The release strategy I configured is working only for the specific plant I want... However, it works whether its a material based PO or a non material based PO.
    How do i get the strategy to work for only the service based purchases, and not the material ones?

    Thanks for the replies but I'm not sure if they are applicable...
    I did create a characterstic for item categories and added the one's I wanted to have... I did NOT include a blank because i thought that would make the difference between the material based PO and non PO. When we I create Po with material (even with no account assignment) it still goes through release.
    Any reason why that is?
    I dont believe the material group solution will not work either because we require material group for material and non material based POs..
    Side note - when i try to use CEKKO with KTTNP, i get a "KTTNP does not exist error." So i used EKPO - KTTNP... hopefully thats ok, but please let me know if its not.
    Edited by: farmerj3 on Jan 30, 2012 3:36 PM
    Edited by: farmerj3 on Jan 30, 2012 3:39 PM
    Edited by: farmerj3 on Jan 30, 2012 3:48 PM

  • 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

  • Material based on SLED

    HI All ,
                    To maintain stock of material based on SLED , check the following :
    a ) Remaining shelf life in PO
    b ) SLED in PO
    c ) SLED at GR
    regards
    deepu

    Hi,
    To maintain SLED
    1)Activate for the plant and m,ovement type
    2)Maintain  remining self life in Material master plant stock view
    3)Must be maintained in PO
    4)Enter the expiry date or date of production in GR
    Regards

  • Availability of material based on the shipping conditions

    Dear Friends,
    Please mail to me how to configure the availability of material based on the shipping conditions?
    That is when we give the shipping condition in the sales order (va01) for example by air 1 day, by road 5 days and by water 6 days. The system should automatically give the availability of the material based on the shipping conditions we give in the sales order (va01).
    With regards

    vamsi krishna wrote:>
    > Dear Friends,
    > Please mail to me how to configure the availability of material based on the shipping conditions?
    > That is when we give the shipping condition in the sales order (va01) for example by air 1 day, by road 5 days and by water 6 days. The system should automatically give the availability of the material based on the shipping conditions we give in the sales order (va01).
    > With regards
    Hi Vamsi,
    Could not understand your query fully.
    See material availability check is carried out for the requested delivery date or else the system proposes one.
    The time you are talking about By Air 1 day and so on is not taken into consideration while carrying out material check for that is transportation time after goods are released from the Plant.
    owever if you need to configure the transportation time you need to go to
    Logistics Execution->Transportation->Basic Transportation Function->Routes->Define Routes-> Define shipping types
    Here you can define shipping types what you said by AIR by Truck or whatever you need.
    To specify the time you need to go to SPRO
    Logistics Execution->Transportation->Basic Transportation Function->Routes->Define Routes-> Define Routes and Stages
    Here you specify the Transit Duration Transit Lead time and so on which will be taken as a input for determining material lead time by that shipping type.
    Hope it helps.
    Post if u need furthur clarifications.
    Request you to reward points if helpful.
    Thanks & regards
    Abhishek Swarup

  • ABC analysis for material based on the volume of sales

    Hi,
    Can we have an option of categorising a material according to the sales volume and generate reports.
    Eg;
    Mat1 -Class A >Rs 100000 of sales
    Mat2 -Class B >Rs 50000 of sales
    Mat3 -Class C >Rs 25000 of sales.
    Awaiting your valuable inputs.
    Regarsd,
    Phani Prasad

    vamsi krishna wrote:>
    > Dear Friends,
    > Please mail to me how to configure the availability of material based on the shipping conditions?
    > That is when we give the shipping condition in the sales order (va01) for example by air 1 day, by road 5 days and by water 6 days. The system should automatically give the availability of the material based on the shipping conditions we give in the sales order (va01).
    > With regards
    Hi Vamsi,
    Could not understand your query fully.
    See material availability check is carried out for the requested delivery date or else the system proposes one.
    The time you are talking about By Air 1 day and so on is not taken into consideration while carrying out material check for that is transportation time after goods are released from the Plant.
    owever if you need to configure the transportation time you need to go to
    Logistics Execution->Transportation->Basic Transportation Function->Routes->Define Routes-> Define shipping types
    Here you can define shipping types what you said by AIR by Truck or whatever you need.
    To specify the time you need to go to SPRO
    Logistics Execution->Transportation->Basic Transportation Function->Routes->Define Routes-> Define Routes and Stages
    Here you specify the Transit Duration Transit Lead time and so on which will be taken as a input for determining material lead time by that shipping type.
    Hope it helps.
    Post if u need furthur clarifications.
    Request you to reward points if helpful.
    Thanks & regards
    Abhishek Swarup

  • Mov.aver.price cannot be determined.Material RMWE,plant 7210,billing docCAP

    Hello Guys,
    Can anyone help on this issue.
    Mov.aver.price cannot be determined.Material RMWE,plant 7210,billing docCAPE_01
    Message no. Z1022

    Rajesha,
        Typically the trans./event keys hit on GR against a PO are BSX (inventory/stock posting) and WRX (GR/IR clearing). If the material is subjected to standard price control, you will have an additionally have the PRD key (price difference posting).
        If you go to OBYC and see the account assignments for the PRD trans./event key, you will notice that you can have a different price difference income/loss account based on the material (valuation class), plant (valuation grouping code) and the account modifier (mvt type). In your specific case, the account modifier is blank and there does not seem to be a provision to define a new account modifer and link it to mvt 101 for the required combination (that I mentioned in my previous response). This seems to be the problem unless I am missing something here. For instance, in the case of a 201 mvt or a 101 receipt against a production order, the required combination is available in OMJJ and hence it is possible to define and link a new account modifier to a new movement type and hence use a different account for different circumstances. I am just not sure why SAP has not provided this option for your scenario.
    Hope this helps.
    H Narayan

  • How to create a Platinum,Gold and Silver Customer and how to set different price for a single material based on customer?

    Hi All,
    How to create a Platinum,Gold and Silver Customer and how to set different price for a single material based on customer?
    Assume Material is Pen.
    While creating Sales Order in VA01 how to bring different price for the same material for Platinum,Gold and Silver Customers.
    Kindly help me out.
    Thanks,
    Renjith Jose

    A good place to start is http://www.javaworld.com/javaworld/javatips/jw-javatip34.html
    Also, do a search in this forum on HttpURLConnection. That class allows you to use POST method to send form data to a web server.
    "Hidden" variables are only hidden in HTML. The HTTP that gets POSTed to the web server doesn't distinguish between hidden and not hidden. That is, the content you would write to the HttpURLConnection.getOutputStream() would be something like:
    hidden=1&submit=ok(Of course, the variable names would depend on what the web server was expecting from the form.)
    Also, be sure to set the Content-Type request parameter to "application/x-www-form-urlencoded"

  • 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

  • To Extend material to plant using MATERIAL_MAINTAIN_DARK .

    I am tryin to extend material into plants using MATERIAL_MAINTAIN_DARK  function module.Can someone please check the code below and tell me how i should modify it to work.Is BDC a better option?
    DATA: t_amara_ueb LIKE mara_ueb OCCURS 0 WITH HEADER LINE.
    DATA: t_amarc_ueb LIKE marc_ueb OCCURS 0 WITH HEADER LINE.
    t_amara_ueb-mandt = sy-mandt.
    t_amara_ueb-matnr = it_reqdata-material.
    t_amara_ueb-tcode = 'MM01'.
    t_amara_ueb-tranc = 1.
    APPEND t_amara_ueb.
    CLEAR t_amara_ueb.
    t_amarc_ueb-mandt = sy-mandt.
    t_amarc_ueb-matnr = it_reqdata-material.
    t_amarc_ueb-werks = it_reqdata-plant.
    t_amarc_ueb-tranc = 1.
    t_amarc_ueb-KZKRI = 'X'.
    APPEND t_amarc_ueb.
    CLEAR t_amarc_ueb.
    call function 'MATERIAL_MAINTAIN_DARK'
      exporting
      flag_muss_pruefen = 'X'
    p_kz_no_warn = 'N'
    kz_prf = space
    kz_verw = 'X'
    kz_aend = 'X'
    kz_dispo = 'X'
      tables
       amara_ueb                       = t_amara_ueb
       AMARC_UEB                       = t_AMARC_UEB
    EXCEPTIONS
       KSTATUS_EMPTY                   = 1
       TKSTATUS_EMPTY                  = 2
       T130M_ERROR                     = 3
       INTERNAL_ERROR                  = 4
       TOO_MANY_ERRORS                 = 5
       UPDATE_ERROR                    = 6
       OTHERS                          = 7
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ELSE.
    COMMIT WORK.
    ENDIF.
    Thanks and Regards,
    Pratima.

    Hi ,
    Use the below code.
    DATA : lt_mara_ueb TYPE TABLE OF mara_ueb INITIAL SIZE 0,
           lt_marc_ueb TYPE TABLE OF marc_ueb INITIAL SIZE 0,
           lt_errors TYPE TABLE OF merrdat INITIAL SIZE 0.
    DATA : wa_mara_ueb TYPE mara_ueb,
           wa_marc_ueb TYPE marc_ueb,
           wa_messtab TYPE merrdat.
    DATA : l_mstring(480).
    parameters: l_matnr like mara-matnr.
    * Set up I_MARA
    REFRESH lt_mara_ueb.
    wa_mara_ueb-mandt = sy-mandt.
    wa_mara_ueb-tcode = 'MM01'.
    wa_mara_ueb-matnr = l_matnr.
    wa_mara_ueb-tranc = '0000000001'.
    APPEND wa_mara_ueb TO lt_mara_ueb.
    CLEAR wa_mara_ueb.
    SELECT SINGLE * FROM marc INTO CORRESPONDING FIELDS OF wa_marc_ueb
    WHERE matnr EQ l_matnr AND werks EQ '01FC'.
      IF sy-subrc EQ 0.
        MOVE '01BV' TO wa_marc_ueb-werks.
        wa_marC_ueb-tranc = '0000000001'.
        WA_MARC_UEB-PSTAT = SPACE.
        APPEND wa_marc_ueb TO lt_marc_ueb.
      ENDIF.
      CALL FUNCTION 'MATERIAL_MAINTAIN_DARK'
        EXPORTING
    *   FLAG_MUSS_PRUEFEN               = 'X'
    *   SPERRMODUS                      = 'E'
    *   MAX_ERRORS                      = 0
          p_kz_no_warn                    = 'N'
          kz_prf                          = 'W'
    *   KZ_VERW                         = 'X'
    *   KZ_AEND                         = 'X'
    *   KZ_DISPO                        = 'X'
    *   KZ_TEST                         = ' '
    *   NO_DATABASE_UPDATE              = ' '
    *   CALL_MODE                       = ' '
    *   CALL_MODE2                      = ' '
    *   USER                            = SY-UNAME
    *   SUPPRESS_ARRAY_READ             = ' '
    *   FLG_MASS                        = ' '
    * IMPORTING
    *   MATNR_LAST                      =
    *   NUMBER_ERRORS_TRANSACTION       =
        TABLES
          amara_ueb                       = lt_mara_ueb
    *   AMAKT_UEB                       =
          amarc_ueb                       = lt_marc_ueb
    *   AMARD_UEB                       =
    *   AMFHM_UEB                       =
    *   AMARM_UEB                       =
    *   AMEA1_UEB                       =
    *   AMBEW_UEB                       =
    *   ASTEU_UEB                       =
    *   ASTMM_UEB                       =
    *   AMLGN_UEB                       =
    *   AMLGT_UEB                       =
    *   AMPGD_UEB                       =
    *   AMPOP_UEB                       =
    *   AMVEG_UEB                       =
    *   AMVEU_UEB                       =
    *   AMVKE_UEB                       =
    *   ALTX1_UEB                       =
    *   AMPRW_UEB                       =
    *   AMFIELDRES                      =
    *   AMERRDAT                        =
    EXCEPTIONS
       KSTATUS_EMPTY                   = 1
       TKSTATUS_EMPTY                  = 2
       T130M_ERROR                     = 3
       INTERNAL_ERROR                  = 4
       TOO_MANY_ERRORS                 = 5
       UPDATE_ERROR                    = 6
       OTHERS                          = 7
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      COMMIT WORK.
    Regards,
    Raghav

  • Pricing of material based on batch

    hello gurus,
    i have a question,here i have scenario in which i want to differentiate the price of the material based on batches.
    pls correct me if i have made some wrong,
    now v/05 i have created a table in which i have taken batch and material as my field
    and now in v/07 i have assigned to access sequence ahd this acess sequence i have added to PR00 condition type.
    now when i go to VK11 i tried to use the acess sequence and give price i get an error.
    pls if u give me some suggestions it will be a great help to me.

    what error do you get...?
    If you are pricing with regards to batch everytime a batch is over the PR00 record will expire. so every time you have a new batch you will have to have a new record. Sound very tedious.
    Let us know when and how exactly do you wish to achieve this..
    Regards

  • Product Allocation: Removing a Material from Product Allocation

    Hey folks! 
    I am new to the forums, so hopefully some of you sharks will bite on this one.  I work for a consumer products company and we're having issues with product allocations.
    We have had a material on product allocation for the past 3 months.  We used a allocation rule that is modeled off of the S140 rule on the basic data of the material view.  However, our production has now ramped up sufficiently to produce this product and provide normally. 
    1) How do we remove the material from product allocation?
    We deleted the rule from the basic data view, but is there anything else we need to do?  There are many remaining open sales orders that get the error "No Feature Combination exists for this selection error".  I have ran rescheduling (V_V2) and have also ran the SDRQCR21 to rebuild requirements, but it still remains with this error.
    2) Is there something we have to do with the infostructures?  Something we have to do in MC64 or MC94? 
    3) Do we need to go through each sales order and delete the line item and replace the line item to get the normal ATP to function (we would rather not do this as we have EDI information connected to each line item)
    4) Is there another report out there I need to run that I just do not know about?
    Any help would be great.  We are on ECC5.0 Hotpack 15.  I will reward points if I can figure out how to.

    Use MC94 to remove the quantities allocated.
    Use MC62 to remove the planning hierarchy.
    I believe that in your situation MC94 will work.

Maybe you are looking for

  • Dont want to display "Report Successfully Run" applet

    Dear Users....I Dont want to display "Report Successfully Run" applet after my report runs successfully. I'm calling report from Forms-10g Rel.2 and my browser is Internet Explorer ver.6. I'm sending my report directly to printer using Web.Show_Docum

  • How do I set up file sharing between my MacBook Air and IPad?

    I'd like to store the files on the MBA and view / edit /use them my iPad and iPhone.

  • (internal) Tables obsolete as parameter in function modules,

    Hi As you probably can see by the question, my ABAP Knowledge isn't exactly overwhelming ! <i>anyway:</i> I'm trying to create a function module in NW2004s, This functionmodule should take an internal table, based on a structure as (import) parameter

  • I am unable to delete the files

    Hi all, I am totally new with this iPad stuff, so I hope that someone could help me a bit. I bought the software which is called BUZZ Player (plays videos and subtitles). So, I installed the software and upload a few videos (avi's) and subtitle's (.i

  • Disable document message bar

    I have a document that contains a number of buttons and check boxes that are used to execute various functions. When i save the pdf and open it in Acrobat Reader, a purple message bar appears that asks the user to: "Please fill out the following form