Search purchase requisition class

Hi all,
i search a class for manipulate purchase requisition object. I don't find it.
For purchase order i use CL_PO_HEADER_HANDLE_MM, but for purchase requisition ?
Thanks a lot.
Cheers.

Hello Together
The interface IF_PURCHASE_REQUISITION is implemented by the classes
CL_REQUISITION_AGGREGATE_MM
CL_REQ_HEADER_PROXY_MM
However, I am neither sure whether these are the right classes nor how to instantiate them correctly.
In any case the entire OO-purchase requisition functionality is aggregated into function MEREQ where you will find a plethora of LOCAL classes.
This function group has a module called MEREQ_GET_FACTORY which sounds like the instantiation machinery. If you find out how to do please publish your coding for the entire SDN community.
If you are able to instantiate these local classes this is by no means useless as you can see in my Wiki posting
[Accessing the Inacessible - Local Classes within Global Classes|https://wiki.sdn.sap.com/wiki/display/ABAP/AccessingtheInacessible-LocalClasseswithinGlobalClasses]
Regards
  Uwe

Similar Messages

  • Search Receipt by Purchase Requisition (PR) Number

    Hi,
    I need to Search Receipt by Purchase Requisition (PR) Number.
    eg. for PR 10001203 i need to know items in this PR have been received to the inventory or not.
    Please help me find a solution.
    Thanks
    JB

    The requisition field in the Receiving forms are there for the Internal Requisition and not for the Purchase Requisitions.
    To fulfil your requirement, I suggest you to navigate to the Purchase Order Summary form -> Related documents section.
    Enter your requisition number in the respective field and select the Shipment radio button. Click on Find.
    You will be able to see all the related purchase order and received, accepted, billed qty etc. in the subsequent form.
    Thanks,
    PS.

  • Release strategy for purchase requisition does not kick in

    Hi Gurus!
    I've been struggling with this issue for some weeks now.
    I have set up the release strategy configuration for purchase requisitions with classifications.
    However, if I create a purchase requisition the release functionality is not taken into account by the system.
    See below some more information regarding my configuration:
    1. I've created a new characteristic "REL_PR_GROUP". Status: released, Multiple values, Number of Chars 3, 7 values (TR1, TR2, TR3....TR7), Table name: CEBAN, Field name: EKGRP, Procedure for value assignment set to not ready for input.
    2. I've created a new class: "REL_PR_ANPC". Class type 032, Status: released, Same classification: do not check, Char: "REL_PR_GROUP"
    3. I have one release group "T1", Rel. object 1, OverReqRel is marked, Class: "REL_PR_ANPC"
    4. I have 5 release codes. Grp: T1, Code: 01....05
    5. I have 2 release indicators:
    "R = Released", Rel. for ordering is marked, Changeabil: 4, Value chgs. 100,0
    "X = Blocked",  Changeabil: 4, Value chgs. 100,0
    6. I have 1 release strategy:
    "T1 with Grp T1"
    - one release group, 01 Manager
    - release prerequisites not applicable because of only one release group
    - release status, nothing marked = blocked, 01 marked = released
    - classification, purchasing group is TR1 or TR2 or TR3 or TR4 or TR5 or TR6 or TR7
    I intentionally kept the configuration as simple as possible so I can try to get it working first.
    Now if I create a purchase requisition for an item with release group T1, I would expect the release strategy to be activated. However, this is not the case. I don't see the "release status" tab in the PR, and if I try to relase via ME54 the system says the PR is not relevant for release.
    Could you please assist in getting this working?

    Hi,
    Have you checked in CL30/CL30N if your release strategy is derived successfully?
    See section 3 of Note 365604. A small section of it:
    You can use transaction CL30 search for an object using the data
    of the purchase requisition/purchase order. Here, it is important
    that the object search determines exactly one strategy. If this
    is not the case, this indicates that there are overlapping
    strategies in the system or that the release strategies in
    Customizing do not correspond with those from transaction CL24.
    See the previous point. If the object search returns more than
    one result, the system subsequently determines an incorrect
    release strategy or no release strategy at all.
    If it is derived successfully, next, check the user exit EXIT_SAPLEBND_001 as per Note 371667:
    The following assignment statement has to exist within activated SAP
    enhancements M06B0002 (include zxm06u13) and M06B0005 (include zxm06u31)
    for purchase requisitions:
         E_CEBAN = I_CEBAN.
    Regards,
    Purnima.

  • Workflow error in release Purchase requisition

    Hi All,
    I configured the settings for workflow in Purchase Requisition.(both purchsing & task specific )
    Now, my workflow is started but its status is Error.
    actually it is not able to find the recepient in role 20000026.As i already mark relevent release code as 1 & also assign US user id in the PR release settings & also put the User ID in task specific customization.
    Still i am facing this error.One thing i want to mention is i am not aware of the settings required in the Edit Qrganizational Plan tab in SPRO.
    If some more clarification is required ,i will prode the same..
    Plz suggest some solution in this regard with T codes & bit detail.
    Thanks & Regards,
    Sandeep Sharma

    Sandeep,
    Okay here's some details which will help you out. I presume that you have done customizing for PR release strategy.
    If not then follow this procedure:
    http://help.sap.com/saphelp_47x200/helpdata/en/04/92761846f311d189470000e829fbbd/frameset.htm
    Once you establish release strategy , event releasestepcreated will automatically created by system based on release codes.
    so say for a standard pr type you have defined two release codes I1 and I2 (based on certain amount- you can see this in class characterisitic using tcode CL02) and class type -032 and class PR_RELEASE most probably, check Char. tab).
    Once you define char. in CL02, you gotta run tcode CT04, give the name of char. and fill all tab.
    inside tab Addl data, you have to define CEKKO table and field too
    this is where we have referenced the event releasestepcreated implicitly.
    FOR all customizing of release strategy check this link , this is really great blog
    http://www.sap123.com/forumdisplay.php?s=cced678eca43fe7a7e3bb9b83dc94022&f=2
    then search for "setting up simple release procedure" thread in it.
    It is for PR.
    So if I1 release take place event will triggered, say A has approved I1 level and for whole PO release I2 is also required then one more time event releasestepcreated event would be triggered.
    You can create workflow for PO release. Approver are determined based on rule AC20000026 (check in PFAC) based on FM  which has user exit EXIT_SAPLEBNF_001 where you can write down your own code for approver determination.
    I think that you gotta put 9 (in release code settting in SPRO). If you are inserting 1 then you have to define US and user name (which I think you have done).
    Hope it will clear your doubts
    Cheers
    Jai

  • Change customer for purchase requisition

    Hi gurus,
    i'm trying to change customer number for purchase requisition.
    i tried to enter this code in badi ME_PROCESS_REQ_CUST~PROCESS_ITEM but KUNNR is not changed:
      DATA : ls_item_data   TYPE mereq_item,
             ls_item_datax  TYPE mereq_itemx,
             lv_obj         TYPE REF TO object,
             lv_attr        TYPE string,
             lv_aktyp       TYPE aktyp,
             lv_kunnr       TYPE ekunnr.
      FIELD-SYMBOLS : <fs_lcl> TYPE any,
                     <fs_source> TYPE any.
      IF im_count EQ 1.  " to avoid infinate Loop"
    Access Attributes value of Local Class
    for getting the transaction mode of Line item
    H-> Create
        lv_obj ?= im_item.
        MOVE 'MY_STATE->AKTYP' TO lv_attr.
        ASSIGN lv_obj->(lv_attr) TO <fs_lcl>.
        lv_aktyp = <fs_lcl>.
        IF lv_aktyp EQ 'H' OR lv_aktyp EQ 'V'.        "While creating line item"
    Extracting existing Item Data and Modify the fields
    Requestor Name (AFNAM) & Source of supply details
          CLEAR : ls_item_data.
          ls_item_data = im_item->get_data( ).
         ls_item_datax = im_item->get_datax( ).
         MOVE ls_item_data-ernam TO ls_item_data-afnam.
          lv_kunnr = '0000100000'.
          ls_item_data-kunnr = lv_kunnr.
             ls_item_datax-kunnr = 'X'.
         im_item->set_datax(
         EXPORTING
         im_datax = ls_item_datax ).
          im_item->set_data(
          EXPORTING
          im_data = ls_item_data ).
        ENDIF.
      ENDIF.
    when trying changing other fields like AFNAM for example, the data is changed.
    the customer number exists in KNA1.
    any ideas?
    Thanks,
    Sagit.

    SEARCH  SEARCH  SEARCH  SEARCH  SEARCH  SEARCH  SEARCH
    Good work

  • Restriction for purchase Requisition Number in ME21N

    Hi All,
    I want to raise an error message in ME21N, if the user creating PO without perchase rechase requisition number. For this i choosed one BADI.
    Definition Name: ME_PROCESS_PO_CUST
    Interface Name : IF_EX_ME_PROCESS_PO_CUST
    i have implemented the BADI  ZCHECK_PR
    Method :  IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM
    I have written code like this in PROCESS_ITEM method
    DATA: ls_mepoitem TYPE mepoitem,
            ls_customer TYPE mepo_badi_exampl,
            ls_tbsg     TYPE tbsg.
      INCLUDE mm_messages_mac. "useful macros for message handling
    * here we check customers data
      ls_mepoitem = im_item->get_data( ).
    BREAK-POINT.
    if ls_mepoitem-bstyp = 'ZV01'.
       if ls_mepoitem-banfn is INITIAL.
          message 'Enter Purchase Requisition Number' type 'E'.
       endif.
    endif.
    Saved & Activated  this.
    But while testing this in ME21N, it is not at all going to debug mode( I have created PO for ZV01 order type only).
    Is there any thing not finished for BADI?
    Can any one help me.
    Thank You.

    Vishnu,
    Very strange, just try deactivating and deleting your implementation and create a fresh one in the same client where you are testing and assign it to a transport request and check.
    Actually this BADI is already migrated to an Enhance spot in ECC 6 with same name 'ME_PROCESS_PO_CUST' but I still believe that SIMPLE badi implementation is still supported. OR Better do it with the latest way.
    Create an enhancement implementation of Enh spot ME_PROCESS_PO_CUST in SE19 and then for that Enh implementation, create a BADI implementation and an implementing class. Code the required thing in the implementing class methods and then check if it works. It's actually almost same way as implementing a simple BADI. If you need any help, search Forums or get back here.
    Pls note that Enh framework implementations are much faster than conventional BADIs and should always be used.
    BR,
    Diwakar

  • G/L account no in purchase requisition/order

    Dear all,
    I have a little problem. During the creation of a purchase order a wrong G/L account is automatically assigned. With the account assignment category "Q", SAP determines automatically the G/L account 30000 and disables this field. However the account 60000 should be determined. This account is yet determined in the purchase requisition and copied to the purchase order.
    I've been searching for a while and in my view, it has something to do with the account assignment. I tried the transaction OBYC, but I don't think I can change the account there.
    Could someone guide me through this problem?
    Kind regards,
    Samuel

    Dear Pankaj Singh,
    In OBYC transaction GBB I retrieved following information:
    0001/VBR/3000/609000/609000.
    The material has valuation class 3000.
    If I understand well, SAP should assign 609000 in the purchase order? But why assigns the system 3000000?
    What do you mean with the valuation modifier VKP?
    Kind Regards,
    Samuel
    Edited by: Walravens Samuel on Oct 31, 2008 10:26 AM

  • Help needed for enhancement in Purchase requisition

    Hi all,
    Our client uses me59n to generate PO's automatically using purchase requisitions.
    Now, the requirement is ...
    If net Purchase value  is 0 in purchase requisition, then
    Free(UMSON) field in Purchase order shoud be "checked".
    lemme explain the steps a bit detail.
    1. lots of purchase requisitions will be created in me51n.
    2. Client will use me59n to generate PO's automatically, using Purchase requisitions.
    3. purchase orders will be created.
    3. Now, i am in search of a badi/user exit , which will
         if netPurchasevalue(gswrt) = 0
            (free)umson = X.
         endif.
    so , i need a enhancement, which links both fields(gswrt) from purReq & (umson) in PO. 
    please lemme know if anybody have experience on similar issues earlier.
    Regards.
    santosh.

    Hi,
    Try implementing the BADI -ME_PROCESS_PO_CUST ...the method "PROCESS_ITEM" can be used to do the check that you want...
    Thanks,
    Renjith

  • Report with purchase requisitions and purchase orders: how?

    Hi,
    I need to get a list of items bought with their purchase requisitions and purchase orders (when they exist). This can be done looking at each purchase order (ME23N), ou purchase requisition (ME53N), and writing it down. But in some cases, I have to do it on about 450 operations. I'd like to get this list without having to search for each requisition ou order. I can get a complete list of orders and requisitions, but without any relationship between them (they are mixed as if they were the same thing, but there´s a field telling it that row is an order or a requisition). Using some macros in excel, I can find this relationship in 40% of the cases (for example, if item 421351 was purchased only once, an order for item 421351 is related to a requisition for item 421351). Is there any way to get this list automatically? Or is there any field that tell me this relationship?
    Thanks,
    Francisco Morbiolo
    Votorantim Cimentos
    Votorantim, SP - Brazil

    Sorry, I forgot to tell this: I don´t have access to SQ01/SQ02/SQ03.
    I get the orders and requisition reports using ZGLPS020.
    Thanks,
    Francisco Morbiolo
    Votorantim Cimentos
    Votorantim, SP - Brazil

  • Error when creating a purchase requisition in reference to a contract.

    Hello All,
    My client have a requirement that , He wants to create a purchase requissition with Item catogery-B and account assignment-K
    with reference to a contract.
    when we are trying to create a purchase requisition with Item catogery-B and account assignment-K
    with reference to a contract the system is throwing an error: "Item categories in agreement and requisition incompatible".
    I had searched for the relating documents and tried all the conbinations but could not find the solution.
    Could any body help in this regard.
    thanks in advance.

    Hi Gayathri
    I thought so. So that means you are unable to create a contract with the combination of K and B which is why you are not able to adopt it in the PR with the same results.
    As far as entering the limit goes, you would be making a value contract in which you would have to enter the value of contract that you need to create for vendor. Also, for the second error, once you have created a contract with the particular account assignment, u cannot change it. You would have to create a new contract with the desired account assignment category and then try creating a PR. Hope this helps!

  • LSMW Upload of Purchase Requisition MM

    Hi Experts,
    I have a quick requirement to create a LSMW project for creating the PR(Purchase Requisition) in the SAP system from a legacy data by means of uploading.
    I want the data of the header and item to be uploaded in one go. I searched the forums and came to know that
    we can use batch input but the problem is that it will upload one by one which does not suffice my requirement.
    Please suggest me how to achieve this.
    Thanks and Best Regards,
    Sahil

    Header and item is always loaded in one go. I have never seen an object in SAP migration where you load header and items individually.
    SAP says in FAQ note 499627 - FAQ: BAPIs for purchase requisitions
    Can I use the BAPI BAPI_REQUISITION_CHANGE to add new items?
    Answer:
    No.
    However, we can create a BAPI that has this function for you.
    This takes one to three days depending on the features, and is subject to charge.
    ...but this is for BAPI_REQUISITION_CHANGE , when you create requistions you usually use BAPI_REQUISITION_CREATE. so give it a tryto see  if you can load several item to one PR.
    if it does not work with the BAPI, then record the old ME51 transaction (ME51N is not suitable for batch input)

  • Create purchasing requisition or purchase order from service order

    Hello experts,
    we are facing the following problem:
    We are implementing Customer Service module and out of the notification we create a service order. In the service order (components tab) the technician declares the spare parts he has to order from the vendor. We do not keep stock of the spare parts so all of them have to be ordered from the vendors.
    We have managed so far to create a reservation for the stock material and a purchase requisition for the non-stock materials of the service order according to the standard sap documentation. What we need is to create a purchase requisition or a purchase order for the stock items using standard logic.
    Thanks
    George

    Hi
    Please follow the steps it will solve your scenario
    Steps involved in Service PO:
    1.Define Organizational Status for Service Categories, in IMG - MM - External Services Management.
    2.Define Service Category, Enter Service Category, Org. Service Category, External Number Assignment
    Without Validation, Acct. Category Reference & Service Category Description.
    3.Define Number Ranges for Service Category.
    4. Create Service Master Record (AC03), SAP Menu u2013 Logistics u2013 MM u2013 Service Master, Enter Service Category,
          Base unit of measure, Mat/srv.grp (007 u2013 Service), Division, Valuation class u2013 3200 & Service type.
    5.Create Service PO with Acct. Assignment u2013 Cost Center (K), Item Category u2013 D, Material Short Text, Mat. Group, Plant, Entry for Services in Item Level i.e. Service No., Quantity & Gross Price u2013 Save.
    6.Maintain Service Entry Sheet u2013 ML81N in SAP Menu u2013 Logistics u2013 MM choose PO in ML81N edit and save.
    7.Then do MIRO from PO reference u2013 Service Entry sheet.
    8.Collective Release of Service Entry Sheet u2013 ML85
    Thanks & Regards,
    Mani

  • Integration of CRM Service with ERP MM (Reservation, Purchase Requisition, Purchase Order)

    My (i think simple) question is about integration of CRM service to ERP MM, e.g. for spare parts delivery or spare parts purchasing or scrapping parts in a CRM service order - i thought something very basic and standard
    I always thought that inside a ERP SD order you have item categories and those item categories do have a schedule line category and a requirement class and from those are determined the MM movement typ and the automatism if the system creates  in MM a reservation a purchase requisition or a purchase order. That was always my understanding
    Now i was surprised to learn the customizing in SAP CRM (CRM/Transactions/Settings for Service Transactions/Integration/ Logistics Integration/Define Transfer parameters) - there i can say:
    CRM Transaction Type+ CRM Item Category = ERP Movement Type + ERP Special Stock Indicator
    or next to it in the SAP CRM Customizing
    (CRM/Transactions/Settings for Service Transactions/Integration/ Logistics Integration/DefineLogistics Scenario for the Procurement of Material and Sales)
    i can say:
    CRM Transaction Type+ CRM Item Category = ERP Reservation or ERP purchase requisition or ERP purchase Order
    Now i know that in SAP CRM if you have a transaction and an item category for a logistics operation, the system creates an EPR sales order of the same number and type with the same item categories.
    My question is: WHERE is determined which movement type the system uses and if there is created a reservation or purchase requisition or purchase Order. Is it determined in the ERP by using the ERP sales order item category and the SD item category customizing or is it determined by the customizing in the SAP CRM that i described above?
    Thank you

    Hi Anup,
    I am facing purchase requisition creation problem for service products from crm.
    I have seen your query which was posted on same issue, so i thought i could get some help.
    The problem here is when i am saving the service order i am getting the below message.
    Enter a (default) purchasing group for material group SUB_MC (Notification E CRM_SRV_LOG_EXT_OLTP 002).
    I have actually downloaded mat_dien materials from ecc to crm and for material purchase group is already assigned for one plant, but still not able to recognise.
    Please help me out.
    Thanks in advance.

  • Purchase requisition with reference to blocked sales order

    Hello,
    we are creating purchase requisitions (PR) manually with reference to a sales order (account assignment Z). When this sales order is blocked, we still can issue the purchase requistion.
    What can we do to avoid this? I think in 2 solutions:
    - use enhancement MEREQ001 to show error message when SO is blocked, so PR is not created. Is this possible?
    - create a release strategy for PR created in that plant (tr. OME6). The problem is that release strategy refers to an amount in the PO, and not to other factor, like SO blocked. Maybe in the former enhancement we can set the field EBAN-GSFRG to 'X'?
    Thanks for your help.

    Many thanks for your answer. It help me to solve the issue.
    So applying note 738171, with transaction OVB5 (or VOFM, requirements->subsequent functions->Purch.requisitions) we create one new requirement, ie RV07A900, and then we apply the rule that if we have delivery or billing block, that is, VBAK-LIFSK or VBAK-FAKSK not empty, then we set an error with a code similar to this:
                da_sy-msgid = 'Z1'.    (message class)
                da_sy-msgno = '001'.  (message number)
                error_exception = true.
    and then the PR is not created.
    Regards.

  • Problem in purchase requisition release strategy code

    Hi
    We are facing a problem in purchase requisition, a new release strategy was created and change request transported but when PR is displayed in release strategy chart a same user is showed in different release strategy code.
    Note: new strategy was copied from other.
    Thanks in advance.

    hi,
    As you said tht you have copied the release stategy n created the new one...
    If you do so, you would have copied the class also...to which the release group is attached...
    If this is the case, then system doesn't recognise the new one, and inorder to solve it you have to define the new characteristic and class...then assign this class to the release group and make your release strategy again...
    Once you do this check the release strategy at OMGSCK...and then try at PR...
    You do all settings at :
    SPRO >> IMG>> MM >> Purchasing >> PR >> define release strategy >> W/o classification >> here edit characteristics/class and all other link are provided...
    Regards
    Priyanka.P

Maybe you are looking for