Implicit enhancement to a standard function module.

Hi everybody.
I used an Implicit Enhancement to a Standard function module Customized_Message, at the starting of function module.
Code:
ENHANCEMENT 1  ZFK01_ENHANCEMENT4.    "active version
If sy-tcode = 'FK01' and sy-CPROG = 'SAPMF02K' AND I_MSGNR = '230' AND i_arbgb = 'F2' AND I_DTYPE = 'I'.
  EXIT.
ENDIF.
ENDENHANCEMENT.
The above is working fine, to the condition what i had given above code.
But my question is, can i use a implicit enchancement to a Standard function module(Customized_message).

Yes, but you should also be aware that 'F2' is a configurable message class in the IMG.  You should attempt to solve your issue in that manner first.

Similar Messages

  • Enhancing Standard Function Module.

    We have added some custom fields in table HRP5102 which is getting updated from this function module HRRCF_MDL_REG_NAMED_USR_CREATE.
    I have created the enhancement implementation for this but that is not working .
    if ( lv_is_consistent eq 'X' ).
            move record-lastname to ls_centraldataperson-lastname.
            move record-firstname to ls_centraldataperson-firstname.
            move record-middlename to ls_centraldataperson-middlename.
        Setting the default correspondance language
            move sy-langu to ls_centraldataperson-correspondlanguage.
    I have to add my codes under this IF condition .
    so can any body sugget me how i can do this.

    Hi,
    The only implicit enhancement options for this function module are (as usual) at the very top and the very bottom.
    I don't think you will be able to use these, if your goal is to update custom fields in ls_centraldataperson before the 'register' method is called.
    The 'top' enhancement is too early (because ls_centraldataperson is not yet declared), and the 'bottom' enhancement is too late (because 'register' has already been called).
    So, as far as I can tell, it seems you will need a repair!
    regards
    Paul

  • Enhance standard function module in ECC 5.0 System

    Hi All,
    My requirement is to add the custome fields in the standard screen.there is no screen exit for this screen.
    The screen is calling by using the standard function module CALL_SCREEN_HU_DISPLAY
    Iam working on ECC 5.0 System, Is it possisble to enhance the standard function module and add custome fields.
    Please let me know if any suggestions.
    Thanks & Regards,
    Nagendra

    Hi Reddy,
    Thanks for the reply..
    Can u please give the steps how to create implicit enhancement in function modules.
    Thanks & Regards,
    Nagendra

  • Enhance sorce code in Function module option

    Dear Expets ,
              Please let me the advantage of the button - enhance source code in the menu bar of the standard function module.
              Can i write my own logic there .
              I am planning to modify the function module - CK_F_INTERNAL_ACTIVITY_VAL - based on certain condition.
    Thanks,
    Dev

    Hi,
    The option mentioned is a part of the enhancement framework provided by SAP to write Implict enhancements
    Search for Keyword "Implict enhancements" in SDN and elsewhere to get a brief idea
    Using this we can write codes in specific areas of the code as indicated by SAP.
    To view these locations -> click on the " enhance source code " button and then go to EDIT->Enhancement Operations -> show Implicit Enhancements ...SAP will highlight the areas where code can be written.
    Right Click on the area required->Enhancement Impelemtation -> Create
    It asks for a "Enhancement Implementation" as  a table control pop-up -> Creata a new one using the "create Icon" and give a suitable name .Your enhancement code will be save under this.
    In case you plan to undo the changes,go to the spot created Right Click ->Enhancement Impelemtation -> Undo
    Always use the "Where -used list" to analyse the impact of the changes when the function module code is changed and use this "Implict enhancement" only as the last option to edit source code.Implicit options may not always be available for all source codes and at all locations desired.
    Hope it helps!
    Regards
    Byju

  • IF statement in Standard function module PRICING

    Hi,
    In standard function module PRICING
    I found one if statement like this.
    if  xkomv-kntyp na '1$' .
    Plz tell me the meaning of thai '1$' value.
    Regards,
    Upender Verma.

    Hi,
         NA means Contains Not Any ..
         if xkomv-kntyp na '1$'  means .. xkomv-kntyp does not contain '1' or '$'.
         Read help on comparision operator 'NA'
    Regards,
    Srini.

  • Error in the SAP standard function module 'RSDRI_INFOPROV_READ'.

    Hello Experts,
    We upgraded from 3.5 to 7,0 support pack 17 .
    After upgrade we are getting error
      with return code 11 'Others´'.
    While debugging the standard function module we found that the standard method s_r_infoprov->read is being executed with the return code = 8 (inherited_error).
    Any suggestions?
    Regards,
    Vivek

    Not sure if the parameters provided were correct,you may wish to do a sanity check
    Input Parameters:
    1. I_INFOPROV - This will hold the Name of the Info Cube from where we need the pull the data.
    2. I_T_SFC - This parameter is in the format of Internal Table which holds the Character Info Objects we need to pull from the Source Cube.
    3. I_T_SFK - This parameter is also in the format of Internal Table which holds the Key Figure Info Objects which we need to pull from the Source Cube.
    4. I_T_RANGE - This is also in the format of Internal Table which holds the Selection criteria for which we need to pull from the Source Cube u2013 For example the Company Code u2013 001 and Fiscal Year Period u2013 001/2006.
    5. I_T_REQUID u2013 Selection of cube data based on Request Id.
    6. I_SAVE_IN_TABLE u2013 In case you need to save the data in DB table
    7. I_REFERENCE_DATE u2013 This holds the current date.
    8. I_AUTHORITY_CHECK u2013 This will hold the value u2018Ru2019, which is meant for READ.
    9. I_DEBUG u2013 This is for Debugging mode and holds the default value u2018Yu2019.
    Output Parameters:
    1. E_T_DATA u2013 This Output Parameter is of internal table format, in which we can mention the output fields (For all the fields mentioned in the Input Parameter, this output parameter will hold the values).
    2. E_END_OF_DATA u2013 Once the FM is executed successfully, this output parameter will hold the value u2018Xu2019, means extraction completed successfully.
    Hope it Helps
    Chetan
    @CP..

  • BDC program or standard function module to change data in PFCG TCode.

    Gurus,
    I have programatically change the validity date of SAP security role (TCode PFCG). Are there any standard function module available for this ? If not then does PFCG supports update vida BDC programming ?
    Regards,
    Rajesh.

    Cross-posting. Thread locked.
    Please read [the rules|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement].
    PS: Please clean up / follow up on all your hundreds of unresolved questions.

  • *Can we call a Standard Function Module inside a Zfunction module ?*

    Can anyone please help me know whether we can call a Standard Function Module inside a Zfunction module ?
    I tried the same (No syntax error) BUT when i activate the zFunction Module it throws the error:-
    +'' REPORT/PROGRAM statement missing, or program type is INCLUDE. " +

    Yes, I got the Answer -
    We Can we call a Standard Function Module inside a Zfunction module.
    But we need to make sure that the Function Groups are activated.
    FUNCTION ZFM_TEST_NESTED_FM.
    ""Local Interface:
    *"  EXPORTING
    *"     REFERENCE(EX_CONVERT_UPPER_CASE) TYPE  STRING
    CALL FUNCTION 'TERM_TRANSLATE_TO_UPPER_CASE'
      EXPORTING
      LANGU                     = SY-LANGU
        TEXT                         = 'gaurav'
    IMPORTING
        TEXT_UC                   = EX_CONVERT_UPPER_CASE
    EXCEPTIONS
       NO_LOCALE_AVAILABLE       = 1
       OTHERS                                    = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFUNCTION.

  • Is it necessary to use the standard function modules always?

    Hi All,
       Suppose i can retrieve the BUSINEES PARTNER ID from the table BUT000 with the help of 'BP_GUID' field through a select query statement. 
    Now is it necessary to use a standard function module to retrieve the same data. what about the performance? which is the better solution. to implement our own code or to use the function module available.
    Please someone clarify me about this issue.
    Regards,
    Sharry.

    If you'd ask the question in general it's obvious that there is no good answer as it always would depend on the circumstance. However, as you've posted your question in the performance tuning forum, let's look at your question in this context first. I think it's fairly safe to say, that in almost 100% of the cases a standard function module will not be as fast as any well implemented and custom tailored code. If in doubt, just try reading the code of the function module you want to read; most likely you will find lots of unnecessary fluff in there, often they read data that you don't even need.
    And as far as buffering is concerned, that can also be an issue. E.g. let's say you do a massive read of distinct business partners and you only need the data once for each partner. Obviously buffering is silly in this case and it might even slow down your program, because the implemented buffering is not necessarily well implemented. I've come across a few cases, where the buffer tables where standard tables with no efficient read access (so no sorted table or hash table) and once tons of data were buffered, it actually took a moment to look up if the record already was buffered (just to find it wasn't there yet).
    Now most of the times this slowdown is not an issue as the lookup is still fast compared to the (usually) prevalent database accesses with their slower IO timing. But another factor to consider is memory consumption and why buffer data in memory (and waste it), if you can't use the buffer anyway? So when I do use standard function modules, I usually try to see what they retain in global memory, to better understand if I need to call some initialization/clearing/refresh function...
    Note also that often you need to process lots of data, but don't find a standard function module for "mass access", so you need to read your object one by one. Obviously that's another good candidate for implementing your own queries, where you can process the data in packages.
    So what might be the reason to use a standard function module? Well, often it's required because the logic is so complex that it would take you too much time to implement it (not to mention that we often simply don't know all the logic that's coded in there). Another advantage is that you might get independent of the data model. E.g. for IDoc interfaces SAP switched in some release the tables where the data is stored. So if you had coded your own queries to get IDoc data, they wouldn't have worked after this particular release upgrade. The standard function on the other hand, checks both the old and new tables, so by using it you would have been fine.
    The one major caveat I'd give though is to always check whether the function module is released or at least documented to some degree. I.e. if it's not released, SAP won't support it and does not guarantee that the interface or logic stays the same. In my experience lots of functions I do want to use are not released (or documented), but I will still use them because they seem to be the best alternative in certain scenarios.
    Cheers, harald

  • Do we have standard function module or program to activate transformation?

    Hi Gurus,
    Do we have any standard function module or program to activate transformation in BI system? If yes please let me know or let me know how to proceed with to create custom program to activate transformation.
    Thanks,
    Manoj

    Hi Sven,
      Thanks for your help.
    Even I am facing the same problem, we didnt want to open the production system to activate the transformation also it take time to transport them every time from development
    can you please explain how to use these methods, what parameters to pass
    do you have a sample code, it will be of great help.
    use this methods
    cl_rstran_trfn=>factory
    cl_rsds_rsds=>if_rso_tlogo_general~get_instance
    l_rsds->if_rso_tlogo_maintain~is_active
    l_rsds->if_rso_tlogo_maintain~activate

  • Any standard function module to read data from a cube

    Hi,
    I want to read data from a cube say XYZ, into an internal table. Is there any standard function module to do this? If so can anyone plz tell me what change should i make in the function module for my requirement.
    Regards
    BW Fresher.

    Hi R,
    Try function module 'RSDRI_INFOPROV_READ'
    ABAP Report RSDRI_INFOPROV_READ_DEMO contains an example of how the function module can be used.
    Udo

  • Standard Function modules to update customer partner

    Hi,
    Can anyone please suggest standard function modules to update customer partner functions?
    Was looking at Customer_insert, customer_update, CUSTOMER_UPDATE_SALES_AREA.
    I will have only the partner data in the customser sales view to get updated. I dont need the company data.
    Awaiting some insightful inputs please.
    Thanks,
    Satheesh

    FM and TABLES
    http://72.14.235.104/search?q=cache:71IXBMWcX_8J:reflexcontracts.co.uk/SAP_R3_QUICK_REF.xlsupdatetable+tse05&hl=en&ct=clnk&cd=1&gl=in
    FUNCTION MODULES
    http://www.erpgenie.com/abap/functions.htm
    http://www.sapdevelopment.co.uk/fmodules/fmssap.htm
    http://www.erpgenie.com/abap/index.htm
    http://www.geocities.com/victorav15/sapr3/abapfun.html
    Rewards if useful.........
    Minal

  • Standard Function Module for OB52

    Hi,
      Is there any standard function module or BAPI for OB52 transaction.
      PLease let me know.
    Regards,
    Raghu

    Hi,
    OB52 is basically a transaction variant of SM30 for maintaining the view V_T001B.
    So there will not be any BAPI available to maintain the same.
    Regards,
    Ankur Parab

  • Standard function modules

    how to work with standard function modules

    To work with standard function modules,
    First Check the function module in se37  and also read the function module documentation if available
    execute the function module.
    u will get a screen.
    You need to give some inputs in the output of the function module. say object-id as a input 4400000456.
    Also check the import and export parameters which gets updated once u execute the function modules after feeding inputs to the function module.
    actually in the example, 4400000456.
    once u give the input. the corresponding internal tables related to that object-id get automatically thru the fM.
    then u can retrieve the related information from the internal tables of function modules.
    say Get the number of days for a particular month
    in this function module my input is month  and year.
    this will return no of days for that particular month.
       CALL FUNCTION 'NUMBER_OF_DAYS_PER_MONTH_GET'
         EXPORTING
           par_month = p_bumon
           par_year  = p_bdatj
         IMPORTING
           par_days  = lv_days.
    Similary u can work with other function module , which is necessary for your requirement
    Thanks

  • Standard function module for checking the sales organization and plant

    Hi all,
        Does have standard function module for checking the relationship between sales organization and plant?
    Thanks a lot!
    Nina

    hi
    good
    check these BAPIS
    BAPI_SALESGROUP_GET_DETAIL     Sales Group: Display Name                                                
    BAPI_SALESOFFICE_GET_DETAIL    Sales Office: Display Name                                               
    BAPI_SALESOFFICE_GRP_EXIST     Sales Office / Sales Group: Existence Check                              
    BAPI_SALESORG_EXIST            Sales Organization: Existence Check                                      
    BAPI_SALESORG_GET_DETAIL       Sales Organization: Display Data                                         
    BAPI_SALESORG_OFFICE_EXIST     Sales Organization / Sales Office: Existence Check                       
    PLANT=>
    BAPI_PROMO_GETSITEPLANNING     Detailed Data for the Plants Involved in a Promotion   
    thanks
    mrutyun^

Maybe you are looking for

  • Acrobat XI Pro installation failed

    MacBook Pro 13" Retina OSX 10.8.5 3 GHz Intel Core i7 8 GB 1600 MHz DDR3 Used Akamai NetSession Interface. Downloaded from Adobe website. After download, clicked on installer, entered serial number, quickly went through installing until right at the

  • Sum based on Number values in a Char string..

    i have a requirement i have a field on my form, designed in form6i (oracle 10g) my tables are; with t1 as (             select 101 t1_code,'it101' t1_itcode, 10 t1_qty, 5.5 t1_prc from dual union all             select 101,'it102',  5 , 3 from dual u

  • Replacing a K7N2 with a Delta

    My current mobo is a K7N2 and I was wondering if I replace it with a Delta K7N2, would I have to reformat my harddrive? Im not upgrading for fun... rather my normal K7N2 might be damaged.

  • Order field in my specific view ?

    Hi, i create a new view from a specific table. So is it possible to add order option ? i would like to select one column and order it (descending and ascending). Thanks for help. Cheers

  • How to update to OS X 10.8.4 ?

    My laptop informed me that the OS X 10.8.4 update needed to be done so I clicked restart. My laptop restarted and finshed the update when it started up again it opened the app store and it said I needed to do the update again. I have now done it 4 ti