Enhancement Spot is not working in Function Module

Hi,
I have enhanced standard FM and also enhanced the interface of the same FM, i have put piece of code in between ENHANCEMENT and ENDENHANCEMENT. this piece of code was working fine, but all of sudden when i try to execute that FM , piece of code inside my enhancement is not executed. enhancement is also active.
Please suggest the solution

Hello,
Please put break point in standard code before your enhancement code and check by step by step debugging(F5).

Similar Messages

  • Enhancement spot is not triggered in Custom Program.

    Dear Experts,
    After saving the sales order i would like to view the print preview.
    For this I found one implicit enhancement spot and i called the print Program for sales order. Then i am able to view the Sales order print preview in VA01 Transaction code. I wrote my logic in the Below mentioned Enhancement implementation.
    Main Program : SAPMV45A
    Include : MV45AF0B_BELEG_SICHERN
    Form : beleg_sichern
    At the endform I am calling the Print program of Sales order so that after saving the sales order i am able to view the print preview of the Sales order.
    The requirement is i have created the Custom program in that i am using the "CALL TRANSACTION 'VA01'". In the custom program i am not able to view the Sales order print preview. The Enhancement spot is not getting triggered.
    Could you please help me to solve this issue.
    Thanks & Regards,
    Ashok.

    Like I said, you must use the parameter RA_COMMIT from BDC_OPTIONS. Like this:
    DATA: bdc_options TYPE ctu_params.
    bdc_options-ra_commit = ' X' .
    bdc_options-dismode = ' N'.
    CALL TRANSACTION 'VA01' OPTIONS FROM bdc_options.
    Everytime you use a CALL TRANSACTION, the called transaction will stop when a COMMIT WORK is found, and you have to pass the parameter RA_COMMIT with 'X' to make the transaction execute any code after COMMIT WORK. This only happens when you call a transaction via CALL TRANSACTION, it will not happen if the user access a transaction directly.
    For further explanation you can use the link from documentation that I posted on my first reply.
    Regards,
    Mauricio

  • Error msg- ME53N tocde "company was not supplied in Function module inte -

    Hi
    When user is trying to open ME53N tcode he is getting folowing error message,
    "company was not supplied in Function module interface"
    Kindly help, how to avoid this error message.
    Thank You in advance.
    WR,
    Nilesh

    We observed this error comes when you had previously opened any PO which now has missing data or assignment like ..plant deactivated..plant CC assignment  etc.
    Work around, Open any Good PO in chnage mode me22n or create any test PO in me21n. And then try to execute me23n.
    Regards,
    Nilesh Hiwale

  • Will Infoset Query work for Function Module

    HI Can someone let me know will a Infoset wuery works for Function module or not. I have 3 tables which i need to extract on, i am building a Infoset Query on 2 tables and using this in my Function Module to join on 3rd table. I have some conditions on 3rd tbale which i need to pull only those records.
    When ever i check the syntax it always gives me a message
    The type "ZUSERLOGINQRY" is unknown. ( This is my Infoset query name).
    Can any one help me on this.
    Thanks,
    Kris.

    HI Pat thanks for responding i havent done this earlier so i am not sure how to declare une code under Infoset Query ---> Extras. I am getting some duplicates in Infoset Query, can you let me know how to clear all those duplicates...
    Appreciate you help.
    Kris.

  • HT1688 My Hot Spot does not work after update to 6.0.1.  Service is with ATT.  Apple says problem is with ATT, ATT says problem is with Apple.  Anyone else having this problem?

    My Hot Spot does not work after update to 6.0.1.  Any suggestions?

    Ok, I had the same issue, my phone is unlocked(iphone 5 with 6.1.3). So I went to the apple store and had it replaced. it worked good for a day and started doing the same thing. When the apple tech replaced my phone, he transfered my screen protector to the new one.
    so I thought it was my sim card, I put in my sisters sim card from a different carrier and it did the same, so then I was like let me take off the screen protector, and that was it.
    so guys, if you have a screen protector on your phone and it's doing "low signal", "No Service", "Searching", "Full bars cycle" then take off the screen protector. so far my phone is working normal.

  • In 5s, personal hot spot does not work from time to time. Not detected

    In 5s, personal hot spot does not work from time to time. Iphone does not get detected on Wi-fi or bluetooth. Restarting or rebooting does not help.  

    Settings, general, reset and reset network settings. Clear out your network settings and set personal hotspot again.
    also avoid special characters making a password. hashtags or open brackets for example doesn't work too good.

  • ME52n - Error Message - Company was not supplied in function module.

    Hello,
    It is giving error Message - "Company was not supplied in function module" in the initial screen of ME52n and ME53n.
    Please help.
    Thanks,
    Piyush

    Hi Vadi,
    when ever you open me52n or me53n ..system by default opnes/shows your last created/ opned PR.
    so if that last created / changed PR is having wrong/faulty data (missing assignment/ plat stolocation deleted etc) ..system will not be able to fetch respective data....thats why you will get above eror message...
    Solution : Create any smaple PR in ME51n/ or  try to chnage  any existing PR.. and then save it.
    try this 1 or 2 times.
    Hope so this will help.
    Regards,
    Nilesh

  • Company was not supplied in Function module interface

    Hi all,
    When i tries to access the following tcode - me52n,me53n i got following erro message "Company was not supplied in Function module interface" ,
    Thanks

    Hi Navdeep,
    Maintain company code in your user profile with the parameter id BUK.
    like in you user profile, on parameter id tab give the parameter id name BUk and value '0001' (the company code against purchase requistion had been created)
    Hope it will solve your problem.
    Regards
    Krish

  • Problem while working with function module RFC_READ_TABLE

    Dear Experts,
                     I am facing a problem while working on the FM RFC_READ_TABLE, in which there is a tables parameter options which is of table type, to which I am passing the condition of selection.  In the debugg mode I found the select quiry in the source code of function module is not executing the condition passed in the options parameter.
    My actual requirement is to fetch all the custom programs in a remote server, the code I have written is below.
    TYPES :
             BEGIN OF ty_tadir,
               pgmid  TYPE pgmid,
               object TYPE  trobjtype,
               obj_name  TYPE  sobj_name,
             END OF ty_tadir.
    DATA : it_tadir TYPE STANDARD TABLE OF ty_tadir,
            wa_tadir TYPE ty_tadir.
      data: stmp_dokhl  like TAB512       occurs 100000 with header line.
      data: options1    like rfc_db_opt occurs     10 with header line.
    data: wa_options1 like line of options1.
      data: nametab1    like rfc_db_fld  occurs     10 with header line.
    START-OF-SELECTION.
    DATA : W_VALUE(5)  TYPE C,
           W_VALUE1(20) TYPE C.
    W_VALUE1 =  'OBJ_NAME like'.
    W_VALUE = 'z*'.
    CONCATENATE 'OBJ_NAME LIKE' ' ''' W_VALUE '''' INTO OPTIONS1-TEXT.
    CONCATENATE W_VALUE1 W_VALUE INTO wa_OPTIONS1-TEXT SEPARATED BY SPACE.
    APPEND wa_OPTIONS1 to OPTIONS1.
    CLEAR wa_OPTIONS1.
        call function 'RFC_READ_TABLE'
             destination                'zard'
             exporting
                  query_table          = 'TADIR' "'ZBANK_GUARANTEE'
             tables
                  options              = options1
                  fields               = nametab1
                  data                 = stmp_dokhl
             exceptions
                  table_not_available  = 1
                  table_without_data   = 2
                  option_not_valid     = 3
                  field_not_valid      = 4
                  not_authorized       = 5
                  data_buffer_exceeded = 6
                  others               = 7 .
    Please give me some inputs on this,
    With warm regards,
    Murthy.
    Edited by: pr murthy on Sep 18, 2008 1:49 PM
    Edited by: pr murthy on Sep 18, 2008 2:14 PM

    Hi
    I have tried this and with small change this is working fine.
    TYPES :
    BEGIN OF ty_tadir,
    pgmid TYPE pgmid,
    object TYPE trobjtype,
    obj_name TYPE sobj_name,
    END OF ty_tadir.
    DATA : it_tadir TYPE STANDARD TABLE OF ty_tadir,
    wa_tadir TYPE ty_tadir.
    data: stmp_dokhl like TAB512 occurs 100000 with header line.
    data: options1 like rfc_db_opt occurs 10 with header line.
    data: wa_options1 like line of options1.
    data: nametab1 like rfc_db_fld occurs 10 with header line.
    START-OF-SELECTION.
    DATA : W_VALUE(5) TYPE C,
    W_VALUE1(20) TYPE C.
    W_VALUE1 = 'OBJ_NAME LIKE ''Z%'''.
    wa_options1-text = w_value1.
    APPEND wa_OPTIONS1 to OPTIONS1.
    CLEAR wa_OPTIONS1.
    call function 'RFC_READ_TABLE'
    *destination 'zard'
    exporting
    query_table = 'TADIR' "'ZBANK_GUARANTEE'
    tables
    options = options1
    fields = nametab1
    data = stmp_dokhl
    exceptions
    table_not_available = 1
    table_without_data = 2
    option_not_valid = 3
    field_not_valid = 4
    not_authorized = 5
    data_buffer_exceeded = 6
    others = 7 .

  • Enhanced dictation does not work.  I've tried everything. Any help?

    Hello everybody. After downloading enhanced dictation (spanish-spain), the microphone seems to be Ok but no word is written. Regular online dictation works well. I use a mac-mini i7 16Gb and a micro connected to an external audio card firewire. I've tried to delete and download again several times, to clean the cache, turn on-off with resets,.. but nothing seems to fix the problem. Dictation is important for me to work and I'd like to try with enhanced dictation because I've read that it improves the performance with respect to online dictation.
    I've empoyed such a lot of time looking for a solution in the support community and other forums but nothing worked.
    Could anybody help me.
    Thanks so much in advance

    Ok, I reply to myself.
    The problem was caused by the microphone and the firewire connection. Enhanced Dictation is not ready to work with my audio hardware (micro Shure and Presonus audio card via Firewire). Although this audio hardware works fine with other software and even with online dictation, when I use it with Enhanced Dictation, the system seems to be working (the micro bars of the microphone in the screen move ok) but no words are written at all.
    The solution was to connect it analogically, using an audio connection between my audio card and the line-in connection of the mac mini (stereo).
    Hope Apple will solve this problem. I guess many people probably are having the same problem, mainly people with pro audio cards. I hope that this will help them

  • Call Transaction not executing in Function Module

    Hi,
    I am sending an IDoc from non SAP system to SAP system,IDoc calls(Inbound Process Code) Function Module in which i wrote BDC code.i found that it is not calling Call Transaction  but when i test the same IDoc from WE19 it executes perfectly and update data in database.
    And for this communication i dont have any other option then BDC.
    Suggest me what to do
    RP

    1.Check for leading zeros for key fields like material number, vendor number etc .
    2. make use of wrappers. check the below link:
    https://www.sdn.sap.com/irj/go/km/docs/library/mobile/mobile%20infrastructure/mobile%20development%20kit%202.5/content/appdev/smartsync/bapi_wrapper_types.html

  • On the top of any web page, the hot spots will not work. It seems like the links in the header part of a page is turned off.

    On any web page (Facebook, Yahoo, this page) the links on the top of the page will not work. The hot spots seem dead. For this page the Desktop/Mobile/Firefox Home links will not work.

    The Yahoo Toolbar has been reported as causing that. Disable it or uninstall it.

  • Javascript concat not working in function.

    Hello,
    I have three items on a page: item_name, item_name_opt1, and item_name_opt2
    I'm trying to use the following function so that if item_name (checkbox) is clicked the other items with be dis/enabled accordingly. However, when I pass in (this) and then reference it in the disableItems function, it's not working. Can someone tell me what I'm doing wrong?
    function toggleDisable(pValue)
    var lTest = html_GetElement(pValue).checked == false;
    html_disableItems(lTest,pValue + '_opt1',pValue + '_opt2');
    }

    Carl,
    Thanks for taking a look. I didn't see any errors, I checked the error console too - nothing. I'll give some more details.
    I started with a specific function which worked but was not generic enough:
    function toggleDisable(pValue)
    var lTest = html_GetElement('item_name').checked == false;
    html_disableItems(lTest,'item_name_opt1','item_name_opt2');
    Next I tested to see if I could use pValue in the html_GetElement function which worked:
    function toggleDisable(pValue)
    var lTest = html_GetElement(pValue).checked == false;
    html_disableItems(lTest,'item_name_opt1','item_name_opt2');
    Then I thought if it worked there it should work in the html_diableItems function so I tried just one of the two options:
    function toggleDisable(pValue)
    var lTest = html_GetElement(pValue).checked == false;
    html_disableItems(lTest,pValue + '_opt1','item_name_opt2');
    When I checked the page, only the opt2 was toggleing. The opt1 was not.

  • Type RAW not accepted in function module for workflow

    Hi,
    this is a crazy thing for me:
    I like to start a workflow from a report.
    Usually will use the function module SWU_START_WORKFLOW".
    Usually this is no problem.
    Here is my current problem:
    One of the elements I have to transfer to workflow is defined with
    ZELEMENT like SXMSMGUID.
    SXMSMGUID is from type RAW.
    This type is not supported in the container element transfer.
    Tried to transfer it as CHAR.
    ZELEMENT type c,
    ZELEMENT = SXMSPEMAS-MSGGUID.
    So put the RAW element into a char element.
    Error in function module:
    Program error: ASSIGN with length 0 in program "SAPLSWA8".
    Error analysis
        An ASSIGN statement in the program "SAPLSWA8" contained a field symbol with
        length 0. This is not possible.
        length 0.
        This is not possible.
    I need that element to be transferred to the workflow.
    But how to solve that problem?
    How to move the RAW element readable into a char element (This type usually is no problem in the FM)
    Any ideas are welcome!
    Best regards
    Dirk

    ya i know that ..But I wanted to create a simple one..moreover the problem is not with bdc....It is with the function module interface..
    Also I want to ask a question that I had to define all the parameters (in the function module ) by data declaration statements in the function group top include..
    If i dont do that say the first error is when i write loop at idoc_contrl ..idoc_contrl is not declared by a data statement..So IO had to write a data statement:
    Idoc_contrl type table of edidc..I have seen that in other function modules (idoc inbound processing)  no such data declaration is done..

  • Drop down not working.. Module pool

    Hello,
    a simple one but irritating why it is not working please can any one help me..Drop down or f4 nothing is working..
    TYPES : BEGIN OF TY_Tab,
            TYP(8) TYPE C,
           END OF TY_TRD.
    *DATA : T_Tab TYPE TABLE OF TY_Tab,
    *       W_Tab TYPE TY_Tab.
    W_TAB-TYP = 'FIRST'.
    APPEND W_TAB TO T_TAB.
    CLEAR W_TAB.
    W_TAB-TYP = 'SECOND'.
    APPEND W_TAB TO T_TAB.
    CLEAR W_TAB.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
         EXPORTING
    *       DDIC_STRUCTURE         = ' '
           retfield               = 'TYP'
    *       PVALKEY                = ' '
    *     dynpprog               = sy-repid
    *     dynpnr                 = sy-dynnr
          dynprofield            = 'ZTABLE-ZTYP'
    *       STEPL                  = 0
    *       WINDOW_TITLE           =
    *       VALUE                  = ' '
             value_org              = 'S'
    *       MULTIPLE_CHOICE        = ' '
    *       DISPLAY                = ' '
    *       CALLBACK_PROGRAM       = ' '
    *       CALLBACK_FORM          = ' '
    *       CALLBACK_METHOD        =
    *       MARK_TAB               =
    *     IMPORTING
    *       USER_RESET             =
         TABLES
           value_tab              = T_TAB
    *       FIELD_TAB              =
    *       RETURN_TAB             =
    *       DYNPFLD_MAPPING        =
    EXCEPTIONS
         parameter_error = 1
         no_values_found = 2
         OTHERS          = 3.
       IF sy-subrc NE 0.
         MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
         WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
       ENDIF.

    Hi,
    Provide the screen number as well as the program name. I think this should work.
    TYPES : BEGIN OF TY_Tab,
            TYP(8) TYPE C,
           END OF TY_TRD.
    *DATA : T_Tab TYPE TABLE OF TY_Tab,
    *       W_Tab TYPE TY_Tab.
    W_TAB-TYP = 'FIRST'.
    APPEND W_TAB TO T_TAB.
    CLEAR W_TAB.
    W_TAB-TYP = 'SECOND'.
    APPEND W_TAB TO T_TAB.
    CLEAR W_TAB.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
         EXPORTING
    *       DDIC_STRUCTURE         = ' '
           retfield               = 'TYP'
    *       PVALKEY                = ' '
           dynpprog               = sy-repid
          dynpnr                 = sy-dynnr
          dynprofield            = 'ZTABLE-ZTYP'
    *       STEPL                  = 0
    *       WINDOW_TITLE           =
    *       VALUE                  = ' '
             value_org              = 'S'
    *       MULTIPLE_CHOICE        = ' '
    *       DISPLAY                = ' '
    *       CALLBACK_PROGRAM       = ' '
    *       CALLBACK_FORM          = ' '
    *       CALLBACK_METHOD        =
    *       MARK_TAB               =
    *     IMPORTING
    *       USER_RESET             =
         TABLES
           value_tab              = T_TAB
    *       FIELD_TAB              =
    *       RETURN_TAB             =
    *       DYNPFLD_MAPPING        =
    EXCEPTIONS
         parameter_error = 1
         no_values_found = 2
         OTHERS          = 3.
       IF sy-subrc NE 0.
         MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
         WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
       ENDIF.
    Regards,
    Abijith

Maybe you are looking for

  • Infoset based Query creating locks on DSO Activations

    Hello Experts, We are current on SAP NetWeaver 7.3 on ORACLE data base version 11.2.0.3.0. We have a query thats built on top of an infoset ( Based on left outer join on 0material and 0mat_plant) when user executes the query its causing locks on DSO

  • Bizarre problems

    I just restarted my computer, and the display is screwed up. Nothing in the System Preferences seems to fix it. It's as if the monitor no longer shows the whole screen, and as I move my cursor around, the screen moves horizontally and vertically. Thi

  • Webdb instalation problems

    Please help , I' am having have trouble time installing WEBDB 2.0.5 on NT 4. I read all the responses on The OTN but still very confused. First of all I have Oracle 8.1.5 installed in 'oracle8_1_5 home', I try to install webdb in ' webdb home ' from

  • How can i send picture (attachment) with a direct wew in my message

    comment puis-je voir directement les images que j'envoie par par Mail Icloud et que les récipiendaires puissent les voir directement

  • Happy and h a p p y .  Intelligently eliminating space in a search

    Hi , Is there a way to tell oracle to treat "happy " as "h a p p y" or "r o c k c a r" as "rock car" I tried soundex, fuzzy and it does not work. Thanks for your help