USEREXIT AT  PO CREATION LEVEL

Hi Gurus,
Is their any user Exit at PO creation level to check PR and from their to Sales Order and stop PO creation.
My requirement 3rd party sales orders are getting creation and PR getting created based on PR we are creating PO , at the time of creating PO system should Check PR and from ther it should check Sales Order. if any sales Orders is incomplete. then don't create PO.
Regards,
Seegal

Should be possible using BADi ME_PROCESS_PO_CUST

Similar Messages

  • Re: Userexit during PR creation

    Hi,
      What userexit that i can use to control the account assignment in the Purchase requestion (ME51)
       to be all same?
       Eg. PR 10001 all line item should contain EBAN-KNTTP='K'
       If there will be different account assignment in one of the line item, error message will be prompt 
       and transaction will not be save..
    Thanks in advance.
    She

    Hi try this. Actually this will have control for purchase group, account assignment etc . Check  for urs and revert.
    METHOD IF_EX_ME_PROCESS_REQ_CUST~CHECK.
      DATA: IT_WF_TB TYPE ZWF_PO_SD_ALL.
      DATA: RE_ITEM TYPE MMPUR_REQUISITION_ITEMS ,
         RE_ITEMS2 TYPE MMPUR_REQUISITION_ITEM.
      DATA: ITM_DATA TYPE MEREQ_ITEM.
      DATA: X1 TYPE EBAN-BSART.
    DATA: X2 TYPE EBAN-BANFO.
      IF SY-TCODE = 'ME51N' OR SY-TCODE = 'ME52N'.
        CALL METHOD IM_HEADER->GET_ITEMS
          RECEIVING
            RE_ITEMS = RE_ITEM.
        LOOP AT RE_ITEM INTO RE_ITEMS2.
          CALL METHOD RE_ITEMS2-ITEM->GET_DATA
            RECEIVING
              RE_DATA = ITM_DATA.
          IF ITM_DATA-BSART = 'NB'
            IF X1 IS INITIAL.
                X1 = ITM_DATA-EKGRP.
              ENDIF.
              IF X1 = ITM_DATA-EKGRP.
                X1 = ITM_DATA-EKGRP.
              ELSE.
                MESSAGE 'Service Items of Different Approval Level, Create Separate PR for Different Approval Level' TYPE 'E'.
              ENDIF.
            ELSE.
              MESSAGE 'Change the Purchasing Group ' TYPE 'E'.
            ENDIF.
            IF ITM_DATA-KNTTP = 'F'.
            ELSE.
              MESSAGE  'KINDLY USE THE ACCOUNT ASSIGNMENT AS ( F )' TYPE 'E'.
            ENDIF.
          ELSEIF ITM_DATA-BSART = 'NB'
            IF ITM_DATA-KNTTP = ' '.
            ELSE.
              MESSAGE  'KINDLY USE THE ACCOUNT ASSIGNMENT AS BLANK' TYPE 'E'.
            ENDIF.

  • Need Badi or UserExit during Delivery creation

    Hi,
    I have a requirement to create PGI automatically after delivery is created.
    So i am looking for Userexit or BADI which is called immediately after delivery is created so that I can used delivery number and call logic to create PGI.
    I have searched the sdn for same requirement but the badi LE_SHP_DELIVERY_PROC or BADI DELIVERY_PUBLISH and user exit MV50AFZ1 wont suffice .
    Please suggest.
    Thanks & Regards,
    Swapnil.

    Hi,
    to check which BADI are presents during the execution of your trx, just put a break point in the method "get_instance" of the class "cl_exithandler".
    Watch the "sxs_inter" variable (that contains the name of the BADI interface).
    Run the trx and just watch what u can implement.
    Hope it helps
    Bye
    Andrea
    Pls reward if it helps

  • Credit Check at Sales Order Creation  & Delivery Creation levels

    Hi
    I am using Dynamic Credit check, Assigned  credit group (with block) in OVAK for Sales Orders and for delivery types also assigned credit group.
    Issue is while creating Sales Order system is doing dynamic credit check and blocking the sales order but delivery block is not happening, then i am releasing block in VKM3. but while creating Delivery system is not doing dynamic credit check.
    requirement is in both levels system should check the credit check.
    Can any plz guide me.
    Prasad

    Hi
    It is not possible in the standard. The block at different levels is configured based on the degree of risk involved with the customer. If the customer is more risky, he should be blocked at ordr livel itself. If the customer is less risky, the order should be processed , like picking, packing etc., and only Goods Issue should be stopped.
    The release will be done by a responsible person and hence it should not block again. eg., if the order is released with special approval from a higher up like Marketing - GM, then it should not block the delivery again.
    Thanks,
    Ravi

  • Userexit for PO Creation (ME21N)

    Hi All,
    The need is to code an userexit in ME21N to fetch TEXTS ( like BOM Header Text ) and populate the same onto the PO. This Userexit should fire as the user keys in the LINE ITEMS on a PO and HITS ENTER. The exit will check the entry and display error messages if need be.
    If anyone has done such a thing before please do let me know.
    Thanks in advance,
    RK

    Hi Ravi
    Use trx SE19 to implement your BADI: create an ZME_PROCESS_PO_CUST using ME_PROCESS_PO_CUST as definition.
    Now in Interface Tabs you can see the METHODs you can use as "user-exit", in particular there's PROCESS_ITEM to manage items data.
    You have to write your code into this method.
    This method has IM_ITEM like parameter in its interface, and it's like the type IF_PURCHASE_ORDER_ITEM_MM.
    This type has the method IF_LONGTEXTS_MM~SET_TEXT, you can try to use it to set your text in item.
    This is code for example:
    DATA: TLINE TYPE MMPUR_T_TEXTLINES.
    CALL METHOD IM_ITEM->IF_LONGTEXTS_MM~SET_TEXT
               EXPORTING
                 IM_TDID      = <YOUR ID>
                 IM_TEXTLINES = TLINE. 
    So you should read the text you want to copy and pass it to TLINE.
    You can use the METHOD PROCESS_HEADER to read the text you need. This METHOD has IM_HEADER as parameter and it's like the type IF_PURCHASE_ORDER_MM, this type has the method IF_LONGTEXTS_MM~GET_TEXT to read header logn text.
    Anyway while you're in implementation of the BADI go to:
    GoTo->Sample Code
    Here you can try an example how to implement the method you need to use.   
    Max
    Message was edited by: max bianchi

  • RE: Prod order automatic scheduling at creation level

    Hi All,
             While creating Production order thru Backward scheduling, the system automatically scheduling but I need to schedule after creation manually. Any solutions to this issue.

    Hi,
    If you have maintain scheduling type as Backward then system will ask you to maintain the Basic Finsh Date.
    So my doubt is with your order type.Is it correct one for which you are creating the production order.
    Now if you don't want to do the automatic scheduling and do this one manually then try this.
    For that order type maintain scheduling type as only capacity requirements.After this system will not schedules the order automatically.All the dates you have to maintain manually.There is no scheduling at all.And if you want to schedules the order then change that scheduling type to backward in order itself (not in OPU3) and then press that scheduling tab.
    Regards,
    Dhaval

  • Userexit/badi for tolerance levels in production order

    Hi ,
      I have a requirment where I have to set the under/over delivery tolerance limits to a fixed value based on the order quantity.I am not able to get any user exit or Badi to do the same.I am aware that this tolerance flows in from the work schedulling view in Material Master,But i need to change this in CO01/Co02.
      Can any one please help me out.
    Thank you,
    Suvarna.

    *" IMPORTING
    *" VALUE(IS_HEADER_NEW) LIKE CAUFVD STRUCTURE CAUFVD
    *" VALUE(IS_HEADER_OLD) LIKE CAUFVD STRUCTURE CAUFVD
    *" VALUE(IS_ITEM_NEW) LIKE AFPOD STRUCTURE AFPOD
    *" VALUE(IS_ITEM_OLD) LIKE AFPOD STRUCTURE AFPOD
    *" EXCEPTIONS
    *" NO_CHANGES_ALLOWED
    As shown we have AFPOD as the importing parameter and i cannot change the fields in structure.(I need to change UEBTO and UNTTO in AFPOD)
    Please let me know if Iam missing out anything.

  • DMR level change at UD vs lot creation

    Hi,
         Can someone in simple English give me the business reason to have Q level change at lot creation level and at UD level. In what cases would one use either of them ? I have read the help and know how to configure in the system but need the business reason to chose one or the other. Please dont send me the link to help or to past posts which speak about how to create DMR rules in the system.
    Thanks
    GS

    No matter which one you pick, you can have issues.  It's picking the lessor of two evils.
    The issue comes in when you have the potential of having more than one inspection lot active at a time that uses quality levels and dynamic modifications.
    For "at lot creation" when you create a lot the quality level is checked and modified according to the established rules to the next "postition" or stage if you want.  It ASSUMES the lot just created will pass.  In this case if the lot fails, you have to manually fix the quality level after a fail.  If another lot comes in before you maually fix it, it could be skipped or reduced testing.
    For "at UD" the quality level is updated when UD is made.  In this case when a lot is created before the UD is made on a previous lot, the quality level is still at the same level as the previous lot.  As a result the new lot will be created at a level which maybe it shouldn't be.  Which could be wrong if the UD fails or passes on the previous lot.  In this case, the failure at UD on the first lot will reset the quality level and the next lot created should be at the right level, but the inbetween lot might not have been.
    Follow that?
    Craig

  • Material Variant Matching in Sales Order Creation with ref.to Sales Order

    Hi All,
    We are working in Variant configuration.Our product is defined at PQD(Product, Quality & Dimension).
    But, Sales Contracts are created at PQ (Product, Quality/Grade ) level only.
    We have defined Variant Characteristics GRADE(ALLOY CODE),DIMENSION AND TWO MATERIALS.
    MAT 1 , configurable material.
    MAT 2, A Material Variant of MAT 1, Having values of GRADE = A & DIMENSION = 150 in MRP 3 view of the same.
    When a Sales Order is created for MAT 1  and its characteristics values are GRADE = A, DIMENSION = 150, Material Variant type matching happens & it replaces the configurable material.
    Similarly,Sales  Contract is created for Configurable material MAT 1, with only GRADE = A ( As mentioned above, only quality is known at contract creation level).But, when we are trying to creart a Sales Order with reference to this Contract, we are trying to punch characteristic Value for DIMENSION = 150 also. At this stage, Materuial Variant MAT 2 is shown, but it is not replacing MAT 1.
    Is this the standard behaviour or there is some solution/enhancement available.
    regards,
    Stuti

    Dear Vijay,
    in incompletion procedure we can arrange to check whether any field is empty, here data comparison is not possible.
    As far as I know you can not achieve this through standard config.
    To achieve your requirement, you will need to take help of an ABAPer, it can be achieved using Userexit.
    ABAPer can use include MV45AFZZ
    and Userexit ""USEREXIT_SAVE_DOCUMENT".
    the code written in this userexit will check and compare the quantities before saving the dcument.
    Logic if quantity enter is greater than the quantity mentioned in Contract show warning Message.
    I hope this solves your Problem.
    Regards,
    Paresh

  • How to update condition value using e1edp05 segment during order creation

    Hi,
    I have a requirement where I need to update the item level condition value (komv-kbeter)  to the condition type (komv-kschl) from the incoming idocs (orders05).
    But  the same is configured  in such a way to populate automatically with the default condition value zero during the order creation level using VA01 at condition tab.
    I am able to populate condition values from incoming idoc using segment E1EDP05 which is good, but it was getting created as new entry with the same condition type  instead of updating the condition value to the existing condition type(which got populated from automatically from configuration) .
    So I want to restrict to one entry instead of two with same condition type. Is there any userexit/gap to restrict automatic population of condition type thru programming or to update with idoc (orders05) value rather than inserting as new row?
    My client doesn’t want to restrict the pricing automation from configuration. So I have to handle through programming level.
    Your  inputs are appreciated

    It doesn't really matter if it's a credit/debit memo, it's the same transaction anyway and pretty much the same functionality. What is your requirement exactly? Do you always have to override the price from Siebel or, let's say, some price is automatically proposed and you might or might not need to override it?
    We use a custom (Z..) condition for price override. When a material is entered in VA01, some price (condition PR00, for example) is assigned automatically. Then, let's say, a special price has been negotiated with this customer just for this purchase. So the user goes into Conditions, types in condition code Z... and types in the new price. This basically annuls the previous PR00 condition. I'm not a functional consultant and can't give you all the config details, but your SD person should be able to help.
    I'm still positive that conditions cannot be removed or changed by IDoc. One thing I would suggest for your situation: do not create ZCD2 condition initially and then just add ZCD2 condition when you receive the data from Siebel. Otherwise it seems that you would have to write a user exit or a requirement to deal with the duplicate conditions.

  • In report painter report, line item level drilldown report requirment

    Dear All,
    I created one report in GRR1, when I execute the report i am not getting line item wise drilldown option. For example one cost center no of line itemwise posting ( g/ls wise)posting is there. By double clicking on that specific line item we will go that ledger and see the data available in that ledger.In standard reports that option available but my own reports I unable to go drilldown at ledger level cost reports.
    Please sugget anyone, where I am doing mistake in report creation level.
    Thanks
    M Srinivasa reddy
    Ph : 9637399076

    Thank you,
    I attached reports to Library based on that I am able to drilldown line item level of the report.Is it corret or any other way for line item level drilldown option for report painter reports
    Thanks
    M Srinivasa reddy

  • Tax Code At PO Level

    Hi All,
    System does not allow to use different tax code (For both Excisable Item and non-Excisable Item) in a single PO.
    System should throw error at po creation level.
    Santosh

    Hi All,
    User does not want to pass the bill for the PO having excisable and non-Excisable item clubbed together.
    For ex- In a PO, user want to generate a PO for 2 item (excisable and non- excisable item) with diff tax code.
    User want to check it at Item level. Either we need to check, system should not allow both item in a single PO or need to check
    tax code if it is different for both the item
    How to handle this scenario at PO level.
    Santosh

  • Variant Matching  during Creation of Sales Order with reference to Contract

    Hi All,
    I have a following scenario. Sales Contract is created on a Configurable Material ' A' and its has a Material Variant "B" with following Charac Values X = X1, Y= Y1 & Z=Z1.
    The value of Z= Z1 is set using a Procedure when Sales Document Type = OR ( This is the Document type For sales Order). So, this means variant matching will finally happen at Sales Order creation level, coz all the three reqd. charc. are availabe  at that time.This is also our reqmt.
    But, now what is happening, a Sales Contract is created for Material A, with Charc values X = X1 & Y= Y1. When a sales order is created with reference to this Contract, immediately during Copying of selected item, Variant Matching gets triggered & Material A is replaced by Material Variant B. Even we dont get into the Configuration Window.
    Actually, during copying itself Object Depencies are called and thats leading to variant Matching.
    Our requirement is that, it should not get triggered at such early stage. It should happen when Config. window is clicked.
    Kindly help. Copy Control of Sales Doc has setting 'No Control' We are in ECC 6.0. Are there some other settigs too.
    regards,
    Stuti

    your functional team can help you in finding one.

  • Auto creation of Batch master data when external batch no entered in PR

    Dear All,
    At persent we can auto create batches at production order creation level, Goods receipt level.
    In same way how we can achive auto creation of Batch master data at Purchase Requisition level.
    Regards,
    Manoj

    There is no auto-creation of batches that are entered in ME51N. SAP issues message ME178 telling you that the batch entered does not exist.
    You have to maintain the batch in MSC1N first, then you can enter it in the PR.

  • ME21N - error during service PO creation - "Please enter a service"

    Hi,
    PR was created with reference to agreement.  When we try to create PO, below error appears.  Apparently service code, text are available so this error does not make sense.  Have you come across such a situation ?
    Thanks,
    Sankar

    Root cause was a mess up from the user.  The user has linked multiple line item services from contract (OA) to single line in PR.  System does not stop at PR level.  But throws this error at PO creation level.  User has recreated the PR and all OK.
    Wrong process:
    OA item 10 - PR item 10
    OA item 30 - PR item 10
    OA item 60 - PR item 10
    Correct process:
    OA item 10 - PR item 10
    OA item 30 - PR item 20
    OA item 60 - PR item 30
    Moreover error does not happen in ME59 (automatic PO creation) even through the wrong process.

Maybe you are looking for

  • How to handle check box events in alv tree.

    hi, i am working in CL_GUI_COLUMN_TREE class.Also using Check box. Now i want to handle events for check box . I am new to ABAP Objects. Pls expaline in detail or send code thanks in advance, senthil kumar.r

  • SMTP store Driver: Message submitted to categorizer

    Hi, I have Ms Exchange 2003 sp2 running on Windows Server 2003 sp2. It started just today when users ( so far I know of two) send an email to a distribution list in outlook 2007, some of the users in the distribution list receive them, and others don

  • VAT TIN No. of Company

    For entering Company's VAT TIN No., do we need to set Country India as "EU Member" in T.code OY01?? If not, then where do we enter Company's VAT TIN No.? Please Guide Regards Ashwin

  • Photoshop 9 Won't Import From Old TWAIN Plug-in

    Anybody know if this is a Snow Leaopard issue or an Adobe issue? I recently upgraded from Adobe Photoshop Elements 4, to 9. Version 9 no longer imports from my scanner. I looked in the Adobe 4 Plug-ins folder and found a TWAIN.plugin in the Importing

  • Tools not working in PS CS4

    I just installed CS4 Creative Suite, using photoshop and some of the tools don't work.  I uninstalled and re-installed, but they still don't work.  CS3 was working fine,  I'm downloading all the updates to CS4m and to my wacom tablet....  what else s