Restricting PIR consumption based on custom Order Type

Hello Experts,
We have implemented BADI MD_PIR_FLEX_CONS in our system ( Version 4.7 )so that we can restrict the consumption of Order Reservations.
For this we have added code as per OSS Notes# 608760 and 127370 for the BADI Interface.
We have included MRP Element "AR" so that consumption can happen for the order reservations.
The BADI is restricting consumption of PIR now for the order reservations, but now we want to restrict the Consumption of independent requirement only against reservation generated by customized Order type ( Say ZXXX ).
Does this functionality exist for this BADI? If yes,then how can we implement this?
Regards,
Debasish Sahu

Hello Prakash,
Thanks for your response.
The Def. Documentation does not describe how the process is carried out.
The documentation is as follows:
Application component:  PP-MRP, PP-MP-DEM, PP-MP-LTP
Function group:  M60A, M61X
You can use Business Add-In (BAdI) MD_PIR_FLEX_CONS to make the consumption and reduction processes for planned independent requirements more flexible.
In the SAP R/3 standard system there were previously four possibilities for consumption and reduction of planned independent requirements (planned independent requirements consumption indicator):
SPACE     no consumption
'1'     Consumption with customer requirements (planned independent requirements)
'2'     Consumption with dependent requirements, dependent and manual reservations, release order requirements from stock transfers (dependent requirements)
'3'     Consumption with planned independent requirements and dependent requirements
You can use Business Add-In MD_PIR_FLEX_CONS to realize consumption processes in which there are controls to define for each MRP element whether consumption or reduction should occur.
This Business Add-In replaces modification note 127370 in release 4.70.
&PRECONDITIONS&
&STANDARD_SETUP&
o     The Business Add-In is not active in the standard system.
o     The system cannot be used multiple times.
&ACTIVITY&
INCLUDE MD03_BADI_MRP OBJECT DOKU ID TX LANGUAGE EN
INCLUDE MD03_BADI_IMPLEMENT OBJECT DOKU ID TX LANGUAGE EN
&EXAMPLE&
In the sample-coding, planned independent requirements with consumption indicator '4' (see method documentation) are consumed against all of the consumable SD document types (sales orders, SD scheduling agreement schedule lines, deliveries) and release order requirements from stock transfer purchase procurement proposals (purchase orders, purchase requisitions, scheduling agreement schedule lines, planned orders).
&ADDITIONAL_HINTS&
<DS:IO.IF_EX_MD_PIR_FLEX_CONS        CHECK_PIR_CONS_REDUC> Documentation on BAdI method CHECK_PIR_CONS_REDUC
There is no details on the manner in which we implement this functionality.
Please let me know if this is of some help.
Thanks,
Debasish

Similar Messages

  • Automatic Rule Determination Based on Service Order Type

    Hi Experts,
    I have a requirement to determine the rule based on the custom service order type.
    I have created 2 custom rules which are then assigned to 2 different org units as needed.
    Now the thing is i want to avoid putting condition step if else based on various order types.
    Is there any way by which i can directly determine which rule to be used by passing the Order type.
    If there is any FM then please suggest and also how to use the same.
    If no FM exists then is there a possibility of having only 1 if else condition and assign rule number in local container variables and pass it thought out the workflow to all the manual validation workitems. Please suggest how this can be achieved.
    Thanks,
    Jessica

    Hi,
    only 1 if else condition and assign rule number in local container variables and pass it
    thought out the workflow to all the manual validation workitems
    Create a workflow container element lets say with probably 15 characters length...
    Now create a background step in which you determine the rule based on the order type.
    data: lv_Rule(10) type c.
    if order_type eq 'X'.
      lv_Rule = '1234567890'.
    else.
       lv_Rule = '0123456789'.
    endif.
    " export the rule concatenated with 'AC' which indicates a rule...
    concatenate 'AC' lv_rule into ev_rule. "ev_rule size may be lets say 15 characters.
    condense ev_Rule.
    "export the EV_RULE to workflow and store it in WF cotainer element.
    In the step where you want to give the rule, select the Agent type as Expression and select the container element.
    Hope this would solve your issue.
    Regards
    Narin

  • Posting to different GR/IR account based on purchase order type

    We are implementing cross company stock transport orders that require an AP invoice to be posted against the goods receipt.  Our AP department does not want the GR/IR postings to go to the account used for traded AP.  I cannot determine a method using OBYC to specify a different account based on purchase order type.  Is there a way to do this?

    Hi Jud
    You should make these posting to a cost center then..The only way you can control account postings via PO type is having a account assignement category. You can make this as mandatory filed for this PO type..
    Please let me know if your requirement is different..
    CHeers
    R K Bolla

  • Exclude sales orders based on sales order type from CTM planning run

    Dear people,
    We have sales orders in R/3 with custom sales order types, like ZE01, ZE02 etc.
    These sales orders are CIFed to APO and all sales orders have ATP category BM. We use CTM and we want to exclude sales order with sales order type ZE01, is this possible?
    Which enhancement could be used to exclude sales orders with selection on sales order type?
    Edited by: Peter237 on Jan 19, 2012 12:35 PM

    Dear,
    Check the requirement type of your sales order line item in VA02 procurement tab it should be Reqmt type of customer reqmt   KSL
    Also check the strategy assign in material master and MRP group OPPR and then check the setting of strategy 10 in OPPS there should be
    Customer Requirement planning
    Reqmt type of customer reqmt   KSL  Sale frm stck w/o ind.req.red.
    Requirements class  030  Sale from stock
    Allocation indicat.     No consumption with customer requirements
    No MRP   :-               1 Requirement not planned, but display.
    Please try and come back.
    Regards,
    R.Brahmankar

  • Disable Availability Check Based on Sales Order Type

    Hi All SD experts,
    Usually ( correct me if i'm wrong ) availability check is set via schedule lines item type. Is there any way that I can disable the availability check based solely on Sales Order Type ? Meaning no matter what item category or schedule lines assigned to materials, availability check will still be disable.
    Besides setting in schedule lines type, what are others config that might trigger availability check ? MRP settings ? Movement type ?
    Any valuable feedback will be great and much appreciated. A big thank you in advance.
    Warmest Regards,
    Edie

    HI EDIE
        In order for the availability check to happen,the following configuration settings are required.
    Availability check:
         a) you have to define requirement class & requirement type.
         b) you have to activate at scheduline category level
         c) in deleviry item.cat ,there is availability check off field,,,,, if  u dont mention any values here,then system checks for availability.if u mention 'x' here,then system dont check for availability.
        d) you define checking group and checking rule ,these determine how availability check is going to be performed
    MRP:
       MRP determines how material is planned,whether it is inhouse production or external procurement.MRP also determines the time taken for the material to become available for ready use.When ever an order is rised,the requirement is passed to MRP through  transfer of requirements(TOR), here MRP determines the inhouse production time or external procurement time.
    Movement Type: Movement type determines the type of material movement ,whether it is Goods Issue ,,, or ,, Goods Recipt,,,,, stock transfer between two plants etc.Movement type is determined in schedule line category level.
                      Award points if it is useful
                        Prasad.G

  • Production version selection based on Process order type

    Hi,
    I have the following requirement.
    A material is having two production version one is for R&D and one is for regular production. Now two process order types one for R&D and one for regular production. Now during creation of process order if we use order type of R&D then it has to select production version of R&D and if we use order type of regular productionthen it has to select production version of regular production. This selection has to be happened automatically. How this can be configured.
    Thanks
    Vinamrath.

    Dear Kumar,
    Assuming the production version selection is automatic in  the order type dependent parameters,then during order creation this
    can be automated only through validity date of the production version or else by locking the production version manually which
    should not get picked or else only through different Lot Size.
    Check and revert.
    Regards
    Mangalraj.S

  • Automatic Batch determination based of sales order type

    I want to do automatic batch determination on basis of sales document type.
    1) I have made a condition table and added sales document type field in it.
    2) defined Access Sequence and added that field in that sequence.
    3) defined the strategy type, assigned the class "FEFO - First Expiry first out".
    4) Added by condition type in the standard search procedure "SD0001".
    5) added the order type in VCH1
    If, i define the search strategy on material base in vch1 "SD01" then it works fine in sales order & delivery order...
    but if i define it on order type then automatic batch determination  doesnt works fine.
    any guidance please?

    solved...there was issue of expiry date field.

  • Use of PIR consumption for advance material order (MTO prototype)

    Hi planing Gurus,
    I am investigating the possibility to use PIR to trigger replenishement long lead time sub level mfg or purchase products in the context of building MTO prototype. I believe I could use planning strategy 70/consumption mode VSFB to handle eventual actual requirements that will be created at higher levels.
    Q1. The parameters Fwd and Bwd consumption in MRP 3 are limitted. For instance, if I set 7 days each the system will only consider actual demand in this timeframe. I am not too in favor to set large value there to manage the fact that actual demand may not occur exactly as planned by the PIR. Is there any way the consumption can be iterative (eg. bwd 7, fwd 7, bwd 14, fwd 14)?
    Q2. Is there another mean to trigger replenishment of long lead time mfg part/purch part in the contexte of MTO prototype and manage consumption.
    Your help is greatly appreciate and speed up my curve to learn SAP PP architecture (I have experience with other mfg systems).
    Francois Paquet

    You had another question
    Q2. Is there another mean to trigger replenishment of long lead time mfg part/purch part in the contexte of MTO prototype and manage consumption.
    FOr this I would suggest even looking at Planning strategy (PS) = 50.
    This strategy are probably the most widely-used strategies in a make-to-order environment.
    Procurement of the long lead items (components) is planned by means of planned independent requirements entered at the finished product level. The system creates special planned orders at the finished product level for these planned independent requirements. These orders are only relevant for production once a sales order for the finished product exists.
    The assemblies are, however, produced or procured before the sales order is entered. Production is carried out up to one level before the finished product level, and the assemblies and components required for producing the finished product are placed in stock to await the incoming sales order.
    Final assembly is triggered once a sales order has been entered.
    Hope this helps you take a good decision.
    Thanks,
    Ram

  • Restrict Delivery Entry based on Sales Order Delivery Date

    Dear All,
                  I create a Sales Order with a Specific Delivery Date say 15 Dec 2010. The System must prompt me if I try to Create a Delivery Document Based on the Sales Order before 15 Dec 2010.
                  Does it happen in standard system / Can it be achieved by SDK.
    Please Advice
    Thanks

    Hi Aslam,
                   If you want to Block the delivery document to post before the define delivery date in sales order than you can use the below Procedure...
    If @object_type = '15' and @transaction_type in ( 'A')
    BEGIN
    if exists (select * from odln a inner join dln1 b ON a.DocEntry=b.Docentry
    inner join ordr c on b.basetype=c.objtype
    where a.DocEntry=@list_of_cols_val_tab_del
    and b.basetype='17' and a.docdate<c.docduedate )
    begin     
    SET @error = 00001
    SET @error_message = N'Delivery can not be enter before delivery date '
    end
    end
    Hope it will work
    Regards,
    Atif

  • TransportationRequestRequest_In ( Custom Order Type)

    Hi All,
    We are using Proxy interface to generate FWO orders in our TM system.We get data from Cust --> Mercator --> PI -->TM system.
    I use TransportationRequestRequest_In proxy.
    Every time I use this proxy FWO order is created ,but system creates default fwo type.
    I can use /SCMTMS/TRQ_IF_SE_TPNRQ_REQ~INBOUND_PROCESSING and modify root to get desired FWO type but  strongly feel there is field in the proxy itself.Any clue??
    Thanks and Waiting for your answers,
    J

    I'm also looking for this answer. did you find the field? otherwise what was your solution?
    The field is TRQ_TYPE, but I dont know how to access this field from there
    thx
    Erik

  • Refiner Based on Custom Content Type

    Hi,
    I have a requirement to develop a refiner that will show a subset of content types. The OOTB content type refiner shows all content types. Can somebody give me a pointer on how to show only those content types that I need to show in the refinement panel.
    Search result may contain results with other content types, but the refinement panel will only show those that I mention as filter.
    Also, is there some way for the refinement panel to know which content types inherit from your specified content type? For example -
    Software Project Document
           Functional Design
           Technical Design
           Installation Document
    Internal Process Document
           HR Document
           Finance Document
           Legal Document
    Once user performs any search, I want to show Software Project Document and Internal Process Document as refiner. The search result may contain other content types as well.
    Once the user clicks on Software Project Document, the refiner will show all 3 content types as refiner (let's assume that the search result contains results from all 3 content types). Is this possible?
    Or, Can I at least display only parent content type in a separate refiner and child content type in a separate refiners by applying some kind of filter in the refiner?
    Any help will be appreciated.
    Bidyut Das

    Hi,
    Please refer to the similar following post.
    http://social.msdn.microsoft.com/forums/sharepoint/en-US/e9551189-7648-415c-a49b-359ac379c535/content-type-icon
    Please mark it as resolved, if your problem resolved.

  • Duplicate material entry at the time of PO creation based order type

    How Restrict duplicate material entry at the time of PO creation based on define order type.
    Moderator message: please do some research before asking.
    Edited by: Thomas Zloch on Mar 11, 2011 1:45 PM

    Hi Rahul,
    try with This Badi  ME_PROCESS_PO , Method Open or Process item,
    Implemente it and use a break-point to test it i.e it is triggred or nt , before processing it.
    Regards,
    Abhisek

  • PIR Consumption - Sales Order & Service Order

    All -
    I've come across an issue in our system as it relates to PIR consumption.  We create a PIR forecast which is designed to be consumed by orders.  (MM strategy group 40, PIR consumption indicator 1).  PIR is successfully consumed upon sales order creation.
    In the same area of our business (aftermarket service and repair), we also require PIR consumption when component requirements are added to our repair service orders.
    With the current setup (strat 40, CI 1), the PIR is not consumed after service order component addition.  It adds to the total material requirements.
    I've altered our settings across the board to account for both order types, however, i am hitting a wall as to if my new settings are a help or a hinderance.
    New settings are (MM strat 40, MM mixed MRP mode 3, PIR CI 3).
    Visually, i can see that my total PIR count is actively reduced via MD04 monitoring, however, when looking at the PIR directly, I see that the PIRs have not been consumed.  Instead they are still active and the reqs are hidden.
    I don't know if consumption of PIR is allowed for multiple order types.  I know that strat 40 directly relates to sales order requirement planning.  I do not know if there is a strategy that works similarly for both sales order AND service order types.  I'm also very skeptical of using mixed MRP mode 3 to accomplish the PIR consumption.
    Could anyone enlighten me on this?  I can't find any information on this sort of order types with consumption.  If it's not possible to combine order types with PIR consumption, so be it.  I'd just like some info.
    Thank you in advance,
    Ehren

    Sure thing. I'm running in our test client for the results, but my settings are identical:
    Image 1 = MD04 result of addition of PIR using VSF with consumption indicator 3:
    Image 2 = Addition of sales order requirement for the same part, VQTEST1.  Successfully consumes qty 1 of PIR material:
    Image 3 = Modification of service order to add qty 1 of component VQTEST1. Rather than consuming one of the remaining PIRs, the order created a new requirement above the PIR forecast:

  • Revenue Account Determination based on Sales Order Document Type & Service Order Type

    Hi Expert,
    I have Customer Service Module with Resource Related Billing for services attached with SD.
    When DP90 runs sales document debit memo request is created & then debt memo is created.
    I need to configure Revenue Account Determination based on Sales Order Type and also based on Service Order Type.
    I did not see any field catalogue in revenue account determination for order type, For communication structure KOMKCV Header and KOMPCV Item level there is no field for sales order type nor service order type.
    Is it possible to bring in both order types? Can ABAP person do it?
    How to bring these fields?
    Is it possible & recommendd to have service order type filed AURAT for service order into this sturcture?
    Is this configuration is OK acceptable by SAP? If so is there any chnace for issues errors & wrong determination from FI CO view?
    Your valued input is highly appreciated.
    Thanks
    Prakash Parikh

    Hi Prakash,
    Yes, you can certainly add new table fields into the field catalog KOMKCV and KOMPCV and use it during account determination. You will also have to add these new fields in the user exit RV60AFZZ for it to work. I believe you will need ABAPer's help to make this work. The abaper will have to crate a ZZFIELD (ZZAUART for example) and put it in the structure and use the same in the user exit to pass the values.
    In your case, what I am not sure is, are you looking to modify the existing standard tables or creating new ones. My suggestion is to create the new condition tables with these new fields (like document type) after adding it to the field catalog. Only modify the access sequence (KOFI) in such a way that your new tables are access first before it goes into standard tables (or you can adjust it according to your scenario.
    We have done it in our company and it is working fine. Basically what we have done is to create new tables instead of modifying the standard ones. We have adjusted the access sequence in such a way that some of our custom tables are accessed first before the standard SAP tables (C001 to C005).
    I found a similar requirement on SCN. This might help.
    Adding New Field in Account Determination
    Hope this helps.
    Regards,
    Mukund S

  • Why custom production order type?

    Hi Guys,
    Why would we need a custom production order type? What is the criterion to be considered while creating  custom production order types?
    Regards,
    Sravan Kumar

    Dear Sravan,
    1.A Custom Order type might be for a specific business requirement, for Eg Order TT01 is for a normal production process and
    TT02 may be for some rework.
    2.Likewise if I want to differentiate on a shop floor basis though it might be the same production based I can create a separate
    order type for each shop floor.
    3.It can be based on different order type dependent parameters like BOM application, task list selection etc.
    4.It can be based on scheduling and also confirmation parameters we create new order types(customized).
    Check and revert back.
    Regards
    Mangalraj.S

Maybe you are looking for

  • Event handling in alv oops With buttons

    Hi Experts          I have some doubt in ALV OOPS using Events. Could any one please tell me the procedure to how to handle events in oops ( Like  interactive reports using events ).                                  Thank you                         

  • Transactional Figure in BPC

    Hi All, I have situation here, I'm loading a .CSV file with column on GL Account and Cost Centre and Val in Rep Cur, after scheduling package I get error message "Mapping error: The dimension does not exist in the application. [VAL.IN REP.CUR.] Ideal

  • Info Record Update with MIRO

    Dear guru , Does exist a chance (standard or using badi) to update info-record price when I run invoice receipt for the material and vendor involved ? Thanks

  • Problems w/ PDF document in autoplay slideshow

    I've created an autoplay slideshow with iDVD.  Using MS Word, I then created a "credits" page, which I converted to PDF and inserted into my slideshow.  This worked okay, except that the background, which is white on the original PDF, has changed to

  • Dynamically Adjusting the Font of Field based on length of vaule - Adobe forms

    Hello Experts,   I have a requirement where in i need to adjust the font of the field dynamically based on the length of the value. There is a less space in the adobe form layout and if there is long length (Above 50 Char) value coming then it is sho