Using USEREXIT_FIELD_MODIFICATION

Hello SDNites,
Please tell me how to insert code in USEREXIT_FIELD_MODIFICATION and also tell me whether this exit is applicated for Sales Order transaction or can be used with Purchase Order or not?
Please provide me steps for writing the code in USEREXIT_FIELD_MODIFICATION.
Regards,
Abhi

Dear Abhishek,
If you do changes in this userexit MV45AFZZ surely it will reflect in the t-code VA01.Moreover screen related changes can be done.For example check the below:
   if screen-name = 'VBAK-LIFSK'.
         screen-input = 0.
endif.
if screen-name = 'VBAK-FAKSK'.
         screen-input = 0.
endif.
select single * from zsdauth_check where bname = sy-uname.
if zsdauth_check-delfg = 'X'.
if screen-name = 'VBAK-LIFSK'.
         screen-input = 1.
endif.
endif.

Similar Messages

  • How to  use USEREXIT_FIELD_MODIFICATION ?

    hi there
    how can i implement USEREXIT_FIELD_MODIFICATION in va02?
    do i need acess key for that?

    yes, u do need a access key, contact ur basis team to obtain an access key, once u r done with that u can use the following sample code
    FORM userexit_field_modification.
    CHECK vbap-pstyv EQ 'ZTAE' OR          " Sub-item Category for COMBO items
          vbap-pstyv EQ 'ZRCI'.            " Sub-item Category for Return Orders
    IF screen-name = 'RV45A-MABNR'  OR     " Material
       screen-name = 'RV45A-KWMENG' OR     " Order quantity
       screen-name = 'VBAP-VRKME'   OR     " Sales Unit
       screen-name = 'VBEP-WMENG'   OR     " Order qty in Schedule Lines
       screen-name = 'RV45A-KMPMG'.        " Order quantity in "Structure" tab
      SCREEN-INPUT = 0.
    ENDIF.                                 " IF screen-name = 'RV45A-...
    ENDFORM.

  • Item category grey out and cannot change

    I created an item category ZTAC with Structure scope= D.  During sales order entry, the item category is grey out and cannot be changed.
    Is there a way or any config to allow changes?
    Regards
    PSK

    You can check the changebility of the item category in program         
    MV45AFFE_FELDAUSWAHL_STATUS. SAP Note 208245 helps explain the logic.                                                                               
    In Form FELDAUSWAHL_VBAP-MATNR_SPEZ you encounter the following piece 
    of code that sets CH_SUBRC to 1, because of field TVAP-STRUM:                                                                               
    4 SAPMV45A FORM FELDAUSWAHL_VBAP-MATNR_SPEZ                          
      3 SAPMV45A FORM FELDAUSWAHL_VBAP-MATNR                               
      2 SAPMV45A FORM FELDAUSWAHL_STATUS                                   
      1 SAPMV45A MODULE (PBO) FELDAUSWAH                                   
         XVBAPF-VMENGE > 0    OR                                           
         XVBUP-FKSTA CA 'BC'  OR                                           
         VBAP-PROSA  EQ CHARC OR                                           
         TVAP-STRUM  CN 'E '  OR              <<<<< Here                   
    start Revenue Recognition Project                                      
    no more changes after revenue is recognized                            
         XVBUP-RRSTA CA 'BC' OR                                            
    end Revenue Recognition Project                                        
         VBAP-ANZSN > 0      OR                                            
         VBAP-VKGRU = VKGRU_DYN_POSTEN OR                                  
         VBAP-VKGRU = VKGRU_DYN_POSTEN_AG OR                               
         ( VBAP-KZVBR NE SPACE AND NOT                                     
         ( VBAP-KZVBR EQ KZVBR_P AND VBAP-PS_PSP_PNR IS INITIAL ) AND      
         XVBUP-UPDKZ NE UPDKZ_NEW ) OR                                     
         ( not VBAP-KALNR is initial  AND                                  
         XVBUP-UPDKZ NE UPDKZ_NEW ).                                       
        CH_SUBRC = 1.                         <<<<< Here                   
        EXIT.                                                              
    Because TVAP-STRUM is equal to 'D' and CH_SUBRC = 1 is causing         
    SCREEN-INPUT = 0 (not changeable) in the following piece of code:                                                                               
    2 SAPMV45A FORM FELDAUSWAHL_STATUS                                   
      1 SAPMV45A MODULE (PBO) FELDAUSWAHL                                                                               
    Main Program     SAPMV45A                                              
    Source code of   MV45AFFE_FELDAUSWAHL_STATUS                           
        when 'MATNR'.                                                      
          perform feldauswahl_vbap-matnr changing sy-subrc.                
          if sy-subrc > 0.                                                 
            screen-input = 0.                  <<<< Here                   
          endif.                                                           
    You may use USEREXIT_FIELD_MODIFICATION in MV45AFZZ to open this field 
    if needed. If you set  SCREEN-INPUT to 1 when SCREEN-NAME = 'VBAP-PSTYV',
    etc you will be able to enter the item category.                                       
    I hope this helps.
    Gerard
    Edited by: Gerard Magorrian on Oct 15, 2010 10:07 PM

  • Disable the Item Availability Button based on Order type and Item category

    Hi ,
    My requirement is to disable the Item availability check button in VA01 based on the Order Type & Item category. Is there any user Exits/ Badi / FM available for this.
    Thanks in advance.
    Srinivas.

    Hi,
    Although it is an old post I need to answer for people who search an answer to the same type of question. To hide a field
    you can use transaction variant 'tcode:SHD0'. But it is not based on Order type and Item category. May be you can use
    USEREXIT_FIELD_MODIFICATION form in user-exit MV45AFZZ. You can loop at screen and set screen-active = 0 in fields
    where you want them to be inactive.

  • How to use a Dynamic Transaction Screen Variant

    Hi,
    I'm trying to use a standard variant (ZVA01) asociated to trx VA01.
    I created this transaction variant in order to avoid changes of adresses's fields  of the partners (bill to party)  during the Sales Order creation.
    I set as 'Only Display' this fields.
    The problem we have is that, we also have 'One Time customers', in this case those blocked fields should be available to change its data during SO creation.
    How can I change dynamically the transaction variant to be used in VA01 , based on
    in the type of cliente (CPD or not CPD) ??
    I have read that there exists a DYNAMIC TRANSACTION VARIANTs option, but I have  not understood its way of use.
    Could some body give me a link to this topic or explain it ?? .
    Thanks ...
    Regards
    Tania Moreno

    Tania,
    I have never heard of 'DYNAMIC TRANSACTION VARIANT'.  There does exist Dynamic date variables for Variants.
    http://help.sap.com/saphelp_erp60/helpdata/en/c0/980398e58611d194cc00a0c94260a5/frameset.htm
    I think you should probably use a userexit to achieve your business requirements.  Perhaps USEREXIT_FIELD_MODIFICATION
    within include MV45AFZZ.
    Best Regards,
    DB49

  • Modify screen in VA41 : How to hide field in userexit_field_modification

    Hello,
    How to hide field at item level only (User should not be able to edit this field) in userexit_field_modification, instead of hiding the complete column.
    If I use
    FORM USEREXIT_FIELD_MODIFICATION.
    IF screen-name = 'RV45A-MABNR'. " Material
    SCREEN-required = 0.
    ENDIF.
    ENDFORM
    the complete material column will be greyed out. I want to grey out only for some items.
    Thanks,
    AP

    Hi AP,
    You havent given MODIFY SCREEN after screen-required = 0.
    Please try it abd check.
    FORM USEREXIT_FIELD_MODIFICATION.
    IF screen-name = 'RV45A-MABNR'. " Material
    SCREEN-required = 0.
    MODIFY SCREEN.
    ENDIF.
    ENDFORM
    Regards,
    Pawan

  • Userexit_field_modification in MV45AFZZ

    Hi ABAP-gurus,
    I´ve used the above mentioned userexit to make a field editable.
    The field is VBAP-KTGRM.
    How I can store the entered content of this field?
    I thought that I can use userexit_move_field_to_vbap in the same include but it seems that the entered values get lost when I leave the dynpro.
    Any hints?
    Thanks,
    Tobias

    Hi,
    I still do not have my desired solution.
    I can not work with userexit_move_field_to_vbap because this userexit is called at the begin of creating a sales document.
    With Userexit_field_modification I still have the problem that I loose the value in VBAP-KTGRM when I leave the dynpro.
    My coding Inside Userexit_field_modification:
    CASE screen-name.
        WHEN 'VBAP-KTGRM'.
    Set to INPUT on when in Create or Change mode
          IF ( t180-trtyp = charh OR t180-trtyp = charv ).
             screen-input = 1.
          ENDIF.
      ENDCASE.
    These code lines make the field editable but I see no chance to save the entered value of VBAP-KTGRM.
    Thanks again,
    Tobi

  • USEREXIT_FIELD_MODIFICATION in MV45AFZZ to set tooltip?

    Hi,
    i will set a tooltip for a specific field in VA02/03 (say Matnr). I try to use the exit
    USEREXIT_FIELD_MODIFICATION in MV45AFZZ.
    There is a possibility to change the structure SCREEN and it works but
    there is no way to set a tooltip.
    Does anyone know a way by using this EXIT or creating a SCREEN variant or
    any otehr way?
    Thanks.
    Regards, Dieter

    Hi,
    I still do not have my desired solution.
    I can not work with userexit_move_field_to_vbap because this userexit is called at the begin of creating a sales document.
    With Userexit_field_modification I still have the problem that I loose the value in VBAP-KTGRM when I leave the dynpro.
    My coding Inside Userexit_field_modification:
    CASE screen-name.
        WHEN 'VBAP-KTGRM'.
    Set to INPUT on when in Create or Change mode
          IF ( t180-trtyp = charh OR t180-trtyp = charv ).
             screen-input = 1.
          ENDIF.
      ENDCASE.
    These code lines make the field editable but I see no chance to save the entered value of VBAP-KTGRM.
    Thanks again,
    Tobi

  • BADI for VA01 which are not for internal use ???

    Hello Folks,
    Im looking for BADIs which are not for internal use for the transaction VA01...
    Could anyone send all the BADIS which can be implemented for VA01...
    Thanks in advance...
    Reddy

    Hi there, you are lucky enough because I have found them almost a few days ago:
    ---------- BADI for VA01 ----------
    A1) BADI
    BEFORE (choosing any ORDER: ....) :
      - BADI_SD_SALES
      - BADI_SD_SALES_BASIC
      - UKM_R3_ACTIVATE
      - BADI_LAYER
      - BADI_MATN1
    AFTER (choosing ORDER NR - xxxx -) :
      - ADDR_PRINTFORM_SHORT
      - BADI_SD_SALES_ITEM
      - BADI_IBASE_AUTHORITY
      - BADI_IBASE_IBCO
      - CU_CONFIG_DELEGATION
      - CUKO_PLANT_CHANGE
      - EHS_DG_002
      - SD_COND_ACCESS_A
      - BADI_SD_TO_FM
    AFTER CHANGING something in all items and shifting to TAB "item detail":
      - BADI_SD_DPBP
      - CFOP_DET_PREP
      - ADJUST_NET_DAYS
      - BADI_SD_SALES_ADDON
    AFTER CHANGING something again in all items and shifting to TABS:
      - CFOP_DET_PREP
    AFTER SAVING:
      - /SAPSLL/CTRL_SD0A_R3
      - QUANTITY_STRUCT_CK
      - DYNPRO_EXTENSION_CK
      - IBRT_GEN_ADD_IN
      - VALUATION_CK
      - WORKORDER_UPDATE
      - ATP_PUBLISH_RESULTS
      - FM_FYC_RECOVERY_POST
      - FMAVC_DECO
      - GM_POSTING_CONTROL
      - BADI_ISPS_GRANT
      - DIP_UPDATE_FKDAT
      - CACL_CHARACTER_INPUT
      - /SAPSLL/CTRL_SD0A_R3
      - /SAPSLL/RFC_DEST
      - /SAPSLL/CTRL_SD0A_R3
      - /SAPSLL/IFEX_SD0A_R3
      - /SAPSLL/KMAT
      - BADI_SD_UPDATE_PLVAL
      - CUX_ADD_IN
      - BOM_EXIT
      - WORKORDER_EXEC_STEPS
    In case you may need them...
    ---------- USER EXIT for VA01 ----------
    A2) USER EXIT for VA01 :
    SDAPO001  Activating Sourcing Subitem Quantity Propagation
    SDTRM001  Reschedule schedule lines without a new ATP check
    V45A0001  Determine alternative materials for product selection
    V45A0002  Predefine sold-to party in sales document
    V45A0003  Collector for customer function modulpool MV45A
    V45A0004  Copy packing proposal
    V45E0001  Update the purchase order from the sales order
    V45E0002  Data transfer in procurement elements (PRreq., assembly
    V45L0001  SD component supplier processing (customer enhancements
    V45P0001  SD customer function for cross-company code sales
    V45S0001  Update sales document from configuration
    V45S0003  MRP-relevance for incomplete configuration
    V45S0004  Effectivity type in sales order
    V45W0001  SD Service Management: Forward Contract Data to Item
    V46H0001  SD Customer functions for resource-related billing
    V60F0001  SD Billing plan (customer enhancement) diff. to billing
    A3) CLASSICAL USER-EXIT per VA01:
    --- include MV45AFZZ ---
    FORM userexit_delete_document.
    FORM userexit_field_modification.
    FORM userexit_move_field_to_vbak.
    FORM userexit_move_field_to_vbap.
    FORM userexit_move_field_to_vbep.
    FORM userexit_move_field_to_vbkd.
    FORM userexit_number_range USING us_r
    FORM userexit_pricing_prepare_tkomk.
    FORM userexit_pricing_prepare_tkomp.
    FORM userexit_read_document.
    FORM userexit_save_document.
    FORM userexit_save_document_prepare.
    Hope its enough
    Denis Mullaraj

  • How do I use Edge Web Fonts with Muse?

    How do I use Edge Web Fonts with Muse - is it an update to load, a stand alone, how does it interface with Muse? I've updated to CC but have no info on this.

    Hello,
    Is there a reason why you want to use Edge Web Fonts with Adobe Muse?
    Assuming you wish to improve typography of your web pages, you should know that Muse is fully integrated with Typekit. This allows you to access and apply over 500 web fonts from within Muse. Here's how you do it:
    Select a text component within Muse, and click the Text drop-down.
    Select Add Web Fonts option, to pop-open the Add Web Fonts dialog.
    Browse and apply fonts per your design needs.
    Muse also allows you to create paragraph styles that you can save and apply to chunks of text, a la InDesign. Watch this video for more information: http://tv.adobe.com/watch/muse-feature-tour/using-typekit-with-adobe-muse/
    Also take a look at these help files to see if they help you:
    http://helpx.adobe.com/muse/tutorials/typography-muse-part-1.html
    http://helpx.adobe.com/muse/tutorials/typography-muse-part-2.html
    http://helpx.adobe.com/muse/tutorials/typography-muse-part-3.html
    Hope this helps!
    Regards,
    Suhas Yogin

  • How can multiple family members use one account?

    My children have iphones, ipads, ipods and mac books, my problem is how do you use home sharing with the devices and not get each others data.  My Husband just added his iphone to the account and got all of my daughters contacts.  I understand they could have there own accounts but if i buy music on itunes and both children want the same song, I don't feel i should have to pay for it twice.  Is there away we can have home sharing on the devices and they can pick and choose what they want? and is this icloud going to make it harder to keep their devices seperate?

    My children have iphones, ipads, ipods and mac books, my problem is how do you use home sharing with the devices and not get each others data.  My Husband just added his iphone to the account and got all of my daughters contacts.  I understand they could have there own accounts but if i buy music on itunes and both children want the same song, I don't feel i should have to pay for it twice.  Is there away we can have home sharing on the devices and they can pick and choose what they want? and is this icloud going to make it harder to keep their devices seperate?

  • Iphoto crashing after using mini-dvi to video adapter

    Hi, IPhoto on my Macbook is crashing. I can open it, then as soon as I scroll down it locks up and I have to force quit.
    This started happening right after I used a Mini-DVI to Video Adapter cable to hook my macbook up to my TV. The adapter/s-video connection worked and I was able to see the video on the tv. But iphoto immediately locked up the computer when I went to slide show and now it locks every time I open it.
    Any ideas?
    Thank you:)
    Dorothy

    It means that the issue resides in your existing Library.
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    Regards
    TD

  • How do multiple family members use iTunes.? One account or multiple?

    How do multiple family members use iTunes. One account right now but apps gets added to all devices and iTunes messages go to all devices.  Can multiple accounts be setup and still have ability to share purchased items?

    Hey Ajtt!
    I have an article for you that can help inform you about using Apple IDs in a variety of ways:
    Using your Apple ID for Apple services
    http://support.apple.com/kb/ht4895
    Using one Apple ID for iCloud and a different Apple ID for Store Purchases
    You can use different Apple IDs for iCloud and Store purchases and still get all of the benefits of iCloud. Just follow these steps:
    iPhone, iPad, or iPod touch:
    When you first set up your device with iOS 5 or later, enter the Apple ID you want to use with iCloud. If you skipped the setup assistant, sign in to Settings > iCloud and enter the Apple ID you’d like to use with iCloud.
    In Settings > iTunes and App Stores, sign in with the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match). You may need to sign out first to change the Apple ID.
    Mac:
    Enter the Apple ID you want to use for iCloud in Apple () menu > System Preferences > iCloud.
    Enter the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match) in Store > Sign In. In iTunes 11, you can also click iTunes Store > Quick Links: Account.
    PC (Windows 8):
    Enter the Apple ID you want to use for iCloud in the Control Panel. To access the iCloud Control Panel, move the pointer to the upper-right corner of the screen to show the Charms bar, click the Search charm, and then click the iCloud Control Panel on the left.
    Enter the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match) in iTunes. In iTunes 10, select Store > Sign In. In iTunes 11, click iTunes Store > Quick Links: Account.
    PC (Windows 7 and Vista):
    Enter the Apple ID you want to use for iCloud in Control Panel > Network and Internet > iCloud.
    Enter the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match) in iTunes 10 in Store > Sign In. In iTunes 11, click iTunes Store > Quick Links: Account.
    Note: Once a device or computer is associated with your Apple ID for your iTunes Store account, you cannot associate that device or computer with another Apple ID for 90 days. Learn more about associating a device or computer to your Apple ID.
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • Using SQVI to generate report of open and released delivery schedule lines

    All,
    I'm using SQVI  to generate an excel spreadsheet for some buyers to show open released schedule lines because they are a 1 line item per scheduling agreement company.
    I used the logical database MEPOLDB instead of a table joint and pulled fields from EKKO(vendor, SA #,&purchasing group), EKPO(Material Number), EKEH(schedule line type), and EKET(delivery date, scheduled qty,previous qty).
    Does this sound like I'll get the results I want on paper as long as I use the right selection criteria, because the report I'm getting isn't quite what I expect? I am unable to identify which lines are authorized to ship vs. trade-off zone, planning, etc. in the report thus far.

    Hi Mark,
                 I have faced same requirement. I am not sure about transporting to TST and PROD. I done by this way.
    After generating SQVI program in DEV , I assigned that program  to a transaction and tested in DEV. Later i have regenarated SQVI in Production. then I assigned the generated Program to same transaction in DEV. And transported the Tcode assignment of program to Production..
    About authorization , if its not sensitive report, BASIS can restrict at transaction level.
    Regards,
    Ravi.

  • Using Mini DVI to VGA adapter on MacBook

    I bought the adapter from Apple & hooked up my LCD monitor to the MacBook, but the video I get on the monitor is different that on my laptop. It has an old screen background & the dock but nothing on my desktop shows up. Also, when I'm plugged to the monitor, my dock disappears on the laptop screen. Is there some setting I need to change? It worked fine with my G4 PowerBook.
    Thanks for any help....
    MacBook   Mac OS X (10.4.6)  

    i use the mini dvi-vga adapter in my classroom almost everyday. It sounds like your new monitor is running as a side by side monitor to your display instead of a "replacement" display.
    To get your projector/monitor to basically show whatever is on your macbook screen once you've hooked up press F7....this should make your projector/monitory become your display with your dock & all of your desktop stuff. Your new monitor will completely mirror your display.
    THis should do what you're looking for.

Maybe you are looking for