JAXB - validation problem with regexp bound int type

Hello everyone,
I have a simpleType defined in my schema as follows:
<xs:simpleType name="BasketRetentionType">
<xs:restriction base="xs:int">
<xs:totalDigits value="10"/>
<xs:pattern value="(0|[1-9][0-9]*)"/>
</xs:restriction>
</xs:simpleType>
'020' and '+20' values are not allowed (as I need it to be), but I've got them validated by JAXB.
I wonder if there's anyone who can confirm this or shall I add any java code I may have ignored.
I'm working with :
- OS : Microsoft Windows NT v4.0 Serv.Pack6
- java : j2sdk1.4.1_05
- jaxb : jwsdp-1.3
Thanks
L. Chiartano

Try this pattern: +\\d*|\\d*
Also take a look at:
http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html
I don't know if it's \\d or \d, trail and error.
bye ki

Similar Messages

  • Problem with String to Int conversion

    Dear Friends,
    Problem with String to Int conversion
    I am having a column where most of the values are numeric. Only 4 values are non numeric.
    I have replaces those non numeric values to numeric in order to maintain the data type.
    CASE Grade.Grade  WHEN 'E4' THEN '24'  WHEN 'E3' THEN '23'  WHEN 'E2' THEN '22' WHEN 'E1' THEN '21' ELSE Grade.Grade  END
    This comes the result as down
    Grade
    _0_
    _1_
    _10_
    _11_
    _12_
    _13_
    _14_
    _15_
    _16_
    _17_
    _18_
    _19_
    _2_
    _20_
    _21_
    _22_
    _23_
    _24_
    _3_
    _4_
    _5_
    _6_
    _7_
    _8_
    _9_
    Refresh
    Now I want to convert this value to numeric and do some calculation
    So I changed the formula as below
    cast (CASE Grade.Grade  WHEN 'E4' THEN '24'  WHEN 'E3' THEN '23'  WHEN 'E2' THEN '22' WHEN 'E1' THEN '21' ELSE Grade.Grade  END as INT)
    Now I get the following error
    View Display Error
    _     Odbc driver returned an error (SQLExecDirectW)._
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    _State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 1722, message: ORA-01722: invalid number at OCI call OCIStmtFetch. [nQSError: 17012] Bulk fetch failed. (HY000)_
    SQL Issued: SELECT cast ( CASE Grade.Grade WHEN 'E4' THEN '24' WHEN 'E3' THEN '23' WHEN 'E2' THEN '22' WHEN 'E1' THEN '21' ELSE Grade.Grade END as Int) saw0 FROM "Human Capital - Manpower Costing" WHERE LENGTH(CASE Grade.Grade WHEN 'E1' THEN '20' WHEN 'E2' THEN '21' WHEN 'E3' THEN '22' WHEN 'E4' THEN '23' ELSE Grade.Grade END) > 0 ORDER BY saw_0_
    Refresh
    Could anybody help me
    Regards
    Mustafa
    Edited by: Musnet on Jun 29, 2010 5:42 AM
    Edited by: Musnet on Jun 29, 2010 6:48 AM

    Dear Kart,
    This give me another hint, Yes you are right. There was one row which returns neither blank nor any value.
    I have done the code like following and it works fine
    Thanks again for your support
    Regards
    Code: cast (CASE (CASE WHEN Length(Grade.Grade)=0 THEN '--' ELSE Grade.Grade END) WHEN 'E4' THEN '24' WHEN 'E3' THEN '23' WHEN 'E2' THEN '22' WHEN 'E1' THEN '21' when '--' then '-1' ELSE Grade.Grade END as Int)

  • [svn:fx-trunk] 8452: - Fix flicker problem with constraint bound text that is being autoSized.

    Revision: 8452
    Author:   [email protected]
    Date:     2009-07-08 08:38:32 -0700 (Wed, 08 Jul 2009)
    Log Message:
    - Fix flicker problem with constraint bound text that is being autoSized.  If the remeasure is done in a 2nd pass you will see a flicker as all the objects are moved to accommodate the reflowed text.
    - Fix data binding issue with text setter.
    - Rework measure() to accommodate implicit autoSize.
    If explicitWidth or widthInChars specified and explicitHeight or heightInLines specified, or for now, blockProgression != "tb", the text has fixed dimensions and is not auto-sized.
    If no text and width specified, but no height, start at specified width and one line high and grow taller.
    If no text and height specified, start at 1 char wide with the specified height and grow wider.
    If neither width nor height specified, and toFit lineBreaks, start at explicitMaxWidth, or default maxWidth of 160, and grow taller.
    If neither width nor height specified, and explicit lineBreaks width is unlimited and can grow taller.
    These are further constrained by min/max Width and Height except in the case that explicitWidth or explicitHeight are specified.
    - Change default maxWidth for RichText and SimpleText to 160 to match RET.  Previously it was 10000.  This is used for
    text with toFit lineBreaks if a width isn't specified.
    QA Notes: 12 or so TextGraphic tests fail because of the new default maxWidth.
    Doc Notes:SDK-22014, SDK-21837
    Reviewers: Gordon
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22014
        http://bugs.adobe.com/jira/browse/SDK-21837
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RichEditableText.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicEleme nt.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/RichEditable TextContainerManager.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/TextGraphicE lement.as
    Added Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/RichEditable TextEditManager.as

    You have used elements like header, footer, footer1 and nav without using the correct DOCTYPE declaration. Replace the first line of your code with
    <!doctype html>
    Also have a look here for other problems http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fhome.surewest.net%2Fstorytales%2F test%2Fforposting.html
    After the above has been fixed, please come back here to fix the remaining problem(s)
    Gramps

  • Problem with a Dynpro field (type numc)

    hi everybody.
    I'm developping a ModulPool application in wich i have 2 RadioButtons with 2 textbox fields.
    What i pretend to do is, when the user clicks a radiobutton and strikes Intro, enable the corresponding textbox field and disable the other one.
    My code runs fine, but i have a little problem. When I loop the screen table, to set the appropiate value to the 'input' property, in this case, when i try to disable it (input = '0'), I get a zero character in that field. This field has NUMC type, i'm sure this is the problem
    'cos i've got no problem with the other field (type char). But i can't solve it.
    Anybody's got an idea?
    Thanks

    What you are seeing is the normal behavior of a numeric field represented by the SAPgui.  This is how all numeric fields are displayed via SAPgui.  If you don't want to see the 0,  then you just change the field type to CHAR and handle accordingly.
    Regards,
    Rich Heilman

  • Sql Devloper 4.0.0.13 - problems with displaying user data types

    Hi,
    I have installed new version of sqldeveloper and have discovered some problems with displaying user data types. The data that is described as VARCHAR2 are displayed with ‘???’.
    The problem persist in table view, script output and exported files.
    My type is described as follows:
    create or replace TYPE "DPTY_ADRESA" AS OBJECT
      ID_DPSF_OPCINE                                         NUMBER,
      ID_DPSF_MJESTA                                        NUMBER,
      OPCINA                                            VARCHAR2(100),
      MJESTO                                            VARCHAR2(100),
      ULICA                                 VARCHAR2(200),
      BROJ                                   VARCHAR2(20),
      SPRAT                VARCHAR2(20),
      OSTALO                             VARCHAR2(100),
      CONSTRUCTOR FUNCTION dpty_adresa RETURN SELF AS RESULT
    add MEMBER FUNCTION dajAdresu RETURN VARCHAR2 cascade;
    when make select column from table that contains this type I get next results:
    CASE 1:
    SQLDeveloper Version 3.2.20.09; Build MAIN-09.87; JDK 1.6.0_43; Windows 7 64 bit
    Select:
    select id, adresalokacija
    from dptr_saglasnosti
    where id = 1;
    Result:
            ID ADRESALOKACIJA
             1 COMP.DPTY_ADRESA(124,4913,'TRAIK','TURBE','BABANA','3452','0',NULL)
    END CASE 1;
    CASE 2:
    SQLDeveloper Version 4.0.0.13; Build MAIN-13.80; JDK 1.7.0_40; Windows 7 64 bit
    Select1:
    select id, adresalokacija
    from dptr_saglasnosti
    where id = 1;
    Result1:
    ID ADRESALOKACIJA
             1 COMP.DPTY_ADRESA(124,4913,'???','???','???','???','???',NULL)    
    But if I select one element it is displayed normal.
    Select2:
    select id, a.adresalokacija.opcina
    from dptr_saglasnosti a
    where id = 1;
    Result2:
    ID ADRESALOKACIJA.OPCINA
             1 TRAVNIK                  
    END CASE 2;
    I have tried this scenario on three different pc with same output.
    Pleas help me to get rid of the '???' in result.
    Best Regards,
    Omer

      I tried on SQLDeveloper Version 4.0.0.13; Build MAIN-13.80; JDK 1.7.0_45; Windows 7 64 bit; NLS setting is default
    all data can show,No ??? in result
    Test step as following:
    create or replace TYPE "DPTY_ADRESA" AS OBJECT
      ID_DPSF_OPCINE                                         NUMBER,
      ID_DPSF_MJESTA                                        NUMBER,
      OPCINA                                            VARCHAR2(100),
      MJESTO                                            VARCHAR2(100),
      ULICA                                 VARCHAR2(200),
      BROJ                                   VARCHAR2(20),
      SPRAT                VARCHAR2(20),
      OSTALO                             VARCHAR2(100),
      CONSTRUCTOR FUNCTION dpty_adresa RETURN SELF AS RESULT
    alter TYPE "DPTY_ADRESA" add MEMBER FUNCTION dajAdresu RETURN VARCHAR2 cascade;
    CREATE TABLE dptr_saglasnosti (
    adresalokacija        DPTY_ADRESA,
      id    number);
      INSERT INTO dptr_saglasnosti VALUES (
      DPTY_ADRESA (65,225,'Vrinda Mills', '1-800-555-4412','sss','aaaa','eeeee','attta'),1 );
    select id, adresalokacija from dptr_saglasnosti where id = 1;
    ID ADRESALOKACIJA
    1    HRCP.DPTY_ADRESA(65,225,'Vrinda Mills','1-800-555-4412','sss','aaaa','eeeee','attta')

  • Transfer Posting problem with "sales order stock type" status

    Hello, i have this problem, i spend 2 days looking in the forum, but
    nothing, the question is:
    The SD users sell an item, and the item get the status of "sales order
    stock type" in the MMBE, but at the same time, the MM user made a
    trasfer posting in two steps, he take out material with transaction
    MIGO, mvt 351, to another plant, but the materail was already
    compromised with SD; now he cant sell the items, because he dont
    realize that the material was in sales order stock type, and he already
    transfer it to another plant. how can i block this? if a material in
    MMBE is with "sales order stock type" status, he CANT transfer it with
    351 mvt type, what config i have to make?  thanks a lot!!!!
    now the quantity of the unrestict use
    stock is lower than the sales order, we dont want to have this issue,
    thanks again
    Edited by: Alex Arti on Aug 6, 2008 7:14 PM
    Edited by: Alex Arti on Aug 6, 2008 7:16 PM

    Hi!
    Have you recently upgraded to EHP4? In this case, please, check the note 1441195. This note should solve the issue that you are reporting.
    I hope this helps,
    Esther.

  • Major Problem with regExp.exec and regExp.test

    I'm a programmer, and I'm using regExp's to simplify my life in a chat thing.
    Basically, ":blue:" in a chat will essentially be replaced with "<span style='color:blue;'>".
    because there can be all sorts of colors, I can't use replace.
    Instead, I used regExp.exec(string). However, there is a major bug where every other time, the regExp.exec returns null even if there IS a match.
    If the chat is ":blue:", the response will alternate as :blue:,null,:blue:,null,etc.
    If the chat is ":blue: :red:" (e.g. two color blocks) the response will go :blue:,null,null,:blue:,null,null and so on.
    Basically, if there are 'x' color blocks defined, the .exec will work every x+1 times, and the other times it will not find a match.
    this also happens with regExp.test.
    I have gone through my code hundreds of times, and finally, I decided to run it in Opera. It works PERFECTLY fine. even in IE, it works. So i had to assume it was some bug with Firefox.
    I hope this question catches the attention of the MOZILLA DEVELOPERS, as this is huge.
    I'm not sure if it's just me. However, I have uploaded an html file onto http://jsbattle.tablocks.com/Untitled-1.html (the subdomain had a different purpose, but i figured i would put it here), and it will alert :blue: and null (at least for me). You can view the source code.
    An important note is that this .exec and .test glitch only happens inside functions. for example, regExp.exec twice just in a script tag will run fine, but while in a function abc() {regExp.exec} and executing abc(); abc(); it'll glitch out.
    I have not run extensive tests to see when this glitch occurs, this is all I know.
    Please help, Mozilla Developers. And if anyone knows how to contact the Mozilla Developers, tell me, or address them of this issue.

    Ok ... it's the 'g' flag but with IE don't occours

  • JAXB validation error with sample applications

    Hi,
    When trying to generate the java from po.xsd in the first example I get two compile errors in the result :
    "PurchaseOrderImpl.java": Error #: 454 : class {deleted root}.generated.impl.PurchaseOrderImpl should be declared abstract; it does not define method validateThis() in interface javax.xml.bind.Element at line 11, column 8
    "CommentImpl.java": Error #: 454 : class {deleted root}.generated.impl.CommentImpl should be declared abstract; it does not define method validateThis() in interface javax.xml.bind.Element at line 11, column 8
    where {deleted root} represents parent packages in our source tree.
    Anyone else seen this?
    I'm using Ant1.51 to kick off the build, with the patch referred to in Apache bug 14640. (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14640)
    The target to do the build is defined as follows :-
    <target name="schema" depends="init"
    description="Compile schema">
    <echo message="Compiling the schema..."/>
    <jaxb destDir="${src}"
    readOnly="true"
    strictValidation="true"
    xjcjar="${JAXB_HOME}\lib\jaxb-xjc.jar">
    <schemas dir="${basedir}" includes="po.xsd"/>
    <targetPackageMapper type="regexp"
    from="(.*)\.xsd" to="{deleted root}.generated"/>
    </jaxb>
    </target>
    where ${src} is the root of the source tree and ${basedir} is the parent directory of "generated", containing the build.xml.

    More precisely, this is a compile time error for the generated Java classes. The methods
    void invalidate()
    void validate()
    void validate(Validator v)
    void validateThis()
    defined in
    com.sun.xml.bind.validator.ValidatableObject
    are not being built for
    generated.impl/XTypeImpl.java
    which extends
    generated.impl/XImpl.java

  • WSDL validation problem with WS-I

    I created a WSDL with jDeveloper 10.1.3.2 following the Oracle Tutorial
    http://www.oracle.com/technology/obe/obe1013jdev/wstopdown/wstopdown.htm
    At the point where i have to validate the WSDL with the WS-I tester i get an error message:
    Assertion: BP2701
    The wsdl:definitions namespace is not: http://schemas.xmlsoap.org/wsdl/
    All the entrys inside teh WSDL are written from jdeveloper.
    the output WSDL looks like:
    <definitions targetNamespace="urn:CreditRating"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="urn:CreditRating"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:types="http://CreditRating.xsd">
    <types>
    <schema targetNamespace="http://CreditRating.xsd"
    xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
    <element name="ssn" type="string"/>
    <element name="rating" type="int"/>
    <element name="error" type="string"/>
    </schema>
    </types>
    <message name="CreditRatingRequestMessage">
    <part name="ssn" element="types:ssn"/>
    </message>
    <message name="CreditRatingResponseMessage">
    <part name="rating" element="types:rating"/>
    </message>
    <message name="CreditRatingFaultMessage">
    <part name="error" element="types:error"/>
    </message>
    <portType name="CreditRating">
    <operation name="processCreditRating">
    <input message="tns:CreditRatingRequestMessage"/>
    <output message="tns:CreditRatingRequestMessage"/>
    <fault message="tns:CreditRatingFaultMessage" name="negativCredit"/>
    </operation>
    </portType>
    <binding name="CreditRatingSoapHttp" type="tns:CreditRating">
    <soap:binding style="document"
    transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="processCreditRating">
    <soap:operation soapAction="urn:CreditRating/processCreditRating"/>
    <input>
    <soap:body use="literal" parts="ssn"/>
    </input>
    <output>
    <soap:body use="literal" parts="ssn"/>
    </output>
    <fault name="negativCredit">
    <soap:fault use="literal" name="negativCredit"/>
    </fault>
    </operation>
    </binding>
    <service name="CreditRatingService">
    <port name="CreditRatingServiceSoapHttpPort"
    binding="tns:CreditRatingSoapHttp">
    <soap:address location="tbd"/>
    </port>
    </service>
    </definitions>
    I can not see where the porblem is. Can someone help me please?
    Tanks Bs

    Hi ,
    there is not any problem in code or in function.
    You just need to double click on Excel field where you are having that problem of ####.
    Whenever display size of cell is less then the data size then it's showing as ###. so you just need to double click on it and make it as per data length...
    -Maharshi

  • Problem with custom tag attribute types

    Hi,
    I try to figure out how to pass an attribute to a custom tag that is of a type other than "String"?
    In my case, I should pass an attribute with a type of "java.util.ResourceBundle".
    My tag looks like this:
    <tt:cs sel="ab" ce="<%= java.util.ResourceBundle.getBundle("de", Application.getApp().getLocale())%>" />
    I always get the message that the attribute ce is empty.
    Isn't it possible to have attirbutes that are of an other type than string? How could I solve this problem?
    Thanks a lot!
    Regards Patrick

    In JSP 1.2, in the Tag Library Descriptor, you can specify a tagt attribute as
    <attribute>
       <name>attr1</name>
       <required>true|false|yes|no</required>
       <rtexprvalue>true|false|yes|no</rtexprvalue>
       <type>fully-qualified_type</type>
    </attribute> Notice the XML element <type>fully-qualified_type</type>
    Not sure if you can do this in JSP 1.1

  • Problem with SUT into bin type table

    When in SPRO in strategy -storage unit type search strategy - SUT in bin type table,we have only 30 entries possible.
    BUt we need more somewhere like 150 records because of a bulk storage type with a lot of storage bins with different
    size and therefore capacity. To define true exact capacity we need different bin types right?
    I am not sure how to do this,maybe there is a option in settings to change 30 to 150 or 200 to make the table bigger?
    Or any other solution will be great because we do need this because in the way it works now,we have a lot of problems
    in putaway,we have huge realocations since we have not exact capacities but we had to group bins with similar capacity
    but that means that three bins with 48, 52 and 56 capactiy all have 52.

    If I remember correctly this has been asked numerous times before, try searching the discussions.
    Anyway, you have a couple of possible solutions for this.
    It is understandable that you don't want hundreds of reallocation on daily basis, and you don't want to lose the capacity otherwise, but it feels that your bins should and could have been planned a bit better, there is always a way to unify capacities, split bins, use the storage space in a more meaningful manner. This is the point where your optimization was supposed to be done, not in SAP. But anyway, you are stuck with what you have and here are the solutions that cross my mind.
    1. Standard SAP:
    Split the bins to multiple storage types, this way you will have 30 bin types, but they will have different capacity for different storage types (in OMM4). Easy and standard, but has the downside that you will have to manipulate with 5 storage types instead of 1. A bit of more customizing but will solve the problem. Also, storage type search will need to be changed to include all the STs... Might be harder to track the strategies but this is the only standard way that crosses my mind.
    2. ABAP:
    This is the solution I have used and works fine, though you will need an ABAP-er to complete this.
    Create a z-table/view having the same structure as the standard one, just add 120 more fields.
    Well, not only that, you will have to change the coding to use this custom table instead of standard one, and although this isn't the brightest solution since you won't be able to change this table in customizing in the predefined path in SPRO/OLML, but will need o do it in SM30.
    Luckily both of the options should work fine if done correctly, I have used both of these, and both have up and down sides... But I would go with standard SAP if it doesn't complicate your life too much because of several more STs. If it does, go with ABAP.

  • Unexpected problem with authorization scheme of type plsql function

    Hi,
    I have created one authorization scheme of type plsql function returning boolean. Authorization scheme is for pages only. p2_user_priviledge is a textbox on home page which extract privilege (list of pagenos) for login user from database. Home page has no authorization required. AUTHORIZATION SCHEME always returns false. I am not able to trace problem in my code. same code works fine for a textbox's default returning 'c'.
    ----- CODE FOR AUTHORIZATION SCHEME------------------------------------------------------------
    declare
    pageid varchar2(10);
    privilege varchar2(300);
    c number(3);
    begin
    pageid := ':P'||to_char(:app_page_id)||':' ; ---Pageno get stored in format  *:P2:*
    privilege := trim(:p2_user_priviledge); ++------Contain list of privilege like    :P2:P13:P67:P23:  etc+++ select instr(privilege,pageid) into c from dual;
    if c>0 then
    return true;
    else
    return false;
    end if;
    end;
    One more problem is again related to authorization scheme.
    I created one application and one authorization scheme (auth_aug) which worked finely. Then after some days i added 10 more pages to same application, But now autho_aug was always returning false for new pages. So i copied code from 'autho_aug' to new scheme 'autho_sept', & it worked for new pages. I don't understand if code is same for both scheme, why required to use two different schemes.
    Now i have added few more pages to application, and facing problem mentioned earlier.
    any solution for both the problems.....

    Hi,
    Let me clear my problem once again.
    -->Home page i.e. P2 does not use authorization, So it is displayed along with text item :p2_user_privilege.
    -->Then user click on one of the links , Now page :P70: should get displayed.
    P70 is using authorization scheme.
    -->But :p2_user_priviledge value is not accessible at authorization scheme, I dont know why.
    I could not find out where to create Application item , as suggested by you.
    & not able to find Developer menu , session at home page as suggested earlier.
    And one more question, my application at runtime display
    X en us
    at bottom
    How to make it
    USER: X Language: en us
    Like in development environment.
    Hope I have cleared my problem, waiting for reply.
    Edited by: TEJU on Nov 17, 2008 9:25 AM

  • Problem with Matrix columns of type Float

    Hi all!
    I need to show in a matrix column a quantity with the number of decimal set in SBO. My code is:
    Dim dt As SAPbouiCOM.DataTable = oFrm.DataSources.DataTables.Add("PCKG")
    dt.Columns.Add("clQta", SAPbouiCOM.BoFieldsType.ft_Float, 30)
    oCl = oGrid.Columns.Add("clQta", SAPbouiCOM.BoFormItemTypes.it_EDIT)
    oCl.Width = 100
    oCl.TitleObject.Caption = tr.getTranslation("clQta") '"Quantità"
    oCl.DataBind.Bind("PCKG", "clQta")
    In this way the number of decimal that i see is 2 because the field type is Float, but in SBO parameterization i have set 4 decimal and would like to see the same number of decimal set in SBO parameterization.
    How can I do?
    Thanks

    Hi,
    If i know well, this is now a limitation of B12007 version. in 8.8 this problem will be resolved.
    othwewise of you set all the prices, Quantities, Sumarizes to 4 it will display for. I think it is now displaying the Quantity settings. (float)
    Regards,
    J.
    Edited by: János Nagy on Oct 7, 2009 12:50 PM

  • Problem with UDF updation - Object type 46

    Hi Experts,
    Scenario :
    For printing the amounts(in words- Indian format) in Cheque and marketing documents, we created UDFs in Title of marketing documents and outgoing payments.
    Then created a function in the DB for convertion of amounts into words and invoked it from  SBO_SP_TransactionNotification for object type '46' (Outgoing payment) and for transaction type 'A'.
    We tried it  with Out going payments
    Problem :
    Initially It was not working at all. When we removed the  transaction type condition the amount got updated on updation of existing records. Still It is not updating the UDFs while adding a new outgoing payment.
    We inserted the values like object type , transaction type etc into a temp table for testing from SBO_SP_TransactionNotification .
    The value we got for Out going payment addition is
    Object type: 30 and transaction type : A (Why this is 30 while adding outgoing payment?)
    The value we got for Out going payment modification is
    Object type: 46 and transaction type :U
    Please Help us on this
    I don't know whether this is the right forum or not.
    We are using SAP Business One 2007 B PL 13
    Thanks and regards
    Ajith G
    Edited by: Ajith G on Oct 5, 2009 11:48 AM

    Hi,
    Step to have check print in Indian format
    1)create function
    2)create user field in that master table
    3)make user define query
    declare @Doc_total numeric (19,6)
    set @Doc_total= (SELECT $[ORPC.DocTotal])
    declare @F100 varchar(20)
    declare @DocCurr varchar(20)
    SET @DocCurr= (SELECT $[ORPC.DocCur])
    set @F100= (SELECT Chk100Name FROM OCRN WHERE CurrCode = @DocCurr)
    select REPLACE(SBO_DB.dbo.AmountToWords (@Doc_total), 'Paise',  @F100)
    4)save above query and define that query in user field by shift+F2
    i hope u may know next step
    Kevin

  • Any problem with replacing system true type fonts with postscript?

    I want to replace the Times true type (d.font) font in the systems fonts folder with a Times Postscript font. Will this cause any problems? Are there any system true type fonts that can't be replaced with postscript fonts?

    You should not deal with fonts inside /System/Library/Fonts/. Your system may not be able to boot!
    Please read carefully the following link:
    http://docs.info.apple.com/article.html?artnum=106417
    Mihalis

Maybe you are looking for

  • New Classic (120gb) Doesn't work with Pioneer Headunit

    I had an ipod video for three years and loved it. It got stolen so i was forced to buy a new classic 120gb. I have a pioneer headunit DEH P5000UB that played my old ipod perfectly. The new ipod always comes up with error 19 on the screen. I have talk

  • Archive Calendar Items

    I have had my Curve since before Christmas 2008. I really like it BUT one thing that frustrates me is that it SEEMS to delete calendar items older than two months. Are they going off into an archive I have not found? Can I send them to Outlook archiv

  • Oracle connectivity to Database:

    We have successfully install Oracle 11g Client R2 x64 on Windowos Server 2008 EE R2 X64. we did not face any hurdle during installation and also made service. But the problem is, PL/SQL Developer 7.0, 8.0 and 9.0 does not show database in the list. P

  • How to get html folder info into iWeb

    Just made upgrade from 10.6 to 10.8. During some problems with that had to back up HD with dmg file on a separate HD. The only place I can find my old old iweb site is in a desktop folder on the dmg and I need to put it into the new iweb 09. There ar

  • BT are overcharging me by £40 per month + other gr...

    Hello, everyone. This is my first post here, and it will be long, and in the form of a mixture of a rant and a complaint, and I want to apologise for that beforehand. I don't want to be *that guy* who comes into a room and instantly kicks off about s