Error while function calls

ORA-02069: global_names parameter must be set to TRUE for this operation
I am getting the following error when I am trying to invoke a user defined function through my sql statement .The function has been declared as DETERMINISTIC .

The moment i set it to true , i get another error
.i.e.
ORA-02085:
: database link *****PRD connects to ******TEST

Similar Messages

  • Error while using  CALL METHOD

    I am getting a error while using CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
    The error is class "CL_SSF_XSF_UTILITIES is unknown. How to correct that?? please help I am new to object oriented programming??
    Edited by: priya singh on Nov 18, 2008 2:14 PM

    This is my code.
    REPORT ZSAVE_FUNCTION .
    D A T A D E C L A R A T I O N S *
    DATA: v_bitmap TYPE xstring, "graphic data
    v_file TYPE string, "file name
    v_length TYPE i. "length of binary file
    DATA: BEGIN OF it_bitmaps OCCURS 0,
    object TYPE tdobjectgr, "object
    name TYPE tdobname, "name
    id TYPE tdidgr, "id
    tdbtype TYPE tdbtype, "graphic type
    END OF it_bitmaps.
    DATA: itab TYPE TABLE OF x.
    *class cl_ssf_xsf_utilities definition.
        public section.
      methods : get_bds_graphic_as_bmp
    DATA: L_GRAPHIC_XSTR TYPE XSTRING.
    *method cl_ssf_xsf_utilities
    S E L E C T I O N - S C R E E N *
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETERS: p_object TYPE tdobjectgr, "object
    p_btype TYPE tdbtype, "graphic type
    p_name TYPE tdobname, "name
    p_id TYPE tdidgr. "id
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
    PARAMETERS: p_file TYPE rlgrap-filename. "file name
    SELECTION-SCREEN END OF BLOCK b2.
    *A T S E L E C T I O N - S C R E E N O N V A L U E - R E Q U E S T *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_name.
    *-- Creating f4 help for the parameters
    PERFORM get_f4_object_name.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    *-- Getting the current value entered
    PERFORM get_current_value.
    *-- Value Request Functionality For Input File Name
    PERFORM f4_value_request.
    S T A R T O F - S E L E C T I O N *
    START-OF-SELECTION.
    *--Getting the graphic as a BMP file
    PERFORM get_graphic_bmp.
    *--Convert the Xstring format to binary format
    PERFORM convert_to_binary.
    *--Download the graphic
    PERFORM download_graphic.
    *& Form get_current_value
    Get the current file path entered
    FORM get_current_value .
    DATA: BEGIN OF li_dynp_value_tab OCCURS 0.
    INCLUDE STRUCTURE dynpread.
    DATA: END OF li_dynp_value_tab.
    DATA: l_program_name LIKE d020s-prog,
    l_dynpro_number LIKE d020s-dnum.
    l_program_name = sy-cprog.
    l_dynpro_number = sy-dynnr.
    REFRESH li_dynp_value_tab.
    li_dynp_value_tab-fieldname = 'P_FILE'.
    APPEND li_dynp_value_tab.
    CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
    dyname = l_program_name
    dynumb = l_dynpro_number
    TABLES
    dynpfields = li_dynp_value_tab
    EXCEPTIONS
    invalid_abapworkarea = 04
    invalid_dynprofield = 08
    invalid_dynproname = 12
    invalid_dynpronummer = 16
    invalid_request = 20
    no_fielddescription = 24
    undefind_error = 28.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    READ TABLE li_dynp_value_tab INDEX 1.
    p_file = li_dynp_value_tab-fieldvalue.
    ENDFORM. " get_current_value
    *& Form f4_value_request
    Provinding the f4 for the given path
    FORM f4_value_request .
    *-- if the file is to be downloaded to presentation server
    CALL FUNCTION '/SAPDMC/LSM_F4_FRONTEND_FILE'
    EXPORTING
    pathname = p_file
    CHANGING
    pathfile = p_file
    EXCEPTIONS
    canceled_by_user = 1
    system_error = 2
    OTHERS = 3.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDFORM. " f4_value_request
    *& Form GET_GRAPHIC_BMP
    Get the graphic as a BMP file
    FORM get_graphic_bmp.
    CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
    EXPORTING
    p_object = p_object
    p_name = p_name
    p_id = p_id
    p_btype = p_btype
    RECEIVING
    p_bmp = L_GRAPHIC_XSTR
    EXCEPTIONS
    not_found = 1
    internal_error = 2
    OTHERS = 3.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDFORM. " GET_GRAPHIC_BMP
    *& Form CONVERT_TO_BINARY
    Converting the xstring to binary format
    FORM convert_to_binary .
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
    EXPORTING
    buffer = v_bitmap
    IMPORTING
    output_length = v_length
    TABLES
    binary_tab = itab.
    ENDFORM. " CONVERT_TO_BINARY
    *& Form DOWNLOAD_GRAPHIC
    Download the graphic
    FORM download_graphic .
    v_file = p_file.
    CONCATENATE p_file '.BMP' INTO v_file.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    bin_filesize = v_length
    filename = v_file
    filetype = 'BIN'
    TABLES
    data_tab = itab
    EXCEPTIONS
    file_write_error = 1
    no_batch = 2
    gui_refuse_filetransfer = 3
    invalid_type = 4
    no_authority = 5
    unknown_error = 6
    header_not_allowed = 7
    separator_not_allowed = 8
    filesize_not_allowed = 9
    header_too_long = 10
    dp_error_create = 11
    dp_error_send = 12
    dp_error_write = 13
    unknown_dp_error = 14
    access_denied = 15
    dp_out_of_memory = 16
    disk_full = 17
    dp_timeout = 18
    file_not_found = 19
    dataprovider_exception = 20
    control_flush_error = 21
    OTHERS = 22.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDFORM. " DOWNLOAD_GRAPHIC
    *& Form GET_F4_OBJECT_NAME
    Get F4 values for object names
    FORM get_f4_object_name .
    DATA: dynpfld_mapping TYPE STANDARD TABLE OF dselc WITH HEADER LINE,
    return_tab TYPE STANDARD TABLE OF ddshretval WITH HEADER LINE.
    *--Selecting the values to be provided as f4 help
    SELECT tdobject
    tdname
    tdid
    tdbtype
    FROM stxbitmaps
    INTO TABLE it_bitmaps.
    *--To update the values in the remaining fields
    dynpfld_mapping-fldname = 'F0001'.
    dynpfld_mapping-dyfldname = 'P_OBJECT'.
    APPEND dynpfld_mapping.
    dynpfld_mapping-fldname = 'F0002'.
    dynpfld_mapping-dyfldname = 'P_NAME'.
    APPEND dynpfld_mapping.
    dynpfld_mapping-fldname = 'F0003'.
    dynpfld_mapping-dyfldname = 'P_ID'.
    APPEND dynpfld_mapping.
    dynpfld_mapping-fldname = 'F0004'.
    dynpfld_mapping-dyfldname = 'P_BTYPE'.
    APPEND dynpfld_mapping.
    *--Providing f4 help with the selected values
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    retfield = 'TDOBNAME'
    dynpprog = sy-repid
    dynpnr = sy-dynnr
    dynprofield = 'P_NAME'
    value_org = 'S'
    TABLES
    value_tab = it_bitmaps
    dynpfld_mapping = dynpfld_mapping
    EXCEPTIONS
    parameter_error = 1
    no_values_found = 2
    OTHERS = 3.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDFORM. " GET_F4_OBJECT_NAME

  • Error in function call BAPI_0050_CREATE. Create FM Budgeting Entry document

    Hi guys,
    I've got runtime error in BAPI-function call BAPI_0050_CREATE for create\release budgeting entry document:
    "Number range 01 not found for object BULI_DOCNR in fiscal year 2007"
    Function parameters below:
    CALL FUNCTION 'BAPI_0050_CREATE'
    EXPORTING
    header_data = l_wa_header
    testrun = ' '
    TABLES
    item_data = g_it_item_data
    return = g_it_return.
    l_wa_header-FM_AREA = '2500'
    l_wa_header-VERSION = '000'.
    l_wa_header-DOCSTATE = '1'.
    l_wa_header-PROCESS = 'ENTR'.
    l_wa_header-DOCTYPE = '0001'.
    l_wa_item_data-BUDTYPE = 'DEBL'.
    l_wa_item_data-BUDCAT = '9F'.
    l_wa_item_data-ITEM_NUM = '01'.
    l_wa_item_data-FISC_YEAR = 2007.
    l_wa_item_data-FUNDS_CTR = '2000'.
    l_wa_item_data-CMMT_ITEM = 'R10101010'.
    l_wa_item_data-TOTAL_AMOUNT = 20000.
    l_wa_item_data-DISTKEY = '0'.
    l_wa_item_data-TRANS_CURR = 'RUB'.
    l_wa_item_data-VALTYPE = 'R1'.
    Interval 01 was already created in SPRO-tran for customizing option for FM module (Budgeting)
    (000000001 &#1076;&#1086; 99999999) - Create Number Range Interval for Entry Document
    Does anybody know correct parameters for BAPI-call or customizing option for Budjeting (FM) ?
    ps Sorry, I am not expert in FI-FM-module
    Thnx in advance,
    Dmitry

    It works !
    I've performed  this function in workbench and got additional help guide for error resolving.
    You're right - i've missed initial interval 05 for number ranges 5000000000 to 599999999 for budjeting docs.
    But i've got new error message
    'Release and budget amounts are inconsistent'

  • Syntax error in function call through EF6

    I'm trying to call a function from an EF6 query but it seems the compiled statement has a syntax error and the DBMS bails out with "ORA-00933: SQL-Befehl wurde nicht korrekt beendet" (SQL statement ends with an inappropriate clause). As far as I understand the Oracle .NET provider compiles E-SQL to SQL for Oracle in the first place, so how come the statement is malformed?
    Here's what EF logs for this particular statement:
    Opened connection at 26.01.2015 09:46:14 +01:00
    SELECT
    "Extent1"."Z_AS" AS "Z_AS"
    FROM "DEMO_VIVPFLEGEDOKU"."FN_GETASSESMENTCHILDS_AUSMENGE"(:STRFILTER) "Extent1"
    -- STRFILTER: '1' (Type = Object)
    -- Executing at 26.01.2015 09:46:14 +01:00
    -- Failed in 79 ms with error: ORA-00933: SQL-Befehl wurde nicht korrekt beendet
    Closed connection at 26.01.2015 09:46:14 +01:00
    This is with VS 2013 Update 4, ODP.NET (ODTwithODAC121021 package) and Oracle 12c DBMS.
    The function is defined as
    create or replace function fn_GetAssesmentChilds_AusMenge(strFilter varchar2)
    RETURN TTabOneNumber pipelined
    is
    IndexEing PLS_INTEGER;
    IndexZ_Aus PLS_INTEGER;
    Cursor CursorEing is select column_value from TABLE(fn_splitstring( strFilter ));
    Cursor CursorAssessCh is select column_value from TABLE(fn_GetAssesmentChilds_AusInt(IndexEing));
    BEGIN
    open CursorEing;
    fetch CursorEing into IndexEing;
    while CursorEing%found
    loop
    open CursorAssessCh;
    fetch CursorAssessCh into IndexZ_Aus;
    while CursorAssessCh%found
    loop
    pipe row (IndexZ_Aus);
    fetch CursorAssessCh into IndexZ_Aus;
    end loop;
    close CursorAssessCh;
    fetch CursorEing into IndexEing;
    end loop;
    close CursorEing;
    END fn_GetAssesmentChilds_AusMenge;
    Here's the sample code for what I'm trying to achieve:
    using System;
    using System.Linq;
    namespace ConsoleApplication17
       class Program
          static void Main(string[] args)
             using (var db = new Entities())
                var ids = db.GetAssessmentIds("1")
                      .Select(r => r.Z_AS);
                Console.WriteLine(string.Join(",", ids));
    For the sake of completeness, here are the relevant parts from the EDMX:
    SSDL
            <Function Name="FN_GETASSESMENTCHILDS_AUSMENGE" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="true" ParameterTypeSemantics="AllowImplicitConversion" Schema="DEMO_VIVPFLEGEDOKU">
              <Parameter Name="STRFILTER" Type="varchar2" Mode="In" />
               <ReturnType>
                  <CollectionType>
                     <RowType>
                        <Property Name="Z_AS" Type="number" Precision="10" Scale="0" />
                     </RowType>
                  </CollectionType>
               </ReturnType>
            </Function>
    CSDL
              <FunctionImport Name="GetAssessmentIds" ReturnType="Collection(CareDocumentation.fn_GetAssesmentChilds_AusMenge_Result)" IsComposable="true">
                 <Parameter Name="STRFILTER" Mode="In" Type="String" />
              </FunctionImport>
    MSL
              <FunctionImportMapping FunctionImportName="GetAssessmentIds" FunctionName="CareDocumentation.Store.FN_GETASSESMENTCHILDS_AUSMENGE">
                 <ResultMapping>
                    <ComplexTypeMapping TypeName="CareDocumentation.fn_GetAssesmentChilds_AusMenge_Result">
                       <ScalarProperty Name="Z_AS" ColumnName="Z_AS" />
                    </ComplexTypeMapping>
                 </ResultMapping>
              </FunctionImportMapping>
    Return type:
             <ComplexType Name="fn_GetAssesmentChilds_AusMenge_Result">
                <Property Name="Z_AS" Type="Int32" />
             </ComplexType>
    Any ideas as to what is going on here?

    Hello Thanvi
    It seems that you need to apply the OSS note 1041283:
    FUNCTION cacs_bupa_pai_special_cacsb1.
    *"*"Lokale Schnittstelle:
      DATA: lt_but0bk TYPE TABLE OF but0bk WITH HEADER LINE.
      CALL FUNCTION 'BUP_BUPA_BUT0BK_GET'
           TABLES
                t_but0bk = lt_but0bk.
    * einmal vorhanden -> nehmen; nicht vorhanden -> Feld muss leer sein
    * mehrmals vorhanden -> Mussfeld
      READ TABLE lt_but0bk INDEX 2.
      IF sy-subrc NE 0.
    *    READ TABLE lt_but0bk.          "NOTE 1041283   " <<<<<<<<<
         READ TABLE lt_but0bk FROM lt_but0bk.            " <<<<<<<<<
        IF sy-subrc = 0.
          cacs_s_bupaw-bank_id = lt_but0bk-bkvid.
        ENDIF.
      ELSE.
    Regards
      Uwe

  • Error in function call when passing timestamp as parameter

    Hi All,
    I have created a function in database "Calulate_Wegs" whcih takes two parameter one "number" and other is "timestamp". I am able to get the output from function when running in database.
    But when i tries to call the function in OBIEE as EVALUATE('Calulate_Wegs(%1,%2)' AS INTEGER , Inv_BMM.s_view.Unit_id, CAST (Inv_BMM.s_view.T_date AS TIMESTAMP )) then it throws following error.
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 42015] Cannot function ship the following expression: Evaluate( Calulate_Wegs(%1,%2),D904.c4, cast(D904.c5 as TIMESTAMP ) ) .
    I am not getting any clue about this error. Looking for suggestions. Thanks in advance.
    Thanks
    Ashok

    Hi,
    I have a similar problem, and the documentation definitely does not help !
    The message is :
    +State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 42015] Cannot function ship the following expression: Evaluate( MIN(%1) KEEP (DENSE_RANK FIRST ORDER BY %2) OVER (PARTITION BY %3),D903.c3, D903.c4, D903.c5) . (HY000)+
    With the expression :
    EVALUATE('MIN(%1) KEEP (DENSE_RANK FIRST ORDER BY %2) OVER (PARTITION BY %3)' AS  DOUBLE PRECISION , Funds.NAV.NAV, Funds."Time Dimension"."Calendar Date", Funds.Fund."Subfund")
    By the way, %2 is not TIMESTAMP, but DATETIME. %1 is DOUBLE and %3 VARCHAR.
    If anyone can help ...
    Edited by: luxFarenheit on Jul 16, 2009 5:27 PM

  • Error  while smartform call in a Report

    Hi All,
    I'm working on standard Smartform 'EBPP_DEBIT_CREDIT_MEMO'(biller Notification) calling in a report.In report smartform generating function module successfully(/1BCDWB/SF00000095).
    problem accuring while calling the generating function module.
    if anything wrong please help me.
    The coding is:
    Data : fm_name TYPE rs38l_fnam.
    Data:L_URI type AD_URI.
    START-OF-SELECTION.
    L_URI = '11223'.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    formname = 'EBPP_DEBIT_CREDIT_MEMO'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = fm_name
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    call function fm_name
    Exporting
    L_URI = L_URI
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5 .
    IF SY-SUBRC 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

    Hi,
         May be population of your exporting parameter for smartform is wrong(l_uri). it is of type LCHR(data domain). Below is the document for LCHR data type population. Please check that.
    LCHR:
    Any character string with at least 256 characters. Fields of this type must be at the end for transparent tables and have a preceding length field of type INT2. For an INSERT or UPDATE in ABAP programs, this length field must be filled with the length actually required. Fields of this type cannot be used in the WHERE condition of a SELECT statement.
    Thanks,
    suma.

  • Javascript error on function call MVThemeBasedFOI

    I am getting a javascript error Error(36,55):  This attribute is not recognized. in the below code line highlighted in bold, what is going wrong. I am using JDeveloper and Mapviewer 11g. Please suggest
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:trh="http://myfaces.apache.org/trinidad/html"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces"
    xmlns:tr="http://myfaces.apache.org/trinidad">
    <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <trh:html>
    <trh:head title="map">
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    <trh:script source="/jslib/oraclemaps.js"></trh:script>
    <trh:script text='
    var baseURL = "http://"+document.location.host+"/mapviewer";
    var mapCenterLon = 145.07;
    var mapCenterLat = -37.57;
    var mapZoom = 1;
    function showMap() {
    var mapview = new MVMapView(document.getElementById("map"), baseURL);
    mapview.addMapTileLayer(new MVMapTileLayer("gis_data.AV_VICMAP"));
    mapview.setCenter(MVSdoGeometry.createPoint(mapCenterLon,mapCenterLat,4283));
    mapview.setZoomLevel(mapZoom);
    mapview.addNavigationPanel("WEST");
    addThemeBasedFOI();
    mapview.display();
    function addThemeBasedFOI() {
    var themebasedfoi1 = new MVThemeBasedFOI('themebasedfoi1','gis_data.geom_avl_rural_lastknown'); mapview.addThemeBasedFOI(themebasedfoi1);
    }'></trh:script>
    </trh:head>
    <trh:body onload="javascript:showMap()">
    <h:form>
    <tr:panelPage>
    <f:facet name="navigation1"/>
    <f:facet name="navigationGlobal"/>
    <f:facet name="branding">
    <tr:outputText value="Oracle Maps"/>
    </f:facet>
    <!--TODO: Migrator from ADF Faces 10.1.3 to Trinidad removed the following node and its contents since it does not exist in Trinidad anymore
    <f:facet name="brandingApp" />
    -->
    <f:facet name="appCopyright"/>
    <f:facet name="appPrivacy"/>
    <f:facet name="appAbout"/>
    <f:verbatim>
    <div id="map"
    style="width:800.0px; height:600.0px; background-color:rgb(255,255,255); border-width:thin; border-color:rgb(99,99,255); border-style:solid;"/>
    </f:verbatim>
    </tr:panelPage>
    </h:form>
    </trh:body>
    </trh:html>
    </f:view>
    </jsp:root>
    Thanks

    Try use another name of FOI. Not the same as FOI var

  • JavaScript errors at function calls to "top" (e.g. team room or wpc editor)

    Hi all,
    formerly I run into problems when I tried to embed a team room into the content area of the NW portal.
    Now I have a similar problem with the WPC page editor.
    In both cases I get JavaScript errors, because the navigation calls a "top" element, which seems to be overwritten by the portal frameworkpage.
    Is there any possibility to isolate these elements in a way that allows to embed them into the content area of the portal without these errors?
    Or is it only possible to open them in a new window?
    Regards, Josef

    Hi priya,
    Not sure: check syntax in your Update Roules, also at level of start routine.
    Ciao.
    Riccardo.

  • Upgrade error in Function call

    Hi Firends,
    I am working in a upgrade to ECC6.0 project. The following statement is shown in UNICODE as an error:
      PERFORM GET_FRAME_TITLE(SAPDBBRF) USING &1 TS_TEXT&1.     " 4.6A
    But there is no error when we verify the syntax. How do we replace this statement, please suggest.
    Rgds
    Kishore

    Hi Kishore,
      In Unicode only '_' will be accepted for the varible names, not any special  characters.
      TEXT_20 is correct variable name
      TEXT &1 is error in unicode.This error will not shown in Syntax.Hope this will help you
    Regards,
    Narendra.Somarouthu

  • Function call in SAP GUI with errors

    Dear All,
                 When i am calling FM of Comports using OLE Integration i got " Function call in SAP GUI with errors" error
    now my front end version is 6.40. how to solved this problem.
    In my Function Module i am creating object like this
    CREATE OBJECT O_OBJ 'MSCOMMLib.MSComm.1'.
        IF SY-SUBRC <> 0.
          RAISE NO_CREATE_OBJECT.
        ENDIF.
    it raised the sy-subrc = 2 this error is "Function call in SAP GUI with errors"
    send to me how to handle this error.
    Thank,
    Vijay.g

    Hi Vijay,
    We are facing the same issue.
    Interestingly
    From program's code only we are facing this issue.
    If we display the program and Execute (Direct processing), it is working fine.
    Can you please share how you resolved this issue.
    Thanks
    Sreedhar

  • Transaction iView( Tcode) Error: Function call in SAP GUI with errors

    Hey Guys:
                  I use Transaction iView to show the ABAP application on Portal. The application works to import data from client to BW. After I fill all the information and execute the application, the system returns the error message " Function call in SAP GUI with errors".
    The ABAP application works fine on SAP GUI, so it should not be the program problem.
    Any Suggestion for this will be nice. Thanks for your help.

    Hey Duy:
            Thanks for your response. I check the servers which i have access, and all of them cannot work correctly.
    First, other iViews(Dynpro,BW Report,BSP,KM...) work fine.
    Second, our backend system is a BW server.
    I try to do so on our EP production and development, also connect them to our BW production and development servers. All of those are failed and have the same problem.
    The t-code comes from our abap program and register on BW server, and hte program works fine when I use SE38 to execute it.
    PS. The Transaction iView works fine before, but I have no idea why it just crash now.
    Please let me know if you have any suggestion about this.

  • Utility library error string function?

    I've been working on an Error Handler library, culled mostly from these wonderful fora (Roberto!).  I can't seem to find an error code string generator for the functions in the Utiltiy Library though (in particular, functions like RenameFile, CopyFile, GetDir, SetDir, MakeDir, all the file i/o functions).
    Most of those make mention to negative error types with some plain text explanations.  But there's no mention of a nice code-to-string converter function, as there is in other libraries.  For instance, for the RS232 library, there is GetRS232ErrorString.  For the Formatting & I/O library, there is GetFmtIOErrorString.
    Am I not seeing it somewhere?  Inside the Utility library, there is a multithreading error code function called CmtGetErrorMessage.
    Solved!
    Go to Solution.

    You're right: the Urility Library does not incorporate a function that translates error codes to a meaningful text. I suppose this is due to the fact that error codes partly overlap, so a unique function could not be used.
    Just as an example, error -1 means File not found in almost all file I/O library functions, but it translates to No files found matching the search criteria in GetFirstFile () , to No more files in GetNextFiles () and Invalid Parameters in MakePathname ().
    Another example: error -2 means GetFirstFile must be called before if returned by GetNextFile (), and Resulting pathname too long if returned by MakePathname ().
    And this considering only File I/O section of the library!
    While developing my own toolbox of utilities, I have created the following function, which I know is far from perfect and covers only file I/O functions:
    char * CVIFUNC GetULibFileIOErrMsg (int error)
    // Messages associated to error codes returned by functions in File Utilities class in Utility Library
    switch (error) {
    case 0: return "Success";
    case -1: return "One of the path component not found";
    case -2: return "Resulting pathname longer than 260 chars";
    case -3: return "General I/O error occurred";
    case -4: return "Insufficient memory to complete operation";
    case -5: return "Invalid path";
    case -6: return "Access denied";
    case -7: return "Specified path is a directory, not a file";
    case -8: return "Disk is full";
    case -9: return "New file already exists";
    default: return "Unknown error";
    return NULL;
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Type Mismatch error while calling a Java Function from Visual Basic 6.0...

    Hi,
    I'm having a problem in calling the Java Applet's Function from Visual Basic. First, I'm getting the handle of the Java Applet and components of it using "Document.Applets(n)" which is a HTML function. I'm calling this function from Visual Basic. My code is something like this...
    ' // Web1 is IE Browser in my Form.
    Dim Ap,Comp
    Dim Bol as Boolean
    Bol = true
    Ap = Web1.Document.Applets(0).getWindow() ' \\ Gets the Parent Window.
    Ap.setTitle("My Java Applet") ' \\ Sets the Title of the window.
    msgbox Ap.getVisibility() ' \\ This will return a Java boolean ( true or false )
    Ap.setVisibility(Bol) ' \\ Function Syntax is : void setVisibility(boolean b)
    Here in my code , i'm able to call any function that which accepts Integer or String but not boolean. So, i m facing problem with Ap.setVisibility() function. It gives me a "Type mismatch error" while executing it. Can you please tell me a way to do this from Visual Basic !
    I'm using Visual Basic 6.0, Windows 2000 , J2SDK 1.4.2_05.
    Please help me Friends.
    Thanks and Regards,
    Srinivas Annam.

    Hi
    I am not sure about this solution. try this
    Declare a variable as variant and store the boolean value in that variable and then use in ur method.
    Post ur reply in this forum.
    bye for now
    sat

  • The Cluster Service function call 'ClusterResourceControl' failed with error code '1008(An attempt was made to reference a token that does not exist.)' while verifying the file path. Verify that your failover cluster is configured properly.

    I am experiencing this error with one of our cluster environment. Can anyone help me in this issue.
    The Cluster Service function call 'ClusterResourceControl' failed with error code '1008(An attempt was made to reference a token that does not exist.)' while verifying the file path. Verify that your failover cluster is configured properly.
    Thanks,
    Venu S.
    Venugopal S ----------------------------------------------------------- Please click the Mark as Answer button if a post solves your problem!

    Hi Venu S,
    Based on my research, you might encounter a known issue, please try the hotfix in this KB:
    http://support.microsoft.com/kb/928385
    Meanwhile since there is less information about this issue, before further investigation, please provide us the following information:
    The version of Windows Server you are using
    The result of SELECT @@VERSION
    The scenario when you get this error
    If anything is unclear, please let me know.
    Regards,
    Tom Li

  • Error while calling the Mapping function module for BW Extraction

    Hi
    iam getting runtime error while calling the BW mapping function
    The error description is as shown below.
    Runtime Errors         CALL_FUNCTION_UC_STRUCT
    Except.                CX_SY_DYN_CALL_ILLEGAL_TYPE
    <b>Short text</b>
        Type conflict during structure parameter transfer at CALL FUNCTION.
    <b>What happened?</b>
        Error in the ABAP Application Program
        The current ABAP program "GP466CV1Y7W2VML1PJ3VB80KDOP" had to be terminated
         because it has
        come across a statement that unfortunately cannot be executed.
    <b>Error analysis</b>   
    An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was
         not caught in
        procedure "CALL_MAPPING_FUNCTION" "(FORM)", nor was it propagated by a RAISING
         clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        In the function "CMS_CB_BW_MAP", the STRUCTURE parameter "EXTRACT_DATA" is
         typed in such a way
        that only actual parameters are allowed, which are compatible in Unicode
         with respect to the fragment view. However, the specified actual
        parameter " " has an incompatible fragment view.
    I am passing the EXTRACT_DATA  parameter as specification LIKE with the associated type  - corresponding structure
    Please let me know how can i resolve this issue
    Regards
    Leon

    Dear benarji ,
    I'm having the  same problem help me to correct . I have mentioned below as what error i got.
    Runtime Errors         CALL_FUNCTION_UC_STRUCT
    Except.                CX_SY_DYN_CALL_ILLEGAL_TYPE
    Short text
         Type conflict during structure parameter transfer at CALL FUNCTION.
    What happened?
         Error in the ABAP Application Program
         The current ABAP program "ZDLROUTSTANDING_COPY" had to be terminated because it
          has
         come across a statement that unfortunately cannot be executed.
    Error analysis
         An exception occurred that is explained in detail below.
         The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was
          not caught in
         procedure "PDF" "(FORM)", nor was it propagated by a RAISING clause.
         Since the caller of the procedure could not have anticipated that the
         exception would occur, the current program is terminated.
         The reason for the exception is:
         In the function "/1BCDWB/SF00000080", the STRUCTURE parameter "IT_WORKS_SF" is
          typed in such a way
         that only actual parameters are allowed, which are compatible in Unicode
          with respect to the fragment view. However, the specified actual
         parameter "SFTWORKS" has an incompatible fragment view.
    Missing RAISING Clause in Interface
        Program                                 ZDLROUTSTANDING_COPY
        Include                                 ZDLROUTSTANDING_COPY
        Row                                     876
        Module type                             (FORM)
        Module Name                             PDF
    Trigger Location of Exception
        Program                                 ZDLROUTSTANDING_COPY
        Include                                 ZDLROUTSTANDING_COPY
        Row                                     894
        Module type                             (FORM)
        Module Name                             PDF
    Source Code Extract
    Line  SourceCde
      864 **            i_logo             = 'ENJOYSAP_LOGO'
      865 *            IT_LIST_COMMENTARY = I_LIST_COMMENTS1.
      866
      867 ENDFORM.                    "alv_top_of_page1
      868 *&---------------------------------------------------------------------*
      869 *&      Form  PDF
      870 *&---------------------------------------------------------------------*
      871 *       text
    872 *----------------------------------------------------------------------*
    873 *  -->  p1        text
    874 *  <--  p2        text
    875 *----------------------------------------------------------------------*
    876 FORM pdf .
    877
    878 *  *** Smartforms & PDF ***
    879
    880   ssfctrlop-no_dialog = 'X'.
    881   ssfctrlop-preview   = 'X'.
    882   ssfctrlop-getotf    = 'X'.
    883   ssfcompop-tddest = 'ERP7'.
    884   DATA : mcheck LIKE sy-subrc.
    885   CLEAR : fm_name.
    886
    887   "Get Function module name for given smartform
    888   CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    889     EXPORTING
    890       formname = 'ZSFDLOS1'
    891     IMPORTING
    892       fm_name  = fm_name.
    893
    >>>>   CALL FUNCTION fm_name
    895   EXPORTING
    896         control_parameters   = ssfctrlop
    897         output_options       = ssfcompop
    898         mrefno               = mrefno
    899 *       P_TITLE              = MTITLE
    900   IMPORTING
    901         document_output_info = st_document_output_info
    902         job_output_info      = st_job_output_info " IT_OTF_DATA
    903         job_output_options   = st_job_output_options
    904   TABLES
    905         it_works_sf          = sftworks
    906   EXCEPTIONS
    907         formatting_error     = 1
    908         internal_error       = 2
    909         send_error           = 3
    910         user_canceled        = 4
    911     OTHERS               = 5.
    912
    913   IF sy-subrc NE 0.
    Advance Thanks

Maybe you are looking for