Generating alerts in Purchase Requisition = 3*Lot size of material

Hi Experts,
We want to create alerts in SNP.
Below is the condition.
Heuristics for multiple product-location will run in background.
After the Purchase Requisitions are created, we want to compare the quantity of created purchase requisition at each time bucket with lot size maintained for that product-location.
Alert should get generated if the PR qty is >= 3*lot size of that product-location.
is there any user exist or function module avaialble to call the tabel which contains rounding profile/lot size details in APO?
Thanks for looking at it,,
Rgds/
Jay

Jayprakash,
You can extract the Lot Size values using the macro function MATLOC()
MATLOC( 'FIELD_NAME' ; <'product'> ;  <'location'> ; <'version'> ) returns the content of a numerical field in the location/product master record of the specified product and location. The arguments for product, location, and version are optional. If you do not specify an argument for the product and/or location, the system uses the current product/location. However, it is better for performance reasons to use the functions ACT_LOCATION and ACT_PRODUCT. For example, MATLOC( 'BSTMA' ; ACT_PRODUCT ;  ACT_LOCATION ) returns the maximum lot size for this location product.
In your case you can use:
MATLOC( 'BSTFE' ; ACT_PRODUCT ;  ACT_LOCATION ), assuming you are using Fixed LOT Size. You can store this value in a layout variable 'V' and raise alerts based on condition:
IF ( KF for PREQ > 3 * Layout Variable V) RAISE Alert
Hope this helps
Cheers!
Abhi

Similar Messages

  • Purchase requisition must be create with material codes only

    Hi gays,
    Can u solve my problem.
    We are having  "3 " document types to create purchase requisition.
    3 types are using different depts.
    I need to restrict the 1 document type with material code only they should raise the purchase requisition.
    other 2 types can raise the purchase requisition with or with out material code.
    Please explain how to restrict.

    First check the field selection key assigned for the Document type at
    Spro > MM > Purchasing > PR > Define document types..
    Then Go to
    Spro > MM > Purchasing > PR > Define Screen lay out, here Select the above field selection key & copy it as and make the
    Description field as Display..
    Again go to Spro > MM > Purchasing > PR > Define document types..
    and assign the field selection key for the Document type for which you want the Description field as Display..
    Then Create PR & Check

  • Generating and transferring purchase requisition IDoc

    In ECC 6.0 there exists ALE_PR_CREATE which gave us all the required fields for generating the IDoc that we needed to transfer to our JCo program. Once the IDoc was generated using this program, it's status was set to '30' automatically.
    The next step in order to send this generated IDoc to the designated port was to make use of the standard program RSEOUT00 passing the message type so that it sends all IDocs, of that particular message type (PREQCR and PREQDL in our case) and having a status of 30, to the port, changing the status to 12 once this operation is completed.
    Since it was a standard program , I used the same logic in 4.6C. Unfortunately, the function module ALE_PR_CREATE does not exist in 4.6C.
    The alternative was to use ALE_REQUISITION_CREATE and ALE_REQUISITION_DELETE.
    Why 2 Function modules? Here's why...
    The first function module gave us all the required fields except one - the deletion indicator.
    Keep in mind that this field was also provided by ALE_PR_CREATE in ECC 6.0 system thus eliminating the need to look elsewhere.
    So, to satisfy our requirement of getting the deletion indicator for deleted items of a particular Purchase requisition, we found the second mentioned function module - ALE_REQUISITION_DELETE.
    This threw another problem in front of us...
    This function module gave us only the purchase requisition number, item number and deletion indicator. All the other data fields that we required for our java app to process the IDoc were missing.
    In order to solve this issue, we have designed our program to generate 2 IDocs one after the other. First using ALE_REQUISTION_CREATE and next using ALE_REQUISITION_DELETE in sequence.
    This gives us all the fields.
    The next problem was that the generated IDocs were having the status 03 (Data passed to port. OK.) but the Java application never seemed to receive the generated IDocs.
    A search on SDN led me to check the IDoc queue in SMQ1, a case of stuck IDocs in SM58 and also changing IDoc status in BD75 all in vain.
    Finally, on debugging the RSEOUT00 program, found out that it is checking for the status '30' (IDoc ready to be sent to port) which is hard coded in the program.
    On doing further research on SDN, find some resources that suggested various function modules.
    Tried out all of them one after the other.
    By trial and error, finally stumbled upon the Function Module 'DEQUEUE_ES_EDIDOCS' that acted as a replacement to using the RSEOUT00 program.
    After the IDoc is generated, just passing the IDoc number to this Function module sends it to the port and this was successfully received by our Java app.
    Posting this on SDN for the general benefit.
    Has anyone faced any similar issues? Let us know.

    Hi,
    Im using the non-enjoy  BAPI and BAdI for PR and for deletion the outbound IDoc gets send out all the way but for create outbound IDoc it gets stuck in status 30. I did try the FM that you suggested but doesnt have any effect.
    FMs that is being used inside my BAdI:
    ALE_REQUISITION_CREATE
    ALE_REQUISITION_DELETE
    Thanks,
    Arash

  • How to link Idoc generated with the Purchase requisition?

    Hi All,
    I have created a program wherein idocs are generated. Its gives rise to Purchase requisition.
    Can you please tell me how to show the PR created against the idocs that are generated in the spool list?
    Please note the function module creating the idocs does not return the PR no. generated.
    Any alternate solution to this is welcome.
    Thanks,
    Abhhishek

    Triple-post = Triple-lock.
    Please read the forum rules before posting any further.

  • Relation between PO Qty and Minimum Lot size of material master

    I have maintained "100" in minimum lot size ( MRP1 View, table MARC and field BSTM) for the material.
    I am also succssed to create the Purchase order for 2.5 Qty for the same material. '
    I wanted to know, how system is allowig to create the PO with lesser qty or is this view is maintained only for sales?
    Please give your expert comments on the same.
    Thanks,
    Vikas
    99301 03991

    Used for claculate the procurement qty during MRP and depends on the lot size procedure you select. quota arrangement also uses this lot size.
    [http://help.sap.com/saphelp_erp60_sp/helpdata/en/f4/7d26ad44af11d182b40000e829fbfe/content.htm]
    Edited by: Karthik on Jul 8, 2011 9:47 PM

  • Pending Purchase requisition lsit for a particular material group

    Hi Gurus,
    Pl advise .
    Regatds

    Dear,
    As per your mail, Limestone is your raw material.
    Then first check material group of Limestone with MM03 - Basic Data1.
    Then enter ME5A t-code.
    Enter material group in field of material group, select ALV in field of scope of list and select N in field of Processing Status.
    Tick on Requisition of overall release and Requisition of item wise release
    Then click on execute button.
    Regards,
    Mahesh Wagh

  • Purchase Requisition are not getting generated for External Procured Materi

    Hello PP Guru,
    The is a issue which the client is facing.
    The requirement is as follows
    There is material which is externally procured.
    They do the MRP run by using MDBT.
    Now the problem is Planned orders are getiing generated instead of Purchase requisition.
    It should always generate PR instead of planned Order.
    When the check in ME57 the PR is not reflecting, but when the check in MD16 the planned orders are getting reflected.
    Every time they have to convert the Planned order to Purchase Requisition in MD16.
    So can you please let me know as to why is this problem.
    Thanks & Regards
    Nilesh

    In the variant which you use in MDBT, modify the value for Create purchase req. to 1. Now if you execute MRP with the new / modified variant system will always trigger PR irrespective of the opening period.
    But if you want PR within opening period & outside of it should be planned orders, then maintain 2.

  • SNP quota arrangement with fixed lot size

    Hi all,
    i have a question regarding quota arrangement for external procurement in snp heuristic. Whe have 2 sources of suppy created by info record. The quota is 25% for the first and 75% for the second one. In product master there is maintained a fixed lot sice of 500.000. Im wondering that the snp heuristic creates 2 requisitions of 500.000 for each sos at the same day. So we get an serios excess. Any ideas?
    Kind regards,
    Christian

    Hi,
    thanks for reply. Ok, normally net requirement calculation works properly. In case of a shortage the heuristic shall apply an receipt with the fixed lot size wich is maintained in material master. However, in out particular case it generates the double receipt quantity which is not needed at the receipt date.
    The heuristic should do the following:
    Day 01 Stock 100   
    Day 02 DepDmd 20 
    Day 03 DepDmd 20 
    Day 04 DepDmd 20
    Day 05 DepDmd 20
    Day 06 DepDmd 20
    Day 07 PurReq 100 !! Source 1!!
    Day 08 DepDmd 20
    Day xx PurReq 100 !! Source 2!!
    and not:
    Day 01 Stock 100   
    Day 02 DepDmd 20 
    Day 03 DepDmd 20 
    Day 04 DepDmd 20
    Day 05 DepDmd 20
    Day 06 DepDmd 20
    Day 07 PurReq 100 !! Source 1!!
    Day 07 PurReq 100 !! Source 2!!
    Day 08 DepDmd 20
    In this example 100 would be the fixed lot size from material master.
    Best regards,
    Christian

  • Automatic creation of purchase requisition for semi-finished product HALB

    Hi Gurus,
    We want the MRP to generate automatically a purchase requisition, instead of a planned order, for a semi-finished product.  Of course, we still want to be able to convert it to a planned order.
    thanks
    Jean-Francois Millaire

    Hi Jean-Francois Millaire,
    You want a purchase requisition after MRP run & you should also able to convert that purchase requisition to planned order,If i understood correctly, hope this is your requirement
    First one is possible -in MD01/MD02 maintain create purchase requisition as "1"
    Second is not possible,its not possibel to conver a PR(purchase requisition to Planned order where as vice versa is possible
    confirm my understanding,pls revert if you differ
    Regards,
    SVP

  • Item text from sales order to purchase requisition

    Hi Experts,
    I have below queries ,
    1. What are the controls to generate/create a purchase requisition from a sales order.
    Is this possible that a Pur. req generated from a sales order but sales order is not its account assignment.
    How item text from the sales order can be copied to purchase Requisition, does settings in purchase requisition in SPRO (Purchasing Purchase req-text for purchase req----define copying rules) works only for automatically created Pur req.??
    item text from sales order can be copied for PR created through MRP or planned orders converted to PR.??
    I will appreciate if someone can provide me documentation on basics of sales and distribution at my email
    [email protected]
    Thanks in advance
    anand

    hello, friend.
    i can only answer part of your question as i am not sure of the others.  however, yes... you can automatically create a purchase requisition from the sales order. 
    one example is third party sales.  because of the item category group that you specified in the material master, the sales document determines an item category (and schedule line) that controls the creation of the purchase requisition.  here, the system knows that you must source the material from your vendor for delivery to your customer.
    further, as in the above case, when your company creates the PO with reference to the PR, your company appears as the buying entity but the ship-to address is that of your customer.
    i did not understand your question on account assignment.  please elaborate and we'll see if we can come up with the answer.
    if you wish to see documentation, you could refer to SAP's article on Third Party Sales.  other scenarios such as just-in-time inventory for trading companies or make-to-order companies may also apply.
    regards.

  • Purchase Requisition for non valuated material

    Hi,
    We have defined a material as non valuated in ECC, we are doing planning vfor the material in APO and generating Purchase Requisition on vendor for the material. Now the issue is that we are not able to CIF the Purchase requisition to ECC and system is giving account assignment error.
    For the same plant vendor locatio n combination Purchase requisition is getting CIFed for valuated material.
    Canm anyone please help regarvding how to CIF purchase requistion for non valuated material from APO to ECC.
    Thanks & Regards,
    Sanjog Mi shrikotkar

    Hi Sanjog
    Agreed : the material is non valuated so we have not extended accounting view for the material, also we cannot allow financial posting for non valuated material.
    But  an accounting view is required for a material, no matter whether it is a valuated or a non valuated material
    I am sorry about not being able to transmit any positive reply to you, i am not aware of other way of getting it
    Best Regards
    Vinod

  • Purchase Requisition No data satisfying selection criteria

    We have created a Maintenance Notification and converted it into Maintenance Order, after approval of maintenance Order it will generate a MM purchase requisition automatically.
    But upon checking on Me53N or any other report for MM PR the PR does not exist. on Me53n it gives the error: No data satisfying selection criteria
    but the PR exist on table EBAN.
    thanks God bless

    If you give proper inputs in ME5K or ME5A, you can get the PR list without any problem.
    Also, while selecting PR in ME53N, have you given proper PR number directly or are you searching through some Search help option??
    Please post your screen shots PM Order document flow, Operation tab, Components tab, ME53N search steps as well as MM PR reporting selection screen with that error message.

  • Material PO text not copying to Purchase Requisition

    Any assistance would be gratly appreciated...
    When creating a Purchase Requisition (ME51N) text from the Material Master - Material PO Text automatically copies to the Material PO Text of the Purchase Requisition line item - as expected
    However, when a Purchase Requisition is created via MRP, the Material PO Text is not copied from the material master to the PO.
    In config, copy rule is set as follows for PRs:
    Sequence   PR Text                     Source
    01               Material PO Text       Material Master   Set to always adopt
    We have a custom program to print PR data and the material PO text is not showing up when generated by MRP - because the PR itself does not have the text.  We could change the custome code to read directly from the material maste, but would prefer a standard solution to get the text onto the PR.
    Thanks,

    this is SAP design, for performance reasons the PO text is not copied to the requisition in MRP run.
    SAP issued an OSS note about this .

  • Project system: Purchase requisition coming from PS

    Dear Experts,
    I have a tricky problem. I want to exclude a specific number range for purchase requisition coming from the Project system.
    The current number range I have for the purchase requisition is let say: 10000000 - 19999999.
    I want to use another number range (50000000-59999999) for the purchase requisitions as an impact of material components of an network activity.
    What I've tried but it is not working properly:
    1. TC: OMH7 - I created a new number range as I mentioned above
    2. TC: OMEB - I've copied the document type NB to a new document type ZNB (NB = ZNB)
    3. TC: OPTT - as last step I've assigned the document type ZNB to the order category 20 (network)
    Please advice ASAP
    Thanks a lot in advance

    It should work as it works fine for me.
    1. You create the Internal number range (50000000-59999999) first and number it with an ID.
    2. Create the ZNB document type and assign the number range number (i.e., two-character ID)
    3. Assign this ZNB in OPTT
    If I've repeated what ever you've done/said, check the settings once again. It should work.
    Regards
    Sreenivas

  • Project system: Purchase requisition coming from Networks

    Dear Experts,
    I have a tricky problem. I want to exclude a specific number range for purchase requisition coming from the Project system.
    The current number range I have for the purchase requisition is let say: 10000000 - 19999999.
    I want to use another number range (50000000-59999999) for the purchase requisitions as an impact of material components of an network activity.
    What I've tried but it is not working properly:
    1. TC: OMH7 - I created a new number range as I mentioned above
    2. TC: OMEB - I've copied the document type NB to a new document type ZNB (NB = ZNB)
    3. TC: OPTT - as last step I've assigned the document type ZNB to the order category 20 (network)
    Please advice ASAP
    Thanks a lot in advance

    It should work as it works fine for me.
    1. You create the Internal number range (50000000-59999999) first and number it with an ID.
    2. Create the ZNB document type and assign the number range number (i.e., two-character ID)
    3. Assign this ZNB in OPTT
    If I've repeated what ever you've done/said, check the settings once again. It should work.
    Regards
    Sreenivas

Maybe you are looking for

  • Problem with css in creating repeat-y bckgnd

    Hi, I'm trying to put a background that repeats vertically below an image at the top of the webpage, so that the top image looks like one long continuous line as you scroll down. I selected the image at the top of the page, and then inserted the div

  • Error message: Sail library met some error

    Hi there, I came across this error in the roboEngine error log: Sail library met some error, MsgID: 25, Msg: ERROR_INTERNAL. I also have a whole bunch of errors relating to older projects that no longer exist: - Fail to create IFilter object - Cannot

  • SUNWsprox package with solaris 10 for Oracle 10g Installation....

    Hi I am in problem with a Solaris 10 package "SUNWsprox - Sun workshop Bundled 64-bit make library" for Oracle 10g Installation. I checked the CDs (In the /.../products) but did't found this packege. Can any one tell me please can I go without this p

  • Burning project in iDVD

    I have created a project in iMovie 09 using still photos, audio from iTunes and fades etc from iMovie. I have published it in Browser and sent it to iDVD I created a them from the Themes list. The map shows the grey panel, the theme and the project.

  • Cannot view MS SQL 2008 tables in JDeveloper 11.1.1.6,0

    I have added the sqljdbc4.jar file to JDeveloper and succefully created a connection to an MS SQL database. However I am unable to view anything on the database. All I see is Database Name -> Tables -> Views But when I expand this there is nothing. T