IDOC_INPUT_PORDCR1 - Stop PO creation based

Hi ,
We are using the standard process code IDOC_INPUT_PORDCR1 to create  PO using IDoc. If a PO line item is repeated in more than one segment we want to display the error message in the status records and to halt the PO creation. We are using the user exit of EXIT_SAPL2012_001 and we could display the error in status records of the IDoc but it creating a PO. Is there any way to stop the PO creation?
Regards,
Charumathi

Hi,
If you look at the code of this function module, it is directly calling a BAPI to create the PO. So if you call this function module directly in some custom program and pass all the IDOC segment details to it, then the IDOC will not be created. It looks like this is called post-Idoc creation in a normal EDI scenario.
Srinivas

Similar Messages

  • Stop Automatic creation and confirmation of Transafer Order for a doc type

    Hello All,
    There is a requirement that I need to stop Automatic creation and confirmation of Transafer Order for a particular document type.
    The issue is that sometimes the cycle goes upto creation of Invoice automatically but sometimes this does not happen. More over the user wants that the transafer order needs to be confirmed manually.
    Can u please provide the .steps involved for thie case.
    Thanks
    Chandrashekhar

    Dear Steve,
    Thanks a lot for giving reply with what I need to do, but I am unable to see result.
    I have down configuration like below even though system not processing Auto TO creation. Can you explain me if I have down any mistake below.
    Click on ‘Assign’ button,
    Press on ‘New entries’
    WhN = ‘900’
    Reference Movement Type = ‘101’
    Movement indicator = ‘B’
    Movement type for Whse Mgmt = ‘101’
    TR create Transfer Requirement = ‘X’
    Immed.TO Creation
    Mail confirmation for background processing = ‘01’.
    GR date = ‘2’

  • Duplicate material entry at the time of PO creation based order type

    How Restrict duplicate material entry at the time of PO creation based on define order type.
    Moderator message: please do some research before asking.
    Edited by: Thomas Zloch on Mar 11, 2011 1:45 PM

    Hi Rahul,
    try with This Badi  ME_PROCESS_PO , Method Open or Process item,
    Implemente it and use a break-point to test it i.e it is triggred or nt , before processing it.
    Regards,
    Abhisek

  • Delivery Creation based on Backdate stock

    Hi
    Could anyone advise the procedure to have the delivery creation based on the back dated stock.
    IN DETAIIL detail The system should be able to allocate stock in sales order shedule line item based on the back date of last week (example) stock avilablity,  though today no system level inventory due to goods movement.
    Appreciated if could advise in detail.
    Regards
    RG

    Provide with an example.
    At present system checks the stock which is posted in backdate,
    To determine confirmed delivery date, Backward scheduling performed first , if not derived the req del date, then system does forward scheduling- which is a std functionality
    Regards,
    Reazuddin MD

  • How to stop PR creation from PM work order for a particular vendor?

    Hello Experts,
    We have following scenario for breakdown maintenance activities.
    When a machine breaks down, a breakdown order is created in SAP. The external manintenance services are planned in the order. When the order is released, a single PR (with multiple item numbers corresponding to number of services) is created by SAP. The PR has a release strategy. When PR is released, PO is created followed by the SES.
    The practice followed AS -IS for breakdown outside business hours:- If the breakdown happens outside business working hours, the person releasing the PRs is not available & hence PR can not be released resulting in no PO & no subsequent SES.
    In this case, the maintenance is completed by the external agency & the work order is TECO. The next day, TECO is reveresed, new PR is created, released, converted into PO, & then SES.
    TO-BE process:- Client expects that, for certain vendors identified, PR should not get created at all from the breakdown order. (The list of  vendors will be maintained seperately). For these vendors, a framework order will be created at the start of fiscal year & SES will be created as & when required agaainst the framework order.
    My concern is :- How to stop PR creation from PM work order for a particular vendor? OR delete the created PR?
    Highly appreciate your quick response.
    Thank you.
    Amit
    Note:- My ABAP consultant has checked following BADI's, but could not find it useful.
    IWO1_ORDER_BADI
    ORDER_COSTING_CK
    DATA_EXTENSION_CK
    VALUATION_CK
    ME_REQ_OI_EXT
    IWO1_PREQ_BADI
    ME_CHECK_SOURCES
    ME_REQ_POSTED
    IWO1_ORDER_BADI

    Dear Amit
    I am giving a different dimension to your question check if it fulfills your requirement -
    As we know Vendor selection comes at a later stage only after your PR creation, approval & RFQ etc. & PR generation from maintaine. order is controllled through control key PM03.  While triggering PR from order you have to specify Material group, Purchase group and vendor. Try to control it through authorisation as all these are authorisation objects. The persons executing breakdown order shall no t be given this authoriations
    shakti

  • Block sales order creation based on material qty

    Hi,
      In my scenario i want to block the sales order creation based on material qty , how i can do this?
    Example:
    Material qty below 100 = able to create sales order
    Material qty above 100 = not able to create SO
    Thanks,
    Arun

    Hi
    For restricting the order if it is less than a specified qty, you can maintain the 'min order qty' in material master.
    But your requirement is the other way round - Restrict order if it is more than specified qty.
    In this case, you need to use the following sales order exit  in progran MV45AFZZ
    u2022     USEREXIT_SAVE_DOCUMENT_PREPARE
    Use this user exit to make certain changes or checks immediately before saving a document. It is the last possibility for changing or checking a document before posting.
    The user exit is carried out at the beginning of the FORM routine BELEG_SICHERN.
    Hope this helps.
    Regards
    Madhu

  • Is it possible to stop reservation creation in PM Order?

    Hi All,
    Is it possible to stop reservation creation in PM Order?
    Thanks in advance.

    Hi
    It is not possible to stop reservation creation,you can only make the reservation valid for GI after release
    regards
    thyagarajan

  • Stop auto-creation of Assoc when creating Entities

    How can we stop auto-creation of Assoc files when creating Entities?

    Hi Varshal,
    Thanks for the suggestion.
    However, we thought of an alternate method that does involve changing the customers existing business process.
    1) Change the field AUDISP in the network profile to 1 "Never" for the conversion.
    2) Migrate the data. Program will create Networks, Activities & Components with the field AUDISP set to "Never create Reservation or Purchase Requisition".
    3) Change the field in AUDISP in the network profile back to "2 From Release".
    We will have to get the users to clean-up their data (close outstanding PRs or convert those PRs to POs) before this exercise for a clean cut-over.

  • Automatic lot creation based on time Frequency

    Hi,
    For 01 inspection incoming inspection ,
    F or  certified vendors, without inspection , material is getting posted to UUS without lot creation. ( QI info record settings).
    but for this case , business requirement is to get automatic lot creation based on time like 6 months once .
    Automatic lot to be created for this certified vendor on time frequency basis. how to trigger this Lot creation based on time.
    Help.
    VV.

    Hi,
    In std SAP we dont have option of generating Automatic lot creation based on periodic basis. But we can provide some workaround soultion.
    Option 1:
    USe Source Insepction concept. Here Inspection lot will be created for every P.O. Here u can relase P.O line items in QI07 which can sceduled in Job planning on periodic basis. Use Skip inspection lot concept to skip unwanted lots. This has direct relation with Q-Info record.
    Option 2:
    U can generate automatic lot creation based on Stability study concept. Here are the following steps
    Initiate Stablility study
    Create Initial sample
    Perform intial test
    Confirm initail sample
    stability planning
    Define storage condition
    create testing schedule
    store stability sample
    define cycle start
    schedule
    complete stability study.
    Option 3:
    To get Automatic lot creation u can use BAPI QPL1_INSPECTION_LOT_CREATE . When a due date come for inspection,it created a lot of 01 / Z-01 inspection type automatically through QA01( call the program ,enter the inspection lot origin & material,vendor & save). Create Z-T code which has vendor material plant combination.
    Execute the above T-code based on Periodic basis.
    Explore above 3 options and choose best one according to ur requirements.
    Edited by: Lokesh K on Oct 12, 2010 11:27 AM

  • How to Flag Customer to Stop Quote Creation

    Suppose I have a customer that I have been doing business with for some and they currently have open orders that need to ship and invoice. We also have payements outstanding that we need to receive from the customer.
    For specific reasons, we no longer want to allow future ORDERS and QUOTES for that customer. What are the best methods for stopping the creation of Quotes and Orders for this specific customer?
    On the OM-side, it seems like the "Credit Hold" flag on the customer would be useful. On the ASO Quoting side, the Credit Check is not performed until the order is submitted. Any other good ideas on how to handle this scenario -- especially as it relates to holding the creation of Quotes?
    Thanks,
    Jason

    Hi Jason,
    Possible options:
    You could setup Quote Status that would require Approval before it can be transitioned to an order.
    Or use Quoting Hook for Credit Check, ASO_CREDIT_CHECK_PUB (asopqccb.pls)
    R12: Oracle® Quoting Implementation Guide Release 12.1 (Part No. E13462-04)
    Chapter 4 Implementation Tasks for Oracle Quoting, page 4-3
    See detail on Quoting Hook for ASO_CREDIT_CHECK_PUB (asopqccb.pls)
    page 4-29 Setting Up Credit Check Functionality
    11i: Oracle® Quoting Implementation Guide Release 11i (Part No. B12388-02)
    Chapter 4 Oracle Quoting Implementation Guide, page 4-2
    See details on Quoting Hook for ASO_CREDIT_CHECK_PUB (asopqccb.pls)
    page 4-42 Setting Up Credit Check Functionality
    Thank You,
    Deborah Bourgeois, Oracle Customer Support

  • GTS Stop delivery creation for blocked sales orders

    We implemented Note 579357 to stop the creation of deliveries when sales orders are blocked and everything works correctly except for rush orders (order type SO).
    After the note was applied, deliveries are not automatically created for rush orders even though the orders have gone thru screening in GTS and have been released.  Any solution to this problem???

    Dear GTS experts,
    I'm facing exactly the same problem with rush orders that Sammy Chan describes in his original post.
    I checked all replies but I have still no idea to solve this issue. The problem is that when creating the delivery during a rush order creation at the time the system reaches the copy condition with the implemented coding there is no order number available to check against in GTS.
    As the whole thread is marked as answered I hope someone can help me.
    Best regards,
    Ulrich

  • Stop PO Creation

    Hello,
    I'm trying to stop PO creation upon Vendor check failure in ME21N transaction. After the user clicks "Save" button, the Vendor check needs to be done and on failing, no PO should be created. An error message displaying the reason should be triggered.
    I tried applying break-points in ME_PROCESS_PO_CUST~POST, EXIT_SAPMM06E_013. The program breaks at these break-points, however the PO is still getting created.
    Any inputs? Thanks in Advance.

    Hello Sakthi,
    I have added my validation in User-Exit "EXIT_SAPMM06E_012".
    Below is the sample code:
      IF sy-tcode = 'ME21N' OR sy-ucomm = 'MESAVE'.
        IF i_ekko-bsart = 'XYZZ' and i_ekko-lifnr = 'P123456'.
               MESSAGE e000(zm001) DISPLAY LIKE 'E' WITH 'Vendor' i_ekko-lifnr 'is not allowed for Document Type' i_ekko-bsart.
              RETURN.
         ENDIF.
    ENDIF.
    In place of "MESSAGE e00......" you could use below macro :
    mmpur_message_forced 'E' 'ZM001' '000' 'Vendor is not allowed for Document Type'.
    This macro is used to give soft error message. I tried with "A" instead of "E" message type too and it didn't work. It will trigger a pop-up window with "Save", "Edit" and "Cancel" buttons. If user clicks on "Save", it would create a PO. In my case I did not want the PO to be created, incase validation fails. So I did not use macro. My sample code triggers a pop-up window with "Hold", "Edit" and "Cancel" buttons. Hence a PO is created with Parked status.
    Thanks,
    Siri

  • Stopping PO creation using Status profile

    Hi,
    We are using status profile to release orders.In the case of third party item, we need to stop po creation.Even though i forbidd PO generation in status profile, po is generating for third party items.How to solve this issue?

    Did you tried to control this with transaction control in BS02? Use object type VBK Sales order header and transaction control create PO.

  • Restrict Info Record Creation Based on Material Type

    Dear colleagues
    I would like restrict material info record (ME11) creation based on given materialsu2019 material type (MARA u2013 MTART). Is it possible such control? If yes, can you please provide the way?
    Best regards

    Dear AP,
    Unfortunately I wasnu2019t able to find any user exit, badi or etc. That's way I need to post the question to the forum. Before providing any answer please consider that no question is post without any research and give the audience specific, to the point answers not such irrelevant ones.
    Thank you

  • Stop delivery creation for perticular Storage Location

    Dear Experts
    As per scenario we have two storage location 1) packing stock and 2) Ware House stock. All delivery are create from Ware house st.loaction.as per requiremnt we want to stop Delivery creation for Packing St.location.
    Is ther any customization through which System should not Create Outbound delivery form Packing St.loaction,while doing this  rest of things sholud not affect for that S.Loaction
    Regards
    Pash@SD

    Go to SPRO-> Logistics Execution ->shipping ->picking->determine pikcing location ->assign picking location.
    Here you can remove the packing stock storage location assignment to plant/shipping point/storage conditions combination and then test.
    If this does not work, then check the path SPRO-> Logistics Execution ->shipping ->picking->define picking requirements. Here check any requirements is currently used. If so copy this routine and create a new routine to exclude the storage location (packing stock) from picking process.
    Regards,

Maybe you are looking for

  • My iPhone 4 can not be read by my JVC car radio after upgrading to 5.0

    My iPhone 4 has always worked with my jvc radio until I went to 5.0 radio just says cannot read and phone says cannot playI whish Apple would fix this problem.

  • Firefox doesn't work correctly with Office Live and Hotmail.

    I have recently installed a Office Live update. When i click on a file to edit I get amessage popup saying "To complete installation of the Office Live Update, close all browser windows and then open your browser again." I have done this several time

  • How to convert excel data into OTF and FAX

    Hi All, We have a requirement where in we have a smartform output (OTF data) converted into PDF, and an excel sheet, both being sent as email attachments. Now, we need to send the content of both the attachments as FAX. Since smartform output was OTF

  • Can we force queries to execute in Sequence?

    Hello all, We are at BOXI 3.1/SP2 version. One of our complex webi reports has data from multiple queries ( They are all from the same universe, so same data connection. It's an OLAP universe). I have this question 1. When i click "Run Queries" - do

  • Debit memo and Invoice reference

    Hi dear all, Please help me with the following situation. I am creating a billing document - Debit memo- with reference to an other docuemnt - Invoice. However, in the accounting document the nvoice reference is not filled and all the data are not co