Exit or BAdI - allow/disallow to change material desc

hi all experts
pls you advise me for any Exit and/or BAdI that you have experience like my case
i would like to allow or disallow to change material description in short text field at follow t-code ::
ME51N – Create Purchase Requisition
ME52N – Change Purchase Requisition
ME21N – Create Purchase Order
ME22N – Change Purchase Order
IW31 – Create Maintenance Order
IW32 – Change Maintenance Order
CJ20N – Project Builder
thanks

execute the below program, it will display all the exits for each transaction.
*& Report  ZUSEREXITS
REPORT  ZUSEREXITS.
TABLES : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
TABLES : tstct.
DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
DATA : field1(30).
DATA : v_devclass LIKE tadir-devclass.
PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
SELECT SINGLE * FROM tstc WHERE tcode EQ p_tcode.
IF sy-subrc EQ 0.
  SELECT SINGLE * FROM tadir WHERE pgmid = 'R3TR'
  AND object = 'PROG'
  AND obj_name = tstc-pgmna.
  MOVE : tadir-devclass TO v_devclass.
  IF sy-subrc NE 0.
    SELECT SINGLE * FROM trdir WHERE name = tstc-pgmna.
    IF trdir-subc EQ 'F'.
      SELECT SINGLE * FROM tfdir WHERE pname = tstc-pgmna.
      SELECT SINGLE * FROM enlfdir WHERE funcname =
      tfdir-funcname.
      SELECT SINGLE * FROM tadir WHERE pgmid = 'R3TR'
      AND object = 'FUGR'
      AND obj_name EQ enlfdir-area.
      MOVE : tadir-devclass TO v_devclass.
    ENDIF.
  ENDIF.
  SELECT * FROM tadir INTO TABLE jtab
  WHERE pgmid = 'R3TR'
  AND object = 'SMOD'
  AND devclass = v_devclass.
  SELECT SINGLE * FROM tstct WHERE sprsl EQ sy-langu AND
  tcode EQ p_tcode.
  FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
  WRITE:/(19) 'Transaction Code - ',
  20(20) p_tcode,
  45(50) tstct-ttext.
  SKIP.
  IF NOT jtab[] IS INITIAL.
    WRITE:/(95) sy-uline.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 sy-vline,
    2 'Exit Name',
    21 sy-vline ,
    22 'Description',
    95 sy-vline.
    WRITE:/(95) sy-uline.
    LOOP AT jtab.
      SELECT SINGLE * FROM modsapt
      WHERE sprsl = sy-langu AND
      name = jtab-obj_name.
      FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
      WRITE:/1 sy-vline,
      2 jtab-obj_name HOTSPOT ON,
      21 sy-vline ,
      22 modsapt-modtext,
      95 sy-vline.
    ENDLOOP.
    WRITE:/(95) sy-uline.
    DESCRIBE TABLE jtab.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No of Exits:' , sy-tfill.
  ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(95) 'No User Exit exists'.
  ENDIF.
ELSE.
  FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
  WRITE:/(95) 'Transaction Code Does Not Exist'.
ENDIF.
AT LINE-SELECTION.
  GET CURSOR FIELD field1.
  CHECK field1(4) EQ 'JTAB'.
  SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
  CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
Message was edited by:
        tom tom

Similar Messages

  • Exit or Badi for controlling the change of user status in notification

    Hi,
    I want to check the current user status of notification while saving the notificaton. If the current user status satisifies particular situation, then the notification should be save else not.
    Is there any user exit or Badi which can be used to control the change of user status in notification.
    Thanks
    SUMIT

    Hi Pushpa,
    Thanks for the reply.
    the problem over here is that the BADi IQS0_STATUS_MAINTAIN only allows to disable the user status.
    the other function module STATUS_READ only fetches the data from JEST.
    whereas my problem is that i want to check on the changed status on the screen(which is not saved also).
    Appreciate your reply on the same.
    Thanks
    SUMIT

  • User Exit or BADI in APO to change sales order relevant data while CIF

    Hi Everyone,
    I require User exit or BADI at APO side to change customer field kunnr of sales order after it enters APO through CIF.
    My requirement is to replace KUNNR field with KDGRP field of sales order.
    The data will pass through CIF in APO.
    Is there any user exit or BADI for the same?
    Sample code will be of great help.
    Regards,
    Kashyap.

    Hi ,
    Resolved myself.
    customer exit APOCF010
    Regards,
    Kashyap

  • BAdI for change Material Description

    hi all experts
    can i use <u><b>BAdI</b></u>, how i do that.
    please tell me the steps..
    i would like to allow or disallow  to change material description in short text field at follow t-code ::
    ME51N – Create Purchase Requisition
    ME52N – Change Purchase Requisition
    ME21N – Create Purchase Order
    ME22N – Change Purchase Order
    IW31    – Create Maintenance Order
    IW32    – Change Maintenance Order
    CJ20N  – Project Builder
    thanks

    Step 1.
    Search the SDN Forums with keywords like "ME52N" "ME21N" "BADI" etc, and look at all the examples already posted.
    Andrew

  • EXIT or BADI to change FAX number in P O Messages at creation

    Hi all
    Looking for a user-exit or BADI to use to change the fax number of the PO Messages entry during creation/changing.  Using SAPscript.
    I am on SAP R/3 Enterprise 4.7.
    Regards
    Boniface

    Hi boniface,
    You can use User exit : EXIT_SAPMM06E_012, in that there is a I_LFA1 structure and
    field TELFX, change customer fax number here.
    regards
    kallam

  • How to Change Material number in Accouting Document on ML81N

    Hi,
    I have a requirement to change the Material Number based on the User custom data from the Custom Tab.
    Since Service PO does not contains any material number, so based on the custom tab, we are trying to update the same.
    Using ML81N T-Code.
    Please suggest is there any User Exit or BADI to add or change the Material number in the Accounting Document.
    Regards.
    Praveer.

    You have to update the field BSEG - MATNR from your custom field to see the material number in accounting document.
    There are many exit or badi available for t-code ML81N.. Just find appropriate one by using the document Methods to find Customer/User Exit's & BADi's for a Transaction Code!

  • Exit or BADI for operation in PM

    Hi All,
    I am searching for a User Exit or BADI to get the changes made  in operation tab of IW32.
    so that if any changes found I can send a mail to respective person .
    Thanks in Advance,
    Abhaya

    Hi ,
    Please check the below BADI s, Hope they may be helpfull
    WORKORDER_UPDATE
    GOS_SRV_SELECT
    INST_AUTHORITY_CHECK
    IWO1_ORDER_BADI
    WCM_DECOUPLING
    IWO1_SCREEN_MODIFY
    IWO1_WKCTR_CHANGE
    Also check  IWO10009 (at save user-exit)  .
    Thanks and Regards,
    P.Bharadwaj

  • BADI or User Exit - Change Material Document(GL/Account) before posting

    Hi,
    I want to change the MSEG and FI Posting values before the material documet is posted. I am not using the transaction MIGO for the material document posting. The material document which has to be changed was created during the stock adjustment (MI01,MI02,MI07.etc)
    The Details I want to change is "GL Account No" based on
    storage location. Since I cannot solve this requirement throught customization, I need a way to achive this using
    user exits or badis..
    Points will be rewared.
    Prasath
    Edited by: Prasath Kumar R on Jul 24, 2008 1:18 PM
    Edited by: Prasath Kumar R on Jul 24, 2008 1:18 PM

    Hi ,
    What you advised is right, But my customer demands to set the Gl Account at Storage location level.
    Is there any way that i can change GL/Account after Posting....????!!!!  I hope it also not possible..
    Plz advise..abt my assumption.
    Regards
    Prasath
    Dear All,
    Please let me know the possiblity of achiveing the above reqmt. Your suggestions will be helpful..
    Regards
    Prasath
    Edited by: Prasath Kumar R on Jul 25, 2008 9:33 AM

  • User Exit or BADI for Material,BOM,Customer,Vendor

    Dear All,
    I have requirement where if User A changes a Material X .It should go for approval by workflow.
    When the Material X is waiting for approval no other User should be able to change the material .It should give him a message
    and restrict him from changing the Material.
    Is there any User Exit or BADI to restrict him from changing the material. The exit or BADI should be called as soon as the Material is entered in MM02.
    I need exit or BADI for BOM, Vendor and Customer also.
    Thank you.

    Hi,
    You can go to Transaction SE80 and check in Function Group MATF. There have been two User Exits which are called during MM02 Transaction execution (via Analysis Transaction SE30) - MATERIAL_FIELD_SELECTION_NEW and MATERIAL_FIELD_SELECTION_COMB.
    BAdI called by FM MATERIAL_FIELD_SELECTION_NEW.
    Thanks and Regards,
    Prabhakar Dharmala

  • Is there any User Exit or BADI- Where LTAP-WDATU is as change parameter ,So during or after Transfer order creation GR date would be as per given logic not as current date

    Dear All,
    There is a requirement in which when the material (Not batch managed) is getting return from Non WM managed storage location to WM managed storage location than at the time of creating transfer order or after creation of transfer order would like to change LTAP-WDATU (GR date) automatically , So here i am unable to find the right user exit or BADI in which i can write the logic for same. Below is full description of the requirement.
    Here we are following Removal strategy "FIFO" while picking the material (Not batch managed) from WM managed storage location (WMS1) & transferring to Non WM managed storage location (ODS) ( than from there it use to go to Production) , at certain times partial quantity use to come back from Non WM managed storage location (ODS) to WM managed storage location (WMS1) and while doing putaway of the same "GR date" use to change which was not the actual when the material 1st time comes to WM managed storage location (WMS1) (before getting transfer to Non WM managed storage location). So here i want the user exit or BADI in which i can write my logic so that GR date ( LTAP-WDATU) would automatically change while creating transfer order or after creation of transfer order as per the "GR date" of same material which last moved from WM managed Storage location (WMS1) to Non WM managed storage location(ODS) because as per FIFO material dated before that would not be exist in the warehouse.
    Below is the flow of the material while transferring to production & returning from production.
    WMS1 ( WM managed warehouse ) --> ODS ( Non WM managed warehouse) --> Production  At the time of issue to production
    Production --> ODS ( Non WM managed warehouse) --> WMS1 ( WM managed warehouse ) At the time of return from production
    I hope i m clear on my requirement.
    Thanks in advance.

    1. You have to get a key from SAP to modify the two includes in which the user exits are present.
    2. You have to enter statement 'INCLUDE z**. ' in both user exits in the MV45* includes. Then save and activate the MV45** includes.
    3. You have to figure out the code that carries out the functionality described in your specifications.
    3. Write the code in includes Z** .
    4. Now the code written by you will be executed when you run the relevant SD transaction
    Message was edited by: Sudhir Bhate

  • Disallow any change in material through CJ20N IF PR is release and PO Exist

    Requirement is as follows.
    1. No change in PR material through CJ20N if related PR status is released.
    2. No change in PR material through CJ20N if related PO is exist for the same.
    3. Not allow to add new material through CJ20N if PR status is released.
    4. Not allow to add new material through CJ20N if PO is existing against any of the line item even if PR
        is unreleased.
    5. Not allow to delete the material through CJ20N if PR status is released
    6. Not allow to delete the material through CJ20N if PR is unreleased and against all line items deletion
        indicator is not present in PO
    to resolve this i tried enhancement is COZF0002 - Change purchase req. for externally procured component but behavior of this exit is not consistant.
    anyone have full proof solution for this ?

    Sorry for late update.
    enhancement CNEX0009 given by you is not getting triggerd.
    we tried enhancement COZF0002, but in this i am facing 1 problem
    When adding new network system seting NTUP status to WBS. And when WBS is having NTUP status system is not allowing to make any change.
    eg. IN WBS 1 alredy 5 PR created having PR release status. And WBS having NTUP status.
    when adding new network in this WBS, system is checking with old PR,  while saving against them if REL status is there exiting the transction w/o saving. As per the condition set for checking PR release status.
    for that we tried to schedule WBS internaly through the same exit, but when ading new network while saving it is scheduling as per the written code but exiting the transtion checking with opd PR.
    But NTUP is getting removed without saving the data. After that i have to add again the same data and at this time it is saving as WBS status is not NTUP.
    how to overcome this problem please suggest.

  • User exit or BADI to change the delivery date in ME51N  transaction

    Hi Gurus,
       I need a user exit or a BADI where I can change the delivery date in the item overview  tab for each material. I need to calculate the date according the vendor contact details.
    Please let me know if there is any BADI or a user exit for the same
    Thanks a lot!!!
    Sharath

    quick search for exits/badis: get package name and supply it into se80
    or
    se15
    thanq

  • Material document automatic fill position with user exit or BADI in  MB1B

    Hi gurus,
    We have this requeriment.
    We need to modify a material movement via customizing and enable a new field (Order) in it. (At header's level)
    After that, in MB1B, we need that  after input a maintenance order in that field, the first position in material document will be filled with material and quantity from the order.
    The question in...is there any user-exit or badi that allows me to do this implementation??
    A lot of thanks!!
    Edited by: Cap_ES on Oct 27, 2009 8:30 AM

    As i saw, this requeriment is not possible.
    I'll close the post.

  • Custom exit or badi for changing the user fields in operation of process order

    Hi all
        I want to find a exit or badi to set default value to the user fields in operation of process order when COR1.
        I have tried exit 'PPCO0001', but this exit is call after commit work, so I can not change any thing
        I also tried to use badi 'workorder_update', 'before_update', but all parameters in this BADI are importing, can't be changed, I've tried to change it and then program dump.
        Do you have any solution for this question?
    Thanks

    Do a Implicit Enhancement at the PBO of this subscreen.

  • Need a Exit or BADI  For Changing Validation Class  (PRUEFKL) during  EL28

    need to change the Validation Class Validation Class  (PRUEFKL)  or send it blank in order to remove all valdition during Meter read uplaod  , Can any one suggest a BADI or user exit or anything where in i can change the Validtion class before validation take place at the time of meter read uplaod .  As validtion class we do not pass in EL28 it usually get filled with 001 ans 002 . 
    Thanks in advance . 
    regards
    rajeev

    Thank for the response however my question was , can we change the Validation Class throght code  any exit or BADI  during el28  not  by config as config will be done for every thing as this we need to do only for a paticlular program .
    So in short i m looking for any enhancement point ( Exit /BADI ) which willl trigger during el28 and i will be able to send emply validation class in initial stage to avoide validation .
    Regards
    Rajeev
    Edited by: rajeevkohli on Aug 3, 2011 2:25 PM

Maybe you are looking for

  • Error in deploying the par from NWDS

    Hello, I am not able to deploy a par file from my NWDS, whereas I am able to deploy the same par from another machine which is in the same network. The error thrown in my machine in the file sap-plugin.log is given below. Kindly help to solve this is

  • Safari not launching

    I recently did a software update, restarted my laptop and tried to start Safari, and the icon just bounced and nothing happened. I searched for solutions, including logging in as another user, but nothing is causing it to launch. (Have tried deleting

  • Using Downloaded Extensions in Adobe Flash

    I have downloaded the Snow Flash Effect from the exchange site, but now I need help using it in Flash. I am a newby ! Can anyone give me step by step instructions ?

  • Keyword File Import

    I cannot seem to import a keyword file to lightroom. I cannot seem to find any reference to what lightroom considers a valid file. Strangely, if I export my keywords from lightroom and then try to re-import them Lightroom still comes up with an inval

  • Ipad 2 unable to restore after io8 Update

    Hello apple, I backed up my ipad2 in itunes and I downloaded the ios 8 software  through laptop and I try to update the software in ipad2, it said update failed and it went in to restore mode. so when I try to restore it, it says Ipad could not be re