EXIT_SAPMM06E_005

Hi Guys,
I have to use EXIT_SAPMM06E_005 and block my vendor address fields in ME22n using FIELD SELECTION CONTROL. HAs anyone worked on it before? ANy insights would be welcome .
Thanks in anticipation
Nishant.

This will definately Help you..Might be Similar to your requirement..
Give poits if Helpful
FORM vendor_address_field_selection.
  DATA: l_active LIKE sy-calld.
  CLEAR addr1_fsel.
  CASE endmaske+38(1).
    WHEN '+' OR '.'.
      TRANSLATE addr1_fsel-fisel USING ' .'.
    WHEN OTHERS.
      TRANSLATE addr1_fsel-fisel USING ' *'.
  ENDCASE.
  CALL FUNCTION 'MODX_FUNCTION_ACTIVE_CHECK'
    EXPORTING
      cprogname  = 'SAPMM06E'
      funcnumber = '005'
    IMPORTING
      active     = l_active
    EXCEPTIONS
      OTHERS     = 1.
  IF sy-subrc EQ 0 AND NOT l_active IS INITIAL.
    CALL FUNCTION 'EXIT_SAPMM06E_005'
      EXPORTING
        i_ekko          = ekko
      CHANGING
        field_selection = addr1_fsel-fisel
      EXCEPTIONS
        OTHERS          = 0.
  ENDIF.
modify screen according to field selection
  IF NOT addr1_fsel-fisel IS INITIAL AND addr1_fsel-fisel CO '-+.* '.
*TXJCD determination surppressed for vendor address
    addr1_fsel-fisel+47(1) = '-'.                          "TXJCD 508670
    CALL FUNCTION 'ADDR_DIALOG_PREPARE'
      EXPORTING
        field_selection = addr1_fsel-fisel
      EXCEPTIONS
        internal_error  = 1
        OTHERS          = 2.
  ENDIF.
ENDFORM.                               " VENDOR_ADDRESS_FIELD_SELECTION
Regards

Similar Messages

  • User Exit for ME21 PO Creation at the time of saving--Urgent

    Hi,
    Can some one help me out in finding the user exit for PO creation at the time of saving.
    The Requirement is:
    I need to create a custom field in EKKO table.
    After appending the structure with the field to the EKKO table, i need to create a PO.
    Now i need to update the field which has been created at the time of pressing the SAVE button.
    I need to update the EKKO table it self.
    I could find the user exits but none of them have the EKKO table either in Changing or in Tables.
    Thanks,

    Hi,
              You may want to check this user exits.
    EXIT_SAPMM06E_012 - Check Customer-Specific Data Before Saving
    EXIT_SAPMM06E_013 - Update Customer-Specific Data in Purchasing Document
    Here is the list of available user exits for ME21.
    EXIT_SAPMM06E_001 - Other Number Range or Own Document Number
    EXIT_SAPMM06E_004 - User Exit for Cust.-Specific Control of Import Data Screens in Purchasing
    EXIT_SAPMM06E_005 - Field Selection Control: Vendor Address Screen
    EXIT_SAPMM06E_006 - Export Data to Customer Subscreen for Purchasing Document Header (PBO)
    EXIT_SAPMM06E_007 - Export Data to Customer Subscreen for Purchasing Document Header (PAI)
    EXIT_SAPMM06E_008 - Import Data from Customer Subscreen for Purchasing Document Header
    EXIT_SAPMM06E_009 - Reset Customer Data at Beginning of New Document (Without Dialog)
    EXIT_SAPMM06E_012 - Check Customer-Specific Data Before Saving
    EXIT_SAPMM06E_013 - Update Customer-Specific Data in Purchasing Document
    EXIT_SAPMM06E_014 - Read Customer-Specific Data when Importing Purchasing Document
    EXIT_SAPMM06E_016 - Export Data to Customer Subscreen for Purchasing Document Item (PBO)
    EXIT_SAPMM06E_017 - Export Data to Customer Subscreen for Purchasing Document Item (PAI)
    EXIT_SAPMM06E_018 - Import Data from Customer Subscreen for Purchasing Document Item
    EXIT_SAPMM06E_020 - User Exit: Change Document for Requisitions (Conversion into PO)
    EXIT_SAPMM06E_021 - Fulfillment of Target Value: Release Orders Against a Contract
    <b>Reward points</b>
    Regards

  • User exit order purchase

    hi all,
    I try to do a validation in the transaction me21n, Actually the system make a validation when  the budget is exceeded  and generate a error message,  I need to recover some data of the order like  banfn, bnfpo, bedat, ernam y loekz, when there is  this error and  insert them in a table "Z" .
    Somebody could tell me which user exit can I use?
    Regards.
    MArisol

    Hi Marisol,
    You may need to take a look this user exits
    <b>EXIT_SAPMM06E_012 - Check Customer-Specific Data Before Saving
    EXIT_SAPMM06E_013 - Update Customer-Specific Data in Purchasing Document</b>
    Here is the list of available user exits for ME21.
    EXIT_SAPMM06E_001 - Other Number Range or Own Document Number                                
    EXIT_SAPMM06E_004 - User Exit for Cust.-Specific Control of Import Data Screens in Purchasing
    EXIT_SAPMM06E_005 - Field Selection Control: Vendor Address Screen                           
    EXIT_SAPMM06E_006 - Export Data to Customer Subscreen for Purchasing Document Header (PBO)   
    EXIT_SAPMM06E_007 - Export Data to Customer Subscreen for Purchasing Document Header (PAI)   
    EXIT_SAPMM06E_008 - Import Data from Customer Subscreen for Purchasing Document Header       
    EXIT_SAPMM06E_009 - Reset Customer Data at Beginning of New Document (Without Dialog)        
    EXIT_SAPMM06E_012 - Check Customer-Specific Data Before Saving                               
    EXIT_SAPMM06E_013 - Update Customer-Specific Data in Purchasing Document                     
    EXIT_SAPMM06E_014 - Read Customer-Specific Data when Importing Purchasing Document           
    EXIT_SAPMM06E_016 - Export Data to Customer Subscreen for Purchasing Document Item (PBO)     
    EXIT_SAPMM06E_017 - Export Data to Customer Subscreen for Purchasing Document Item (PAI)     
    EXIT_SAPMM06E_018 - Import Data from Customer Subscreen for Purchasing Document Item         
    EXIT_SAPMM06E_020 - User Exit: Change Document for Requisitions (Conversion into PO)         
    EXIT_SAPMM06E_021 - Fulfillment of Target Value: Release Orders Against a Contract       
    Hope this will help.
    Regards,
    Ferry Lianto

  • Purchase Order from Requisition

    My scenario is:
        I need to create a Purcahase Order based on Purchase Requisition as i need to add one new line item as a sample in the line item.If anybody has worked on the similar kind of scenario...kindly help me.
    This is related to transaction ME21 .
    Regards,
    Rahul.

    Hi Rahul,
    Try for userexit,
    Here are the list of available user exits for ME21.
    EXIT_SAPMM06E_001 - Other Number Range or Own Document Number
    EXIT_SAPMM06E_004 - User Exit for Cust.-Specific Control of Import Data Screens in Purchasing
    EXIT_SAPMM06E_005 - Field Selection Control: Vendor Address Screen
    EXIT_SAPMM06E_006 - Export Data to Customer Subscreen for Purchasing Document Header (PBO)
    EXIT_SAPMM06E_007 - Export Data to Customer Subscreen for Purchasing Document Header (PAI)
    EXIT_SAPMM06E_008 - Import Data from Customer Subscreen for Purchasing Document Header
    EXIT_SAPMM06E_009 - Reset Customer Data at Beginning of New Document (Without Dialog)
    EXIT_SAPMM06E_012 - Check Customer-Specific Data Before Saving
    EXIT_SAPMM06E_013 - Update Customer-Specific Data in Purchasing Document
    EXIT_SAPMM06E_014 - Read Customer-Specific Data when Importing Purchasing Document
    EXIT_SAPMM06E_016 - Export Data to Customer Subscreen for Purchasing Document Item (PBO)
    EXIT_SAPMM06E_017 - Export Data to Customer Subscreen for Purchasing Document Item (PAI)
    EXIT_SAPMM06E_018 - Import Data from Customer Subscreen for Purchasing Document Item
    EXIT_SAPMM06E_020 - User Exit: Change Document for Requisitions (Conversion into PO)
    EXIT_SAPMM06E_021 - Fulfillment of Target Value: Release Orders Against a Contract
    Find the available exits with the following program:::
    *& Report ZFINDUSEREXIT
    report zfinduserexit.
    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).
    Hope this will help.
    Regards,
    Phani.

  • Vendor Capacity

    Hi! i would like to know if some of you guys have developed a program where in before you can create a PO for a particular vendor it will prompt (warning not error msg) you that additonal PO quanity has exceeded the total quantites (regardless of UOM)of all PO created with the same delivery month date (based on the delivery date, which can be changed)under that vendor.  I mean like in PP module if the production orders' total quantities have exceeded the capacity of the workcenters.
    when i say regardless of the UOM, its like the MCE3 transaction however not on the document date but on the delivery date.
    thanks in advance!
    Jiggs
    Message was edited by: Jose Angelo Ladim
    Message was edited by: Jose Angelo Ladim

    Jose,
    I view this can be handled by using user-exits of ME21/ME21N. I can see one user-exit <b>EXIT_SAPMM06E_005</b> which is Field Selection Control: Vendor Address Screen. Probably you can make use of that or any other user-exit. There you may validate the data from table and give a warning message.
    Believe this helps you.
    rgds,
    TM

  • User exit or badi for me01

    Hello all,
    I tried a lot with the user exit EXIT_SAPLMEQR_001and EXIT_SAPMM06E_005 for me01 so the i can insert the material number and plant number to the ztable when ever i am making changes or creating source list for a material.
    Can any once tell me which badi or user exit should i use so the when ever i save the source list it is called and insert the material number and plant number in ztable.
    Help me out of this..............

    Could anbody tell me ?

  • Screen Exit for transaction ME31K

    Hi,
    I want to add customer specific fields in transaction ME31K.What is the screen exit that I should use?
    Thank you,
    Kunal.

    Hi
    try This
    EXIT_SAPMM06E_022              Relevant Texts for "Texts Exist" Indicator
    EXIT_SAPMM06E_023              Definition of Relevant Texts for "Texts Exist" Indicator
    XM06                           User Exits: Materials Mgmt. (Purchasing)
    EXIT_SAPMM06E_001              Other Number Range or Own Document Number
    <b>EXIT_SAPMM06E_004</b>              User Exit for Cust.-Specific Control of Import Data Screens in Purchas
    EXIT_SAPMM06E_005              Field Selection Control: Vendor Address Screen
    <b>EXIT_SAPMM06E_006             </b> Export Data to Customer Subscreen for Purchasing Document Header (PBO)
    EXIT_SAPMM06E_007              Export Data to Customer Subscreen for Purchasing Document Header (PAI)
    <b>EXIT_SAPMM06E_008             </b> Import Data from Customer Subscreen for Purchasing Document Header
    EXIT_SAPMM06E_009              Reset Customer Data at Beginning of New Document (Without Dialog)
    EXIT_SAPMM06E_012              Check Customer-Specific Data Before Saving
    EXIT_SAPMM06E_013              Update Customer-Specific Data in Purchasing Document
    <b>EXIT_SAPMM06E_014</b>              Read Customer-Specific Data when Importing Purchasing Document
    <b>EXIT_SAPMM06E_016</b>              Export Data to Customer Subscreen for Purchasing Document Item (PBO)
    EXIT_SAPMM06E_017              Export Data to Customer Subscreen for Purchasing Document Item (PAI)
    EXIT_SAPMM06E_018              Import Data from Customer Subscreen for Purchasing Document Item
    EXIT_SAPMM06E_020              User Exit: Change Document for Requisitions (Conversion into PO)
    EXIT_SAPMM06E_021              Fulfillment of Target Value: Release Orders Against a Contract
    EXIT_SAPMM06E_024              Customer Enhancement: Activate PReq Block
    XMLU                           MM SRV: User exits
    EXIT_SAPMM06E_010              Export of Service RFQ Data
    EXIT_SAPMM06E_011              Import Service Prices for Quotation
    Hope this helps
    Anirban M.

  • Restrict changing status on PO

    Is there a way to prevent certain users from changing the status of a PO from "Held" to "Complete".  Our Purchasing department generally puts a PO on hold in case other data is required before actually saving the PO to be submitted to the vendor.  But, another user may go into ME22N, make changes, and click Save instead of Hold. Are there some sort of blocks or messages that can be generated when a user changes the status from "incomplete" to "complete"?

    Hi Monique,
    Here is the list of user exits with description that are used in ME22N.
    EXIT_SAPMM06E_001 - Other Number Range or Own Document Number                            
    EXIT_SAPMM06E_004 - User Exit for Cust.-Specific Control of Import Data Screens in Purchas
    EXIT_SAPMM06E_005 - Field Selection Control: Vendor Address Screen                       
    EXIT_SAPMM06E_006 - Export Data to Customer Subscreen for Purchasing Document Header (PBO)
    EXIT_SAPMM06E_007 - Export Data to Customer Subscreen for Purchasing Document Header (PAI)
    EXIT_SAPMM06E_008 - Import Data from Customer Subscreen for Purchasing Document Header   
    EXIT_SAPMM06E_009 - Reset Customer Data at Beginning of New Document (Without Dialog)    
    EXIT_SAPMM06E_012 - Check Customer-Specific Data Before Saving                           
    EXIT_SAPMM06E_013 - Update Customer's Own Data in Purchasing Document                    
    EXIT_SAPMM06E_014 - Read Customer-Specific Data when Importing Purchasing Document       
    EXIT_SAPMM06E_016 - Export Data to Customer Subscreen for Purchasing Document Item (PBO) 
    EXIT_SAPMM06E_017 - Export Data to Customer Subscreen for Purchasing Document Item (PAI) 
    EXIT_SAPMM06E_018 - Import Data from Customer Subscreen for Purchasing Document Item     
    EXIT_SAPMM06E_020 - User Exit: Change Document for Requisitions (Conversion into PO)     
    EXIT_SAPMM06E_021 - Fulfillment of Target Value: Release Orders Against a Contract       
    You may need to ask your abaper to put break point in each above exits and find an appropiate exits for checking status changes.
    Again hope this will help.
    Regards,
    Ferry Lianto

  • User exit for Delivery Module

    Hi ,
    I had a include program in Development for Delivery module, "MV50AFZ1" in program "SAPMV50A", which is supposed to be a user exit.  So I transported that to production on clients requirement, but then its creating some problems for client, so he wants his previous program to be back.  But I can't change this "MV50AFZ1" program in development nor in Production.  So how could I bring that previous code in production. 
    Plz help, and if possible tell me how can I change "MV50AFZ1" program code.
    Thanks.
    Shailesh.

    check the below link for user exits in SD
    http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm
    Some more links r here....
    User Exits In Sales Document Processing
    http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm
    Get the access key from basis for the program SAPMV45A. And change the screen.
    First create a subscreen with that two fields, call that subscreen in the screen 8309.
    call subscreen s2 including 'SAPMV45A' '9002'.
    How to add custoim fields on the additiondata b tab of va01 and va02
    VA01/VA02  screen exit
    Re: Is there any enhancement  available .....for va01??
    Add a field in va01 transaction
    Additional Screen field in VA41 or VA01
    Here are the user exits available for creating PO.
    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
    EXIT_SAPMM06E_001 Other Number Range or Own Document Number
    EXIT_SAPMM06E_004 User Exit for Cust.-Specific Control of Import Data Screens in Purchasing
    EXIT_SAPMM06E_005 Field Selection Control: Vendor Address Screen
    EXIT_SAPMM06E_006 Export Data to Customer Subscreen for Purchasing Document Header (PBO)
    EXIT_SAPMM06E_007 Export Data to Customer Subscreen for Purchasing Document Header (PAI)
    EXIT_SAPMM06E_008 Import Data from Customer Subscreen for Purchasing Document Header
    EXIT_SAPMM06E_009 Reset Customer Data at Beginning of New Document (Without Dialog)
    EXIT_SAPMM06E_010 Export of Service RFQ Data
    EXIT_SAPMM06E_011 Import Service Prices for Quotation
    EXIT_SAPMM06E_012 Check Customer-Specific Data Before Saving
    EXIT_SAPMM06E_013 Update Customer-Specific Data in Purchasing Document
    EXIT_SAPMM06E_014 Read Customer-Specific Data when Importing Purchasing Document
    EXIT_SAPMM06E_016 Export Data to Customer Subscreen for Purchasing Document Item (PBO)
    EXIT_SAPMM06E_017 Export Data to Customer Subscreen for Purchasing Document Item (PAI)
    EXIT_SAPMM06E_018 Import Data from Customer Subscreen for Purchasing Document Item
    EXIT_SAPMM06E_020 User Exit: Change Document for Requisitions (Conversion into PO)
    EXIT_SAPMM06E_021 Fulfillment of Target Value: Release Orders Against a Contract
    EXIT_SAPMM06E_022 Relevant Texts for "Texts Exist" Indicator
    EXIT_SAPMM06E_023 Definition of Relevant Texts for "Texts Exist" Indicator
    EXIT_SAPMM06E_024 Customer Enhancement: Activate PReq Block
    user exit for sto
    Regards.

Maybe you are looking for