Function Module error in query execution

Hi SDN Gurus,
When I run this query in Dev it gives me an error: "Function Module RSD_ZK_ACCT_TEXT_GET does not exist." When I look up in SE37 in both DEV and QAS, there is no such function module though I don't get this message in QAS.
ZK_ACCT is one of our important infoobjects and is in the query.
Thanks for your help.
SAF

Hi Saf,
Try with Tcode RSRT and with the following option:
Buttom:Genrate Report.
Menù: Repair.
And then execute once again the report.
Ciao.
Riccardo.

Similar Messages

  • Can we call a function module in ADHOC query

    Hi
    Can we call a function module in ADHOC query if yes how.
    Also we ned to know how to call a function module in SAP query.
    An early responce is appreciated.
    Thanks and best regards
    Rajeev

    Okay as far as I understand your aim is:
    To fill a field in the output list with a value that is based on the current line information and calculated by a function module
    So go to SQ02 and create an additional field in the InfoSet.
    You can refer in the coding to the technical names you can see in the left tree window like P0000-PERNR.
    More information is avaiable in the Help part look for additional field in SQ02.
    Regards,
    Michael

  • Using a function module in ABAP Query

    Hi All,
    I want to use a function module in ABAp query in the Record Processing Section.
    In the report program we click on Pattern button to inser the function module so that all the Importing and exporting parameter automatically appears.
    Similarly is there any particular method of inserting a function module in ABAp Query.
    Regards
    Manipal Parkala

    When you are doing the infoset for the query (SQ02) you can add coding by clicking the coding tab. You can chose in wich event you want your coding and there is Pattern Button for  you to easy use.
    If you don't want to put the code in the infoset just in the query then is not posible.
    Nevertheless, I higly descourage the use of coding in queryies. If you need to insert some coding make an ALV its easier, clearer and much easier to mantain.
    Hope it helps.

  • Can we call function modules in SAP query or ADHOC query

    Hi ,
    Can we call afunction moudule in sap query or ADHOC query ?If yes How
    An early responce is greatly appreciated
    Thanks and best regards
    Rajeev Chhabra

    Hello Rajeev Chhabra,
       Yes; you can call function module in SAP Query. In InfoSet definition (SQ02), you can create additional field. In this field definition, you can add code snippet where you can function module.  
    However, this is not possible in Quick Viewer (SQVI) Query.
    Thanks,
    Venu

  • Linking a function module in Bex query

    Hi,How do I use a function module in a Bex query?
    Req is: use to get the diff b/w 2 date fields only if both the value are present otherwise leave the result column blank.
    Ex:
    Date1, date2, No. of working days
    X        Y         x-y
    Blank    Y         Blank(no value to be set)
    X        Blank     Blank(no value to be set)
    I tried to do this in Query, but then it results in zero in the 2nd and 3rd case which is not as per my req.
    Wanna try with function module DAYS_BETWEEN_TWO_DATES in the query. Steps to link this function module in a bex query wud be very helpful.
    Thanks in advance.

    Hi S R,
    Please take a look at these threads..
    Funtion Module for user exits  variables in BEx Queries.
    Funtion Module for user exits for variables used in BEx Queries.
    SAP BW BEx Analzyer Query in ABAP
    BEX Multi-Language SQL Query
    cheers,
    Prashanth
    P.S Please mark helpful answers

  • Function module to create query view from technical name of the query ?

    Hi Experts,
    I am trying to create webservice definition using function module.
    In this code, I am calling function module 'RSCRMBW_REPORT' which requires query view name ( we can see this in RSCRM_BAPI) as a value for parameter i_reportuid.
    For the time being I am hardcoding the value but I need to use a function module which will convert techincal name of query into query view.
    Can anyone have any idea about the above requirement? Or is there any other way to solve the problem?
    Thanks in advance
    Shamkant
    Edited by: SHAMKANT SONAWANE on Apr 7, 2009 5:38 AM

    Hi,
    You can use FMs CONVERSION_EXIT_GENID_INPUT  and CONVERSION_EXIT_GENID_OUTPUT to get query view.
    First call FM CONVERSION_EXIT_GENID_INPUT with parameter input as query technical name then it will return Output in the form of GENID .
    Pass this GENID as input parameter to FM CONVERSION_EXIT_GENID_OUTPUT to get query view as output.
    Eg :
    Test for function group      RRI5
    Function module              CONVERSION_EXIT_GENID_INPUT
    Uppercase/Lowercase
    Runtime:        6,652 Microseconds
      Import parameters               Value
      INPUT                           Y0IC_C03_Q0018_2
      Export parameters               Value
      OUTPUT                          4D1I916ID7TWS1CK27154WYZ8
    Test for function group      RRI5
    Function module              CONVERSION_EXIT_GENID_OUTPUT
    Uppercase/Lowercase
    Runtime:        2,818 Microseconds
      Import parameters               Value
      INPUT                           4D1I916ID7TWS1CK27154WYZ8
      Export parameters               Value
      OUTPUT                          0IC_C03/Y0IC_C03_Q0018_2
    0IC_C03/Y0IC_C03_Q0018_2 is expected query view.
    Hope it helps...
    regards,
    Raju

  • ABAP Function Module Error

    Hello,
    In one of my function modules, I have the code as shown below. I got an error after executing this code. The error is:
    In LOOP .... WHERE... the line type of the table must be statically defined.
    <b>This error is for the highlighted LOOP statement.</b> Could someone please help me with the code.
    <b>Objective of the function module:</b> I have a hashed table with some records.
    Eg: CCTR      FISCPER           VERSION  AMOUNT
          100          06/2007                10              100
           100         06/2007                 20              0
           100        07/2007                 10                45
    I want to update the amount for version '20' (for same costcenter and same period as of version 10) by doing some calculations.
    FUNCTION YCALC_VALUE.
    ""Local Interface:
    *"  IMPORTING
    *"     REFERENCE(I_AREA) TYPE  UPC_Y_AREA
    *"     REFERENCE(I_PLEVEL) TYPE  UPC_Y_PLEVEL
    *"     REFERENCE(I_METHOD) TYPE  UPC_Y_METHOD
    *"     REFERENCE(I_PACKAGE) TYPE  UPC_Y_PACKAGE
    *"     REFERENCE(IT_EXITP) TYPE  UPF_YT_EXITP
    *"     REFERENCE(ITO_CHASEL) TYPE  UPC_YTO_CHASEL
    *"     REFERENCE(ITO_CHA) TYPE  UPC_YTO_CHA
    *"     REFERENCE(ITO_KYF) TYPE  UPC_YTO_KYF
    *"  EXPORTING
    *"     REFERENCE(ET_MESG) TYPE  UPC_YT_MESG
    *"  CHANGING
    *"     REFERENCE(XTH_DATA) TYPE  HASHED TABLE
    FIELD-SYMBOLS: <xth_data>     TYPE HASHED TABLE,
                     <ls_data>      TYPE /1SEM/_YT_DATA_100KMPA,
                     <l_chavl>      TYPE ANY,
    field symbols for fields of <ls_data>
                      <ls_chas>     TYPE /1SEM/_YT_CHAS_100KMPA,
                      <ls_nchas>    TYPE /1SEM/_YT_CHAS_100KMPA,
                      <ls_kyfs>     TYPE /1SEM/_YT_KYFS_100KMPA,
                      <ls_nkyfs>    TYPE /1SEM/_YT_KYFS_100KMPA,
    LOOP AT xth_data ASSIGNING <ls_data>.
        ASSIGN COMPONENT 'S_CHAS' OF STRUCTURE <ls_data> TO <ls_chas>.
        ASSIGN COMPONENT 'S_KYFS' OF STRUCTURE <ls_data> TO <ls_kyfs>.
      ......There are some calculations................................
    ENDLOOP.
      LOOP AT xth_data INTO <ls_data>.
        ASSIGN COMPONENT 'S_CHAS' OF STRUCTURE <ls_data> TO <ls_nchas>.
        ASSIGN COMPONENT 'S_KYFS' OF STRUCTURE <ls_data> TO <ls_nkyfs>.
    IF ( <ls_data>-S_CHAS-0fiscper = '006' ) AND (<ls_data>-S_CHAS-0version='10' ).
            tempcctr = <ls_data>-S_CHAS-0costctr.
            tempperiod   = <ls_data>-S_CHAS-0fiscper.
            tempamount   = <ls_data>-S_KYFS-0amount.
           <b> LOOP AT XTH_DATA INTO <ls_nchas>
              WHERE 0costctr = tempcostctr
                AND 0fiscper  = tempperiod
                AND 0version   = '20'.</b>
                <ls_nchas>-S_KYFS-0amount = ( tempamount * 100 ) + 500.
                MODIFY xth_data FROM <ls_nchas>.
            ENDLOOP.
    ENDFUNCTION.
    Thank You.
    Message was edited by:
            George Smith
    Message was edited by:
            George Smith

    Hi George..
    Declare the Field symbol with the Same line type of the Internal table which is passed to the FM.
    Eg:
    <b>Field-symbols : <ls_data> like Line of XTH_Data.
    Loop at XTH_Data ASSIGNING <LS_DATA>.</b>
    Then it should work...

  • Regarding the function module --error is coming.

    Hi All
    I am executing function module and i am getting one error after actvating that FM.
    Error is - REPORT/PROGRAM statement missing, or program type is I (INCLUDE).          
    Waiting for the fovarable reply.

    Hi,
    While creating a FM you will be assigned to a Function Group, that Function Group is not active. If function group is not active then only you will be getting this error.
    To over come this issue. Please do the below process.
    Go to Se80--> Select Function Group from the drop down list --> Select the function group --> Right click on the Function group --> Select activate.
    After above process is completed.
    Test the Function Module.
    Thanks,
    Sriram Ponna.

  • Function module error message.

    Call Function ‘Z_function’.
    Imports
    Exports
    EXCEPTIONS
      no_entry_found       = 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.
    Suppose
    if sy-subrc =  1.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    Giving me popup and is troubling.
    Could you please tell me if I comment below
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4....
    and proceed will it effect me in case of sy-subrc <> 0.
    Thank you

    Hi Sam,
    Yes you can. But some times the programs emphasises specific program errors.
    For e.g.
    Use the following code for function module for GENEREIC case.
    In this case you can remove total piece of code suggested by you. and replace the following  code.
    If sy-subrc ne 0.
    Messae 'Error in function module' Type 'E'.
    Endif.
    Use the following code for function module for SPECIFIC case.
    case sy-subrc.
    when '1'.
       Message 'No_entry found' type 'E'.
    when '2'.
       Message 'Undetermined error in Function module. Please contact system administrator' Type 'E".
    Endcase.
    Regards
    Bhupal Reddy

  • Problem in Functional Module on BW Query

    Hi,
    We are working on below requirement in BW.
    We have to fetch the data of BW Query via a functional module to web services. We have created a query and a functional module based on that query. To create the function module on query, we have followed the standard method suggested in SAP blog. (ie. Input parameters for Functional Module is Filters use in Query and output parameters will be Keyfigures and Char. Of the Query).
    We have 0PLANT in the raw section in query. We want to fetch plant text in the Function module output. But, our problem is we are getting Plant KEY value only in the output of functional module.
    0PLANT properties in query designer is set to TEXT only.
    So, in short, we want to have 0PLANT Text in the function module output.
    Please suggest.
    Regards,
    Macwan James.

    Hi,
    In your Function module, I hope the code is perfect. Please check your Infoobject maintenance whether text was maintained.
    Regards,
    Suman

  • How to remove function module error?

    Hi Iam using a FM to get the database value of project name(PROJ-PSPID),Iam using this in my module pool program,when I enter wrong project name,the FM itself throwing the error,I want my own error message rather FM error message.How to achieve it?
    Thanks in advance.

    Hi Rock,
    After executing the function module , check for sy-subrc value as shown below
    data: w_return type bapiret2,
            it_return type table of bapiret2.
    call function '.....'
    IF SY-SUBRC EQ 0.
        PERFORM fm_update_return_msg
                      USING  'E'
                             your Message class
                             'msg no'
                      CHANGING w_return.
          APPEND w_return TO IT_RETURN.
          clear w_return.
       ENDIF.
    FORM fm_update_return_msg  USING    p_msgty  TYPE sy-msgty
                                        p_msgid  TYPE sy-msgid
                                        p_msgno  TYPE sy-msgno
                                        p_msg_v1 TYPE sy-msgv1
                                        p_msg_v2 TYPE sy-msgv2
                                        p_msg_v3 TYPE sy-msgv3
                                        p_msg_v4 TYPE sy-msgv4
                               CHANGING p_return TYPE bapiret2.
      CALL FUNCTION 'BALW_BAPIRETURN_GET2'
        EXPORTING
          type   = p_msgty
          cl     = p_msgid
          number = p_msgno
          par1   = p_msg_v1
          par2   = p_msg_v2
          par3   = p_msg_v3
          par4   = p_msg_v4
        IMPORTING
          return = p_return.
    ENDFORM.                    "fm_update_return_msg

  • Function Module Error: GETWA_NOT_ASSIGNED

    Hello everyone,
    I have a scenario where I copy a function module (IDOC_INPUT_ORDERS to ZIDOC_INPUT_ORDERS) and make changes to the code to enhance the program. I get an error 'GETWA_NOT_ASSIGNED' 'Field symbol has not yet been assigned' on the shortdump.
    This is strange since even if I don't make any major changes (eg. write a *note in the zprogram), whenever I run it, it gives me the above error. Has anyone encountered this before? If so, would anyone be able to help me out?
    Thanks in advance!
    Glenn

    Hello Ginger,
    Thanks for your reply! I copied the whole IDOC_INPUT_ORDERS program from SE37. It showed the function group VEDA then. The new program - ZIDOC_INPUT_ORDERS also belongs to the function group VEDA.
    Is this correct?
    Warm regards,
    Glenn
    PS. I did my changes in DEV Client 100 (Where we do our configurations), I'm testing in DEV Client 300. The changes made in Client 100 reflect in Client 300, but would there be any activations I need to perform in Client 300 as well?

  • Function used to find Query Execution Time

    Hi All!
    Could you please let me know the function name used in finding 'Query Execution Time'?
    Thanks and Regards,
    Vikas

    I'm not quite sure what you mean...
    In SQL*Plus: SET TIMING ON
    This will display a timing message after the execution of a query. Is this what you mean?
    cheers,
    Anthony

  • Function Module Error In Uploading Data for Basic Pay Infotype

    Hi All,
    I'm trying to upload data into Basic Pay Infotype 0008 Using LSMW Subtype 0(Basic Contract). While we are trying to input values into ANSAL(Annual Salary) field directly using default wage type as 1000.
    We are gettting a error in function module RP_ANSAL_FROM_WAGETYPES.
    and eventhough we are inputting values into ANSAL field it is taking it as 0.00 by default .
    Kidly suggest me solution.
    Thanks,
    Vasanth

    Hi ..
    check this
    765785
    673372
    730976
    note 1032950
    http://help.sap.com/saphelp_nw2004s/helpdata/en/8d/3e4ec2462a11d189000000e8323d3a/content.htm
    Message was edited by:
            hari kv

  • Function Module  Error Message to appear in  Monitor-Detail TAB

    Hello ABAP / BW Gurus,
    how and can I write an error message in a function module
    that it appears in the detail tab of the monitor ?
    Thank You
    Martin Sautter

    OK

Maybe you are looking for

  • IMac video through AV amp to Plasma?

    Hi folks, I was wondering if anyone has any advice on the following problem I'm having. First of all the kit I'm using: Intel Core Duo 2 iMac (17 inch), Denon AVR-1906 AV Receiver, Panasonic PWD8 42' Plasma, Apple mini DVI to VGA adapter, VGA to Comp

  • Window doesn't refresh unless you click to another app (on Mac)

    When I scroll, click on a link, or click on another tab to switch to it, FF appears to be frozen and nothing moves/changes/happens on screen. If I then click to another app (e.g. Outlook) and then back on FF, the new content appears instantly. It app

  • Pictures are getting cut off

    I made a movie in iMovie and went to burn it on iDVD.  When I played in on a dvd player, some of the pictures were cut off?  But when I play the movie on my Mac the pictures are fine.  HELP!

  • Adding Button on application toolbar on ABAP List display screen....

    Hello Gurus, I copied SAP program 'RFBUEB00' into custom program. When I execute the custom report, I see the data lijne by line in ABAP list. I see a deafult 'Select' button on application toolbar. If I want to add additional custom button on applic

  • Application Express and Content DB

    Hello friends I am trying to develop an application prototype with the following need a. A set of data fields where by somebody can put a document into the content DB along with the set of data. The content DB needs to store different types of docume