Enhancment on ME21N

Hi Experts,
while creating po using me21n  i need to validate the delivery date with document date,
will you plz provide any enhancment spot or badi's or user exit to do this.
thanks,
taj

We had a requirement for hiding the tab Spec2000 in item detail.
The code in the enhancement implementation AD_S2K_SUB_LMEGUIU08 in function module MEGUI_BUILD_PO_ITEM_PLUGIN was commented out to remove the extra tab as the structure that is linked to this tab was MEPO1339.
May be the same works for you for the other tab.

Similar Messages

  • Enhancement for ME21N

    Hi experts,
        My customer gives me a requirement is that when the end user uses ME21N to create a purchase order,he/she inputs the data and then click the button "save" to save the data,then it needs to check whether the vender is valid or not.If the vender is valid,then the end user can save data.Otherwise,we should not create the purchase order.
        I find out many customer functions and some BADIs,but I don't know which enhancement I should use.Could you please help me to find out which enhancement I should use??
    Thanks a lot.
    best regards,
    Villy,Lv

    Hi guys,
    I find that I can use the enhancement MM06E005 to satisfy this requirement.There is a customer function EXIT_SAPMM06E_012 in this enhancement.SAP tips that this function can check customer-specific data before saving.
    Thanks guys,
    best regards,
    Villy,Lv

  • Enhancement for ME21N in MM Module

    Hi experts,
    My customer gives me a requirement is that when the end user uses ME21N to create a purchase order,he/she inputs the data and then click the button "save" to save the data,then it needs to check whether the vender is valid or not.If the vender is valid,then the end user can save data.Otherwise,we should not create the purchase order.
    I find out many customer functions and some BADIs,but I don't know which enhancement I should use.Could you please help me to find out which enhancement I should use??
    Thanks a lot.
    best regards,
    Villy,Lv

    Dear Villy,
    You should use BADI ME_PROCESS_PO_CUST mathod CHECK. This mathod is called before saving the PO and also if you press check button. This is best place to put your check.
    If you do not have this BADI (Below release 470) or you do not want to use BADI, a user exit will also give this opportunity.
    You may use EXIT_SAPMM06E_012 (Enhancement MM06E005).
    If you do not acess of required data for this check, please use set data / get data to bring data into the enhancement.
    I am sure this will meet the purpose.
    Sanjeev

  • Enhancements in ME21N

    Hi Experts,
    Can anybody tell me whether any enhancement exists for the transaction ME21N
    Actually I want to write some code for it.
    Thanks
    Ravi

    Hi ravi,
    execute this program and give me21n in the tcode parameter,
    it will list u all the enhancements in the tcode:
    *& Report  Z_USEREXIT_DISPLAY
    REPORT Z_USEREXIT_DISPLAY
    NO STANDARD PAGE HEADING
    LINE-SIZE 200  MESSAGE-ID ZZ.
    T A B L E D E C L A R A T I O N S *
    TABLES: TFTIT,
    E071,
    E070.
    S T R U C T U R E D E C L A R A T I O N S *
    TYPES: BEGIN OF X_TSTC,
    TCODE TYPE TCODE,
    PGMNA TYPE PROGRAM_ID,
    END OF X_TSTC.
    TYPES: BEGIN OF X_TADIR,
    OBJ_NAME TYPE SOBJ_NAME,
    DEVCLASS TYPE DEVCLASS,
    END OF X_TADIR.
    TYPES: BEGIN OF X_SLOG,
    OBJ_NAME TYPE SOBJ_NAME,
    END OF X_SLOG.
    TYPES: BEGIN OF X_FINAL,
    NAME TYPE SMODNAME,
    MEMBER TYPE MODMEMBER,
    INCLUDE(15), "Include name
    END OF X_FINAL.
    I N T E R N A L T A B L E D E C L A R A T I O N S *
    DATA: IT_TSTC TYPE STANDARD TABLE OF X_TSTC WITH HEADER LINE.
    DATA: IT_TADIR TYPE STANDARD TABLE OF X_TADIR WITH HEADER LINE.
    DATA: IT_JTAB TYPE STANDARD TABLE OF X_SLOG WITH HEADER LINE.
    DATA: IT_FINAL TYPE STANDARD TABLE OF X_FINAL WITH HEADER LINE.
    V A R I A B L E S D E C L A R A T I O N S *
    U S E R I N P U T S S C R E E N *
    S E L E C T I O N S C R E E N *
    SELECTION-SCREEN: BEGIN OF BLOCK BLK01 WITH FRAME TITLE TEXT-T01.
    PARAMETERS: P_TCODE LIKE TSTC-TCODE OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK BLK01.
    S t a r t o f S e l e c t i o n *
    START-OF-SELECTION.
    PERFORM GET_TCODES. "Get Tcodes
    PERFORM GET_OBJECTS. "Get Objects
    E n d o f S e l e c t i o n *
    END-OF-SELECTION.
    PERFORM DISPLAY_RESULTS. "Display Results
    *& Form get_tcodes
    Get Tcodes
    FORM GET_TCODES.
    SELECT TCODE
    PGMNA
    INTO TABLE IT_TSTC
    FROM TSTC
    WHERE TCODE = P_TCODE.
    IF SY-SUBRC = 0.
    SORT IT_TSTC BY TCODE.
    ENDIF.
    ENDFORM. " get_tcodes
    *& Form get_objects
    Get Objects
    FORM GET_OBJECTS.
    DATA: L_FNAME LIKE RS38L-NAME,
    L_GROUP LIKE RS38L-AREA,
    L_INCLUDE LIKE RS38L-INCLUDE,
    L_NAMESPACE LIKE RS38L-NAMESPACE,
    L_STR_AREA LIKE RS38L-STR_AREA.
    DATA: V_INCLUDE LIKE RODIOBJ-IOBJNM.
    DATA: E_T_INCLUDE TYPE STANDARD TABLE OF ABAPSOURCE WITH HEADER
    LINE.
    DATA: L_LINE TYPE STRING,
    L_TABIX LIKE SY-TABIX.
    IF NOT IT_TSTC[] IS INITIAL.
    SELECT OBJ_NAME
    DEVCLASS
    INTO TABLE IT_TADIR
    FROM TADIR FOR ALL ENTRIES IN IT_TSTC
    WHERE PGMID = 'R3TR' AND
    OBJECT = 'PROG' AND
    OBJ_NAME = IT_TSTC-PGMNA.
    IF SY-SUBRC = 0.
    SORT IT_TADIR BY OBJ_NAME DEVCLASS.
    SELECT OBJ_NAME
    INTO TABLE IT_JTAB
    FROM TADIR FOR ALL ENTRIES IN IT_TADIR
    WHERE PGMID = 'R3TR' AND
    OBJECT = 'SMOD' AND
    DEVCLASS = IT_TADIR-DEVCLASS.
    IF SY-SUBRC = 0.
    SORT IT_JTAB BY OBJ_NAME.
    ENDIF.
    ENDIF.
    ENDIF.
    *- Get UserExit names
    LOOP AT IT_JTAB.
    SELECT NAME
    MEMBER
    INTO (IT_FINAL-NAME, IT_FINAL-MEMBER)
    FROM MODSAP
    WHERE NAME = IT_JTAB-OBJ_NAME AND
    TYP = 'E'.
    APPEND IT_FINAL.
    CLEAR IT_FINAL.
    ENDSELECT.
    ENDLOOP.
    *- Process it_final contents.
    LOOP AT IT_FINAL.
    L_TABIX = SY-TABIX.
    CLEAR: L_FNAME,
    L_GROUP,
    L_INCLUDE,
    L_NAMESPACE,
    L_STR_AREA.
    L_FNAME = IT_FINAL-MEMBER.
    CALL FUNCTION 'FUNCTION_EXISTS'
    EXPORTING
    FUNCNAME = L_FNAME
    IMPORTING
    GROUP = L_GROUP
    INCLUDE = L_INCLUDE
    NAMESPACE = L_NAMESPACE
    STR_AREA = L_STR_AREA
    EXCEPTIONS
    FUNCTION_NOT_EXIST = 1
    OTHERS = 2.
    IF SY-SUBRC = 0.
    IF NOT L_INCLUDE IS INITIAL.
    *- Get Source code of include.
    CLEAR: V_INCLUDE, E_T_INCLUDE, E_T_INCLUDE[].
    V_INCLUDE = L_INCLUDE.
    CALL FUNCTION 'MU_INCLUDE_GET'
    EXPORTING
    I_INCLUDE = V_INCLUDE
    TABLES
    E_T_INCLUDE = E_T_INCLUDE.
    IF SY-SUBRC = 0.
    LOOP AT E_T_INCLUDE.
    IF E_T_INCLUDE-LINE CS 'INCLUDE'.
    CLEAR L_LINE.
    L_LINE = E_T_INCLUDE-LINE.
    CONDENSE L_LINE NO-GAPS.
    TRANSLATE L_LINE USING '. '.
    L_LINE = L_LINE+7(9).
    IT_FINAL-INCLUDE = L_LINE.
    MODIFY IT_FINAL INDEX L_TABIX TRANSPORTING INCLUDE.
    ENDIF.
    ENDLOOP.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDLOOP.
    ENDFORM. " get_objects
    *& Form display_results
    Display Results
    FORM DISPLAY_RESULTS.
    FORMAT COLOR COL_HEADING.
    WRITE:/1(150) SY-ULINE.
    WRITE:/ SY-VLINE,
    2(23) 'Extension Name',
    24 SY-VLINE,
    25(39) 'Exit Name',
    64 SY-VLINE,
    65(74) 'Description',
    140 SY-VLINE,
    141(9) 'Include',
    150 SY-VLINE.
    WRITE:/1(150) SY-ULINE.
    FORMAT RESET.
    SORT IT_FINAL BY NAME MEMBER.
    LOOP AT IT_FINAL.
    CLEAR TFTIT.
    SELECT SINGLE STEXT
    INTO TFTIT-STEXT
    FROM TFTIT
    WHERE SPRAS = 'EN' AND
    FUNCNAME = IT_FINAL-MEMBER.
    WRITE:/ SY-VLINE,
    IT_FINAL-NAME COLOR COL_KEY, 24 SY-VLINE,
    25 IT_FINAL-MEMBER, 64 SY-VLINE,
    65 TFTIT-STEXT, 140 SY-VLINE,
    141 IT_FINAL-INCLUDE, 150 SY-VLINE.
    WRITE:/1(150) SY-ULINE.
    ENDLOOP.
    ENDFORM. " display_results
    regards,
    keerthi

  • Enhancement for me21n New tab

    Dear Sdn'ers
    I am facing a problem while updating the data from newly created tab in header for ME21N . Let me clarify I have designed the screen for adding the tab in header of me21n . Tab is diplay is over but New field added is not updated while in debugging.
    badi : ME_GUI_PO_CUST
    Method : IF_EX_ME_GUI_PO_CUST~TRANSPORT_FROM_DYNP
    break-point.
    CASE IM_NAME.
        WHEN SUBSCREEN1.
          CALL FUNCTION 'ZMEPOBADIEX_POP'
            IMPORTING
              EX_DYNP_DATA = DYNP_DATA_PAI.             "
          IF DYNP_DATA_PAI NE DYNP_DATA_PBO.
    something has changed therefor we have to notify the framework
    to transport data to the model
            RE_CHANGED = MMPUR_YES.
          ENDIF.
        WHEN OTHERS.
    Regards
    Pradeep
      ENDCASE.

    DONE THROUGH USER EXIT

  • Is there any enhancement for me21n for controlling gl account field in po

    I got requirement that when iam creating a new PO in ME21n i want account gl value to be 5175, when i choose account assignment category as order.

    Hi Shrikant,
    Is it showing g/l acc in your PO after specifying the WBS element? If yes then there could be some wrong selection in your MIRO screen, if NO then you need to correct your PO 1st to check with your PS guy to assign a correct g/l acc to the WBS element.
    Regards
    Shiva

  • Enhancement for ME21N t-code ?

    Dear ABAP Experts..,
            I have a requirement that in ME21N t-code Delivery / Invoice tab there is a field called Payment Terms. If user select Payment Terms as '0010'
    then he wants to new screen which have different entries .
         How can i do this issue when the user is selected Payment Terms as '0010' to generate new Tab in header part ?
    Thaks & Regards.
    K. Chinna..!

    Hi,
      Use this user exit MM06E005 Or BADI
    ME_GUI_PO_CUST
    ME_PROCESS_PO_CUST
    and write your code based on requirement .
    Regards,
    kumar.

  • Enhancement for ME21N & ME22N new subscreen

    Hi all,
    I'm looking to ad a new subscreen using definition ME_GUI_PO_CUST. I looked at the example CL_EXM_IM_ME_GUI_PO_CUST to understand how it works. Do you know why in the example the include "LMEVIEWSF01" is used? How the logic in the PBA and PAI works with the new subscreen? And where to put the new logic?
    Thanks.

    DONE THROUGH USER EXIT

  • BADI enhancement for ME21N

    Hello experts,
    I have a couple of queries regarding the BADI implementations ME_GUI_PO_CUST/ME_PROCESS_PO_CUST .
    1. I want to add a new tab under the PO item <b>based on the PO item type</b>. E.g., If the PO item type is 'D' (service) then the new tab should be displayed otherwise not.
    2. How can I disable the editing of a PO item field (say PO item number) or a PO header field (say Company code) in edit mode? I know its through fieldselection but a detailed example would be of great help.
    Thanks for your help in advance.
    Best regards,
    Yuvaraj

    Hi,
      FIrst you need to implement the 2 BADIs in SE19.
    The BADI ME_GUI_PO_CUST is responsible for Screen display and data exchange b/n db and the screen.
    The second BADI ME_PROCESS_PO_CUST is responsible for PO upadate.
    To get the screen in the Transaction you need to code in the method SUBSCRIBE of the first BADI.
    Example:
    ls_subscriber-name = subscreen4.
        ls_subscriber-dynpro = 0700.
        ls_subscriber-program = prog_name.
        ls_subscriber-struct_name = structure.
        ls_subscriber-label = TEST.
        ls_subscriber-position = 4.
       ls_subscriber-height = 6.
        ls_subscriber-height = 8.                           
        append ls_subscriber to re_subscribers.
        clear ls_subscriber.
    Plz go through the sample code provided by SAP for the BADIs in SE18.
    Hope this will help..

  • Enhancement for ME21N and ME22N

    Hi Expert,
    I need to change the delivery priority in STO, according to the data entered in the header(EKKO). But i am not able to find an exit or BAdi which is having the parameter delivery priority. The table and field names: ( EKPV LPRIO).
    In case anybody working similar requirements please let me know.
    Thanks and Regards
    Joby Jacob

    in method Post you can do this stuff like that
      DATA: ls_mepo TYPE mepoitem,
            ls_items TYPE purchase_order_item,
            lt_items TYPE purchase_order_items.
    lt_items = go_header->get_items( ).
      LOOP AT lt_items INTO ls_items.
        ls_mepo = ls_items-item->get_shipping_data( ).
    then set_shipping_data...
      ENDLOOP.

  • Capture error messages in message log in ME21n transaction

    Hello friends,
    i have a question here.I have created a Z-table which contain data about material groups which will not be used for the particular plant.when we create a PO now ,i am checking for each line item whether the material group entered for each line item exists in Z-table or not.If exists then throw a message 'XXXXXXXX.'
    as this is an enhancement to Me21n transaction , i am using User exit EXIT_SAPMM06E_012 .Now my problem is for each line item i am checking for condition and throwing a message.My requirement is show up all messages(for eg : If more than 1 line item contain errors for the same condition) in the message log of the transaction ME21n screen.I dont think we can do this in the User exit as showing up messages in ME21n is standard functionality
    Could anyone please give any idea how to achieve this??
    Thanks in advance!

    Hi,
    You may write to application error log or call screen to show error log in user exit.
    Cheers.
    ...Reward if useful.

  • Renaming the tabs on a tabstrip control for ME21N

    Hello SDNers,
    I am working on a screen enhancement for ME21N using user exit MM06E00.
    On ME21N a addiional tab called "Customer Data " has been added along with the standard tabstrip control.
    I wanted to rename this has "CFORM" now how do I do this.
    Please help me regarding this.
    Regards,
    Ranjith N

    Hi Nambiar,
    Go to the text symbols of Function Pool SAPLXM06 (function pool that contains the modules and includes and screens creatted using Enhancement MM06E005 ).
    Say you want to name the custom header tab (screen number 101) in PO as 'PO Header additonal data'.
    Then in the text symbols of Function Pool SAPLXM06 add '101' to "Sym" coulmn and 'PO Header additonal data' to "Text" column.
    Now after activating the text elements and the enhamcement project, if you run ME21N/ME22N/ME23N the name of the custom addtional header tab would be displaed as 'PO Header additonal data'.
    Hope this helps.
    Regards,
    Abhisek.

  • Enhancement for partner determination in STO

    Hello, SAP gurus!
    We are working on enhancement to copy CR partner role (forwarding agent) from supplying plant's vendor master to STO partner tab. We have found a way, how to select the data and fill it in structure MMPA, which will update STO partner data during STO save. The problem we are facing now is the missing partner data in parnters tab on ME21N screen, when the data is copied. Data is filled in MMPA structure, but something is still missing so it is not displayed on screen, thus it cannot be changed or seen.
    Has anyone figured out working solution for this, as SAP does not support partner determination for STO's sccording to note 117537?
    Thanks in advance!

    Hi,
    You need debug the T-code ME21N and see from which run time structure does ME21N displays data on the screen.
    And you will also write an enhancement for ME21N.
    Hope this is of help to you!
    Reetesh

  • Calling BAPI_PO_CREATE1 in ME_PROCESS_PO_CUST

    Hi Buddies,
        Users want to create another PO automatically when they created one PO using ME21N and if the automatic creating failed the error message will be populated in ME21N.
    I chose to call BAPI_PO_CREATE1 within the method ME_PROCESS_PO_CUST~CHECK,but the problem is the transaction will be ran endless untill the memory was consumed over.
    But when I put the BAPI in the method POST,everything is fine except error messages can't interrupt the process.
    is there anyone who has the practical experiences in creating a PO with the enhancement of ME21N?

    Hi Buddies,
        Users want to create another PO automatically when they created one PO using ME21N and if the automatic creating failed the error message will be populated in ME21N.
    I chose to call BAPI_PO_CREATE1 within the method ME_PROCESS_PO_CUST~CHECK,but the problem is the transaction will be ran endless untill the memory was consumed over.
    But when I put the BAPI in the method POST,everything is fine except error messages can't interrupt the process.
    is there anyone who has the practical experiences in creating a PO with the enhancement of ME21N?

  • Get parameter in User-Exit

    Hi experts,
    I am performing an enhancement on me21n. I have found the required user-exit and would like to pick up the value from the screen field of material (MEPO1211-EMATN). I have found that that field has a parameter 'MAT' on it. How do i fetch the value from that parameter. I have used the following but it is not working.
    DATA: pmat TYPE mepo1211-ematn.
    GET PARAMETER ID 'MAT' FIELD pmat.
    Thanks in advance guys.

    Hi,
    you can use field symbols to fetch the screen values.
    eg.
    FIELD_SYMBOLS : <FS> type ANY.
    eg. ASSIGN ('<(PROGRAM NAME>)SCREEN FIELD') INTO <FS>.
    if you use SET/GET parameter you are getting values from SAP memory. which means if some other users put values from  another session you will get a different value using SET/GET parameter.
    regards
    aromal

Maybe you are looking for

  • Extensions suddenly crashing PS CS6 for no apparent reason.

    They were working correctly yesterday, and now the presence of any extension, including 'Adobe Exchange,' will cause the entire application to hang once they are selected from their panel. This seems to be the case for any/all extensions (at least th

  • Collect images used in a dreamweaver project

    Hi Guys, Is there a quick way to collect images I have placed into my dreamweaver webpage So I can upload to my server. At the moment there are quite a few images/psd's not being used in my project but are in the images folder. cheers lister OSX Leop

  • Dynamic images in JSP

    Hi! I would like to generate dynamic images in a JSP which I would like do an "include" in other JSPs across the site. The reason for this is we show many emails/ phone numbers on various pages and with the prevalence of spiders/ robots, it would be

  • SAP NetWeaver 7.0 Java Trial Version - First File to download is empty

    I tried 3 times (just to be sure).  It appears the first file (Java Edition File 1) to download for the 7.0 Java Trial Version is empty.  The second file seems okay.  I didn't try any of the others.

  • User defined Object registeration wizard

    Hi Hi! Hope all are moving great! Do me a favour can any one guide me the usage of Object Registeration wizard found under the menu 'Tools' Cheers, Zen.M