How To Prevent the Purchase Order from Holding!

Hi Experts,
We use the method CHECK in BADI ME_PROCESS_PO_CUST to check custom data in purchase order, if error occurs then some error messages will be issued. We use below statements to issue error messages and also set the PO invalidate:
INCLUDE mm_messages_mac.
mmpur_message_forced 'E' 'ME' '083' text-097 '' '' ''.
CALL METHOD IM_HEADER->invalidate( ).
ch_failed = 'X'.
Actually the BADI works well. But we try to prevent the user from HOLDING the purchase order if the BADI issue the error messages. It seemd that we can not get over this problem by BADI ME_PROCESS_PO_CUST. Can any friends give me some advice on the problem?? Thank you in advance.
Joe
Edited by: Joe on Dec 1, 2010 5:31 PM

Hi Faheem,
   Thanks very much for your help. Your idea really works, but other problem occurs if we use this idea. If we issue an error message in EXIT_SAPMM06E_013 to prevent PO from being holding, all the PO data ( include header and items etc,) are cleared by program.
At last, we negotiated with users and take a non-program step to prevent the PO from being hoding.
Thanks.
Joe
Edited by: Gangrong Chen on Dec 7, 2010 10:45 AM

Similar Messages

  • How to find the Purchase Orders from Sales Order number

    Hi ...
    Is there a way to write a query to find the Purchase orders
    from the Sales Order number ....
    I have notice the table POR9 (Purchase Order - base Document)
    but it seems to be empty.
    Could you please help me to figure this out,
    Thank you very much
    Kind Regards
    Sanjaya

    hi,
                 u did mistake in selecting the table
    SELECT T0.DocNum FROM ORDR T0                 for  sales order
    SELECT T0.DocNum FROM OPOR T0                 for purchase order
    how to find the table in SAP B1.
    go to above menu view => system information. tick it(or select it)
    then below status bar u can see the table and field name.
    open the required form and just keep the  mouse cursor  on any field.
    you can see the table and field name below.
    hope now u can able to track the table name.
    regards
    sandip

  • Find the purchase order from an article delivered to a customer ?

    Hi friends; 
    How to identify the purchase order from an article delivered from stock to a sales order. I only have the customer order and material number. Are there standard report that could provide me with this information.
    Thanks in advance for your help

    Thinks for your replay.
    The stored quantities come from purchase orders.
    There is no reservation. Simply a shipment for a sales order for an item that the quantity in inventory from purchase order.

  • How to get the Purchase order Qty in the object dependency

    Hi,
    We are using variant pricing in the purchase order. I have condition type say u201CZVBPu201D for Pallet cost. I defined Pallet cost as 5 USD per each (pallet). I have to calculate Number of pallets = Purchase order Qty/ 5. The number of pallets should be rounded to nearest integer.
    My question is how to get the Purchase order Qty in the object dependency?
    Is there any reference table and field can be used to get Purchase order Qty just like we use MMCOM-VKOND for variant pricing.
    Appreciate your help
    Thanks,
    Srini

    Hi,
    1. I do not have system now so I can not conclusively tell about table field .
    2. Since I did it long back so I also do not exactly remember it, there are more than one place where PO qty appears for example Item overview and Item details - one of the PO qty when used in the characteristic do pull the PO qty which can be used for variant pricing (so request to please update the forum with the correct table and field once you find it - in the meantime if I get opportunity to get to system I will also try and find out ).

  • How to bring 'Firm' Purchase Orders from legacy system through PDOI

    Hi
    we are interacing the purchase orders from a legacy system through Open Interface i.e PDOI.
    Here i have to enable the Firm_Flag for all these PO before converting to oracle. I found that there is a column firm_flag in po_headers_interface table , but when i am populating taht column to 'Y' also, the firm flag at the PO window , by clicking the Terms button, is not reflecting.
    Please let me know why PDOI is not picking up the value at the header table. Any help is really helpful.
    Thanks
    Vyaghresh

    Vyaghresh
    Can you tell us your version?
    Thanks
    Nagamohan

  • How to view the purchase order output

    Hi all,
    how to view the purchase order output in the transaction me23n?
    How to obtain the purchase order output form?
    Please help..

    HI,
    goto NACE tcode then select the purchase order type and go to output types u cna use standard one NEU and provide the sapcript name and form name default will be there with MEDRUCK and print program.
    then in ME23n click on messages there create ur message type NEU and save it
    then print the purchase order...
    hope u get solved with this
    Regards
    Syed A

  • Partner details are not getting captured to the purchase order from the ven

    Hi,
    Issue : ( ECC PO)
    Partner details are not getting captured to the purchase order from the vendor master.
    We found that the partners are not getting captured in ECC PO's automatically from the vendor master. We checked for all the config and everything seems to be o.k, but could not figure it out.
    Any suggestions are highly appreciated.
    Regards
    Sudhakar

    Hey Sudhakar,
    I believe what is happening here is that the ECC PO document type has not been assigned to the partner determination procedure.
    If this is working properly for standard POs, then,
    Go to Partner detrmination under Purchasing>  Partner Settings in Purchasing Documents> Assign Partner Schemas to Document Types.
    and enter teh appropriate document type and refer it to the procedure you have for NB Pos

  • How to remove the approved order from the table in sapui5

    Hi Experts,
      how to remove the approved order from the table in sapui5.
    After Approving the order how to remove the order from the table in sapui5.
    Please help me.
    Thanks & regards
    chitti Babu

    Hi,
    Probelm is OBIEE on your machine.Some one might have deleted pdf option.
    Refer : http://obiee101.blogspot.com/2009/07/obiee-dashboard-default-controls.html
    Try to find out tag that is to be removed from controlmessages.xl so that you have only HTML.
    Update :
    Stop BI Server.Try removing below tag and restart server.
    (sawm:if name="enablePDF">(a class="NQWMenuItem" name="pdf" href="javascript:void(null)" onclick="return PortalPrint('@{pdfURL}[javaScriptString]',@{bNewWindow});">
    <sawm:messageRef name="kmsgDashboardPrintPDF"/></a)</sawm:if)
    Regards,
    Srikanth
    Edited by: Srikanth Mandadi on Apr 19, 2011 3:36 AM

  • Does anyone know how to prevent the YouTube volume from going up automatically?  I keep my volume down and it increases automatically when I play a video.

    Does anyone know how to prevent the YouTube volume from going up automatically?  I keep my volume down and it increases automatically when I play a video.

    Have you tried Windows Update in the Control Panel?
    Many times it will find the newest supported drivers for Hardware.
    Just be sure to install everything not just the Important ones.
    Let us know if this helps.

  • Need to find how to relate the purchase order table with account assignment

    i need to reterieve the account assignment from the table bbp_pdacc, what is field or any tables that is between BBP_PDACC and Purchase order number or the purchase order items. I am working on the SRM system

    Jacques-Antoine,
    You can't directly translate a repeating node or element (such as an Item or a Project Task from the Accounting Coding Block of an Item) to a singular node or element.
    The reason is that, though your use case may have the elements assumed to be the same for all items, this isn't necessarily the case, so ByDesign won't assume that you can use that kind of logic.
    The simplest approach would be to do an On-Save at the Root node of the Purchase Order along the following lines:
    this.projecttaskpo = this.Item.GetLast().ItemAccountingCodingBlockDistribution.AccountingCodingBlockAssignment.ProjectTaskKey.TaskID;
    i wouldn't actually recommend this code.
    You'd need validations for IsInitial, IsSet, and those kinds of functions.
    i'd at least use some foreach loop to check that all the accounting coding blocks were for the same task, raise warnings if they weren't, etc.

  • How to get the Purchase Order sample form to have 2 detail regions?

    I would like to use the "Purchase Order" sample form as the base, and add one more "detail header" and "detail" subform to it.
    So I copy and paste the "detail header" + "detail" subforms, and position them right beneath the first "detail" subform.
    It works to certain extend.  I can click the "Add Item" button(s), and it would expand the respective "detail" region.
    The problem comes when things get expanded to the 2nd page.
    Say, I first add 5 rows to the 2nd "detail" region, everything still fits in one page;
    then I keep adding rows to the 1st "detail" region, and it begins to expand to the 2nd page....
    everything in the first "detail" region can still fit in the first page,
    the rows in the 2nd "detail" region should get pushed to the 2nd page...
    but when I look at the 2nd page of the form, the "detail header" on the 2nd page is that of the "FIRST" detail header, not the 2nd detail header!!
    So, when you look at the entire form, you have
    First Detail Header
    some First Detail Rows
    2nd Detail Header
    some 2nd Detail rows
    --- end of page 1---
    --- page 2---
    First Detail Header
    some detail rows (can't tell if they belong to the first detail region or 2nd detail region)
    This obviously is not right.
    So, how do I fix it such that the Detail Header on the 2nd page is that of the 2nd Detail header???

    an update:
    I have found out that the detail rows on the 2nd page are all that of the 2nd detail region.
    so, it's like this:
    when you look at the entire form, you have
    First Detail Header
    all the First Detail Rows
    2nd Detail Header
    some 2nd Detail rows
    --- end of page 1---
    --- page 2---
    First Detail Header
    some 2nd detail rows

  • HOW TO BLOCK THE PURCHASE ORDER AND MARK FOR DELETION ?

    Hi ,
                        During the Creation of the Purchase order in the SAP System... After creation of the Purchase order should be blocked and a work item is created for the approver. If the Approver approves the Order then the Order is Unblocked and a mail send to the initiators inbox and the Order is Released. Similarly if the Approver Rejects the Purchase Order then its set for Mark for Deletion.
    I did Po creation and release part. But i am facing problem during the Blocking & Unblocking the Purchase order. If he rejects i need to set for "Mark For Deletion". plz help me to solve this...

    Hi,
    You can use bapi 'BAPI_PO_CHANGE' to change the status of PO and for release use bapi BAPI_PO_RELEASE.
    Hope this will help you.
    Smit

  • How to consider the Purchase Orders in Long Term Planning

    Hi All,
    I wanted to include the Purchase Orders of Finished Material in Long Term Planning.
    I have selected the check box "Long-term planning: include firmed issues and receipts" in the Planning Scenario  but after LTP run system is not considering the Purchase Orders of Finished Materials for Planning.
    Regards,
    Shailendra
    Edited by: Shailendra Hadkar on Apr 5, 2010 12:41 PM

    Dear,
    Could you please explain usage of purchase orders for Finished product?
    Regards,
    SAP CONS

  • How to delete a purchase order from the database

    I thought that I was in development machine but I was wrong., I have created a purchase order that I would like to delete from the database.
    Thanks in advance.

    >
    Amarnath Reddy Gurappa wrote:
    > Hi ,
    >
    > I would suggest you to put the deletion mark and save the PO .
    >
    > IF you really want to delete the po in the database  then go to the table ekko and
    > ekpo and delete them ,but for this you should have access to se16n and
    > &sap_edit
    PLEASE, do not recommend such, because it is a wrong approach.
    a purchase order has certainly more entries than jsut in table EKKO, and EKPO.  you can check in DB15 how many tables belong to the object MM_EKKO. If you delete jsut entries from EKKO and EKPO, then you create inconsistencies.
    SE16N and &sap_edit, is not anymore possible having current patches installed. SAP revoked this option, because people like you spread this thru the internet and this is causing security issues.
    A phyiscal deletion should only be done via archiving, this is the standard process.
    If you entered something in error, then set the deletion indicator, everybody can do mistakes, but deleting it with irregular options from the database is certainly a much bigger error.

  • How to get the purchase order's delivery completed date in the dictionary

    Hi consutant :
    In me23n transaction code ,I set the delivery completed indicator mannul . I can see the state of
    delivery completeed by click environment->item changes menu . But I don't find the date that I  set
    the state of delivery completed  in the abap dictionary .
    How to find that table store the date of delivery completed about purchase order ?
    thanks .

    hi
    you will get delivery date from
    eket table .
    and field name is eindt.
    how to go there. ?
    ans===>
    SELECT ebeln  ebelp  eindt          " For Delivery Date EKET
         FROM eket
         INTO TABLE it_eket
         FOR ALL ENTRIES IN it_ekpo
         WHERE    ebeln = it_ekpo-ebeln
          AND     ebelp = it_ekpo-ebelp.
    reward point if its usefull.

Maybe you are looking for

  • MacBook Pro has been acting up for a while.

    My MacBook Pro started acting up at the beginning of this year. The first thing I noticed was a clicking noise that came from the top left corner. It wouldn't happen often, but over time it started to happen more frequently. Then, a few months later,

  • Uploading files takes a long time

    And when I say long time, I mean a ridiculously long time.  Hours at least.  Sometimes I have to leave my laptop on overnight to upload one song.  I know downloading fast is more important, but for music I make myself or friends make it just takes FO

  • Webhelp RH8: TOC book not linking to topic

    Hi (again), I seem to have another little issue. In generating our helpsystem, we would like to have books that display general information when clicked and also display the subsequent topics. That all works fine, I link a topic to the TOC book and i

  • How Do I convert to adobe for application from email attached

    How do I convert to PDF file to type the application form .

  • Reports output as mail

    Dear Oracle gurus, when i choose to send oracle report in mail format it generates an .eps file. kindly help me how to open this file. thanks