How to find if a Purchase order is in change mode

Hi Experts,
                 I am struck with a problem in my pr po approval web dynpro application.
Using this application users can approve a po, but if the same po is being editing by some one at the same time, we should display an error message.
i came to know that, if a po is being edited then the lock object for purchasing document will get locked.
i am trying to call a function .. CALL FUNCTION 'ENQUEUE_EMEKKOE' providing the PO number .. but not successful.
Thanks in Advance for your support.
Sateesh J

As far as I understand ENQUEUE_EMEKKOE is used to lock object.
http://wiki.sdn.sap.com/wiki/display/ABAP/lockandunlock+PO
you want to find out whether object is locked or not before locking the object.
I am not a programmer but understand a bit of coding. Well I think that ENQUEUE_EMEKKOE itself should give a message of object is locked.
If not try out table with is used to display active locks in the system (TCODE: sm12). T-code sm12 enables u to view and manage entries in the lock. find out which entry means what.
http://benstudycenter.blogspot.com/2008/01/sm12-table-lock-concept.html

Similar Messages

  • How to find out the purchase order# giving the sales orde numer?

    Hi Gurus,
    how to find out the purchase order# giving the sales order# or material
    with regards
    thambe

    hi
    use va02-t.code
    double lick on line item data--> click on order data tab.
    there you can find the po details relavant to that sales oreder & the material.
    Thanks & Regards,
    krishna.

  • How to find document of purchase order

    Dear All,
    I just want to know how to find the document which is attached when creating Purchase order, can this document insert in oracle database or server directory...??
    if it is in oracle database please mention table name or directory path where file or document exist.
    Thanks

    Hi;
    Please review below search:
    http://www.google.com.tr/#hl=tr&tbo=d&sclient=psy-ab&q=ebs%2Bpurchase+order++document&oq=ebs%2Bpurchase+order++document&gs_l=hp.3..0i10i30j0i30j0i10i30j0i30.264.1781.0.2035.5.4.0.0.0.0.423.811.0j2j4-1.3.0...0.0...1c.1.ftCvA3OOHXE&pbx=1&bav=on.2,or.r_gc.r_pw.r_qf.&bvm=bv.41524429,d.d2k&fp=d36553db39999835&biw=1536&bih=711
    For all notes please see:
    For r12.1.1:
    http://download.oracle.com/docs/cd/B53825_01/current/html/docset.html
    For r12:
    http://download.oracle.com/docs/cd/B40089_10/current/html/docset.html
    For r11:
    http://download.oracle.com/docs/cd/A60725_05/r11_doc.htm
    Regard
    Helios

  • HOW WE FIND OUT OPEN PURCHASE ORDER AND CLOSED PURCHASE IN THE TABLE?

    HI,
    PLZZ HELP ME.
    what are fields names for open purchase order and closed purchase order
    thanks

    Hi param,
    Go to mseg table, pass the purchase order number and purchase order item. if the mseg-menge = ekpo-menge for the corresponding purchase order then consider the purchase order is close, else it is still open. even check if the entries are not there for corresponding purchase order in mseg table then also it is open.
    select mblnr zeile matnr menge from mseg into it_mseg where ebeln = it_ekko-ebeln
    and    ebelp = it_ekpo-ebeln.
    if sy-subrc <> 0.
    then consider the purchase order is open.
    This is the first case.
    even u can consider like this
    if sy-subrc = 0.
    if it_ekpo-menge > it_mseg-menge.
    then also the purchase order is open.
    Regards,
    Santosh Kumar M.
    Award points if it is useful.

  • How to find the open purchase order qunatity

    hello Friends ,
    i have a requirement like below.
    If there is any receipt posted for the PO line item but if this is reversed then the new receipt should be permitted for posting. If there is any partial quantity reversal done then further receipt should not be allowed.
    Eg. If PO is for 100 qty, receipt is for 50 qty and reversal is done for 50 qty then new receipt posting should be allowed.
    If PO is for 100 qty, receipt is for 50 qty and reversal is for 40 qty then new receipt posting should not be allowed.
    please tell me how i can solve the problem.
    please tell me the logic in data base table level .
    thanks
    Anant
    Edited by: anudeepmca on Feb 26, 2010 12:38 PM

    You can get all postings relating PO in EKBE table, this is the base for you to add validation logic if there are any partial reversals occurred.

  • How to link asset with purchase order and PO Item.

    Hello,
           I have to generate a report which contains columns
    Asset No , po no(ebeln) ,PO Item(ebelp),Material no etc
    My query is how to link asset with purchase order and      PO Item.
    I am selecting asset and po no. from anla  but how to get
    po item no(ebelp)?
    po line item is important in this report because every line item has differrent asset and material no.
    i tried to match asset no in mseg table but i am not getting asset no in mseg .
    how should i proceed ?

    Thanks Thomas & Srimanta for the quick response.
    When I checked EKKN table by entering PO there is no asset no. in anln1 field.
    Also I would like to add that, In me23n for a PO, account assignment category we are entering 'F' for internal order settlement.
    Where can i find the link between asset and po no(ebeln) and po item(ebelp)?
    Regards,
    Rachel
    Edited by: Rachel on Aug 11, 2008 7:23 AM

  • In an extended classic scenario, how can we make few purchase orders to sta

    Hi All,
    In an extended classic scenario, how can we make few purchase orders to stay local (i.e. without copying it to the back end). The decision criteria to stay local is information other than product category, i.e. using pcard and the cart value.
    Thanks
    Murali

    Murali,
    As I said usually this integration is done using ALE - IDOCs. You can find the all the configuration do be done here.
    http://www.sappro.com/downloads/OneClientDistribution.pdf
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    In this the filtering can be done at two levels.
    1. Data Filtering
    2. Segment Filtering
    Data Filtering:
    Data filtering can be done in dustribution model where you can restrict whole IDOCS or partials IDOCS to be send based on data in fields inside IDOC depending on whether the segment in which you filter is at the highest level or at a lower level. For example in MATMAS if you put a filter of E1MARCM for a particular plant , only data for this plant will go and other plants will be ignored.
    Look at BD64 where you can do the config for data filtering.
    Regards,
    Ravi
    Note : Please mark the helpful answers

  • How to find that a sales order for which there is  delivery but no goods

    Hi
    How to find that a sales order for which there is  delivery but no goods issue has been done i.e we have an open delivery for a sales order.
    How in VBUK table can we find  out with the sales order no .
    Thanks in advance

    make use of table VBFA.
    Regards
    Peram

  • How to process a Blanket Purchase order?

    Hi,
    Can you please let me know how to process a blanket purchase order received from a customer?
    Can we create a sales order based on the customer's blanket purchase order?
    Please help me out with this issue.
    Sincerely,
    Puja

    Dear Puja,
    You can create Sales Order ....with reference to Blanket / Frame Purchase Order. This Frame PO contains, Validity and Limit.
    Based on this info, you can create Blanket Sales Order.
    You can split the blanket sales orders relevant to the customer PO.
    Regards - Muralidhara

  • How to get Sales Text & Purchase Order Text in MM based on (MSEG-MATNR)

    Hi
      Am working on a Report based on Purchase order & Sales, Could any body tell How to get Sales Text & Purchase Order Text in MM based on (MSEG-MATNR).
    the Field i need to get are : SALES TEXT, PO TEXT.
    Sunil.

    Hi Sunil,
    For getting Material PO text and sales text, you have to rely on Purchase Order and Sales Order. And use READ_TEXT function module to fetch the text.
    Below are examples of PO text and Sales Text:
    1. PO text:
        CALL FUNCTION 'READ_TEXT'
         EXPORT
           ID = 'F03'
           LANGUAGE = SY-LANGU
           NAME = '450000011200010' conacte PO number and line item number
           OBJECT = 'EKPO'
         TABLES
           LINES = INT_TLINES "you will get text in this table
    2. Sales order text:
            CALL FUNCTION 'READ_TEXT'
         EXPORT
           ID = '0001'
           LANGUAGE = SY-LANGU
           NAME = '0000000036000010' conacte SO number and line item number
           OBJECT = 'VBBP'
         TABLES
           LINES = INT_TLINES "you will get text in this table
    ref: STXH and STXL tables.
    Hope it will solve the problem.
    Regards
    Krishnendu

  • HOW CAN I GET THE PURCHASE ORDER RELEASE DATE

    Dear All,
    HOW CAN I GET THE PURCHASE ORDER RELEASE DATE - any reprot is there?
    Thank you
    Ahmad

    Hi,
    u goto that PO and select Environment on top line .under that select header changes if u click on that u will get entire details who reased when released, date , time etc
    regards,
    Srinivas Kona

  • How to see the customer purchase order acknowledgement ?

    How to see the customer purchase order acknowledgement ?
    in that PO ACK where we see the UOM and Qty ?
    thanks & regards,
    Srikanth.

    hi
    Customer Purchase Order is nothing but the Sales Order in your system
    Customer Po acknowledgement is nothing but the Acknowledgement that is sent out (output type BA00) to the Customer after the Sales Order has been created.
    Note: Purchase is to Customer - Sales is to you as the Vendor.
    cheers
    Nandu
    Edited by: Nanda Kumar Veeraraghavan on Apr 1, 2008 12:11 AM

  • How can I cancel a purchase order?

    How can I cancel a purchase order?

    Contact customer support by phone or web chat.
    You are not addressing Adobe here.  The following link will give you some insight into the nature of this user to user forum:
    http://forums.adobe.com/thread/419981?tstart=0
    No one here can help you.

  • How to send a Mail purchase order automaticaly from ME22N

    How to send a Mail purchase order automaticaly from ME22N

    Hi,
    First create an entry via NACE with medium =   5 ( External send ) with all other details same as normal print option. Now ensure that vendor master of the po has got the external e-mail id of the vendor. Now go to ME22n in mesages create a message with medium = 5 ( External Send ). Go to communication method, key in Communication strategy.Go to Further date & against Despatch time pick up option 4 viz. Send immeidately while saving an application. Now once you press the save button it will be sent to the address maintained in the vendor master of the vendor of the PO. Please note you require some basic settings from BASIS side as well.
    I hope this helps,
    You may also refer to the SAP note 191470.
    Regards
    Raju Chitale

  • How Assign Costing sheet to Purchase Order?

    Dear MM,
    Please Guide me How Assign Costing sheet to Purchase Order?

    Hello,
    For costing sheet please refer the link below:
    http://help.sap.com/saphelp_45b/helpdata/en/7e/cb815e43a311d189ee0000e81ddfac/content.htm
    These Costing sheets are assigned to cost elements and then to the cost center.
    By using Account determination field in PO you can assign the category for cost center and assign your costing to PO.
    Please refer the below link for Account determination for a PO:
    http://help.sap.com/saphelp_470/helpdata/en/75/ee0de955c811d189900000e8322d00/content.htm
    Hope the solution is useful
    Regards,
    Swetha

Maybe you are looking for