Error while executing Function Module UNIT_CONVERSION_WITH_FACTOR.

Hi experts:
    I'm trying to use the UNIT_CONVERSION_WITH_FACTOR Function Module on
BW but an error message appears, I searched for Notes on the SAP
Marketplace but only found a single note that describes the same
situation that we're experiencing (SAP Note 1333415), the thing is that
such a note is applicable for SAP BASIS version 702 but I'm using SAP
BASIS version 700.
Steps for Reconstruction    
- On transaction SE37 call the u201CUNIT_CONVERSION_WITH_FACTORu201D Function
Module.
- Click on the u201CTest/Executeu201D button (or press the F8 key).
- Enter the following values:
   o ADD_CONST = 0
   o DENOMINATOR = 1
   o INPUT = 20
   o NUMERATOR = 1568
- Click on the u201CExecuteu201D button (or press the F8 key).
- The Exception u201CTYPE_INVALIDu201D is reached and the following message
appears: u201CUse a number field for field OUTPUTu201D.
I also tried to use this Function Module on R/3 and the result was the same.
Do you have any suggestion to fix this error?
Thanks in advance for your help,
Francisco Milán.

Hi Francisco,
Check with SAP Note No. 854978.
Hope this would help you.
Rgds,
Mohit

Similar Messages

  • Type error while calling function module with in FOX formula

    Hi,
    I am getting following error while calling function module from FOX Formula:
    "Types of parameter DAY_IN () and variable J_CALDAY(D) are inconsistent"
    Following is the code:
    DATA    I_CALDAY       TYPE  0CALDAY.
    DATA    N_CALDAY       TYPE  0CALDAY.
    DATA    KYF              TYPE KEYFIGURE_NAME.
    FOREACH   I_CALDAY, KYF.
       CALL FUNCTION SLS_MISC_GET_LAST_DAY_OF_MONTH
          EXPORTING
             DAY_IN  =  I_CALDAY
          IMPORTING
             LAST_DAY_OF_MONTH = N_CALDAY.
        {KYF, N_CALDAY}  =  {KYF, L_CALDAY}.
    ENDFOR.
    Import parameter DAY_IN is of type sy-datum (that inturn is data element SYDATUM of data type DATS - same as 0CALDAY). Not sure why error is being thrown. Any idea? Thanks.
    Edited by: SAP_BOY on Dec 4, 2009 5:26 PM

    Hi,
    I think It will not identify ,though you have  (data element SYDATUM of data type DATS - same as 0CALDAY).Check it out by assigning it through a variable of type D.
    Data I_CALDAY TYPE D.
    Hope it may work out.
    Regards,
    Indu

  • Error while executing function

    hiii all,
    hope doing welll
    iam getting error while executing the function and error is
    ORA-00932: inconsistent datatypes: expected NUMBER got AMPLEX_GRAND1.SYS_PLSQL_75185_9_1

    hii sir this is my function
    create or replace
    FUNCTION FnFetchEmployeesforjobsheet
    v_user_id IN NUMBER
    RETURN FnFetchEmployeesforjobshee_pkg.tt_v_employees_type PIPELINED
    AS
    --declare @manager as int
    v_empid VARCHAR2(20);
    v_compid VARCHAR2(20);
    v_temp NUMBER(1, 0) := 0;
    v_temp_1 SYS_REFCURSOR;
    v_temp_2 TT_V_EMPLOYEES%ROWTYPE;
    BEGIN
    BEGIN
    SELECT 1 INTO v_temp
    FROM DUAL
    WHERE EXISTS ( SELECT 1
    FROM user_list
    WHERE Access_level = 0
    AND USER_ID = v_user_id );
    EXCEPTION
    WHEN OTHERS THEN
    NULL;
    END;
    IF v_temp = 1 THEN
    BEGIN
    SELECT Emp_ID
    INTO v_empid
    FROM User_List
    WHERE USER_ID = v_user_id;
    SELECT Comp_ID
    INTO v_compid
    FROM Employee
    WHERE Emp_ID = v_empid;
    INSERT INTO tt_v_employees
    ( SELECT DISTINCT Emp_id ,
    v_user_id
    FROM employee
    WHERE Comp_ID = v_compid );
    END;
    END IF;
    BEGIN
    SELECT 1 INTO v_temp
    FROM DUAL
    WHERE EXISTS ( SELECT 1
    FROM user_list
    WHERE Access_level = 2
    AND USER_ID = v_user_id );
    EXCEPTION
    WHEN OTHERS THEN
    NULL;
    END;
    IF v_temp = 1 THEN
    BEGIN
    INSERT INTO tt_v_employees
    ( SELECT e.Emp_ID ,
    v_user_id
    FROM employee e
    JOIN user_list ul
    ON ul.Emp_ID = e.Emp_ID
    WHERE USER_ID = v_user_id );
    END;
    END IF;
    BEGIN
    SELECT 1 INTO v_temp
    FROM DUAL
    WHERE EXISTS ( SELECT 1
    FROM user_list
    WHERE Access_level = 1
    AND USER_ID = v_user_id );
    EXCEPTION
    WHEN OTHERS THEN
    NULL;
    END;
    IF v_temp = 1 THEN
    DECLARE
    v_Emp_id VARCHAR2(50);
    BEGIN
    SELECT e.Emp_id
    INTO v_Emp_id
    FROM employee e
    JOIN user_list ul
    ON ul.Emp_ID = e.Emp_ID
    WHERE USER_ID = v_user_id;
    --insert @employees select e.Emp_id,User_ID from employee e inner join user_list ul on ul.Emp_ID = e.Emp_ID   
    --where User_ID = @user_id
    --insert @employees select  Emp_ID from User_List where User_Id=@user_id
    INSERT INTO tt_v_employees
    ( Emp_ID )
    VALUES ( v_Emp_id );
    INSERT INTO tt_v_employees
    --select Emp_ID,@user_id from employee  where Emp_ID = @Emp_id   
    --union    
    SELECT Emp_ID ,
    v_user_id
    FROM employee
    WHERE Managerid = v_Emp_id
    AND STATUS = 1 );
    END;
    END IF;
    OPEN v_temp_1 FOR
    SELECT *
    FROM tt_v_employees;
    LOOP
    FETCH v_temp_1 INTO v_temp_2;
    EXIT WHEN v_temp_1%NOTFOUND;
    PIPE ROW ( v_temp_2 );
    END LOOP;
    END;
    and my table is
    CREATE GLOBAL TEMPORARY TABLE tt_v_employees
    Emp_ID VARCHAR2(8) ,
    USER_ID NUMBER(10,0)
    and i am executing this function ,like this
    select FnFetchEmployeesforjobshee_pkg.FnFetchEmployeesforjobsheet('1') from dual; and getting this error
    SQL Error: ORA-00904: "FNFETCHEMPLOYEESFORJOBSHEE_PKG"."FNFETCHEMPLOYEESFORJOBSHEET": invalid identifier
    00904. 00000 - "%s: invalid identifier"

  • Error while activating function module

    Hi,
    I copied a standard SAP function module L_TO_CREATE_DN.
    When i activated the function group it throws an error saying that " Field "I_COMMIT_WORK" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement".
    All the global data has been copied properly in the TOP include but still while activating the function group we are getting the above said error.
    If anyone has encountered same kind of issue.......Please guide.
    Thanks and regards,
    Ramesh

    I was also facing the same issue, when I tried copying just 1 or 2 FM's from that FG L03B.
    Finally, I copied the whole function group, including all FM's into Z FG, and FM's, and it got activated w/o any hitches. Looks like there is lot of dependency between the includes and FM's code.
    Regards
    Deepthi

  • Error while calling function module to start form

    Hello Experts .
    First i make my data selection. Then i will get the name of the generated function module. Then i call FP Job open. up to here all is ok. But when i call the generated function module. There comes the popup error message. The text on this popup is SAP <SystemID>:System message,   Workprocess restarts. Session deleted" (or similar, I only get the german text "PBI: SAP-Systemnachricht: Workprozess druchgestartet (Modus abgebrochen)).
    I dont know why.
    Can anybody help?
    Regards
    Chris

    -> Executing Test Report FP_TEST_00 works correct. i see a pdf.
    ->Excecuting Test Report FP_CHECK_DESTINATION_SERVICE works correct
    FP_JOB_CLOSE is not called in my report.
    -> Executing Testreport:FP_TEST_IA_01  I get the error message:'
    ADS: com.adobe.ProcessingException: Could not retrieve a password for credential: ReaderRights(200.101).'

  • Error while transporting Function module.

    Hi guys,
    A z fun. Module was already created by some user on client 150.I changed,Activated it on client 180 ,but when I transport it to production I get the follow Error when I checked in "SMTS" .Please guide.
       Generation of programs and screens
       Transport request___: SA3K9A14WH
       System______________: SMP
       tp path             : tp
       Version and Release: 305.12.19 46D
       Generation of programs and screens for transport request SA3K9A14WH
       Only generates programs with LOAD versions
       Start on 27.10.09 at 04:20:54
       Ended on 27.10.09 at 04:20:54
       No. of programs  /Min/Avg/Max (sec): 1   0 0 0
       Generation of programs and screens
       End date and time : 20091027042054
       Ended with return code:  ===> 8 <===
    Selection for import                     2009.10.27 04:20:33    (0) Successfully completed
    Import                                   2009.10.27 04:20:38    (0) Successfully completed
    Check versions                           2009.10.27 04:20:42    (0) Successfully completed
    Generation of programs and screens       2009.10.27 04:20:54    (8) Ended with errors
    ment System
    Checks at operating system level         2009.10.27 13:18:14    (0) Successfully completed
    Export                                   2009.10.27 13:18:33    (0) Successfully completed
    unknown
    Selection for import                     2009.10.27 13:18:33    (0) Successfully completed

    Guys I did that ,but still get the following eror.Now I can open the function module but when Executed gets error No.2
    Error  NO1 :In Transport Request
    SA3K9A14WN              RFC Wty (G-ERP)
      SMP Production System
                 Selection for import                     2009.10.27 06:09:40    (0) Successfully completed
                 Import                                   2009.10.27 06:09:47    (0) Successfully completed
                 Check versions                           2009.10.27 06:09:52    (0) Successfully completed
                 Generation of programs and screens       2009.10.27 06:10:04    (8) Ended with errors.
    *Error  NO2 :In "SE37"
    Error generating the test frame

  • Short Dump while executing function module "IDOC_INPUT"

    Dear Friends,
    We are trying to execute the function module "IODC_INPUT" and getting a short dump.
    Basically the scnario is that we are trying to change an IDOC through transaction WE19 and then we execute the same by pressing tab "STANDARD INBOUND".
    But as soon as we press this button we get the short dump. whereas if I process the IDOC by pressing tab "Inbound Function Module" , there is no error and we are able to process the idoc successfully.
    Request you to please guide why this problem is there and what is the resolution for the same.
    Regards,
    Lalit Kabra

    Hi Nazeer,
    Thanks a lot for quick response.
    We are getting the dump with error ""Type "IDOC_DATA_CRYPTION" is unknown"". We just pressed the button STANDARD INBOUND and it gave us the error.
    Even when I execute this FM stand alone then just after pressing F8, it gives me Dump instead of the selction screen of the Function module.
    I tried running this FM on my IDES system and there I can see the selction screen and there is no dump.
    To me it seems that I need to do some settings so that this fm can be executed sucessfully.
    Request you to please help and guide me.
    Regards,
    Lalit Kabra

  • Error in executing Function Module using ConnectorFramework

    Hi All,
    I am trying to call a function module in the SAPR/3 system using the Connector Framework in Portal.
    I got the connection by using IGatewayService,
    written a statement for accessing the function like this
    IFunctionsMetaData fnMetadata = con.getFunctionsMetaData();
    IFunction function1 = fnMetadata1.getFunction("ZBAPI_FM3");
    By using the above code, I am able to get the description of the Function Module.
    using the statement response.write("Success5    "function1.getDescription()"<br>");
    But while using the MappedRecord ouput1 = (MappedRecord)ix.execute(ixspec1,input1); to execute the function,
    it is raising an exception
    com.sap.mw.jco.JCO$Exception: (131) JCO_ERROR_ILLEGAL_ARGUMENT: Function name equals null is not allowed
    I have filled the input1 also.
    Any one please help me in this regard to solve the issue.
    Thanks in advance,
    Bhavyasri.M
    Edited by: bhavya Sri on Jun 18, 2008 5:16 AM
    Edited by: bhavya Sri on Jun 18, 2008 5:40 AM

    See the thread below , It ll help you
    Connection to R/3 system
    Koti Reddy

  • Exception while executing Function module - HRXSS_PER_READ_P0006_US

    Unable to execute any of the following Function modules(ECC 5)
    (Gave the neccesary inputs)
    HRXSS_PER_P0006_US
    HRXSS_PER_DELETE_P0006_US
    HRXSS_PER_EDIT_P0006_US
    HRXSS_PER_MODIFY_P0006_US
    HRXSS_PER_NEW_P0006_US
    HRXSS_PER_READ_P0006_US
    Getting an exception
    Runtime Errors OBJECTS_OBJREF_NOT_ASSIGNED_NO
    Exceptn CX_SY_REF_IS_INITIAL
    ShrtText
    Access with 'ZERO' object reference not possible.
    What happened?
    Error in ABAP application program.
    The current ABAP program "SAPLHRXSS_PER_MAC" had to be terminated because one of the statements could not be executed.
    This is probably due to an error in the ABAP program.
    Error analysis
    An exception occurred. This exception is dealt with in more detail below . The exception, which is assigned to the class 'CX_SY_REF_IS_INITIAL', was neither caught nor passed along using a RAISING clause, in the procedure "HRXSS_PER_CLEANUP" "(FUNCTION)".
    Since the caller of the procedure could not have expected this exception to occur, the running program was terminated.
    The reason for the exception is:
    There was an attempt to access a component using a 'NULL' object reference (points to nothing).
    An object reference must indicate an object (an instance of a class), before it can be used to access components.
    Either the reference was never set or it was set to 'NULL' using a CLEAR statement.
    Missing RAISING Clause in Interface
    Program SAPLHRXSS_PER_MAC
    Include LHRXSS_PER_MAC$04
    Row 7
    Module type (FUNCTION)
    Module Name HRXSS_PER_CLEANUP
    Trigger Location of Exception
    Program SAPLHRXSS_PER_MAC
    Include LHRXSS_PER_MACU04
    Row 13
    Module type (FUNCTION)
    Module Name HRXSS_PER_CLEANUP
    What could be the reason?
    Regards,
    Sarath

    Hi Sarath,
    The problem is caused by a program error in the CRM system.
    Solution for this is Import the Support Package or implement the correction instructions as specified in note 742720, there are some corrections attached to the note. Hope this will resolve the issue.
    Cheers,
    Shyam.

  • Error while creating Function module extracter

    Hello Guru's
    I am getting error while FM extracter creating.
    Have created FM and Extract structure and while creating datasource using these where i am getting error as given below
    1> ZV_ZFRT_INVOICES(Datasource): TABLES-paramter E_T_DATA for extractor Z_ZFRGT_INVOICES(FM) is missing
    2>(DS)ZV_ZFRT_INVOICES: Field ZEILE of the provider structure is missing in extract str. ZVZFRT_INVOICES(Extract structre)
    3>(DS )ZV_ZFRT_INVOICES: Field EBELP of the provider structure is missing in extract str. ZVZFRT_INVOICESExtract structre)
    Please some one can help me to get out of the issue.

    HI Aryan,
    No need to create FM on your own. You can copy the FM from Function Group RSAX.
    The procedure to create FM extractor is as follows:
    1) Create an extract structure.
    2) Go to SE80. Select Function Group RSAX , right click and then copy.
    3) Give your own name to the function group to copy.
    4) Select one appropriate FM from the list of FMs provided. eg FM RSAX_BIW_GET_DATA_SIMPLE.
    5)Specify the name of new FM you want to create.
    6) Go to SE37 and open the FM you have created by copying from Function Group RSAX.
    7) no need to change the import tab.
    8) On tables tab, for paramerter name E_T_DATA under asociate name specify the name of extract structure you hav created.
    9) Under source code tab make the changes in the source code only to customise it to your requirement. eg: declare the database table you are using, make changes where datasource is in picture, etc.
    I have created a generic DataSource with the help of above procedure.. I hope you will find it helpful...
    Regards,
    Geetanjali

  • Error while activation Function module for generic data extraction

    Hi,
    I have created a generic data source ZMATERIAL in which i have selected the Extraction by Function module. I copied the function module RSAX_BIW_GET_DATA_SIMPL to ZMATERIAL_FM, but when i activate this module it gives me error
    REPORT/PROGRAM statement missing, or program type is I (INCLUDE).
    The main program of the function "Z_BWGENDATAMATERIAL" does not begin with "FUNCTION-POOL".
    Please help me in this.

    Hi Dipika,
                  I think a similar issue is discussed
    Refer this thread
    REPORT/PROGRAM statement missing, or program type is I (INCLUDE).
    Compiling INCLUDE progam
    question related to includes
    question related to includes
    Hope these helps
    Regards
    Karthik

  • Error while using Function module SPELL_AMOUNT with arabic language AR

    Hi ,
    When i am trying to convert the number to words, using function module SPELL_AMOUNT with arabic language(AR),following abend message is coming and FM is getting abended.
    Entry AR 0 1 in table T015Z does not have a delimiter (
    Can you please provide me how to overcome this error?
    Thanks & Regards
    Seshagiri.

    Hi Santosh,
    Thanks for quick inputs.
    And amount is not having any delimitors.
    I have checked in table T015Z and it has entries with AR as SPRAS.
    All entries are having ':' at the beginning of the arabic words,and there is no single entry with ';'.
    All entries with EN as SPRAS are having delimiters ';' at the end of the words.
    Numbers are correctly converted to words in english,but abending in arabic.
    Any idea please.
    Thanks & Regards
    Seshagiri.

  • Error while executing planning Function

    Hi All,
    I'm getting some error while executing planning function. Below are errors. Please check and provide solution.
    Errors occurred when executing planning function RTFMPF01/RTFMPG01
    Value 08 of chara Region does not correspond to the attrib.val MI of chara Store
    Value 10 of chara Region does not correspond to the attrib.val RM of chara Store
    Value 11 of chara Region does not correspond to the attrib.val NA of chara Store
    Thanks,
    Vamsi

    Hi,
    Value 08 of chara Region does not correspond to the attrib.val MI of chara Store
    Looks like there is a characteristics relationship which derives the attribute store from Region.
    Check the master data for Region for attribute Store and the corresponding values.
    The values that are maintained in the master data will only be allowed to enter in the cube.
    Thanks
    pratyush

  • Error while executing "" command Error type ACCESS VIOLATION Error Address: 0006898E Module name:gfsdesk.DLL

    Hi All,
    I'm using diadem from .net Program. While on the run I'm getting the following error.
    Error While executing "" Command
    Error type ACCESS VIOLATION
    Error Address: 0006898E
    Module name:gfsdesk.DLL
    Anyone have any idea why this is happening?
    regards,
    Swaroop

    Hi Swaroop,
    It would be helpful to better understand what your code really does. The information that you called DIAdem from your enviroenment is not yet sufficient to understand what the problem might be.
    Andreas

  • Error while executing C MEX S-function 'sysgen', (mdlTerminate)

    Hi 
    We are trying to use System generator with Vivado 2014.4. We are encountering the above problem, which is causing a segmentation violation and MATLAB crach, when a simulation in sysgen is finishing up.
    It seems like that there has been an equivalent problem before, in an older version of System Generator, which has been answered in AR#31095. Search results say that this AR was:
    Why do I receive "Error while executing C MEX S-function 'sysgen', (mdlTerminate). Unexpected unknown exception from MEX file" when I simulate my System Generator model? How do I set up my system environment properly? See (Xilinx Answer 31095).
    Unfortunately, the AR is missing in the xilinx site. What did this answer record say? Might be applicable to our case?
     

    That is because the bpel file contains the absolute path to the xsl file instead of the relative path.
    ora:doXSLTransformForDoc('file:/C:/JDeveloper/mywork/xsl/tranform_02.xsl' .....
    should be
    ora:doXSLTransformForDoc('xsl/tranform_02.xsl' .....
    As far as I know, this is a bug in JDeveloper for putting this information here. I've removed it using the source view only to find it there again.

Maybe you are looking for