Lock object for Purchase Order

Dear Experts.
I am searching the function module "ENQUEUE_   " , which is for locking & Unlocking
the Purchase order(ekko-ebeln).
Please help me.
Thanks in advance,
Regards,
Rahul.

Hi,
Use the Lock object EMEKKOE to Lock and Unloack the Purchase orders
Use this FM to lock
MM_ENQUEUE_DOCUMENT
This is also used in the standard program. While enqueing,
if there is any error (sy-subrc 0), then it means,
that particular purchase order is already locked
Use Fm DEQUEUE_ALL to release all lock at the end of report execution.
Regards,
Shamma
Edited by: Shamma Firdous on Aug 20, 2009 10:22 AM

Similar Messages

  • Authorization Object for Purchase order Message control

    Hi ,
    Is there any stadard authoriztion object to control the print and print preview options for Message control .
    I am requied to control the print and print preview options for purchase order messages for certain users depeding on there authorizaion.
    Thanks in advane.

    Hi,
    When you click on the 'print preview' button on ME22N/ME23N the system
    makes an authority check on transaction ME9F activity 04. The current
    logic forces the print preview functionality to be accessed ONLY by the
    users who print. Therefore, only users that have authorization to use
    ME9F are authorized to use the Print Preview button in ME22N/ME23N.
    Kindly try the authorization objects M_BEST_EKG, M_BEST_BSA and
    M_BEST_EKO = 04.
    You can
    also have a look the  user exit
    EXIT_SAPLMEDRUCK_001 in enhancement LMEDR001 for print program
    SAPLMEDRUCK.
    INCLUDE ZXM01U04
    you can create own coding for all possible AUTHORITY-CHECK.
    BR
    Nadia Orlandi

  • Business Object For Purchasing Order Item

    Hi All
    I want to create event for every change in Purchase Order in the field Delivery Date
    For that I am looking for business object in SWO1
    Thanks in Advanse

    Hi,
      Check the Business Object BUS2012.
    Regards,
    Vara

  • Authorisation object for Purchase order release codes

    Hi,
    Can anyone let me know the authorisation object to be used for the PO release codes to be assigned in the ME28 and ME29N for the users.

    Hi,
    Release code and groups detials for the PO authorisation is as follows.
    M_EINK_FRG Release Code and Group (Purchasing)
    FRGCO      Release code
    M_EINK_FRG Release Code and Group (Purchasing)
    FRGGR      Release group
    Regards,
    Sakthi

  • Predefined object type for Purchase order release stratergy

    dear experts,
    There are already predefined object type for purchase order like bus2012 where i can create new events and methods. I want to know is there any predefined objects for purchase order release strategy. The requirement is there i want to define method, that should display the po release screen. If i bind this method with work flow template, mail should be triggered and if i click the mail po release screen should be opened for respective material...
    regards,
    Kandhan G

    Hello
    I'm using the BUS2012 Object type in workflow task but in simulation the task run correct but in the transaction when modify a purchase orden the task send an error...
    maybe the error is similar...did you solve this problem?..
    Thanks!
    Wladimir E.
    [email protected]

  • Urgent : Workflows for Purchase Order

    hi,
           My requirement is to make workflows for creation of Purchase Order.i,e Whenever a PO is made in the system,one mail should be sent to the concerned person for approval.I came across object type BUS2012 which is for Purchase Order but it's event list does not contain for "creation".How to approach for the same or any other solution.
    Thanks and Regards,
    Gaurav

    Hi,
    Standard Workflow for Purchase Order is WS20000075(Access it via PFTC_DIS Tcode). The business Object for Purchase order is BUS2012(access it via SWO1 Tcode).
    http://help.sap.com/saphelp_47x200/helpdata/en/75/ee153f55c811d189900000e8322d00/frameset.htm
    Regards
    Kiran Sure

  • Updating Batch classification data from MIGO for Purchase order

    Hi,
    I need to update batch classification data (in MSC3n) from MIGO for purchase order. The logic needed for this is as below,
    1) Pass material and batch to MCH1 table to get CUOBJ_BM.
    2) Pass CUOBJ_BM to INOB table to get INOB-OBJEK.
    3) Pass INOB-OBJEK to CLAF_CLASSIFICATION_OF_OBJECTS to get class name & characteristic name.
    4) Pass INOB-OBJEK, CLASS name and characteristic name to BAPI_OBJCL_CHANGE to update batch classification data.
    I created implicit enhancement at the bottom of FM "CLVF_VB_INSERT_CLASSIFICATION". But the problem is, the return parameter of BAPI_OBJCL_CHANGE is giving the following error.
    Class type 023, object type MCH1, object RAW-6             0000001151
    Object is currently locked by user
    The assignment was not changed
    Please let me know how to do it. Is there any BADI or User Exit?

    Hi,
    As you said the break point is not triggering did you activate your exit and activated even the project to which your exit is assigned.
    I hope you missed activating your project in CMOD transaction. Please verify it once and if it is not activated then immediately activate it and try debugging again.
    Regards,
    Rafi

  • Use of SAVE_TEXT in customer exits / BADI for purchase order

    Hi All,
    I am trying to save some long text by using SAVE_TEXT function module in a badi implementation for purchase order header text. The same is working fine if i try to update the PO header text via a report. But if i try using badi (the code is written in a PAI event for the BADI), then though the text transfer and save is successful during the code excution, but for the first time when i add any text its not visible in ME22N tcode. Since its an online event. But when i double click on that editor and the sap script editor gets opened. then i press back button, the text is appearing on the same small screen edtor . after this any number of time i edit or delete text, the save_text function module works fine.
    My issue is why for the first time always i have to double click on the editor to open the sap script editor. I have also included commit_text in this case after save_text FM.
    the requirement here goes like this. in one tab for PO header the user will enter some number (This is a customizing screen implemented through badi.) and the corresponsing discription should appear when user clicks on text tab in po header screen (me21n / me22n).
    Kindly help.
    Thanks
    Mamata

    Hi  mamata rath
    I have solve the problem which similar to yours.  the code which is as the following
    DATA: textline TYPE tdline,
            name TYPE c LENGTH 70,
            glines TYPE TABLE OF tline,
            gline  LIKE LINE OF glines,
            ls_header TYPE thead.
         CONCATENATE ch_eban-banfn ch_eban-bnfpo INTO name.
             ls_header-tdobject = 'EBAN'.
             ls_header-tdname = name.
             ls_header-tdid = 'B01'.
             ls_header-tdspras = sy-langu.
             CALL FUNCTION 'SAVE_TEXT'
               EXPORTING
    *           CLIENT                = SY-MANDT
                 header                = ls_header
    *           INSERT                = ' '
    *           SAVEMODE_DIRECT       = ' '
    *           OWNER_SPECIFIED       = ' '
    *           LOCAL_CAT             = ' '
    *         IMPORTING
    *           FUNCTION              =
    *           NEWHEADER             =
               tables
                 lines                 = glines
               EXCEPTIONS
                 ID                    = 1
                 LANGUAGE              = 2
                 NAME                  = 3
                 OBJECT                = 4
                 OTHERS                = 5
              IF sy-subrc = 0.
                  CALL FUNCTION 'COMMIT_TEXT'
                    EXPORTING
                      OBJECT                = 'EBAN'
                      NAME                  = name
    *                ID                    = '*'
    *                LANGUAGE              = '*'
    *                SAVEMODE_DIRECT       = ' '
    *                KEEP                  = ' '
    *                LOCAL_CAT             = ' '
    *              IMPORTING
    *                COMMIT_COUNT          =
    *              TABLES
    *                T_OBJECT              =
    *                T_NAME                =
    *                T_ID                  =
    *                T_LANGUAGE            =
              ENDIF.

  • Problem in creating a SyncBo for Purchase Order BAPIs

    Hello Everybody,
    I am trying to create a smart sync application for Purchase Orders.
    I have used standard bapis like BAPI_PO_GETDETAIL AND BAPI_PO_CREATE1.
    I have developed my own wrapper functions using these std bapis. For the PO creation i only plan to insert the necessary and mandatory data. The problem i face is that some of the tables in the create bapi which are mandatory for a PO creation are freezed in the SyncBo.
    Tables like POITEMX, POADDRDELIVERY, POSCHEDULE and structure POHEADERX are all required for the creation of a PO. Without this minimum data a PO cannot be created.
    After i have created the syncBo, on the mapping screen i can only see these tables under the create BAPI. But i am not able to perform the mapping of their fields. These are non-editable or i must say that they are freezed.
    And if i cannot map them then i cannot pass data for them from the client. Although i can do the mapping for the table PO_ITEM and the structure PO_HEADER.
    I hope i am able to expplain my problem. Kindly get back to me if i am not clear. Any sort of help is welcome.
    Thanking in advance,
    Saurabh.

    Hi Saurabh,
    Hope you are aware of the prerequisites for creating the BAPI Wrappers.
    If you want to insert some data into the Business Object, then you have to include
    GETLIST, GETDETAIL and CREATE Bapi Wrappers.
    I think in your case,
    You might not have mapped those fields in your GETLIST Bapi Wrapper.Just check whether you have mapped those fields that are necessary for PO creation in your GETLIST and GETDETAIL BApi wrapper mapping screen.
    Those fields you have mapped in the GETLIST and GETDETAIL BAPI wrappers will be visible (for selection - checkboxes will be editable) in the mapping screen for CREATE BAPI Wrapper.
    So first of all, you have to map fields there in the mapping screens for GETLIST and GETDETAIL Bapi Wrappers...
    check this thing...
    refer these links..
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/com.sap.km.cm.docs/library/mobile/mobile%20infrastructure/mobile%20development%20kit%202.5/content/appdev/smartsync/introduction.html
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/com.sap.km.cm.docs/library/mobile/mobile%20infrastructure/mobile%20development%20kit%202.5/content/appdev/smartsync/bapi_wrapper_types.html
    In the second link, you can see one figure, which is explaining the things that are to be satisfied by the BAPI Wrappers for SyncBO creation...
    Let me know If you have doubts in the prerequisite section itself...
    Regards,
    Kishor Gopinathan

  • User exit or BADI for purchase order

    Hi,
    I want send outbound IDOC for purchase order to 3rd party integration system.
    It is too hard to map between standard purchase order IDOC and business object of 3rd party system because the structure of standard purchase order IDOC is so complicated.
    So I want bring purchase order data into CBO table when purchase order is created or released. And this data will be inserted CBO IDOC for more simple structure than standard one.
    I'm trying to find some of user exit or BADI to insert from standard purchase order to CBO table in the time of purchase order is created or released.
    And I'm trying to find another way using message type.
    As far as I know it is possible to set sending IDOC in the purchase order message type setting in IMG.
    Is anyone who has related situation or know the way to do this?

    Hi,
    I have similar requirement, however the BADI name you mentioned does not exist.
    Pls let me know the right one.
    Thanks,
    Dipak

  • What is Tcode for purchase order and purchse requisition.

    HI all
    What is Tcode for purchase order and purchse requisition.
    Thanks

    Hi Melanie,
    How are you trying to check for the PR number? Are you accessing it via Portal (IE) or the GUI?
    If you are trying to get the PR number for a SC through Portal. Then please follow the below process.
    Go to the SC > Related Documents tab
    The related Documents tab should have all the follow-on document number along with the type of document.
    If you are trying to get the PR number for a SC through GUI, then:
    Go to transaction BBP_PD in GUI > Give the Object Types as BUS2121 and the Object ID as the SC number and click on F8.
    Once you have opened the SC then scroll down till you get the Header Links and click on the line.
    This should display the document that is linked to the SC.
    Hope this helps.
    Regards

  • Debugging EDI output (IDOC creation) for purchase order...

    Hi,
    We have a EDI output type defined for Purchase order. When I go to Messages tab in ME22N transaction and repeat the EDI output and save it, it creates a IDOC which I can see using transaction WE02.
    Now the problem is there is a user exit which I know gets triggered, when the IDOC is created for this PO. When we do some changes in this user exit, I see those changes are reflected when new IDOC is created. But if I put breakpoint, and do repeat output -> save, the debugger does not stop there.
    Is there is some technique I can see the breakpoint stoppage in user exit for IDOC creation during EDI output for Purchase order ?
    Regards,
    Rajesh

    Hi
    Youc can set the output Peridoically (After Giving the output type, set the furthere data as periodic).
    Save.
    Set the break point in your user exit.
    Go to se 38 -> Run RSNAST00,
    Give the object id (Your PO #)
    Give the output type  and execute, the control will stop at break point.
    Regards,
    Baburaj

  • Email Alert for Purchase Order Release

    Hi,
    When a PO is subject to release I would like an external email to be sent to the relevant user as per assignments in config.
    I have used standard workflow for PO release and this is working with no problems, alerts successfully going to the workflow inbox.
    But does anyone know the steps to configure the standard workflow so that an external email is sent?
    Thanks

    hi
    WORKFLOW FOR PO RELEASE PROCEDURE
    Steps involved are :
    1) SPRO > MM > Purchasing > Purchase Order > Release Procedure for Purchase Orders > Define Release Procedure for Purchase Orders > Release Codes > here assign Workflow indicator as "1" against each Release Code
    2) SPRO > MM > Purchasing > Purchase Order > Release Procedure for Purchase Orders > Define Release Procedure for Purchase Orders > Workflow > Here against each release code assign OT as US and respective User ID's for Release Codes.
    3) Go to OOCU > here under MM, go to MM-PUR,
    4) Click on "activate event linking"
    5) Go for "WS 20000075" and for BUS2012 RELEASESTEPCREATED, click on Detailed view button. Activate "Event linkage activated" and also activate "Enable usage of event queue"
    and Save.
    6) Click on "Assign agents" and proceed all above steps.
    BUS2012 is the relevant business object and Releasestep created is the event for the same.
    7) Check SWETYPV transaction for the WF you have activated for BUS2012 and confirm.
    Test the same by creating a PO and check the SBWP for SAP Mail of respective Users
    regards
    KI

  • Determine classname & classtype for Purchase Order?

    Hi All
    I'm completely new to SAP, apologies in advance.
    So I'm trying to create a external document url against a purchase order via a BAPI.
    Looking at this thread [FM to create external document(URL)|FM to create external document(URL)]  BDS_BUSINESSDOCUMENT_CRE_O_URL is the one to use.
    First question: is that correct?
    The BAPI takes as inputs CLASSNAME and CLASSTYPE which Im assuming are used to identify that this is being attached to, in this case, a PO.
    Second question: Is that correct and if so how do I find out what these values are for a Purcahse Order and other objects in SAP?
    thanks

    Hi Jonnoking,
    1) Function module u201CBDS_BUSINESSDOCUMENT_CRE_O_URLu201D is correct to u201CCreate External Document (URL)u201D
    2) To find u201CCLASS NAMEu201D & u201CCLASS TYPEu201D values for Purchase Order or any other objects below are the transaction codes where it is maintained:
    a) Transaction Code : SBDSV1 - Maintenance View for BDS_LOCL Transparent Table
    b) Transaction Code : SBDSV2 - Maintenance View for BDS_CL_DOC Transparent Table (Here you can search the CLASS NAME & CLASS TYPE with the help of DOC_TYPE like u201CMEOORDERu201D for purchase order & other needful objects like INVOICES)
    c) Transaction Code : SBDSV3 - Maintenance transaction for V_BDS_CL View (Itu2019s a view of tables - BDS_CLASS & BDS_CLASSL)
    3) Transparent Table References:
    a) BDS_LOCL  - BDS: Assignment of Application Classes to KPro Doc. Classes
    b) BDS_CL_DOC - BDS: Class Definition
    c) BDS_CLASS -  BDS: Class Definition
    d) BDS_CLASSL - BDS: Language Table for Class Definition
    Please find below link for your further reference :
    http://www.architectsap.com/blog/sap/sap-bds-business-document-service-for-storage-of-documents-and-attachments-in-sap-ecc/
    Best Regards.
    Sudhanshu Garg

  • Authorization object for purchasing

    Hi Sap gurus,
    Can someone tell me please how I can find suitable authority check object for purchasing? I created report for purchase orders history and now i would like to implement also authority check. I would like to check authorizations for purchasing groups, cost centers, orders types...
    Do you have any example? Where to put this authority check into the program?
    Thanks in advance, points granted,
    BR
    Saso

    hi,
    for purchasing grp object is: M_BEST_EKG
    put authority check after selection screen
    write
    at selection-screen.
    perform authority_check.
    form authority_check
    AUTHORITY-CHECK OBJECT 'M_BEST_EKG'
             ID 'ACTVT' FIELD '03'
             ID 'EKGRP' FIELD pr_ekgrp.
    if sy-subrc <> 0.
    error msg.
    endif.
    endform.

Maybe you are looking for

  • 10g performance issue + RAC

    Hi, we are running oracle e-business suite 111 with 10g database and RAC. Please let us know what can be tuned, following is a AWR report statistics: Snap Id Snap Time Sessions Cursors/Session Begin Snap: 2904 20-Jan-09 08:30:17 362 55.3 End Snap: 29

  • Index in Query inside Stored procedure

    How to put a index on Select query inside a stored procedure.Please help me on below to write a index Coalesce ((select sum (ICD.mAmount) from ItemCommonData ICD (Index(PK_ItemCommonData)) Join ItemsInBundle IIBun on (ICD.iBundleDocId = IIBun.iBundle

  • Customer Check Returns

    Hi Team, When Customer checks bounce in Bank statement we see two entries. In Bank statement First, Credit amount, and with the same amount Debit.  and Bank Charges. Now my question, Is there any standard process to track in SAP. Like Example if we w

  • Trouble with touch screen

    I own a Photosmart Premiyn c309g   it's a touchscreen-well it's supposed to be!  Quite often I can't get it to touch on; which means I can't access the menu and thus can't copy or scan.  Also, the on/off button has never worked.  Not sure if any of t

  • Dynamic Columns in UWL  from the NWBC 3.0?

    Hi  People Is there anyone that know how to change the UWL so it uses Dynamic Columns for Worklist . I know that it is possible to do this in the portal by changing the XML's to the UWL. But at the moment i am trying to get this to work from the NWBC