User Exit for placing validation between Customer Group & Material Group

Hi,
Following is my client requirement.
1. A validation check is to be placed in Sales Order of Document Type ZTRD.
Validation to be placed between Customer Group 3 (CG3)   of Sold to party with Material Group( MG ) of Material.
If CG3 of Sold to party is different with MG , then system should through Error message & should not allow to save the Sales Order.
Please suggest me what best to be done. I am a SD consultant.

A standard way to do this is to use product attributes.In material master you can define product attributes in the sales org 2 view. Next, within the customer master, you can define the product attributes a customer would accept. Finally, in the order type configuration, you can define that if the attributes don't match, the system should display an error message (or a warning message). So, you can do the check you are looking for without doing any ABAP work. See if that could work for you.

Similar Messages

  • USER EXIT FOR CHANGING POSTING DATE IN THE MATERIAL DOCUMENT

    Hi,
    Pls advise any USER EXIT FOR CHANGING POSTING DATE IN THE MATERIAL DOCUMENT.
    Regards,

    Hi,
    There is another user exit for updating material document data Upon posting  is MB_CF001
    I hope this will fullfill you.
    Prem

  • User Exit for VA41 Validity Date

    Hi,
    I am giving order type in VA41 Tcode and then Clicking on 'Create with Reference' .Then a Pop Up is getting generated. In this i am giving Contract created with validity date lessthan today's date(in Contract Tab).For Example i created a Contract xxxxxx with 'valid to' 9.12.2008. When I am giving this contract and clicking on 'Copy' button a Warning message is getting generated 'The sales document is only valid until 09.12.2008'. Now i have to change this into Error message instead of Warning Message.
    i used User Exits mv45afzz,MV45AFZA,MV45AFZB. But the debugger is getting started only after Warning message got generated.Is there any User Exit for which debugger gets started when i give the Contract and then Click on 'Copy' button. Please Suggest.
    Thanks
    K Srinivas

    Hi,
    Create a file say breakpoint.txt file as follows:-
    [FUNCTION]
    Command=/H
    Title=Debugger
    Type=SystemCommand
    Once you come to the screen of 'Create with reference' where you are giving the contract, from  second session drag the above mentiuoned file to the session where you are running VA41, & drop it here. Now debugger has been activated. Proceed with debugging. This method you can use for any of the 'POP UPs'.
    I hope this helps,
    Regards
    Raju Chitale

  • User exit for PA61 - Validations to IT2001 & IT2002 upon save

    Hi,
    I got a requriement as follows:
    User enters time thru PA61 and I need perform some calculations upon saving the weeks time in PA61.
    I have to do two tasks:
    1) I need to read the hrs entered by the user in PA61 for that week
    2) Upon save, I need to calculations and save that to IT2001 & IT2002 based on Absence types.
    PLease let me know any user exit, where i can write code & how to read the time for the particular week.
    Thanks,
    Shrini

    HI Shreenivas
    As Omid said , PA61 is T-Code for maintain time data its like PA30. but if you need to put any validation or any business check, you can use the User Exit  (enhancement) PBAS0001 via t-code SMOD.
    here you can select the functional module EXIT_SAPFP50M_002 and write your customer logic (ABAP code) for IT2001 and IT2002 in the include ZXPADU02.
    Thanks,
    Dinesh

  • BADI or User exit  for FB50 to update custom field in table COEP

    Hi all,
    i have added one custom field in table COEP through include CI_COBL .
    when i do posting through sales order(VA02) or purchase order(ME22n) that custom fields in COEP get updated with controlling document
    and through BADI AC_DOCUMENT i m updating that custom field in COEP.
    but when i do manual posting through FB50 controlling document is generated in COEP but i m not able to update that custom field
    because in this case BADI AC_DOCUMENT  is not get triggered.
    is there any BADI or User exit or enhancement spot for FB50 through which i can update that custom field in table COEP

    Hi Sandy,
    Thanks for u r reply,
    RFAVIS01 is not getting triggered through FB50
    and F180A001 ( EXIT_SAPLF048_001) is getting triggered but it doesnt contain COEP field in its parameter
    import - F180A_DOC_HEAD_TAB
                 F180A_DOC_ITEM_TAB
    changing - RELATION_TAB

  • BADI/User exit for GR validations

    Hi Experts,
          I have one issue where i have performed GR for production order with (101) movement type,then delivery,and then created Transfer Order for that delivery, now I need to perform 102 movement type for reversal of GR,but
    My question is if a production order has a TO (Transfer order) then before doing 102 movment type it sholud through an error saying ex: "102 movement type not possible" error.
    please suggest a BADI or a User exit that can fulfill my need.
    I appreciate you response.
    Edited by: Mister SAP on Mar 9, 2010 6:52 AM

    Hi,
    The following exits are available in tcode MIGO,
    Exit Name           Description
    MBCF0002            Customer function exit: Segment text in material doc. item
    MBCF0005            Material document item for goods receipt/issue slip
    MBCF0006            Customer function for WBS element
    MBCF0007            Customer function exit: Updating a reservation
    MBCF0009            Filling the storage location field
    MBCF0010            Customer exit: Create reservation BAPI_RESERVATION_CREATE1
    MBCF0011            Read from RESB and RKPF for print list in  MB26
    MB_CF001            Customer Function Exit in the Case of Updating a Mat. Doc.
    Hope any one of them might help you,
    Regards,
    Soundarya.

  • User Exits for Purchase order & requistion to control Material description

    Dear Experts,
    I am creating a Purchasing requisition & Purchase order for certain Material Type. Currently user can change material description at item level without anu check. Now I have different material type like PACKING(ZPAC), Raw material(ZROH) Etc.
    My requirement is like such that i want to allow change of material description of packing material(ZPAC) but system should not allow for Raw material type(ZROH). so from where i can control this?
    Can any one give me EXIT name or enhancement point for Purchase order & requisition.
    Thanks in advance.
    Regards,
    Piyush

    Dear,
    You can achieve this by Field selection in SPRO > MM > Purchasing > Purchase Requisition > Define Document Types > Here get the Field Selection Key for PR Doc Type
    SPRO > MM > Purchasing > Purchase Requisition > Define Screen Layout at Document Level > Here for that Field Selection Key, for Selection group "Basic data, item", make field "Short text" as display.
    Similarly do for PO also SPRO > MM > Purchasing > Purchase Order > Define Document Types > Here get the Field Selection Key for PO Doc Type
    SPRO > MM > Purchasing > Purchase Order > Define Screen Layout at Document Level > Here for that Field Selection Key, for Selection group "Basic data, item", make field "Short text" as display.
    Note: - But in case of text Purchases, you need to create a new PR and PO Document Type. So that this config. will not have any impact on Text Purchases.
    Regards,
    R.Brahmankar

  • User-exits for PO and MIGO

    Hello Experts
    i am having a requirement where in i will have to perform certain validations before posting PO and material document (MIGO). If these validations fail, PO or Material document should not be posted.
    i managed to find certain BADI and user-exits (MB_CF001 and MB_DOCUMENT_BADI) typically for MIGO but when tested they use to get triggered once these doucment numbers are generated.
    what i am looking at is cancel the process by giving the hard-error.
    thanks in advance.
    regards
    rajeev

    Hi,
    <b>User exits for MIGO:</b>
    MBCF0002 Customer function exit: Segment text in material doc. item
    MBCF0005 Material document item for goods receipt/issue slip
    MBCF0006 Customer function for WBS element
    MBCF0007 Customer function exit: Updating a reservation
    MBCF0009 Filling the storage location field
    MBCF0010 Customer exit: Create reservation BAPI_RESERVATION_CREATE1
    MBCF0011 Read From RESB and RKPF For Print List in MB26
    MBCFC003 Maintenance of batch master data for goods movements
    MBCFC004 Maintenance of batch specifications for goods movements
    MB_CF001 Customer Function Exit in the Case of Updating a Mat. Doc.
    <b>User eits for PO:</b>
    These are the User exit for CO01 ( Create PO)
    CCOWB001 Customer exit for modifying menu entries
    COIB0001 Customer Exit for As-Built Assignment Tool
    COZF0001 Change purchase req. for externally processed operation
    COZF0002 Change purchase req. for externally procured component
    PPCO0001 Application development: PP orders
    PPCO0002 Check exit for setting delete mark / deletion indicator
    PPCO0003 Check exit for order changes from sales order
    PPCO0004 Sort and processing exit: Mass processing orders
    PPCO0005 Storage location/backflushing when order is created
    PPCO0006 Enhancement to specify defaults for fields in order header
    PPCO0007 Exit when saving production order
    PPCO0008 Enhancement in the adding and changing of components
    PPCO0009 Enhancement in goods movements for prod. process order
    PPCO0010 Enhancement in make-to-order production - Unit of measure
    PPCO0012 Production Order: Display/Change Order Header Data
    PPCO0013 Change priorities of selection crit. for batch determination
    PPCO0015 Additional check for document links from BOMs
    PPCO0016 Additional check for document links from master data
    PPCO0017 Additional check for online processing of document links
    PPCO0018 Check for changes to production order header
    PPCO0019 Checks for changes to order operations
    PPCO0021 Release Control for Automatic Batch Determination
    PPCO0022 Determination of Production Memo
    PPCO0023 Checks Changes to Order Components
    STATTEXT Modification exit for formatting
    I am giving you the list of all user exits available for ME21N:
    AMPL0001 User subscreen for additional data on AMPL
    LMEDR001 Enhancements to print program
    LMELA002 Adopt batch no. from shipping notification when posting a GR
    LMELA010 Inbound shipping notification: Transfer item data from IDOC
    LMEQR001 User exit for source determination
    LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt
    LWSUS001 Customer-Specific Source Determination in Retail
    M06B0001 Role determination for purchase requisition release
    M06B0002 Changes to comm. structure for purchase requisition release
    M06B0003 Number range and document number
    M06B0004 Number range and document number
    M06B0005 Changes to comm. structure for overall release of requisn.
    M06E0004 Changes to communication structure for release purch. doc.
    M06E0005 Role determination for release of purchasing documents
    ME590001 Grouping of requsitions for PO split in ME59
    MEETA001 Define schedule line type (backlog, immed. req., preview)
    MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
    MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
    MEQUERY1 Enhancement to Document Overview ME21N/ME51N
    MEVME001 WE default quantity calc. and over/ underdelivery tolerance
    MM06E001 User exits for EDI inbound and outbound purchasing documents
    MM06E003 Number range and document number
    MM06E004 Control import data screens in purchase order
    MM06E005 Customer fields in purchasing document
    MM06E007 Change document for requisitions upon conversion into PO
    MM06E008 Monitoring of contr. target value in case of release orders
    MM06E009 Relevant texts for "Texts exist" indicator
    MM06E010 Field selection for vendor address
    MMAL0001 ALE source list distribution: Outbound processing
    MMAL0002 ALE source list distribution: Inbound processing
    MMAL0003 ALE purcasing info record distribution: Outbound processing
    MMAL0004 ALE purchasing info record distribution: Inbound processing
    MMDA0001 Default delivery addresses
    MMFAB001 User exit for generation of release order
    MRFLB001 Control Items for Contract Release Order
    For your purpose you can probably try MM06E005. Or you can also try BADI ME_PROCESS_PO_CUST.
    You can also check this BADI available for PO:
    EXTENSION_US_TAXES Extended Tax Calculation with Additional Data
    ME_ACTV_CANCEL_PO BAdI for Activating the Cancel Function at Header Level
    ME_BAPI_PR_CHANGE_01 BAdI: Enjoy BAPIs for Purchase Requisitions (Method Chan
    ME_BAPI_PR_CHANGE_02 BAdI: Enjoy BAPIs for Purchase Requisitions (Method Chan
    ME_BAPI_PR_CREATE_01 BAdI: Enjoy BAPIs for Purchase Requisitions
    ME_BAPI_PR_CREATE_02 BAdI: Enjoy BAPIs for Purchase Requisitions (Method Crea
    ME_BSART_DET Change document type for automatically generated POs
    ME_CCP_BESWK_AUTH_CH BAdI for authorization checks for procuring plant
    ME_CCP_DEL_DURATION Calc. of Delivery Duration in CCP Process (Not in Standa
    ME_CHANGE_CHARACTER Customer-Specific Characteristics for Product Allocation
    ME_CHECK_ALL_ITEMS Run Through Items Again in the Event of Changes in EKKO
    ME_CHECK_SOURCES Additional Checks in Source Determination/Checking
    ME_CIN_LEINRF2R BADI for CIN India - Delivery charges
    ME_CIN_LEINRF2V BADI for LEINRF03 excise_invoice_details
    ME_CIN_MM06EFKO Copy PO data for use by Country version India
    ME_CIP_ALLOW_CHANGE Configuration in Purchasing: Changeability Control
    ME_COMMITMENT_STO_CH BadI for checking if commitments for STOs are active
    ME_COMMTMNT_PO_REL_C Check for Commitment-Relevance of Purchase Orders
    ME_COMMTMNT_REQ_RE_C Check of Commitment Relevance of Purchase Requisitions
    ME_DEFINE_CALCTYPE Control of Pricing Type: Additional Fields
    ME_GUI_PO_CUST Customer's Own Screens in Enjoy Purchase Order
    ME_HOLD_PO Hold Enjoy Purchase Orders: Activation/Deactivation
    ME_PO_SC_SRV BAdI: Service Tab Page for Subcontracting
    ME_PROCESS_COMP Processing of Component Default Data at Time of GR: Cust
    ME_PROCESS_PO_CUST Enhancements for Processing Enjoy Purchase Order: Custom
    ME_PROCESS_REQ_CUST Enhancements for Processing Enjoy PReqs: Customer
    ME_PURCHDOC_POSTED Purchasing Document Posted
    ME_RELEASE_CREATE BAdI: Release Creation for Sched. Agreemnts with Rel. Do
    ME_REQ_OI_EXT Commitment Update in the Case of External Requisitions
    ME_REQ_POSTED Purchase Requisition Posted
    ME_TAX_FROM_ADDRESS Tax jurisdiction code taken from address
    ME_TRIGGER_ATP Triggers New ATP for Changes in EKKO, EKPO, EKPV
    MM_EDI_DESADV_IN Supplementation of Delivery Interface from Purchase Orde
    SMOD_MRFLB001 Control Items for Contract Release Order
    Transaction codes for BADI are:
    SE18 - Business Add-ins(BADI’s): Definition transaction
    SE19 - Business Add-ins(BADI’s): Implementation transaction
    SE24 - Class Builder
    Link for all user exits in SAP:
    http://www.easymarketplace.de/userexit.php
    Pls reward helpful points.
    Regards,
    Ameet

  • User exit for MIGO - Change on Posting A/C Code Upon Saving.

    Hi,
    I have a requirement to to split the GR/IR clearing account during the posting of goods receipt in MIGO by filled in BSEG-HKONT with specify a/c code (hard coded).
    I'm not able to find any user exit to change the value in BSEG-HKONT
    while click on save.
    Is there any suggestion on it?
    Thanks.

    Hi ,
    Try with the following User Exits for MIGO.
    MB_CF001  Customer Function Exit in the Case of Updating a Mat. D
    MBCF0002  Customer function exit: Segment text in material doc. i
    MBCF0005  Material document item for goods receipt/issue slip
    MBCF0006  Customer function for WBS element
    MBCF0007  Customer function exit: Updating a reservation
    MBCF0009  Filling the storage location field
    MBCF0010  Customer exit: Create reservation BAPI_RESERVATION_CREA
    MBCF0011  Read from RESB and RKPF for print list in  MB26
    Thanks,
    SVREDDY

  • User Exit for PKMC (Kanban Control Cycle)

    Dear Gurus,
    I need to know if there is a user exit in PKMC (kanban control Cycle) to create a extra tab next to the print control tab in the bottom.
    Best Regards,
    Kumar

    List of exits available.
    Enhancement/ Business Add-in            Description
    Enhancement
    MPKR0001                                Customer fields in kanban control cycle
    MPKP0002                                Customer-Specific Fields Call Interface
    MPKP0001                                Customer Defined Display in Kanban Board
    MPKD0001                                Kanban output as EDI
    MPKCCY02                                Customer Error in SumJC Control Cycle
    MPKCCY01                                User-Defined Fields in Kanban Control Cycle (PKMC)
    MPKC0001                                User exit for kanban calculation
    MPKB0002                                Customer defined display in kanban board
    MPKB0001                                User's own functions in the Kanban processing
    Business Add-in
    BADI_PVBE_UPDATE_APO      PVB Publish Changes to the APO
    MPKC_REQ_SELECTION           BAdI for Requirements Selection for Kanban Calculation
    PK_CALL_INTERFACE              Customer-Specific Fields Call Interface
    PK_CCY_SELECTION               Selection for Maintaining Control Cycles
    PK_REVERSAL                          BAdI during reversal of Kanban

  • BADI/User Exit for validation in WAK1

    Hi,
    I need to put validations in transaction WAK1.
    for the Site Groups under the site groups TAB.
    Please suggest if any BADI or User Exit is available to do this.
    I checked there are BADI's "WAKT_BADI_001" to "WAKT_BADI_008" but they are for SAP Internal Use only.
    Regards
    Ankur

    Hi
    Below are some of BADIs available for WAK1. Please check.
    Exit 
    WCOUP001  User exit for coupon processing in POS inbound
    BADIs
    RDM_BAPI_PROMO_CREATE - Enhancement Spot (RDM_OPT_PROMO_IN)
    RDM_PROMO_POST - Enhancement Spot
    RDM_PROMOTION_WAK1 - Enhancement Spot
    WAKT_BADI_001  -
    ~~~Ganesh Kumar K.

  • User exit for ME21N (Not functional or customer exit)

    Hi Guys,
    I want to get a user exit for PO as my requirement is to call  custom screen before the PO is getting saved.
    I have the functional exits and badi's list which will not fulfill my requirement as because on my custom screen i have cancel button.
    On clicking the control needs to come back to the me21n second screen with the data entered with out order getting created.
    The screen number for the second screen in ME21N  is 14.
    if i call screen 14 it will work in a user exit where as in customer exit(functional exit) we have limitations with the exporting and importing as so the screen number will not be recognised.
    I am able to do the same calling of cust screen in Sales order creation and is sucessfull, the same should happen with PO also.
    Probably if the user exit triggers at the time of syntax check i can achive my requirement rather than at save as the call back to the screen will not harm and database commits will not take place.
    I also tried with all most of the enahancement points but the call screen statement is not working at any point of time which worked with Sales order exits. So i tried with making the validation fail but still by that time the PO number is getting generated and so if i try to cancel the PO before save and trying to get PO in edit mode but the sequence number is getting missed by by 1.
    Please help.
    Regards,
    Amar.
    Edited by: amar srinivas on Feb 11, 2011 10:16 AM
    Edited by: amar srinivas on Feb 14, 2011 4:56 PM

    Hi,
    You can try it this way.
    Check badi ME_PROCESS_PO_CUST , method - CHECK.
    This badi/method gets triggered when the "CHeck" button and "SAVE" button is pressed.
    It consists of a changing parameter CH_FAILED . Pass X to it when cancel button is hit in your custom screen.
    Donot use any commit in this method. Read the documentation before doing it.

  • User Exit for Validity Date for VA41 Tcode

    Hi,
    I am giving order type in VA41 Tcode and then Clicking on 'Create with Reference' .Then  a Pop Up is getting generated. In this i am giving Contract created with validity date lessthan today's date(in Contract Tab).For Example i created a Contract xxxxxx with 'valid to'  9.12.2008. When I am giving this contract and clicking on 'Copy' button a Warning message is getting generated 'The sales document is only valid until 09.12.2008'. Now i have to change this into Error message instead of Warning Message.
    i used User Exits  mv45afzz,MV45AFZA,MV45AFZB. But the debugger is getting started only after Warning message got generated.Is there any User Exit for which debugger gets started  when i give the Contract and then Click on 'Copy' button. Please Suggest.
    Thanks and Regards
    K Srinivas

    Hi,
    One idea. Go to VTAA (copy between sales docs) and create a new VOFM where you manage the copy control. Set a warning/error message in the new VOFM (in your range number), and try it.
    Regards,
    Eduardo
    Edited by: Eduardo Hinojosa on Dec 10, 2008 3:58 PM

  • USer-exit for Custom Infotype

    We have a custom Infotype 9001.
    I need to do some validations for this Infotype.How do I find a user-exit for this.
    We are on ECC6.0.
    Thanks
    Kiran

    Hi,
    I have the same requirement. Can you please help me out. How to find user exit or badi or Enhancement Spot for the custom infotype.
    Thanks & Regards,
    Prabu

  • BADI/User Exit for custom table update from Delivery

    Hi
    Our requirement is to update a custom table with the delivery number and other related details when the picking status is changed to "C". Kindly suggest BADI/User exit for this requirement .
    Thanks in Advance for your immediate help .

    Hi Joseph,
    See SAP Note 415716 - User exits in delivery processing. It says when you have the document number available, what is permitted, what not, ....
    I hope this helps you
    Regards
    Eduardo

Maybe you are looking for

  • Communication channel not visible in RWB

    Hello everyone, I am not able to view the communication channel in RWB. This is a HTTP sender . i have imported it but still it is not visible in  RWB. what could be the reason ? Regards, Ravi

  • Producer/ Consumer Design error?

    I am learning labview as I go and little errors keep stumping me. I set up the producer/consumer design and it reads the two while loops like I want. However, when I stop the program to save it to the write to measure it gives me an error saying inva

  • Error -35 on Quicktime h.264 export

    When exporting to h.264, from either compressor or Quicktime player, it fails and gives a "Quicktime error -35". I cannot find this error code anywhere, and have no idea what it means, or how to fix it. Thanks.

  • Unit Cost greyed out in Miscellaneous transactions

    We are using Miscellaneous Transactions to receive a rebuildable item into an Expense Subinventory. However, we see the Unit Cost field is greyed out. Subinventory is quantity tracked and profile option INV: Transfer Expense to Asset is Yes. Thanks,

  • Kernel Task and RAM

    Hello again, Apple Friends. Recently I have noticed that kernel_task in Activity Monitor is running at anywhere between 60MB and 200MB of RAM, which is really slowing things down. I have searched on the discussion boards the past few days and have fo