Purchase requisition release procedure through User-Exit

Hi Workflow Guru,
I have a requirement to configure purchase requisition workflow . the workflow should trigger through release strategy.
The approver should determine through user-exit and the approver should determine based on value and quantity and that can be define in user-exit. as per my knowledge the value should mantain in SPRO-Release procedure. Please clarify me is it possible through user-exit. I am worked on user-exit for release procedure based on purchasing group.
Thanks in advance.
Regards,
Ranjan Tiwari

Hi,
There is BADI ME_REQ_POSTED 
in method POSTED  you can write your code to trigger the workflow and get the information related to release strategy and
Purchase requisation  .
for more than one PR use below logic .
LOOP at im_eban into gwa_im_eban .
    concatenate gwa_im_eban-banfn gwa_im_eban-bnfpo into gwa_objkey .
  add data into container -----------------
      gwa_event_container-element = 'PurchaseRequisition'.
    gwa_event_container-value = gwa_im_eban-banfn.
    append gwa_event_container to gi_event_container.
    clear: gwa_event_container.
    gwa_event_container-element = 'ItemOfRequisition'.
    gwa_event_container-value = gwa_im_eban-bnfpo.
    append gwa_event_container to gi_event_container.
get the other details and create event to start workflow .
select single * from eban into lwa_eban where banfn = gwa_im_eban-banfn
                                              and bnfpo = gwa_im_eban-bnfpo .
        if sy-subrc <> 0 .
      call function 'SWE_EVENT_CREATE'
        exporting
          objtype           = 'BUS2009'
          objkey            = gwa_objkey
          event             = 'zcreated'
        tables
          event_container   = gi_event_container
        exceptions
          objtype_not_found = 1
          others            = 2.
ENDLOOP .
Hope this will resolve your issue.
Thanks and Regards,
Deepanker Dwivedi

Similar Messages

  • Release code - Purchase requisition - Release Procedure

    Hello,
    In the purchase requisition release procedure with classification, we are defining release codes say K, P etc.
    My doubt is , Is this being defined else where based upon the designatin of the person in the organisation, or else, we are defining here straight away?
    Best regards,
    K.Kumaran.

    HI
    You are correct, you need to define the release code there only. There is no other place where it is defined. What you have to ensure is  make sure that it is of Two character and not single. Assign the codes against the designation of the person as per your requirement.
    Regards

  • Purchase Requisition Release Procedure Modification

    Hi
    In Purchase Requisition Release, we have two deviations in business requirement from standard SAP behaviour:
    1. In multistep release, system allows PR release to be revoked by a lower level release authorized person even though higher level release has been done. Example, PR Release has release codes A1, A2 and A3, A2 can revoke release even after A3 has released the same. How do I prevent this from happening?
    2. If business requirement is to have release procedure based on item cost per unit and not on total value of the line item, how can this be achieved?
    Appreciate any guidance on these issues
    Thanks
    Sriram

    Hi,
    There is BADI ME_REQ_POSTED 
    in method POSTED  you can write your code to trigger the workflow and get the information related to release strategy and
    Purchase requisation  .
    for more than one PR use below logic .
    LOOP at im_eban into gwa_im_eban .
        concatenate gwa_im_eban-banfn gwa_im_eban-bnfpo into gwa_objkey .
      add data into container -----------------
          gwa_event_container-element = 'PurchaseRequisition'.
        gwa_event_container-value = gwa_im_eban-banfn.
        append gwa_event_container to gi_event_container.
        clear: gwa_event_container.
        gwa_event_container-element = 'ItemOfRequisition'.
        gwa_event_container-value = gwa_im_eban-bnfpo.
        append gwa_event_container to gi_event_container.
    get the other details and create event to start workflow .
    select single * from eban into lwa_eban where banfn = gwa_im_eban-banfn
                                                  and bnfpo = gwa_im_eban-bnfpo .
            if sy-subrc <> 0 .
          call function 'SWE_EVENT_CREATE'
            exporting
              objtype           = 'BUS2009'
              objkey            = gwa_objkey
              event             = 'zcreated'
            tables
              event_container   = gi_event_container
            exceptions
              objtype_not_found = 1
              others            = 2.
    ENDLOOP .
    Hope this will resolve your issue.
    Thanks and Regards,
    Deepanker Dwivedi

  • Create Purchasing Requisition from IW31 - BADI, user exit

    Hi
    I need to do changes to purchasing requisition which is getting created from IW31.
    Is there any BADI, user exit etc. I can use?

    Hi Elena,
    Try these user exits.
    CNEX0013  Order: Cust. enhancement: Default item category comp. a
    CNEX0026  Customer enhancement for general inspection of material
    CNEX0027  Customer enhancement: Plant, storage loc. finding for c
    IWO10004  Maintenance order: Customer check for order completion
    IWO10005  Maintenance order: Cust.-specif. determination of profi
    IWO10006  Maint. order: Fcode exclusion through cust. enhancement
    IWO10007  Maint.order: Customer enhancement - permits in the orde
    IWO10008  Cust. enhancement: Determination of tax jurisdiction co
    IWO10009  PM Order: Customer Check for 'Save' Event
    IWO10010  Maint. order: Cust. enhancement for determining WBS ele
    IWO10011  Maint. order: Customer enhancement for component select
    IWO10015  Maintenance order: F4 Help for user fields on operation
    IWO10016  PM Order: Cust. enhancement to check operation user fie
    IWO10017  Determine external order number by customer logic
    IWO10018  Maintenance order: User fields on order header
    IWO10020  Maintenance order: Automatically include task list
    IWO10021  Automatic task list transfer when creating order from n
    IWO10022  Determine calendar from user exit
    IWO10023  Service order: Change header data for advance shipment
    IWO10024  Service order: Changes to items for advance shipment
    IWO10025  PM/SM order: Finding responsible cost center
    IWO10029  Inclusion of bill of material in PM/SM order
    IWO10030  Preset Fields for Event Object
    IWO10031  Hide personnel number in PM/SM order
    IWO10033  Customer-Specific Authorization Check Maint./Service Or
    IWO10034  Operation status based on the status of capacity reqs
    Regards,
    Vijay

  • Requisition Release Procedure No longer working

    Hi expert!
    My client raised an incident regarding the PR release strategy. Their Requisition Release procedure is based on document type.The user that is creating the requisition has the option of choosing document type NB (Non Release Requisition) or document type RNB(Release Requisition)
    If they choose NB the requisition will not go for Release.If they choose RNB the requisition will go for release.
    Then they created a new Purchase Requisition doc type(ZTP) and the transport has been moved to PRD. No config changes were made to the Purchase Requisition release procedure. Now the requisition release procedure is no longer working.
    I'm not sure why it's happen like this.Can anyone explain?

    Hi ,
    The transport request has nothing to do with your earlier release strategy.
    Just check the charactersitics values linked to Release Strategy.May be someone might have changed it in production.
    Regards
    Ramesh Ch

  • Release Purchase Requisition - "Release strategy"

    Hi there,
    I am trying to release a purchase requisition. I looked in the table "EBAN" and i can see the entry or in other words, the requisition i created. In the Release indicator, Release status and Release strategy fields, these are empty. How do i add information to these fields which appear to have missing data?
    Speedy repsponse would be very much appreciated.
    Thanks
    Motolani Fatuga

    Hi Motolani
    spro>Materials Management>Purchasing>Purchase Requisition>Release Procedure>Procedure with Classification>Set Up Procedure with Classification-->Release strategy
    Select release strategy> Go to details>classification
    here check what are the charactaristic and what are the values maintained for it
    Check this for all release strategy
    Mostly PR release strategy is based on Document type and PR Value
    Check whether UR PR fits in release strategy criteria
    Suppose Total value of requisition is maintained as 1000-2000
    If UR PR value is less than 1000 Then PR will not subject to release
    Vishal...

  • User Exit for me54n on purchase Requisition Release i.e EXIT_SAPLMEREQ_05

    HI   All Experts ,
                          I have one Requirement that  , i want to insert  data in Ztable  using all details from header data in me54n  on purchase release i.e When i will Click on Purchase release Requisition i want to insert records using few fields such as , matnr ,menge , item, quantity ,requisioner,plant storage locaton , date etc  . i am using user exit on this i.e smod EXIT_SAPLMEREQ_005 in mereq001  which is called when clicked on purchase requisition release , now how to collect that details  in this user exit .
    need some help regarding this .
    Thanks And Regards
    Deepak Dhamat

    Dear Peter ,
                   yes you are correct that ebeln is part of structure MEREQ_ITEM but  it is always empty .i want Purchase Requisition no i.e     PR. Manual           2000009940  which is present in me54n first line of screen  i.e above the header note .
    after looking at the property  of that field it show as given
      below
      Struct.          MEREQ_TOPLINE               
      Field name       BANFN_EXT                   
      Data element     BANFN                       
      DE supplement    0                           
      Parameter ID     BAN                                                                               
    Screen field     MEREQ_TOPLINE-BANFN_EXT     
      Program name     SAPLMEGUI                   
      Screen no.       0014

  • If PO is released I have to send a mail through User Exit

    Hi,
    Please let me know the relevant user exits for below requirements.
    a.  When the PO is released,  the system will check for that PO Parked invoice exists or not,  if yes I have to send a mail to creator of the Invoice through user exit.
    b.  PO Exist but NO GR  (for goods only not services) ,  each time an invoice is parked for Goods PO.  send mail to PO Creator and storekeeeper  through user exit.
    Please give me relevant/suitable user exits for above both requirements.
    Regards,
    Ganesh

    Hi Ganesh,
    Please move this to [Enhancement and Modifications|ABAP Switching, Enhancing, and Adapting Standard Programs; forum
    Cheers
    Suresh

  • Pop up screen for stock overview in ME51n through user-exit/BADI

    Hi,
    User wants that at time of  Purchase Requisition creation for any material system should give a pop up window of stock details to provide the status on inventory. 
    For stock summary the t code u201CMMBEu201D for combination of plant and material should run in background and produce output in pop up window. Basically MMBE report output is required for each item line in a pop up window.
    Can this be done through user-exit. I have implemented many user-exits but not sure about the report output in a pop up screen through a user-exit.
    The material stock ia already available under menu enviornment - Material stock(MMBE) but user wants the stock as soon as the material is enetered.
    any inputs.

    Have a look at below link which gives the details abt the user exits related to VA01/VA02.
    http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • Purchase Requisition release

    Hi,
    Could anybody help me out with the configuration settings of purchase requisition Release.
    Client want to set release status for Purchase Requisition , where two persons will be responsible to release the requisition . when the first person releases the requisition , it will come to the second or final person for release ,when he releases then the requisition is released for purchase orders.
    Could anybody help me out with the configuration settings.
    Thanks N Regards,
    Siddhartha

    Use this steps. below is for PO same do it with PR. that is in place of PO take it as PR.
    Releasing Procedure for Purchase Documents
    Use
    This setting is incorporated to just give demonstration of how SAP Release procedure works.  The aim of this procedure is to replace manual written authorization procedures using signatures by an electronic one, while maintaining the dual Ctrl principle.  The person responsible processes the purchasing document in the system, thereby marking it with an "electronic signature" which can give the document legal force.
    3.4.24.1     Creation of Characteristics
    Procedure
    1.     Access the activity using one of the following navigation options:
    IMG Menu     Materials Management  Purchasing  Purchase Order  Release Procedure for Purchase Orders  Edit Characteristic
    Transaction Code     CT04
    2.     On the Characteristic screen, make the following entries.
    3.     In put POVAL in filed Characteristic and choose Create (White paper) icon or Ctrl + F3 to begin creation of characteristic.
    Field name     Description     User action and values     Note
    Select Addnl Data tab                
    Table Name     Table Name     CEKKO     
    Field Name     Field Name     GNETW     
    Choose Enter to continue, system will give an information message saying Format Data taken from ABAP dictionary, Choose Enter again to continue.
    Select Basic Data tab               
    Description     Description     Total net order value     
    Status     Status     Released      
    Data Type     Data type     Currency format     Selected by system
    Number of characters     Number of characters     15     
    Decimal places     Decimal places     2     
    Currency     Currency     INR     
    Interval vals allowed     Interval values allowed     Check this tick box     
    Multiple Values     Multiple values allowed     Select this radio button      
    4.     Choose Enter to complete the entries
    5.     Choose Save icon or Ctrl + S to save the characteristic.
    3.4.24.2     Creation of Class
    Procedure
    1.     Access the activity using one of the following navigation options:
    IMG Menu     Materials Management  Purchasing  Purchase Order  Release Procedure for Purchase Orders  Edit Class
    Transaction Code     CL02
    2.     On the Class screen, make the following entries:
    Field name     Description     User action and values     Note
    Class     Class     PORELPROC     
    Class Type     Class Type     032     
    Choose Create icon or white paper icon to create new class.
    Description     Description     Purchase Order Release Procedure     
    Status     Status     Released     
    Choose Char. Tab to input characteristic name.
    Characteristic     Characteristic     POVAL     Created in above step
    3.     Choose Enter to complete the entries
    4.     Choose Save icon or Ctrl + S to save the characteristic.
    Result
    Class type 032: Class PORELPROC created.
    3.4.24.3     Configuration of Release Procedure
    Procedure
    1.     Access the activity using one of the following navigation options:
    IMG Menu     Materials Management  Purchasing  Purchase Order  Release Procedure for Purchase Orders  Define Release Procedure for Purchase Orders
    Transaction Code     SPRO
    2.     On executing the transaction system will give a popup screen choose Release Groups, system will display Change View u201CRelease Groups: External Purchasing Documentu201D: Overview.
    3.     Choose New Entries icon and make the following entries:
    Field name     Description     User action and values     Note
    Rel. Group     Release Group     02     
    Class     Class Name      PORELPROC     Created in above step
    Description     Description     PO Release Procedure     
    4.     Choose Enter to complete the entries
    5.     Choose Save icon or Ctrl + S to save the entries.
    6.     Choose yellow arrow to go back to popup screen.
    7.     Choose Release Codes to select.
    8.     Choose New Entries icon and make the following entries:
    Field name     Description     User action and values     Note
    Grp     Release group     02     Created in above step
    Code     Release Code     01     
    Workflow     Workflow     Leave it blank     
    Description     Description     Purchase Officer     
    Grp     Release group     02     Created in above step
    Code     Release Code     02     
    Workflow     Workflow     Leave it blank     
    Description     Description     Materials Manager     
    9.     Choose Enter to complete the entries
    10.     Choose Save icon or Ctrl + S to save the entries.
    11.     Choose yellow arrow to go back to popup screen.
    12.     Choose Release indicator to select.
    13.     Choose New Entries icon and make the following entries:
    Field name     Description     User action and values     Note
    Release ind.     Release Indicator     1     
    Released     Released     Leave it blank     
    Chgable     Changeability     4     
    Value change %     Change of value     10%     
    Description     Description     Purchase Order Blocked     
    Go to 2nd line and input the following values:
    Release ind.     Release Indicator     2     
    Released     Released     Select Check box     
    Changeable     Changeability     6     
    Description     Description     Purchase Order Released     
    14.     Choose Enter to complete the entries
    15.     Choose Save icon or Ctrl + S to save the entries.
    16.     Choose yellow arrow to go back to popup screen.
    17.     Choose Release Strategies to select.
    18.     Choose New Entries icon and make the following entries:
    19.     System will give new screen New Entries: Details of Added Entries
    Field name     Description     User action and values     Note
    Release Group     Release group     02     
    Rel. Stategy     Release Strategy     S1     
              Capital Items Release     
    Release Code     Release Code 1     01     
    Release Code     Release Code 2     02     
    20.     Choose Enter to complete the entries.
    21.     Choose Release prerequisites icon and select check box 02 at the bottom and choose Enter.
    22.     Choose Release statuses icon, system will give a popup screen system will default 1, 1 and 2 entries one by one as a default.  Choose Continue.
    23.     Choose Classification icon, here you can see Total net order value is displayed, please input >= 1.00 INR value in the white placed and choose Enter.
    24.     Choose Next Screen icon or choose F8 to continue.
    25.     If you want to simulate the release procedure you can choose Release Simulation icon.
    26.     Choose Enter to complete the entries.
    27.     To save the settings choose Save icon or Ctrl + S.
    Result
    Release procedure is saved.
    3.4.24.4     Assignment of Values to Release Procedure 
    As a default all the purchase documents >= Rs. 1000000.00 is suggested in the following step of release procedure, if you want to have different one you need to change the value in the following step.  If you do not want release procedure you may change the value to Zero.
    Procedure
    1.     Access the activity using one of the following navigation options:
    IMG Menu     Cross-Application Components  Classification System  Assignments  Assign Object to Classes
    Transaction Code     CL20N
    2.     On the Class screen, make the following entries:
    Field name     Description          User action and values     Note
    Class Type     Class Type          032     
    Choose Enter to Assign values.
    Release group     Release Group          02     
    Rel. Strategy     Release strategy          S1     
    Choose Enter.
    System will give Class name in Assignments, Double choose Class Name.
    System will display Characteristic name Total net order value. Assign the value >= 1000000.00 INR  against filed Value.
    3.     Choose Enter to complete the entries
    4.     Choose Save icon or Ctrl + S to save the characteristic.
    Regards
    S

  • WS2000077 (Purchase Requisition Release) problem

    Dear all
    workflow task WS2000077 (Purchase Requisition Release) causes the following problem:
    While executing an approval release (ME54N) through workflow, the result is always 'requisition release refused'.
    Does anyone know why?
    I appreciate your help in advance

    Hi,
      Go through the below links it may help you...
    Workflow Definition WS20000077 and sequence of the events, significantly...
    po release workflow issue/problem
    PR Workflow problem
    std workflow ; user to role agent assignment ?
    Regards,
    Udaya.

  • Purchase Requisition Release at Header Level

    Hi MM experts,
    We are on ERP6. Can we activate purchase requisition release at header level (ie overall requisition dollar level - sum total of all requisition line items) just for one business (company code) without affecting rest of client which uses release strategy at requisition line item level?
    Is it possible to share the same document type, e.g. NB that is used by other business?
    Many thanks.
    Thomas

    With the release procedure with out classification , it is possible to release the PR at header level based on the value of the PR . In determination of release strategy , you can maintain the value , currency and release stratergy .
    But to restrict this to a particular comany code , you may use the exit M06B0002 where in you can write the logic .
    -Hari.

  • Purchase requisition release date

    Purchase requisition is created through MRP run and release date of the pur req is 2 days before delivery date.I have not maintain sheduling margin key,planned delivery time,GR processing time,etc.How this is happening?

    Hi
    Please check in config Materials management--> Purchasing-> Purchase requisition ---> Processing time . You might have given 2 days for purchase requisitin processing time for your plant. That may be the reason you have 2 days difference.
    Remove this and save and re run MRP. It will work for you
    Regards
    Antony

  • Change Moveing average price in MIGO Goods Reciept through user exit

    Hi,
    i need to change the moving average price in the MIGO transaction  (Goods Issue) through user exit can any one help me with user exit.

    Hi,
    Check these Enhancemnts...
    Exit Name           Description
    V02V0001            Sales area determination for stock transport order
    V02V0002            User exit for storage location determination
    V02V0003            User exit for gate + matl staging area determination (headr)
    V02V0004            User Exit for Staging Area Determination (Item)
    V50PSTAT            Delivery: Item Status Calculation
    V50Q0001            Delivery Monitor: User Exits for Filling Display Fields
    V50R0001            Collective processing for delivery creation
    V50R0002            Collective processing for delivery creation
    V50R0004            Calculation of Stock for POs for Shipping Due Date List
    V50S0001            User Exits for Delivery Processing
    V53C0001            Rough workload calculation in time per item
    V53C0002            W&S: RWE enhancement - shipping material type/time slot
    V53W0001            User exits for creating picking waves
    VMDE0001            Shipping Interface: Error Handling - Inbound IDoc
    VMDE0002            Shipping Interface: Message PICKSD (Picking, Outbound)
    VMDE0003            Shipping Interface: Message SDPICK (Picking, Inbound)
    VMDE0004            Shipping Interface: Message SDPACK (Packing, Inbound)
    Badi Name            Description
    DELIVERY_ADDR_SAP    Determine Time-Dependent Delivery Address in Delivery
    DELIVERY_PUBLISH     Returns BAdI Implementation: Automatic GR Posting T 2
    DELIVERY_PUBLISH     Updating of Delivery in Purchase Order
    DELIVERY_PUBLISH     AIP: Delivery Confirmation for Sales Order
    Regards
    Raghu

  • Workflow for purchase requisition release strategy

    Hi all,
    I need an urgent help on Workflow for Purchase Requisition Release. The requirement is that when a purchase requisition with a given combination (Purchasing Group, Material Group and Account Assignment Category) is created and saved, it should trigger a workflow for approval of release or rejection to one specific business manager. If he dont responds in 2 days, it should be sent to other business manager. If any one of them releases the requisition, it should send a mail to the requestor that the requisition is released. And if it is rejected, then also a mail to be sent to the requester informing that his requisition is rejected...
    Can anyone take some pain and guide me step by step procedure to implement this or to use any existing one.... I know its BUS2009 thats used in this but really dont know how to implement it properly.
    Its urgent...
    Edited by: Hima on Apr 11, 2008 12:45 PM

    Check this link
    http://help.sap.com/saphelp_47x200/helpdata/en/04/92762546f311d189470000e829fbbd/frameset.htm
    Thanks
    Arghadip

Maybe you are looking for