Wrong type for decimal on PpostgreSQL

I am faced with fixing a bug which says that
[i]The torque-generated sql scripts contain a wrong type for decimal on PostgreSQLwhere we get DECIMAL instead of DECIMAL(16,4), which is equivalent to INTEGER.
It is working fine for other database like oracle, db2 etc.
There seems to be the problem in torque-gen-3.1 jar because it
works fine if we use torque-gen-3.2.
torque-gen-3.1 doesent seem to deal with size attribute for postgresSQL.
I am trying this for the past 3 days but still havent managed to get any solution.
Pls help,Thanks in advance.
Regards,
jaay

it works fine if we use torque-gen-3.2That looks like a solution to me. What's your problem
with it?Actually my Boss is not agreeing.He says we have to make changes
only in torque-gen-3.1 only , not to use torque-gen-3.2

Similar Messages

  • The disc is the wrong type for the operation

    Hello!
    I'm using DVD Studio Pro 4 and as I try to burn a double layer DVD I get a message saying "The disc is the wrong type for the operation". I've tried several brands, but I get the same message. What can possibly be wrong?
    Thanks for helping me!
    /Andreas from Sweden

    If you are trying to do this on the internal Superdrive they have problems writing to Dual Layer DVD disks of any make and or type.
    IMHO the DVD drive Apple uses is not very good.
    If this is a fairly new Mac system I suggest you take it to an Apple store and show them that it can't write to Dual Layer DVD discs of any make and maybe they will replace it with on e that will.

  • Call of the method START_ROUTINE of the class LCL_TRANSFORM failed; wrong type for parameter SOURCE_PACKAGE

    Hi,
    My DTP load failed due to following error.
    Call of the method START_ROUTINE of the class LCL_TRANSFORM failed; wrong type for parameter SOURCE_PACKAGE
    I don't think anything wrong with the following code as data loads successfully every day. Can any one check?  What could be the issue?
    METHOD start_routine.
    *=== Segments ===
         FIELD-SYMBOLS:
           <SOURCE_FIELDS>    TYPE _ty_s_SC_1.
         DATA:
           MONITOR_REC     TYPE rstmonitor.
    *$*$ begin of routine - insert your code only below this line        *-*
    *   Fail safe which replaces DTP selection, just in case
         DELETE SOURCE_PACKAGE WHERE version EQ 'A'.
    *   Fill lookup table for the ISPG
         SELECT p~comp_code m~mat_plant m~/bic/zi_cpispg
           INTO TABLE tb_lookup
         FROM /bi0/pplant AS p INNER JOIN /bi0/pmat_plant AS m ON
           p~objvers EQ m~objvers AND
           p~plant   EQ m~plant
         FOR ALL ENTRIES IN SOURCE_PACKAGE
         WHERE p~objvers   EQ 'A' AND
               p~comp_code EQ SOURCE_PACKAGE-comp_code AND
               m~mat_plant EQ SOURCE_PACKAGE-material.
         SORT tb_lookup BY comp_code material.
    *$*$ end of routine - insert your code only before this line         *-*
       ENDMETHOD.     

    Hi,
    Compare the data types of the fields in your table tb_lookup with the data types in your datasource. Most probably there is an inconsistency with that. One thing that I realize is that
    I use the select statement in the format select ... from ... into... Maybe you need to change places of that, but I am not sure. You may put a break point and debug it with simulation.
    Hope it gives an idea.
    Yasemin...

  • [Eclipse - Axis] Generate Client from wsld, wrong type for unbounded elemen

    Hi all!
    I'm not expert on wsdl format, but in my work activities I have to take wsdl they send to me and generate Java code in Eclipse.
    One of last wsdl they sent to me contains the following element:
    <xs:element ref="ns0:CodicePraticaDistributore" minOccurs="0" maxOccurs="unbounded"/>where ns0:CodicePraticaDistributore is:
    <xs:element name="CodicePraticaDistributore" type="ns0:CodPratica"/>and ns0:CodPratica is:
    <xs:simpleType name="CodPratica">
         <xs:restriction base="xs:string">
              <xs:maxLength value="15"/>
         </xs:restriction>
    </xs:simpleType>(Sorry I don't report whole wsdl... but it's VERY long!)
    When I do right click on the wsdl and follow Web Services - Generate Client and so on... the generated class contain following lines:
    elemField.setXmlName(new javax.xml.namespace.QName("http://xmlns.a2a.eu/Unbundling/documentum/schema/DocumentalePrestazione", "CodicePraticaDistributore"));
    elemField.setXmlType(new javax.xml.namespace.QName("http://xmlns.a2a.eu/Unbundling/documentum/schema/DocumentalePrestazione", "CodicePraticaDistributore"));Which are wrong, 'cause the second argument for setXmlType should be CodPratica and not CodicePraticaDistributore.
    The right one should be:
    elemField.setXmlName(new javax.xml.namespace.QName("http://xmlns.a2a.eu/Unbundling/documentum/schema/DocumentalePrestazione", "CodicePraticaDistributore"));
    elemField.setXmlType(new javax.xml.namespace.QName("http://xmlns.a2a.eu/Unbundling/documentum/schema/DocumentalePrestazione", "CodPratica"));This makes Axis generate wrong xml, with addition of xsi:type="xsd:string" which makes the other system (where I send xml) to return me an error for bad xml format.
    The generated xml code for this data is:
    <CodicePraticaDistributore xsi:type="xsd:string">PN100000000110E</CodicePraticaDistributore>While it should be simply:
    <CodicePraticaDistributore>PN100000000110E</CodicePraticaDistributore>I can't understand how to resolve this behaviour on Java generation (other than modifying the final generated Java Class).
    Can you help me?

    I didn't meant to "up" again the topic... I was just marking it as "resolved" to remove from "unresolved" topics in my control panel... but it asked to me if I wanna add a comment... I didn't guess it would be post in the topic and up it again, sorry.
    I also tried in the API forum, but no answer neither there.
    I tried Axis2, but at the end I found some incompatibilites, because in the project I'm working on there are lot of wsdl, but only this one generate the said problem.
    But them all write in the same paths, and this generates case-sensitive problems on paths (under windows).
    At the end I simply think they left Axis1 as it is (whith this bug included), and they're only on Axis2... which is not so compatible with Axis1.
    So up to now no solution, if not edit manually the error... or rewrite the whole project for classes generated by another wsdlToJava generator (which is a HUGE work).
    Thank you anyway. :)

  • Data type for decimal value

    I am making my own database table.which data type shuld I use to display decimal values.I used FLTP but its display is not very clear.
    My values are like1234.56
    Thanks

    assign decimal place while creating domine.
    as per ur req.....
    if it is usefulll.Plz Reward
    Regards
    Anbu

  • Data type for decimal values

    Hi experts,
    kindly help me in sorted this..
    in my coding:
    ztest is a structure.
    I want to ask u that what datatype shud i give to my field so that it can gv me acorrect value after appending.
    also i have to sort my data and decimal shud b 2 place only.
    kinldy response
    data: itab like ztest occurs 10 with header line.
    move '0.23566' to itab-value.
    append itab.
    move '1.98323' to itab-value.
    append itab.
    move 900 to itab-value.
    append itab.
    move '100' to itab-value.
    append itab.
    sort itab by value descending.
    loop at itab.
    write: / itab-value.
    endloop.
    thanks n regards
    puneet

    Hi,
    you can declare  the value in the following way.
    DATA : value type p decimals 2.
    Reward points if useful.
    Regards
    rose

  • Getting wrong values  for decimal value in Bex report

    Hi,
         I am getting some problem in Bexreport decimal values.
       In ODS i am able to look the values for this key figure
      (Total PO Release Val)= 140.692,00,the same value in Bex report looks like this $ 140,692.00.
         Here one calculation is going with these above values
       % Used = 'Total PO Release Val' / 'Target Value' * 100
        as per ODS value calculation  it is correct = 140.692/1000 * 100 =14.692
       as per Bex  it is coming like this = 140,692.00/1000 *100 = 142.692.
        in Bex report Percentage valus is not considering value is taking as 140,692.00 rather than 140.692.I mean to say decemal values are ignoring while calculation in Bexreport.can you any please advice me how to comeout of this problem.Appreciate your help.
    Regards
    Ramesh

    <i> "(Total PO Release Val)= 140.692,00,the same value in Bex report looks like this $ 140,692.00."
    </i>
    How do you check the ODS value? The amount will only have two decimal places after it, so you can't have a value like 140.692,00. It seems to be an issue of user's decimal notation (where decimal is represented by comma, and thousand seperator by '.'). Go to user profile, change this setting (in default tab) to correct one (ie decimal being represented by '.') and login again and check it. The value that you see in ODS is 'one hundred forty thousand six hundred ninety two, the same that you get in Bex, only the representation is different).

  • Wrong result for decimal in currency

    Hi All,
    I loaded the history data by pc_file to the bw systems and when ı check the data in the infocube and in the source file, they are same. But when ı executed the report, for example the value of the keyfigure in the cube and source file is 118,36 but in the report it seems 11836,00.   How can it happen??
    Please help me on this.
    Regards,
    Turan

    Hi,
    There could be scaling used in the reports.
    just go to the properties of the RKF and CKF and also key figures and see if some scaling ( *100)is used.
    Also try to see if u are making correct inetrpreatation of ,(comma) and .(dots)
    Thanks
    Ajeet

  • ContextConfigurationException: Wrong amount type (not decimal).....

    Hello All,
    I'm facing this problem "com.sap.dictionary.runtime.DdException: Wrong amount type (not decimal): Unit service cannot be instantiated
    "..it seems to be a problem with one of the structure that is linked to one of my sub - model nodes (specificly bapidlvitem) if you see...the error is something to do with the context generation. I'm using a standard bapi "Bapi_delivery_getlist" and the str that have the problem is "et_delivery_item" of type bapidlvitem. It has some attributes but what i've figured out is that one of them is decimal, the other ones are string...so i dont know what to do because the problem appear when i create the model node with that subnode ("et_delivery_item") if i dont include that subnode, all works fine...and i really need that subnode because i have to use it in my application. Please someone help me
    Regards,
    MC

    Hi Mariana,
                    The problem is you are passing String value to a decimal attribute.Try like this:
    wdContext.<yournode>Element().set<yourAttribute>(new BigDecimal(yourStringAttribute));
    If you want more help, provide your context structure also.
    Regards,
    Siva

  • Clientgen producing wrong package for artifacts when type is JAXWS

    Please we need help on this one really bad. We are using wls 10.3.2 on window 7/2008 r2 64bit edition.
    I'm tyring to upgrade to 10.3.2 and use JAXWS instead of JAXRPC for our web services. First the migration from 10.3.0 to 10.3.2 using JAXRPC web services are good. Then tried generating server side JAXWS web services with jwsc, that went fine also. But when I tried using clientgen with type="JAXWS" webservices to generate the client artifacts to be use by our standalone java swing client the packages of our javabeans (use as parameters and return value and just POJO) are all wrong and also those javabeans are duplicated if the javabeans are used in several web services methods that are in the different package. Let me give you an example so you can see. For ex. we have several javabeans we use as parameters and return values for our web services methods/call (the package is shown in the full name of the javabeans). (1) com.starcomsoft.pp.address.Address; (2) com.starcomsoft.pp.account.Account; (3) com.starcomsoft.pp.customer.Customer; (4) com.starcomsoft.pp.order.Order & com.starcomsoft.order.OrderItem. We have 2 EJB stateless session bean as webservices and they are com.starcomsoft.pp.customer.jws.CustomerWSImpl and com.starcomsoft.pp.order.jws.OrderWSImpl. The Customer bean has an address as one of it's field and an Account has a Customer as one it's field also. An Order bean has a Shipping/Billing address field and a Customer field and a Collection of OrderItems in it.
    Below is the CustomerWSimpl class..
    @SOAPBinding(style=SOAPBinding.Style.DOCUMENT, use=SOAPBinding.Use.LITERAL,
    parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)
    @Stateless(mappedName = "CustomerBeanWS")
    @WebService(name = "CustomerWS",
                   serviceName = "CustomerWSService")
    public class CustomerWSImpl {
    @WebMethod
    public Customer findCustomer(int id) { return customer;}
    @WebMethod
    public List<Customer> findCustomers(List<Integer> ids) { return List<Customer> customers;}
    @SOAPBinding(style = SOAPBinding.Style.DOCUMENT,
              use = SOAPBinding.Use.LITERAL,
              parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
    @Stateless(mappedName = "OrderBeanWS")
    @WebService(name = "OrderWS",
                   serviceName = "OrderWSService")
    public class OrderWSImpl {
    @WebMethod
    public Order findOrder(int orderId) { return order;}
    When I generate the client artifacts for CustomeWSImpl using "clientgen" with type="JAXWS", the Address, Account, Customer bean will all have the same package. For example in this case com.starcomsoft.pp.customer.jws ..., and for the OrderWSImpl - the Address, Customer, Order, OrderItem the packaging is "com.starcomsoft.pp.order.jws". Also the Address, Customer are duplicated. I've tried different combination value for all the attributes of "clientgen" but to no success. I'm I missing anything on my POJO or EJB stateless Bean's?
    Below is an example of the ant task for "jwsc" and "clientgen".
    <target name="gen.ws.server01" description="Target that builds the target Web Service">
    <echo message="#### WSSTYLE JAXWS #######"/>
    <jwsc srcdir="${src.server.ws.dir}" sourcepath="${src.server.dir}" destdir="${build.server.dir}"
    classpath="${java.class.path};${app.inf.classes.dir}" fork="true" compiler="modern"
    keepGenerated="true" deprecation="${deprecation}" keepTempFiles="true" listfiles="true"
    debug="${debug}" memoryMaximumSize="${max.mem}" verbose="${verbose}">
    <module contextPath="starcomsoft_ws" explode="true" name="starcomsoft_ws" generateWsdl="true">
    <jws file="com/starcomsoft/pp/order/jws/OrderWSImpl.java" type="JAXWS" generateWsdl="true"/>
    <jws file="com/starcomsoft/pp/customer/jws/CustomerWSImpl.java" type="JAXWS" generateWsdl="true"/>
    </module>
    </jwsc>
         </target>
    <target name="gen.client1" depends="init, clean.gen.ws.server">
    <clientgen
         type=JAXWS"
    wsdl="${build.server.ws.dir}/META-INF/CustomerWSService.wsdl"
    destDir="${gen.server.dir}"/>
    <clientgen
         type="JAXWS"
         wsdl="${build.server.ws.dir}/META-INF/OrderWSService.wsdl"
    destDir="${gen.server.dir}"/>
         </target>
    "OR this "
    <target name="gen.client2" depends="clean.gen.ws.server, init">
    <clientgen
         type="JAXWS"
    wsdl="${build.server.ws.dir}/META-INF/CustomerWSService.wsdl"
    destDir="${gen.server.dir}"
         packageName="${server.root.package.name}.customer.jws" />
    <clientgen
         type="JAXWS"
         wsdl="${build.server.ws.dir}/META-INF/OrderWSService.wsdl"
    destDir="${gen.server.dir}"
              packageName="${server.root.package.name}.order.jws" />
         </target>
    Please any help or thoughts on this one is greatly appreciated

    Hi,
    Please Don't Use weblogic.wsee.tools.anttasks.ClientGenTask If you are using ANT build to define your Client Gen Defination. May be at present you are using this ClientGen:
    <taskdef name="clientgen" classname="weblogic.wsee.tools.anttasks.ClientGenTask" />
    Please Use the ClientGenX Utility (This is WLS9.x Compatible Version of Clientgen NO side effects of using it) for utilizing this feature:
    <font color=maroon><b>
    <taskdef name="clientgenx" classname="weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask" />
    </b></font>
    use the above clientgenx task with the attribute *"useServerTypes=true"*...Just give it a try...
    DESCRIPTION Of <strong>useServerTypes</strong>:
    Specifies where the clientgen task gets the implementation of any non-built-in Java data types used in a Web Service: either the task generates the Java code or the task gets it from the EAR file that contains the full implementation of the Web Service. Valid values are True (use the Java code in the EAR file) and False. Default value is False.For the list of non-built-in data types for which clientgen can generate data type components.
    NOTE:. The ClientGenX utility attributes are similar to WLS8.1 Clientgen utility...But it will generate the Client Side artifacts to your Current version of WebLogic ...so no need to worry...Just you may need to change some of the Attributes of your current ClientGen which you are using.
    Keep Posting :)
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com/webservices/#comment-314 (Complex types in JAXWS)

  • Wat should be data type for  negative and decimal values (eg: -1.2222)

    What should be data type for  negative and decimal values (eg: -1.2222)

    Hi
    U can use the data type DEC while creating the DOMAIN and in the domain u  have sign check box at the left corner of the screen, click that check box , u can assign negative values for the field which refers this domain.
    REWARD IF HELPFULL
    Anees.

  • Wrong calculation for condition type for misc. provision in service PO

    Hi Gurus,
    In service PO line item, we have maintained customised condition type for misc provision. this is % based on net price. It has been assigned account key and accrual key. It's manual. Logically, it should calculate the value based on the total of the net values of all service lines and post a single entry for all concerned service lines. What system is actually doing, it calculates the value correctly for total of net values of service lines in that PO line item but post it to the account as many number of times as the number of service lines in that line item.
    This is when service based IV is active for the PO line item. If I deactivate this, then it post the account once only which is ok.
    Please explain this behaviour. Also, I want to activate service based IV, what should I do to this condition type. Is there any condtion base formula or condtion value formual to be assigned in the pricing procedure?
    Thanks in advance,
    Sudhir Dahake

    Hi,
    Check if some user exit/ routine is written for the condition type.
    Check user exit RV60AFZZ, RV60AFZA, RV60AFZB,RV60AFZC for some code.
    If it is a manual condition check COPY CONTROLS or if it is automatic check condition records from which it is calculated based on qty, price, material type, etc.
    Regards,
    Amit

  • BEx Analyzer displays wrong number of decimal places after implementing BW patch

    Hey folks,
    we patched our BW 7.31 from PL10 to PL15 last weekend and now we got some issue with the number of decimal places shown in BEx Analyzer 7.x.
    One example for KF X
    Settings Info Object X
    Decimal Places:                         Not defined
    RSRT - Display X
    Shows 3 decimal places
    Query Designer Settings using KF X
    Number of Descimal Places:     0  [Use Default Settings: NO]
    BEx Analyzer Properties for KF X
    Decimal Places:                         0
    Resulting in BEx Analyzer workbook shows 3 decimal places instead of 0!
    Anyone with an good idea about that?
    Thanks,
    Andreas

    Hi Andreas,
    Have you used the list calulation like "Calculate Result As Average" or "Calculate Single Values as normalization of result" in the relevant key figures?
    For "Calculate Single Values as normalization of result",iIt is the known design that it is always displayed with three decimal places for normalized values, and the setting in Query Designer for
    decimal place doesn't take effect.
    For "Calculate Result As Average", the following note maybe relevant.
    2096911 - Decimal places in query result is wrong, if average is used and display precision is set to less than 3, it will always show 3 decimal places.
    Another clue is to check if the key figure is a Quantity type with unit, and what's defined in table
    T006 field ANDEC for this unit.
    Hope this helpful.
    Regards,
    Ceciclia

  • Wrong prefix for SOAPElement inside SOAPHeader

    Hi ,
    I am trying to generate SOAPHeader which has one Custom Header element on Weblogic Workshop 8.1 . Custom element structure is defined using the XSD. Workshop created the XML Bean for that XSD. I am setting the values of elements using setter methods. The prefix is explicitly set as "websvc" to the Custom Header Element. "websvc" prefix is visible to this Element in the Consumer Program Log.
    In the XSD, the target name space of the above Header Element is --- xmlns:websvc="http://webservices.com/request/audit"
    I am building the Element array and passing to setOutputHeaders() method on the Control of the Web Service Provider's WSDL. Then on the above control, the Web service method is invoked.
    When this SOAP request reaches the Provider, I am printing the SOAP request inside the handleRequest() method of Web Service Handler. There its showing the prefix of the above Header Element as "aud" instead of "websvc".
    This element in handleRequest() of Service is coming as
    <aud:CustomHeader xmlns:aud="http://webservices.com/request/audit">
    instead of
    <websvc:CustomHeader xmlns:websvc="http://webservices.com/request/audit">
    Can anyone please guide me urgently how to get "websvc" prefix instead of "aud" in the above SOAP Request?

    Your query is not using the index because the numeric literal you are using is an xs:decimal, not an xs:double. Wrapping your literal in a cast should make the query use your index:
    collection ( 'test.dbxml' )/log/session/record[data/@high=xs:double(79.37)]
    Having said that, this is only the case for DB XML 2.2.13 and before. It turns out that DB XML has been choosing the wrong type to perform comparisons under - and this has been remedied in the forthcoming version. In your case, the new behaviour will mean that the comparison will always be performed as an xs:double.
    John

  • 'expression is of wrong type' - but which and where..?

    hello.
    Hopefully this will be clear as day to someone.. Please could someone tell me why I'm getting the following error message..
    [061010_042222995][][EXCEPTION] SQLException encounter while executing data trigger....
    java.sql.SQLException: ORA-06550: line 4, column 20:
    PLS-00382: expression is of wrong type
    ORA-06550: line 4, column 1:
    PL/SQL: Statement ignoreddata template where trigger is called..
      <?xml version="1.0" encoding="utf-8" ?>
    - <dataTemplate name="UofS_OutstandngExpenses_Report" defaultPackage="SUBIXCLT" dataSourceRef="FINDEV" version="1.0">
    - <properties>
      <property name="xml_tag_case" value="upper" />
      <property name="include_parameters" value="true" />
      <property name="debug_mode" value="on" />
      </properties>
    - <parameters>
      <parameter name="p_claimant" dataType="character" defaultValue="" />
      <parameter name="p_expense_date_from" dataType="date" defaultValue="" />
      <parameter name="p_expense_date_to" dataType="date" defaultValue="" />
      <parameter name="p_raisedby" dataType="character" defaultValue="" />
      <parameter name="p_status" dataType="character" defaultValue="" />
      <parameter name="p_ordered_by" dataType="varchar2" defaultValue="" />
      </parameters>
    - <dataQuery>
    - <sqlStatement name="Q1">
    - <![CDATA[
    SELECT DISTINCT
    erh.invoice_num,
    pap.full_name EMP_CLAIMING,
    DECODE(NVL(erh.expense_status_code, 'Not yet Submitted (NULL)'), 'CANCELLED', 'CANCELLED',
         'EMPAPPR', 'Pending Individuals Approval',      'ERROR', 'Pending System Administrator Action',
         'HOLD_PENDING_RECEIPTS     ', 'Hold Pending Receipts', 'INPROGRESS', 'In Progress', 'INVOICED', 'Ready for Payment',
         'MGRAPPR', 'Pending Payables Approval', 'MGRPAYAPPR', 'Ready for Invoicing', 'PAID', 'Paid',
         'PARPAID', 'Partially Paid',     'PAYAPPR', 'Payables Approved',     'PENDMGR', 'Pending Manager Approval',
         'PEND_HOLDS_CLEARANCE', 'Pending Payment Verification',     'REJECTED', 'Rejected',     'RESOLUTN',     'Pending Your Resolution',
         'RETURNED',     'Returned',     'SAVED',     'Saved',     'SUBMITTED',     'Submitted',     'UNUSED',     'UNUSED',
         'WITHDRAWN','Withdrawn',     'Not yet Submitted (NULL)') "EXPENSE_STATUS" ,
    NVL(TO_CHAR(erh.report_submitted_date,'dd-MON-yyyy'),'NULL') SUBMIT_DATE,
    NVL(TO_CHAR(erh.expense_last_status_date,'dd-MON-yyyy'),'NULL') LAST_UPDATE,
    erh.override_approver_name ER_Approver,
    fu.description EXP_ADMIN,
    erh.total,
    erh.description 
    FROM
    AP_EXPENSE_REPORT_HEADERS_all erh,
    per_all_people_f pap, fnd_user fu
    WHERE erh.employee_id = pap.person_id
    AND fu.user_id = erh.created_by
    AND NVL(erh.expense_status_code, 'Not yet Submitted') NOT IN  ('MGRAPPR', 'INVOICED', 'PAID', 'PARPAID')
    AND pap.full_name = NVL(:p_claimant, pap.full_name)
    AND TRUNC(erh.report_submitted_date) BETWEEN NVL(:p_expense_date_from, '01-JAN-1999') AND NVL(:p_expense_date_to,'31-DEC-2299')
    AND fu.description = NVL(:p_raisedby,fu.description)
    AND erh.expense_status_code = NVL(:p_status,erh.expense_status_code) &L_ORDERED_BY
      ]]>
      </sqlStatement>
      </dataQuery>
      <dataTrigger name="beforeReport" source="SUBIXCLT.beforeReportTrigger" />
    - <dataStructure>
    - <group name="G_XP_CLM_TRACKNG" source="Q1">
      <element name="INVOICE_NUM" value="INVOICE_NUM" />
      <element name="EMP_CLAIMING" value="EMP_CLAIMING" />
      <element name="EXPENSE_STATUS" value="EXPENSE_STATUS" />
      <element name="SUBMIT_DATE" value="SUBMIT_DATE" />
      <element name="LAST_UPDATE" value="LAST_UPDATE" />
      </group>
      </dataStructure>
      </dataTemplate>and the package spec & body..
    --THE SPEC...
    CREATE OR REPLACE PACKAGE Subixclt IS
    FUNCTION beforeReportTrigger RETURN VARCHAR2;
    p_order_by VARCHAR2(50);
    l_ordered_by VARCHAR2(350);
    p_claimant  VARCHAR2(80);
    expense_date_from DATE;
    expense_date_to DATE;
    p_raisedby   VARCHAR2(80);
    p_status   VARCHAR2(80);
    p_ordered_by   VARCHAR2(80);
    --RETURN VARCHAR2;
    END;
    --THE BODY...
    REATE OR REPLACE PACKAGE BODY Subixclt IS
    FUNCTION BeforeReportTrigger RETURN VARCHAR2 IS
    BEGIN
    Fnd_File.PUT_LINE(Fnd_File.LOG,'L_ORDERED_by'||L_ORDERED_BY);
    DECLARE
    L_ORDERED_BY VARCHAR2(50);
    P_ORDERED_BY  VARCHAR2(50);
    P_RAISEDBY VARCHAR2(50);
    P_STATUS VARCHAR2(50);
    P_CLAIMANT VARCHAR2(100);
    P_EXPENSE_DATE_FROM DATE;
    --P_EXPENSE_DATE_FROM  VARCHAR2(50);
    --P_EXPENSE_DATE_TO  VARCHAR2(50);
    P_EXPENSE_DATE_TO DATE;
    BEGIN
    IF (P_ORDERED_BY='Expense Report Number') THEN
         L_ORDERED_BY :='order by 1 asc;';
      ELSIF (P_ORDERED_BY='Person Claiming') THEN
         L_ORDERED_BY :='order by 2 asc;';
      ELSIF (P_ORDERED_BY='Submit Date') THEN
      L_ORDERED_BY :='order by 4 asc;';
      END IF;
    RETURN(L_ORDERED_BY);
    --RETURN NULL;
    END;
    END;
    END;Many thanks for looking..
    D

    Thanks for the suggestion. I initially didnt have the RETURN TRUE after every IF statement and have since removed the 'WHEN OTHERS' section but I'm still getting the same error message. If its to be believed, doesn't it sound like its not finding any of the 3 possible parameter entries available? This can't be so, I've checked the ConC Program parameter name is correct, and the value set linked to it only has available the 3 options where I make the choice..
    Body now reads:
    CREATE OR REPLACE PACKAGE BODY Subixclt
    AS
    FUNCTION BEFOREREP (P_ORDERED_BY IN VARCHAR2)RETURN BOOLEAN IS
    BEGIN
    --FND_FILE.PUT_LINE(FND_FILE.LOG,'L_ORDERED_by'||L_ORDERED_BY);
    DECLARE
    L_ORDERED_BY VARCHAR2(50);
    --P_RAISEDBY VARCHAR2(50);
    --P_STATUS VARCHAR2(50);
    --P_CLAIMANT VARCHAR2(100);
    --P_EXPENSE_DATE_FROM DATE;
    --P_EXPENSE_DATE_TO DATE;
    BEGIN
    IF (P_ORDERED_BY='Expense Report Number') THEN
         L_ORDERED_BY :='order by 1 asc;';
      ELSIF (P_ORDERED_BY='Person Claiming') THEN
         L_ORDERED_BY :='order by 2 asc;';
      ELSIF (P_ORDERED_BY='Submit Date') THEN
      L_ORDERED_BY :='order by 4 asc;';
      RETURN TRUE;
      END IF;
    -- EXCEPTION WHEN OTHERS THEN RETURN FALSE;
    --RETURN(L_ORDERED_BY);
    END;
    END;
    END;error log reads:
    XDO Data Engine Version No: 5.6.3
    Resp: 20707
    Org ID : 102
    Request ID: 2484872
    All Parameters: p_raisedby=SUSAN HOLLIDAY:p_status=:p_claimant=:p_expense_date_from=:p_expense_date_to=:P_ORDERED_BY=Person Claiming
    Data Template Code: SUBIXCLT
    Data Template Application Short Name: PO
    Debug Flag: N
    {p_claimant=, p_expense_date_to=, p_status=, p_raisedby=SUSAN HOLLIDAY, p_expense_date_from=, P_ORDERED_BY=Person Claiming}
    Calling XDO Data Engine...
    [061110_114425280][][STATEMENT] Start process Data
    [061110_114425282][][STATEMENT] Process Data ...
    [061110_114425284][][STATEMENT] Executing data triggers...
    [061110_114425284][][STATEMENT] BEGIN
    SUBIXCLT.p_claimant := :p_claimant ;
    SUBIXCLT.p_expense_date_from := :p_expense_date_from ;
    SUBIXCLT.p_expense_date_to := :p_expense_date_to ;
    SUBIXCLT.p_raisedby := :p_raisedby ;
    SUBIXCLT.p_status := :p_status ;
    SUBIXCLT.p_ordered_by := :p_ordered_by ;
    :XDO_OUT_PARAMETER := 1;
    END;
    [061110_114425287][][STATEMENT] 1: :
    [061110_114425287][][STATEMENT] 2:null :
    [061110_114425287][][STATEMENT] 3:null :
    [061110_114425288][][STATEMENT] 4:SUSAN HOLLIDAY :
    [061110_114425288][][STATEMENT] 5: :
    [061110_114425288][][STATEMENT] 6:null :
    [061110_114425291][][STATEMENT] Executing data triggers...
    [061110_114425292][][STATEMENT] Declare
    l_flag Boolean;
    BEGIN
    l_flag := SUBIXCLT.beforerep(:p_ordered_by) ;
    if (l_flag) then
    :XDO_OUT_PARAMETER := 1;
    end if;
    end;
    [061110_114425293][][STATEMENT] 1:null :
    [061110_114425302][][EXCEPTION] SQLException encounter while executing data trigger....
    java.sql.SQLException: ORA-06503: PL/SQL: Function returned without value
    ORA-06512: at "APPS.SUBIXCLT", line 27
    ORA-06512: at line 4Many thanks for staying with this..
    S

Maybe you are looking for

  • Music videos won't sync to ipod?

    I have a 3rd generation iPod nano, and its supposed to be able to play movies, shows, music videos and such. All I really want is the music videos. so last motnh I bought "Love Story" by Taylor Swift, and it synced and played that weekend but then wh

  • Zebra printing for smartforms

    Hi SAP version ecc6.0 I want to roate a single text on the lable by 270 degrees. I have searched this forum and came to know about including a print control. therfore for the device type lzeb2( 200 dpi print head) created a print control z270 with th

  • EDI 997 - Functional acknowledgement

    Hi, Our requirement is to send and recieve functional acknowledgement through EDI. What is functional Acknowledgement? Can any one help me out in using functional acknowledgement?What is the message type and functional modules involved for processing

  • Email additional text

    Hi Experts, We managed to send a correspondence (via transaction FPCOPARA) via email and to the printer. Do you know if and how it is possible to send an email with a pre-defined text as an explanation to the PDF which is attached? We also would like

  • FM to find Open Periods

    Hi all, Is there Function Module to find the Open Periods for a specific Company Code. Thanks in Advance Johann