PO number check across all order types

Hi Gurus
I have a specific requirement from my client regarding PO number.
I understand that we can check with respect to a document type that whether a PO number already exists (lets say, i created an order with a PO and it can be informed when i try to create another order with the same PO). But, my client wants to check whether a sales document (irrespective of order type) is created generated already with the same PO across all order types (in this case, first an order is created with a PO, and the system should inform if the end user tries to create a debit memo with the same PO). Hope I am clear.
Any suggestion is appreciated. It is required to find solution immediately.
Thanks in advance.
Regards,
Sri.

Use userexit SAVE_DOCUMENT_PREPARE in program MV45AFZZ to do the necessary checks.
Regards,
GSL.

Similar Messages

  • Number range for different order types

    hi
    pl tell me how to create the number ranges for production order s and how to assign this number ranges to different order types in production server.
    thanks and regards

    Dear ,
    Goto CO82 ,
    1.Frist you should review in the Overview Screen (Hit the Orview in CO82) wether you have option to create the group as per required number ranges for two order type
    2.Hit the Pencil Button of the Group : It will take you "Maintain Number Ranges Group" and Select Group on the top -
    Insert.It will pop up with Inser Group Window .Enter the Text , Enter Number Ranges (From no /To No) and then hot the insert button (+ sign) .You have to create two number ranges group as per your requirement
    3.Now select you order type and hit the Select Eelement (Nip symbol) , select the resepctive group , then Hit Element/Group Tab .Once you follow this steps , you will find your Oredr type assigned to respective number ranges group.
    4.To cross check , you select the number ranges group and hit the Spec button to see the correct number ranges .
    5.MAKE SURE THAT YOU HAVE ORDER TYPE CREATED BEFORE YOU CREATE THEIR NUMBER RANGES -OPJH
    Revery back if u need any help
    Regards
    JH

  • Mass Cancel/ Mass change of a product across all orders

    Dear Friends,
    We have a typical requirement at our client:
    1.How to cancel a product across multiple orders (Mass Cancel) ?
    2.How to change a product acorss multiple orders (Mass change in all orders)
    They had a issue with one of the product and to be cancelled due to legal requirements..but we have had the orders ready, which include other materials also.
    We now want to change one Material across all orders..how to do this? Same is the case wtih Mass Cancellation requirement.
    I request you to help us on this.
    Thanks
    Ravi
    Edited by: Ravi Prasad on Nov 24, 2008 4:38 PM

    Dear Ravi
    1)  To cancel in mass, you have to create a recording in LSMW and upload the text file
    2)  To change a material in multiple sale orders, go to VA05, input the material code and execute.  There from top menu bar, click on "Edit -- Mass Change -- New Material"
    thanks
    G. Lakshmipathi

  • Different Production order number ranges with same order type

    Dear Friends,
    I am working on live project implementation.I am having four manufacturing plants.I am having one order type say PPLE, I am having two different versions say CM and CN.Now my requirement is can I maintain  two different number ranges for same order types within single plant .
    number ranges should be like,
    Plant          Version     Number ranges
    1210            CM           CM121008...
    1210            CN            CN121008
    1220            CM           CM121008
    1220             CN           CN121008
    and so on.here first two digit should be version,then plant and year followed by order number .
    Regards,
    Manoj Jadhav

    Hi manoj,
    You cant have two different number ranges for an order type in internal number range, but in external number range you can have two diffrent number ranges
    for example for one order you can start with CM1210080001 and other starting from CN1210080001.
    Just convince the client to have external number range
    Regards,
    Srini

  • Question on Search Help and Authorization Check for Sales Order Type

    Question 1:
    When I go to VA01 and click the search help, it shows only order type that are not blocked.
    However, when I have sales order type in select-options of a Z program,
    S_AUART FOR VBAK-AUART
    I click on the search help, it gives all the sales order types. How can I have a list with unblocked sales order type only?
    Question 2:
    I want to check whether a use can extract data from a sales order type (e.g. OR and RE)that he/she authorized to use.
    I have include the following in my program:
    AUTHORITY-CHECK OBJECT 'AUART'
    ID 'AUART' FIELD 'OR'.
    It always returns SY-SUBRC = 12.
    But order type 'OR' is granted to the user (he/she can create order with type OR in VA01)
    Please kindly give me some ideas, thanks.

    hi,
    ad1
    use following code:
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR auart.
      PERFORM auartGet.
    FORM auartGet.
        CALL FUNCTION 'RV_HELP'
             EXPORTING
                  KEY            = VKORG
                  KEY2           = VTWEG
                  KEY3           = SPART
                  KEY4           = '0'
                  NUMBER         = '008'
                  FIELD_IN       = AUART
             IMPORTING
                  FIELD          = AUART.
    ENDFORM.
    ad2.
    example:
       AUTHORITY-CHECK OBJECT 'V_VBAK_AAT'
             ID 'AUART' FIELD 'OR'
             ID 'ACTVT' FIELD '01'. "01-create order, 02-change, 03 display
    check sy-subrc eq 0.
    regards,darek

  • Avaiability check across All Plants for all company codes

    Hi
    How to Check ATP in Availability Check in Sales Order across plants in all the company codes.
    Currently its showing me only one company code plants when i click on other Plants Button in Availability control
    Reg.
    Amol

    Hello Amol,
    In sales orders, when you write a item material SAP makes it an automatic determination for the plant who belongs to master data information. The first step for SAP search strategy is find over the Customer Material Information, if it does not have information it makes the second step and search information over the Ship-to party, and the third step its search in the master material. If it does not find information, SAP does not propose a plant for that item material.
    Taken this process in consideration and for this reason, the item material made the Availability Check for one particular plant.
    If do you like to know more about your material stocks, one option its search the quantity available for sales in the plants using the MB52 transaction; and other option could be over your sales order, in the Availability Control, go in the menu to u201CGo tou201D, u201COthers Plantsu201D; or if your prefer you can use u201CShift+F5u201D.
    Regards

  • Internal Batch Number for specific Production Order Type

    HI PP Guru
    We need to activate Internal Batch Numbers to a specific Production Order type.
    We need this at order confirmation level. i.e. (CO11/CO12)
    Is it possible? HOW ?
    Please let me know customizing Steps.
    If this is not possible then, Batch number should be internally assgisned at Order release stage. Please let me know customizaing steps for this even.
    Thks.

    hi Siva
    Thk for suggestion
    However, if we do not wish to activate Internal Batch Assigment and want to remain on manual BUT still we want system should not allow duplicate BATCH NUMBER, then, is there any way to achive this.
    This is because, once we manually enter batch in confirmation (CO11), we further break the material in to several part and we need to understand original batch number. For this we just take the original batch number and add further serial number like below
    Orinigal Confirmation Batch Number - 100001
    Batch Split of 10 - 10000101,10000102,..............10000110.
    So, what we want is system should check that same batch number is exist or not in confirmation. Is it possible or how it can be handle.
    thk in adv.
    SK

  • Number Range for Maintenance Order Type

    Dear All,
    Please help me in regarding for Number range  Change in Maintenance Order Type.
    I have different types of maintenance order...such as PM01,PM02, PM03, PM04, PM05, PM06, PM07, PM08.
    and i have to assign number range different for all the maintenance order type. kindly help how can i assign the same separately.
    also in case of Notification types also.
    Early response is highly appreciated.
    Thanks
    Sushant

    Greetings Sushant,
    Firstly, maintain all the Order Types you want in SPRO.
    To maintain the number ranges, you will need to go to t-code OION. Then select "Maintain Groups (F6)" and create a group with a number range for each of the Order Types that you require.  Each will be a separate interval. Then place the cursor on the unassigned Order Type and select "Assign Element Group (F7)" Repeat for each Order Type.
    Notification number ranges are maintained in t-code IW20

  • GATP/ATP Check for Different Order Types for same material

    Hi :
    I have a material code X for which 2 different type of Sales Order (Say A and B )needs to be created.
    For Sales Order Type A the atp check needs to be done in APO through GATP for material code X.
    For Sales Order Type B the atp check needs to be done in SAP R/3 ECC 6.0 through availabilty check functionality for same material code X.
    It is not possible to create seperate material codes to carry out atp/gatp check seperately in R/3 and in APO.
    In real time the atp and cumulative atp position should be same in R/3 and in APO.
    Please let me know solution for this issue.
    With Regards
    Ashish Gupta

    Hi Ashish,
    Can you share with us as to how you were able to solve this issue. I have a similar issue like yours and I am totally clueless as to what needs to be done..
    My scenario goes this way:
    I have to modify the Schedule line dates for a GATP material according to a newly created date which I calculate based on the Route Schedule id (VL51, VL52) and display the same in the Sales Order schedule line items.
    Also can I get a new set of schedule line dates from the APO system for a date which I calculate based on the Goods Issue date - VALW-AULWE in any exit using a FM or a BAPI?? so that I can get these dates and populate the same in the Sales Order Schedule line??
    Thanks in advance,
    Susanth

  • Different number ranges for same order type

    Hi PP Guru's ,
    Can anyone send me the user exit for the differnet number range creation for the same order type.
    Same order type is used in two different Plants. So our client want to track the production order plantwise.
    Thanx in advance.
    Regards,
    Nagraj

    Hi Nagaraj,
    The number range is defined at order type level ( i.e. client level)
    So if you want to use different number range for different plant,  then use different order type for different plants.
    Thanks and regards
    Murugesan

  • DataSource 2LIS_17_I3HDR not loading all order types in setup tables

    I am trying to setup data source 2LIS_17_I3HDR.  I have initialized the setup tables and I am only getting 609 records in RSA3.  The problem is that all the records are from only two order types.  I have run the setup table initialization wide open so i'm not sure why the setup table only contains a subset of our orders.
    Obviously we have numerous other order types that I am expecting to be loaded into the setup tables (AFIH has around 180k entries).  Where can I configure which orders get loaded into the setup tables?
    Thanks,
    Chris

    That is an interesting thread.  I have a few questions though:
    -How can I determine which order types are maintenance orders?  When I look at transaction OIOA for Order Type Configuration I see that order category for numerous order types including the order types currently being loaded as having an order category of "30 Maintenance order" so I am unclear which field I need to be looking at for orders because in OIOA I see at least 8 other order types that look identical to the two order types being loaded.  When I look in IW39 I am seeing orders under order types are being loaded and under order types that aren't being loaded
    -In the linked thread it appears that the person with the issue was trying to pull detail data without header data.  I believe I am doing the opposite with these orders.  I am pulling the header data first.  Currently when I run 2LIS_17_OPER (I think this is the order detail DS) in RS3 I get no data.  Am I misunderstanding how the PM Order data sources work?
    Thanks,
    Chris

  • Checking Rule to Order Types

    Hai,
    Can somebody let me know how the system automatically derives the Checking rule 'A' for Sales Orders. I would like to create new Availability Check Control based on the Checking Group / Checking Rule combination.
    Mine is not an APO system, simple ECC 6.0, so I can't use the 'Business Transaction' field in the Document Type's Avail Check.
    I don't want to choose 'A' as checking Rule for my Sales Order doc type.
    Regards,
    Maheshwaran. I

    Hi Maheshwaran,
    Availability check is carried out in different transactions like Sales order creation, delivery creation, Purchase order creation, goods issue and also in production order. The point to be noted here is everywhere the availability check is carried out using two basic elements.
    1. Checking rule
    2. Checking group
    Explanation
    Checking Rule
    Checking rule is transaction based, i.e. In STD SAP system, if you are creating the sales order, then it is A, if delivery then it is B, if you are creating/releasing production order, then it is PP. This is almost fixed. What is the use of this as a single element it does not have any meaning, but with checking group.
    Checking group
    Checking group is the one what you assign in material master at plant level, i.e. for different plant and for the same material or for same plant different material there can be a different checking group. This is assigned in material master in MRP3 view, as a signal element it may not have much meaning except that it may be used for checking at which level - group level or individual level and quantities confirmed in the availability check are to be locked or not.
    Combination of Checking rule and checking group will define the scope of check
    In scope of check you will be defining all control parameters in t-code OVZ9
    Checking group you have defined in MMR as 01 and system is checking with checking rule A as it is a sales order you have created
    Hence the system takes the said combination
    Checking rules are predefined in SAP.
    Checking Rule A for Sale Order and B for Delivery is pre defined in SAP and based on the availability check what you maintain in material master, checking rule will react in sale order.
    'A' refers to Sales Order and Availability check Rule determined in '01'.
    Regards

  • Assignment of number range to order type

    Hi all,
    Please help me out of this. How can i assign number range to the order type?
    Regards
    Kaisar

    Co82 let us say order number range maintenance
    let us say you have created a new order type and you want to assign a new number range
    In CO82..
    Menu path  Group -->maintain
    In maintain number range group screen,
    Group --> insert
    Give text and from number and to number 
    say text = new order
    range - 100000000000 to 199999999999 (tick ext check box if the range is external number range-manual input)
    click on +
    You can see your group at the end of list
    In Not assigned group your new order type will be present
    Place the curser on that order type and fallow the menu path as below
    Edit -->select element
    Select NEW order number range group check box
    edit --> assign element group.
    Now the number range is assigned to the new order. Save it, You will get a pop up, just ignore it.
    I hope it will help you

  • Check Production Order Type CO01

    Hi,
    I need to check the "production order type" when creating a manual production order via CO01.
    The Ordertype is connected to the MRP planner, Planning profiles, Materialgroup ...I would like to set a message when entering the wrong type.
    Thanks for help in advance.
    Kind regards
    Michaela

    Michaela,
        You are right.This is the one that i was referring to.You would need to have the help of a developer to implement this functionality though. Basically, the header fields of the order( structure CAUFVD) are availble for you to do your custom validations. If it doesnt satisfy your checks, you will have to raise a error message indicating the appropriate error and also mark the export parameter "NO UPDATE" With some value(For ex: X). I am sure you would have seen the documentation of the same, if not ..here is a copy of the same..
    Short text
    User Exit for Checking or Changing Header Fields During Order Maintena
    Functionality
    This customer exit makes two functions possible:
    Changing data in the order header. For this purpose, the order header with the changed data can be transferred back to the calling program as export structure HEADER_EXP. The calling program then saves the data.
    Checks that prevent the order being saved or changed. For this, the export parameter NO_UPDATE must be set to a non-initial value. The calling program then branches back to online processing. If data in the order header is changed and the parameter NO_UPDATE is set at the same time, then the changed data is adopted nonetheless. The data is thus available in online maintenance.
    Notes
    Note that the data that is transferred from the customer exit in the export structure of the order header is no longer checked by the system. The person who uses the customer exit is therefore responsible for data consistency!
    There are also fields that cannot be changed in the customer exit since they are reentered later in the program.
    These include: the creator of the order, the last person to change it, the creation date and the change date. Also, when the order is created there are various number fields that are still filled with temporary numbers. These include; the order number if the system is working with an internal number assignment.
    Hope this helps...
    Thanks
    Narasimhan

  • Number ranges for order types

    Hi
    I want to differenciate numbering of rework order type from the standard order type.Assign different number ranges to different order type.
    Shankar

    Hi Mr.Shankar,
    Please try out this,
    <b>1.In OPJH - Define Order type,As u said you are copying from PP01 type,after copying change the name of the order type say for Eg for Rework ucan chage it as RW01 and save it.Again carryout the same step to create 2 more order types say TT02 and TT03.
    2.In OPL8 - Define Order type dependent parameters,Enter the settings for the newly created order types for RW01,TT02,TT03 and save it.
    3.In CO82,Define the number ranges for individual order types as explained by our friend ,If you want external number assignment then Include a tick mark against the check box for an order type save it.</b>
    While using CO82,after going into the exact screen,in the top goto Group-Maintain groups (or else Press F6)and in the bottom of that page you will be able to see the newly created order types (which you have created) and now you can select the types and assign the number ranges in a different way for different order types.
    I hope now the system allows you to assign number ranges as per you need.
    If useful please reward your points
    Thansk & Regards
    Karthik
    Message was edited by:
            Karthikraj
    Message was edited by:
            Karthikraj

Maybe you are looking for