User exit in me51n screen

hi,
While selecting material code in Purchase req screen I like to display the corresponding G/L account code in Account Assignment-->G/L Account field. Kindly give me the suggestion .
Thanks & Regards
R.Vijai

Check this MEREQ001  Customers' Own Data in Purchase Requisition USer Exit
Inside the above user exit you have a Screen Exit 
SAPLMEGUI       0014 SUB0     SAPLXM02        0111
try with that

Similar Messages

  • How to  find the user exit for a screen..

    Hi,
    plz help me how to find the user exit for a screen..?
    Regards
    Anbu

    Hi,
    check this program this will give you the list of user-exit and BADI for the perticular Tcode.
    REPORT  zuserexit_badi.
    TABLES : tstc,
    tadir,
    modsapt,
    modact,
    trdir,
    tfdir,
    enlfdir,
    sxs_attrt ,
    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,
    p_pgmna LIKE tstc-pgmna .
    DATA wa_tadir TYPE tadir.
    START-OF-SELECTION.
      IF NOT p_tcode IS INITIAL.
        SELECT SINGLE * FROM tstc WHERE tcode EQ p_tcode.
      ELSEIF NOT p_pgmna IS INITIAL.
        tstc-pgmna = p_pgmna.
      ENDIF.
      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 IN ('SMOD', 'SXSD')
        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:/(105) sy-uline.
          FORMAT COLOR COL_HEADING INTENSIFIED ON.
    Sorting the internal Table
          SORT jtab BY object.
          DATA : wf_txt(60) TYPE c,
          wf_smod TYPE i ,
          wf_badi TYPE i ,
          wf_object2(30) TYPE c.
          CLEAR : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
          LOOP AT jtab INTO wa_tadir.
            AT FIRST.
              FORMAT COLOR COL_HEADING INTENSIFIED ON.
              WRITE:/1 sy-vline,
              2 'Enhancement/ Business Add-in',
              41 sy-vline ,
              42 'Description',
              105 sy-vline.
              WRITE:/(105) sy-uline.
            ENDAT.
            CLEAR wf_txt.
            AT NEW object.
              IF wa_tadir-object = 'SMOD'.
                wf_object2 = 'Enhancement' .
              ELSEIF wa_tadir-object = 'SXSD'.
                wf_object2 = ' Business Add-in'.
              ENDIF.
              FORMAT COLOR COL_GROUP INTENSIFIED ON.
              WRITE:/1 sy-vline,
              2 wf_object2,
              105 sy-vline.
            ENDAT.
            CASE wa_tadir-object.
              WHEN 'SMOD'.
                wf_smod = wf_smod + 1.
                SELECT SINGLE modtext INTO wf_txt
                FROM modsapt
                WHERE sprsl = sy-langu
                AND name = wa_tadir-obj_name.
                FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
              WHEN 'SXSD'.
    For BADis
                wf_badi = wf_badi + 1 .
                SELECT SINGLE text INTO wf_txt
                FROM sxs_attrt
                WHERE sprsl = sy-langu
                AND exit_name = wa_tadir-obj_name.
                FORMAT COLOR COL_NORMAL INTENSIFIED ON.
            ENDCASE.
            WRITE:/1 sy-vline,
            2 wa_tadir-obj_name HOTSPOT ON,
            41 sy-vline ,
            42 wf_txt,
            105 sy-vline.
            AT END OF object.
              WRITE : /(105) sy-uline.
            ENDAT.
          ENDLOOP.
          WRITE:/(105) sy-uline.
          SKIP.
          FORMAT COLOR COL_TOTAL INTENSIFIED ON.
          WRITE:/ 'No.of Exits:' , wf_smod.
          WRITE:/ 'No.of BADis:' , wf_badi.
        ELSE.
          FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
          WRITE:/(105) 'No userexits or BADis exist'.
        ENDIF.
      ELSE.
        FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
        WRITE:/(105) 'Transaction does not exist'.
      ENDIF.
    AT LINE-SELECTION.
      DATA : wf_object TYPE tadir-object.
      CLEAR wf_object.
      GET CURSOR FIELD field1.
      CHECK field1(8) EQ 'WA_TADIR'.
      READ TABLE jtab WITH KEY obj_name = sy-lisel+1(20).
      MOVE jtab-object TO wf_object.
      CASE wf_object.
        WHEN 'SMOD'.
          SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
          CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
        WHEN 'SXSD'.
          SET PARAMETER ID 'EXN' FIELD sy-lisel+1(20).
          CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
      ENDCASE.
    Reagards,
    Bharat.

  • User exit for MB1A screen

    I  want to block the withdraw qty in MB1A screen.I used MBCFC003 AND MBCF0005 BUT I couldn't get the exact result.Is it user exit for MB1A screen -PPC00009.So can anyone tell me the exact user exit.
    Regards,
    Maran.d

    Dear Maran,
    What's your exact requirement?What do you want to block in MB1A T Code?
    You want to restrict for 261 movement for an order or reservation in MB1A?
    These are the exits that can be used for MB1A,
    MB_CF001                                Customer Function Exit in the Case of Updating a Mat. Doc.
    MBCF0011                                Read from RESB and RKPF for print list in  MB26
    MBCF0010                                Customer exit: Create reservation BAPI_RESERVATION_CREATE1
    MBCF0009                                Filling the storage location field
    MBCF0007                                Customer function exit: Updating a reservation
    MBCF0006                                Customer function for WBS element
    MBCF0005                                Material document item for goods receipt/issue slip
    MBCF0002                                Customer function exit: Segment text in material doc. item
    Regards
    S Mangalraj

  • User Exit in iw22 screen

    Dear all,
    I want to use a user exit in IW22 screen to add notification time.
    pls help me.
    Thankx

    No Screen Exit for IW22 i think it has only Function Exits
    Custom Exits
    IWO10026      User check on setting status 'Do not perform'
    IWO10027      User exit: Generate user-defined settlement rule
    IWOC0001      Create PM/SM notification: Determine reference object
    IWOC0002      PM/SM notification: Check whether status change is allowed
    IWOC0003      PM/SM authorization check of ref. object and planner group
    IWOC0004      Change single-level list editing PM/QM/SM ALV settings
    BADIs
    IQS0_STATUS_MAINTAIN                 Control of Changeability of User Status
    IWO1_SUBSCREEN_0170                  Display Additional Data on Object Screen 0170 PhysicalSample
    IWOC_LIST_TUNING                     Performance Tuning for Lists in PM/CS
    IWOC_OBJECTINFO_CHNG                 Changes to Data of Object Info Screen
    NOTIF_AUTHORITY_01                   Additional Authorization Checks for the Notification
    WOC_FL_DETERMINE                     Determine Date for Determining Installation Loc. Equi.
    Edited by: Bala Krishna on Aug 20, 2008 4:00 PM

  • To find user exit and a screen exit for VD03

    hi ,
    can u please find if there is a user exit and a screen exit to add for adding a Z-field on for the customer master on the shipping tab. i.e VD03 transaction.
    actually i have found the user-exit i.e exit_SAPMF02d_001.
    but this exit is not triggering when i put a breakpoint.
    so can u please tell me the solution for this.
    regards,
    soham p

    Hi,
    try these...
    Enhancement/ Business Add-in            Description
    Enhancement
    SAPMF02D                                User exits: Customer master data
    Business Add-in
    CUSTOMER_ADDRSCR_CHG                    Change Address Screen in the Master Data Maintenance
    CUSTOMER_ADD_DATA                       Additional Data at Customers
    CUSTOMER_ADD_DATA_BI                    Additional Data at Customers (Batch Input and ALE)
    CUSTOMER_ADD_DATA_CS                    Additional Data at Customers (Subscreen Container 4000)
    No.of Exits:          1
    No.of BADis:          4
    Arunima

  • Screen /user exit for additional screen on sales order header

    Hello sir's,
    can anybody help me for this query---
    Screen /user exit for additional screen on sales order header.
    exit name.
    Thanks in advance,
    Vikram

    Hi,
    SAP has provided screen modification. This you can do on "Additional data B" screen at both <b>header</b> and line iteam level.
    Additional <b>header data is on screen SAPMV45A 0309</b>, additional item data on screen SAPMV45A 0459. These screens contain the <b>Include screens SAPMV45A 8309 ( this is the screen exit at header  )</b> or SAPMV45A 8459 ( this is the screen exit at item ) as user exits. There few more exits you will have to code to get this screen works. The are,
    MV45AOZZ - PBO module of screen
    MV45AIZZ - PAI module of screen
    MV45ATZZ - Global data definition for user-exit.
    Check this link for more info regarding user-exit in sales docs.
    http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/frameset.htm
    We have alredy implemented this solution at line item level. Let me know if you have any question.
    Regards,
    RS

  • User Exit for ME51N Transaction

    Hi folks,
         I have a requirement regarding ME51N Tocde. If the user enters the internal order number in ME51N, while creating Purchase Requisition, the corresponding cost center should be displayed in the cost center field by default. I have found one user exit which will be useful for this. I wrote the code and feteched the Cost Center value in the exit EXIT_SAPLMEREQ_005. But i dont field any paramet for sending the Cost center value here. Could any body suggest me how to proceed now...How can i display the cost center value, using this Exit....
                         Thanks in advance,
                          Shyam.

    Hi Shyam,
    You can find the user exit using the following method:
    1. Go to the TCode SE24 and enter CL_EXITHANDLER as object type.
    2. In 'Display' mode, go to 'Methods' tab.
    3. Double click the method 'Get Instance' to display it source code.
    4. Set a breakpoint on 'CALL METHOD cl_exithandler=>get_class_name_by_interface'.
    5. Then run your transaction ML81N.
    6. The screen will stop at this method.
    7. Check the value of parameter 'EXIT_NAME'. It will show you the BADI for that transaction.
    Hope this solves your query.
    Regards,
    Saumya

  • User Exit PO MM06E005 - Screen does not exist

    Hello All,
    I created a new object for user exit 'EXIT_SAPMM06E_012' in Development System. This user exit is under the enhancement MM06E005. The user exit EXIT_SAPMM06E_012 will be used to produce an error message when saving a PO.
    After Transported the Project into Quality System and  I tried running transaction ME22->Select one line Item record in table control -> (Menu) ITEM -> Confirmations -> Overview   to confirm the PO. I have been getting a dump telling me that “SAPLXM06 Screen ‘0111’ Screen does not exist." This is because the screen exit was also included in the activation.
    When I have deactivated the Project its working fine.  This problem occurs only the activation of user exit.
    Thanks & Regards
    Sudheer

    hi,
    the problem when activating the exit you would have checked or activated the screen which currently is there in the development system , or you would have activated the screens and put them in a different request or in $tmp so when the request having the exit got transaported the screen code or activation was not taken along.
    Deactivate the exit and then deactivate the screens also.
    and then try to activate and put all in one request : deactivated and activations.
    Narayani
    Message was edited by:
            Narayani

  • User exit for selection screen of Tcode VL31N, VL32N

    Dear Experts,
    I want to modify selection screen of tcode VL31N, VL32N. Please help me to send user exit Tcode VL31N, VL32N.
    Thanks and regards,
    DucTV1.

    Hi Patrik,
    The ALV report is generating from  a query AQZZ/SAPQUERY/MEMEVL31========, in which the field catalogue of the ALV is coming from normal list dispaly structure only, structure of which is coming from %goo structure.
    Either try to find out an enhancement here , so that you can add fields over there.
    Thanks and Regards,
    Antony Thomas

  • EXIT from a user exit to intial screen of MM01

    hi friends,
    I am working on MM01 user exit..after saving user exit ll trigger..and in one scenerio we need to come back to screen MM01 with message at task bar..
    Please give some idea ..
    regards

    well to come back to your initial screen is quite easy.
    goto mm01 on your initial screen and hit F1.
    in the help hit the button technical information.
    there you get some information. amongst them your dynpro number of the screen you are on. (ahhh BTW make sure you place you cursor on the main screen before doing above steps, otherwise you get the dynpro-number of the subscreen your cursor is placed on.)
    Then at the end of your user-exit write: leave to screen (your dynpro number you identified with the steps above).
    to place a status message i believe you already have to be on the dynpro on which you want it to display. this would mean you had to modify the PBO event of that dypro, and i dont think you want that.
    but i dont see any other solution. maybe some other dude will post something about that

  • Vendor User Exit at Initial Screen

    Dear friends
    When a vendor is created through XK01, I would like to control that if u201CAccount Group 1000u201D is entered then Purchasing Organization and Company Code fields must be mandatory before skipping them empty at initial screen. Although I found a user exit that controls the data on saving but itu2019s too late since after creation of vendor workflow will be triggered and until itu2019s approved no changes will be allowed.
    Looking forward to your advice and thanks in advance.
    Thanks and Best Regards,

    Hi,
    Following are userExits of T-code XK01,
    RFKRRANZ            User exits: Accounts Payable Information System
    SAPMF02K            User exits: Vendor master data
    To Activate User Exit or Implement it,
    Use T-CODE CMODE.
    First Check whether enhancement is assigned to a project in CMOD.
    If it is not assigned, then  assign it to a project by creating Project in T-Code CMOD.
    After Assign Enhancement in project click on Components Button on Application bar of CMOD.
    Click on Function Exit and Active the Include present in USER EXIT.
    Write Your Code in the include fresent in UserExit.
    There is a Active button at application Bar of T-code in CMODE  to activate the exit.
    Thanks & regards,

  • User Exit with MD01 screen

    Hi All,
    In MD01 screen, you can find a field called <u>'User exit Parameter</u>".
    The user will have 3 options to input the data into this field.
    1.  The User can enter single value... ex: E01
        The user exit will execute the MRP Run based on this single value.
        For this scenario, i have SAP standard code as follows.. (Pgm name: LXM61F01)
        Here UXPAR will contain value 'E01'.
          WHEN 'Z1'.
          UXPAR = USER_PAR.
          CONDENSE UXPAR.
          WRITE UXPAR+0(3) TO DISPO.
          IF DISPO IS INITIAL.
            EXIT.
          ENDIF.
          IF MT61D-DISPO <> DISPO.
            NO_PLANNING = 'X'.
          ENDIF.
    2. The user can enter multiple values... ex: E01, E03, E09.
       The user exit should take these valuse into account and run the MRP.
       The above code is meant for single value.
       Now i have to develop the code for this scenario. How to build logic for this scenario  as the UXPAR will have value "E01, E03, E09"...????
    3. The user can enter values in range format... ex: E01-E05.
       The user exit should take E01, E02, E03, E04 and E05 to run the MRP.
       How to build the logic for this scenario..????? 
    Please Help me........
    Regards
    Pavan

    Can anyone please look into this issue and help me out...????
    Really appreciate your guidance in this regard....
    Regards
    Pavan

  • User exit for ME51n

    HI All,
    In ME51n/ME52n when the user clicks F4 help for Purchasing Group and selects one Pgroup then Material group is populated  automatically.I searched all the user exits and BADIs for ME but am not able to find how this is getting popualted.Can anyone plz let me know how this is happening?
    Thanks,
    Rakesh.

    Hi rakesh,
    Review OSS note 408017 for code samples
    use this program,
    REPORT YSMOD2
    SELECTION TEXTS : INPUT1 ----> Enter search term for Trxn.
                      INPUT2 ----> Enter type of exit
    REPORT YSMOD2 .
    TABLES: MODSAP, MODACT, TSTC.
    PARAMETERS: INPUT1 LIKE TSTC-TCODE DEFAULT ' ',
                INPUT2 LIKE MODSAP-TYP DEFAULT ' '.
    DATA: SEARCH1(6),
          SEARCH2(3),
          SEARCH3 LIKE MODSAP-MEMBER.
    DATA : FIRST_ROW VALUE 'Y'.
    CONCATENATE: '%' INPUT1 '%' INTO SEARCH1,
                 '%' INPUT2     INTO SEARCH2.
    SELECT * FROM TSTC WHERE TCODE LIKE SEARCH1.
      FIRST_ROW = 'Y'.
      CHECK TSTC-PGMNA NE SPACE.
      CONCATENATE '%' TSTC-PGMNA '%' INTO SEARCH3.
      SELECT * FROM MODSAP WHERE TYP LIKE SEARCH2
                           AND MEMBER LIKE SEARCH3.
        SELECT SINGLE * FROM MODACT WHERE MEMBER = MODSAP-NAME.
        IF FIRST_ROW EQ 'Y'.
          WRITE: /0 TSTC-TCODE, 6 TSTC-PGMNA, 16 MODSAP-NAME, 32 MODSAP-TYP,
                                           45 MODSAP-MEMBER, 70 MODACT-NAME.
          FIRST_ROW = 'N'.
        ELSE.
    WRITE: /16 MODSAP-NAME, 32 MODSAP-TYP, 45 MODSAP-MEMBER, 70 MODACT-NAME.
        ENDIF.
        CLEAR : MODSAP, MODACT.
      ENDSELECT.
      IF SY-SUBRC NE 0.
        WRITE : /0 TSTC-TCODE, 6 TSTC-PGMNA, 30 'No exits found'.
      ENDIF.
      CLEAR TSTC.
    ENDSELECT.
    END-OF-SELECTION.
      CLEAR: SEARCH1, SEARCH2, SEARCH3.
    thanks,
    nagendra

  • BADI user exit at me51n or me21n

    Hi,
    i need badis or user exit while creating Purchase order requisition(me51n) or purchase order purchase order(me21n).
    What i am trying to do is that the cost center should be provided while the user enters other data.
    And the cost center will be composed of based on some criteria and it will be available while user entering data.
    Thanks.

    Hello
    In both cases you should use the "CUST" version of the BAdI because the other ones are "SAP-internal":
    ME_PROCESS_PO_CUST
    ME_PROCESS_REQ_CUST
    For both BAdIs you will find plenty of sample codings with the ABAP Development forums.
    Regards
      Uwe

  • User Exit in ME51N: EXIT_SAPLMEREQ001 Problem with header

    Hello together,
    I am using EXIT_SAPLMEREQ001 and EXIT_SAPLMEREQ003 to change custom fields in the item. But i have the following problem:
    When I call IM_REQ_ITEM->get_data(  ) in EXIT_SAPLMEREQ001 it has always the BSART 'NB' and not the
    one the user has chosen. It seems that it has always the state from the start of the programm where the default for BSART is "NB"

    User Exit
    PR -
    MEREQ001
    PO -
    MM06E004  Control import data screens in purchase order
    MM06E005  Customer fields in purchasing document
    ME_PROCESS_PO_CUST (BADi)
    Hope the above helps.
    Regards,
    Vivek

Maybe you are looking for