Validate CR Reason using BRF+

Hi,
We're building some validation rules and one of the requirements is to ensure that the CR Reason is not empty. I've looked into the Data Objects under "FMDM_MODEL_BP" and I see the following CREQUEST metadata:
SAPFMDM_CREQUEST
SAPFMDM_CREQUEST_STEP
SAPFMDM_CREQUEST_TYPE
Has anyone any experience in trying to validate the CR Reason using BRF+ or is that not possible?

Hi Ali,
What was the naming of your function. Example CHECK_USMD_RULE or was it CHECK_USMD_REASON?
Thanks
Riaan

Similar Messages

  • Unable to validate message; key used for decrypting message is invalid;

    When trying to decrypt an RNIF message in our SAP XI system we are running into an issue with below error message:
    "Unable to validate message; key used for decrypting message is invalid; expected keystore entry: SSL-<SID>; keystore entry used: null"
    The keystore administrator role is mapped to XIAFUSER. We validated the decryption using the J2EE Private Key thru a third-party (non-SAP) tool and it works fine. The keystore SSL-<SID> contains the Private Key and Cert from our CA. The message was encrypted using the Public Key of J2ee engine.
    We were unable to generate more details even after increasing the log level. The security.log is the only place showing the above error message.

    The folder C:\j2sdk1.4.2_13\jre\lib\security contains the Java Cryptography Extension (JCE)  files -  'local_policy.jar' and 'US_export_policy.jar' .The default files will have a size of 3 kb.These need to be replaced by JCE Unlimited Strength Jurisdiction Policy Files -  'local_policy.jar' and 'US_export_policy.jar'  which are of size 5kb. In brief, C:\j2sdk1.4.2_13\jre\lib\security should contain the files -  'local_policy.jar' and 'US_export_policy.jar'  and their size should be 5kb (and not 3kb). After we did this change the decrypt worked fine.

  • How can I validate a date using sql

    How can I validate a date using sql or pl/sql
    select to_date('01/01/2009','mm/dd/yyyy') from dual this is a good date
    but how can I check for a bad date
    select to_date('0a/01/2009','mm/dd/yyyy') from dual
    Howard

    William Robertson wrote:
    It'll be complicated in pure SQL, as you'll have to parse out day, month and year and then validate the day against the month and year bearing in mind the rules for leap years. It would be simpler to write a PL/SQL function and call that.Nah, not that complicated, you just need to generate a calender to validate against.
    SQL> ed
    Wrote file afiedt.buf
      1  with yrs as (select rownum-1 as yr from dual connect by rownum <= 100)
      2      ,mnth as (select rownum as mn, case when rownum in (4,6,9,11) then 30
      3                            when rownum = 2 then 28
      4                       else 31
      5                       end as dy
      6                from dual
      7                connect by rownum <= 12)
      8      ,cent as (select (rownum-1) as cen from dual connect by rownum <= 21)
      9      ,cal as (select cen, yr, mn,
    10                      case when ((yr = 0 and mod(cen,400) = 0)
    11                             or (mod(yr,4) = 0 and yr > 0))
    12                            and mn = 2 then dy+1
    13                      else dy
    14                      end as dy
    15               from cent, yrs, mnth)
    16  --
    17      ,dt as (select '&date_dd_mm_yyyy' as dt from dual)
    18  --
    19  select case when cal.cen is null then 'Invalid Date'
    20              when not regexp_like(dt,'^[0-9]{1,2}[\/.-_][0-9]{1,2}[\/.-_][0-9]{4}$') then 'Invalid Date'
    21         else dt
    22         end as dt
    23  from dt left outer join
    24               cal on (to_number(regexp_substr(dt,'[0-9]+')) between 1 and cal.dy
    25                   and to_number(regexp_substr(dt,'[0-9]+',1,2)) = cal.mn
    26                   and floor(to_number(regexp_substr(dt,'[0-9]+',1,3))/100) = cal.cen
    27*                  and to_number(substr(regexp_substr(dt,'[0-9]+',1,3),-2)) = cal.yr)
    SQL> /
    Enter value for date_dd_mm_yyyy: a1/02/2008
    old  17:     ,dt as (select '&date_dd_mm_yyyy' as dt from dual)
    new  17:     ,dt as (select 'a1/02/2008' as dt from dual)
    DT
    Invalid Date
    SQL> /
    Enter value for date_dd_mm_yyyy: 01/02/2008
    old  17:     ,dt as (select '&date_dd_mm_yyyy' as dt from dual)
    new  17:     ,dt as (select '01/02/2008' as dt from dual)
    DT
    01/02/2008
    SQL> /
    Enter value for date_dd_mm_yyyy: 29/02/2008
    old  17:     ,dt as (select '&date_dd_mm_yyyy' as dt from dual)
    new  17:     ,dt as (select '29/02/2008' as dt from dual)
    DT
    29/02/2008
    SQL> /
    Enter value for date_dd_mm_yyyy: 30/02/2008
    old  17:     ,dt as (select '&date_dd_mm_yyyy' as dt from dual)
    new  17:     ,dt as (select '30/02/2008' as dt from dual)
    DT
    Invalid Date
    SQL> /
    Enter value for date_dd_mm_yyyy: 29/02/2009
    old  17:     ,dt as (select '&date_dd_mm_yyyy' as dt from dual)
    new  17:     ,dt as (select '29/02/2009' as dt from dual)
    DT
    Invalid Date
    SQL> /
    Enter value for date_dd_mm_yyyy: 28/02/2009
    old  17:     ,dt as (select '&date_dd_mm_yyyy' as dt from dual)
    new  17:     ,dt as (select '28/02/2009' as dt from dual)
    DT
    28/02/2009
    SQL> /
    Enter value for date_dd_mm_yyyy: 0a/01/2009
    old  17:     ,dt as (select '&date_dd_mm_yyyy' as dt from dual)
    new  17:     ,dt as (select '0a/01/2009' as dt from dual)
    DT
    Invalid Date
    SQL> /
    Enter value for date_dd_mm_yyyy: 00/01/2009
    old  17:     ,dt as (select '&date_dd_mm_yyyy' as dt from dual)
    new  17:     ,dt as (select '00/01/2009' as dt from dual)
    DT
    Invalid Date
    SQL>

  • Rss feed won't validate when I use the itunes:order element?

    Hi
    I'm trying to use the <itunes:order> element -
    http://deimos.apple.com/rsrc/doc/iTunesUAdministrationGuide/AddingContent/chapte r12_section3.html
    When I run my feed through the W3C rss validator it won't validate. It says - Undefined item element: itunes:order
    I also get a recommendation which says - Use of unknown namespace: http://www.itunesu.com/feed
    As far as I can tell I'm doing everything correctly. The iTunes and iTunesU namespaces are declared correctly in the root rss element and the itunes:order are where they should be within the <item></item> element.
    What am I doing wrong? Any help would be much appreciated.
    Here's my rss feed -
    <rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:itunesu="http://www.itunesu.com/feed" version="2.0"><channel xmlns:itunesu="http://www.itunesu.com/feed" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"><title>London School of Economics: Public lectures and events : Audio Podcasts and PDF Documents: all items - Dec 31 2099 12:00AM</title><link>http://www2.lse.ac.uk/newsAndMedia/videoAndAudio/publicLectures/</link><description>Audio podcasts and pdf doucments from LSE's programme of public lectures and events</description><itunes:summary>Audio podcasts and pdf doucments from LSE's programme of public lectures and events</itunes:summary><managingEditor>[email protected] (LSE Web Services: Rich Media Producer)</managingEditor><itunes:owner><itunes:name>LSE Web Services: Rich Media Producer</itunes:name><itunes:email>[email protected]</itunes:email></itunes :owner><webMaster>[email protected] (LSE Web Services: Rich Media Producer)</webMaster><language>en-uk</language><copyright>Copyright © Terms of use apply see http://www2.lse.ac.uk/aboutThisWebsite/termsOfUse/</copyright><itunesu:category code="110" text="Social Science"/><category>Social Science</category><itunes:explicit>no</itunes:explicit><itunes:author>London School of Economics and Political Science</itunes:author><itunes:block>No</itunes:block><generator>SQL</generator ><image><url>http://www2.lse.ac.uk/assets/richmedia/webFeedImages/rss_144/PublicLecturesAudio Generic.jpg</url><title>London School of Economics: Public lectures and events : Audio Podcasts and PDF Documents</title><link>http://www2.lse.ac.uk/newsAndMedia/videoAndAudio/publicLectures/</link><width>144</width><height>144</height></image><itunes:image href="http://www2.lse.ac.uk/assets/richmedia/webFeedImages/iTunes_300/PublicLec turesAudioGeneric.jpg"/><pubDate>Mon, 7 Feb 2011 11:45:00 GMT</pubDate><lastBuildDate>Mon, 7 Feb 2011 11:45:00 GMT</lastBuildDate>
    <item><title>LSE Summer School 2010 - Business strategy in a global age [Audio]</title><itunes:author>Professor Costas Markides</itunes:author><link>http://www2.lse.ac.uk/newsAndMedia/videoAndAudio/publicLectures/player.aspx?id=6 94</link><itunes:duration>01:25:21</itunes:duration><itunes:explicit>No</itunes:ex plicit><enclosure url="http://richmedia.lse.ac.uk/publicLecturesAndEvents/201007121730businessStrategyInAGlobalAge.mp3" length="41003598" type="audio/mpeg"/><guid isPermaLink="false">http://richmedia.lse.ac.uk/publicLecturesAndEvents/201007121730businessStrategyInAGlobalAge.mp3?iTunesRSSPublicLecturesandEvents9999AudioTransc riptSlidesDocumentJan1200612:00AMDec31209912:00AM</guid><description>Speaker(s): Professor Costas Markides | Robert P Bauman is Professor of Strategic Leadership at London Business School. Connson Locke is Lecturer in Management at LSE EROB Group.</description><itunes:summary>Speaker(s): Professor Costas Markides | Robert P Bauman is Professor of Strategic Leadership at London Business School. Connson Locke is Lecturer in Management at LSE EROB Group.</itunes:summary><itunes:order>1</itunes:order><pubDate>Mon, 12 Jul 2010 17:30:00 GMT</pubDate></item>
    <item><title>Global Justice [Audio]</title><itunes:author>Professor Amartya Sen</itunes:author><link>http://www2.lse.ac.uk/newsAndMedia/videoAndAudio/publicLectures/player.aspx?id=6 92</link><itunes:duration>01:24:10</itunes:duration><itunes:explicit>No</itunes:ex plicit><enclosure url="http://richmedia.lse.ac.uk/publicLecturesAndEvents/201007081830globalJustice.mp3" length="20233863" type="audio/mpeg"/><guid isPermaLink="false">http://richmedia.lse.ac.uk/publicLecturesAndEvents/201007081830globalJustice.mp3?iTunesRSSPublicLecturesandEvents9999AudioTranscriptSlidesDocum entJan1200612:00AMDec31209912:00AM</guid><description>Speaker(s): Professor Amartya Sen | In the first dialogue of the Global Policy Dialogue series, Amartya Sen and David Held will discuss Sen's new book, The Idea of Justice. Injustices in the contemporary world include global inequities as well as disparities within nations. Understanding the demands of justice in each context requires public reasoning, and the challenges of global justice specifically call for global public reasoning. The Idea of Justice also investigates the contributions of human rights movements to the removal of some of the nastiest cases of injustice in the world in which we live.</description><itunes:summary>Speaker(s): Professor Amartya Sen | In the first dialogue of the Global Policy Dialogue series, Amartya Sen and David Held will discuss Sen's new book, The Idea of Justice. Injustices in the contemporary world include global inequities as well as disparities within nations. Understanding the demands of justice in each context requires public reasoning, and the challenges of global justice specifically call for global public reasoning. The Idea of Justice also investigates the contributions of human rights movements to the removal of some of the nastiest cases of injustice in the world in which we live.</itunes:summary><itunes:order>2</itunes:order><pubDate>Thu, 8 Jul 2010 18:30:00 GMT</pubDate></item>
    <item><title>The Secret State: preparing for the worst 1945-2009 [Audio]</title><itunes:author>Professor Peter Hennessy</itunes:author><link>http://www2.lse.ac.uk/newsAndMedia/videoAndAudio/publicLectures/player.aspx?id=6 91</link><itunes:duration>01:15:14</itunes:duration><itunes:explicit>No</itunes:ex plicit><enclosure url="http://richmedia.lse.ac.uk/publicLecturesAndEvents/201007071830theSecretStatePreparingForTheworst1945-2009.mp3" length="36141201" type="audio/mpeg"/><guid isPermaLink="false">http://richmedia.lse.ac.uk/publicLecturesAndEvents/201007071830theSecretStatePreparingForTheworst1945-2009.mp3?iTunesRSSPublicLecturesandEvents 9999AudioTranscriptSlidesDocumentJan1200612:00AMDec31209912:00AM</guid><description>Speaker(s): Professor Peter Hennessy | Peter Hennessy will examine the most secret files recently declassified from the Cold War years and contrast the Secret State of the 1940s, 50s, 60s, 70s and 80s with the the new protective state the UK has constructed since 9/11. Peter Hennessy is Attlee Professor of Contemporary British History at QMUL and was recently elected a Fellow of the British Academy as well as being an Honorary Fellow of LSE. Before joining the Department in 1992, he was a journalist for twenty years with spells on The Times as a leader writer and Whitehall Correspondent, The Financial Times as its Lobby Correspondent at Westminster and The Economist. He was a regular presenter of the BBC Radio 4 Analysis programme from 1987 to 1992. In 1986 he was a co-founder of the Institute of Contemporary British History.</description><itunes:summary>Speaker(s): Professor Peter Hennessy | Peter Hennessy will examine the most secret files recently declassified from the Cold War years and contrast the Secret State of the 1940s, 50s, 60s, 70s and 80s with the the new protective state the UK has constructed since 9/11. Peter Hennessy is Attlee Professor of Contemporary British History at QMUL and was recently elected a Fellow of the British Academy as well as being an Honorary Fellow of LSE. Before joining the Department in 1992, he was a journalist for twenty years with spells on The Times as a leader writer and Whitehall Correspondent, The Financial Times as its Lobby Correspondent at Westminster and The Economist. He was a regular presenter of the BBC Radio 4 Analysis programme from 1987 to 1992. In 1986 he was a co-founder of the Institute of Contemporary British History.</itunes:summary><itunes:order>3</itunes:order><pubDate>Wed, 7 Jul 2010 18:30:00 GMT</pubDate></item>
    </channel>
    </rss>

    I have been in touch with someone at Apple and I was advised that I shouldn't worry about this.
    It would seem that the feed validator doesn't recognise the iTunes U namespace and some of the iTunes and iTunes U specific feed elements. The use of an unknown namespace gives an adviosry note and <itunes:order> and <itunesu:category> elements will not validate at all. I suspect there may be other elements that I haven't used in our feeds.

  • How to validate multiple controls using a single Validator?

    I am trying to do an HourValidator because Flex doesn't have
    this, so i am extending from the Validator class. I read in the
    Creating and extending Flex components document the
    following:
    "A validator can validate more than one field at a time. For
    example, you could create a custom
    validator called NameValidator to validate three input
    controls that represent a person’s first,
    middle, and last names.
    To create a validator that examines multiple fields, you can
    either define properties on the
    validator that let you specify the multiple input fields, as
    does the Flex DateValidator class
    class, or you can require that the single item passed to the
    validator includes all of the fields to
    be validated."
    So according to the document i need to define properties so i
    defined 4 properties:
    startHourSource: the input control containing the starting
    hour
    startHourProperty: the control's property (in this case the
    text property)
    endHourSource: the input control containing the end hour
    endHourProperty: the control's property (in this case the
    text property)
    The thing is that when i call the doValidation of the
    superclass (to validate the required property) it does return a
    validation error but it doesn't mark the input control with the red
    frame that indicates there's a validation error. I assume that is
    because the
    source and
    property properties of the validator are null but that's ok
    because i am not using them, instead i am using the 4 properites
    mentioned above.
    So what do i need to do or override so the red frame appears
    in the input controls??

    Yeah i already know that, but when you use the doValidation
    method, which does the requiredField validation, by default marks
    the input control with the red frame, so that's why i am trying to
    do, doing it so it will do it by default.
    For example, try this:
    <mx:TextInput id="test"/>
    <mx:Validator id="validateTest" source="{test}"
    property="text" required="true" requiredFieldError="The field is
    empty"/>
    If you do
    validateTest.validate( ) and the textinput is empty, it will
    mark it with the red frame by default, that's the kind of behave i
    want for my HourValidator, but if it is not possible then the
    solution you suggested would be the only one to do this.

  • How to use BRF plus application in abap programs (Report or Module pool)

    Hi All,
    I have created an BRF plus application through FDT_WORKBENCH to calculate bonus of the employee with the help of SDN tutorial.
    Now my concern is that how can i use this application in my report.
    I have also read in the tutorial that we can create BRF plus application through ABAP coding but my question is, if i created an application through FDT_WORKBENCH then how can i use it in my ABAP report.
    Thanks a lot in advance.
    Regards,
    Sheelesh

    Hi,
    CALLING BRF+ FROM ABAP REPORT PROGRAM :
    I think the program may be helpful for you guys.
    *CALLING THE BRF+ FROM ABAP REPORT PROGRAM :
    REPORT Z_BRFPLUS_REPORT_01.
    PARAMETERS : P_SEL TYPE STRING .
    TYPES : BEGIN OF TYPE_PRICE ,
            NUMBER TYPE DECFLOAT16 ,
            CURRENCY TYPE STRING ,
            END OF TYPE_PRICE .
    DATA : LO_FUNCTION      TYPE REF TO     IF_FDT_FUNCTION ,
           LO_CONTEXT       TYPE REF TO     IF_FDT_CONTEXT ,
           LO_RESULT        TYPE REF TO     IF_FDT_RESULT .
    DATA : LO_MESSAGE TYPE REF TO CX_FDT .
    FIELD-SYMBOLS : <FS_PRODUCT> TYPE IF_FDT_TYPES=>S_MESSAGE .
    DATA : PRODUCT TYPE STRING ,
           LS_PRICE TYPE TYPE_PRICE .
    CLEAR LS_PRICE .
    PRODUCT = P_SEL .
    TRY .
    * GET THE BRF PLUS FUNCTION .
      LO_FUNCTION ?= CL_FDT_FACTORY=>IF_FDT_FACTORY~GET_INSTANCE( )->GET_FUNCTION('0050569E629D1ED39DD2090294D9A5BD' ) .
    * SET THE BRFPLUS FUNCTION CONTEXT .
      LO_CONTEXT = LO_FUNCTION->GET_PROCESS_CONTEXT( ) .
      LO_CONTEXT->SET_VALUE( IV_NAME = 'PRODUCT' IA_VALUE = PRODUCT ) .
    * PROCESS THE BRF PLUS FUNCTION .
      LO_FUNCTION->PROCESS(
                   EXPORTING
                     IO_CONTEXT = LO_CONTEXT
                   IMPORTING
                     EO_RESULT = LO_RESULT   ) .
    * RETRIEVE THE BRF PLUS FUNCTION RESULT .
      LO_RESULT->GET_VALUE(
                    IMPORTING
                      EA_VALUE = LS_PRICE ) .
    WRITE : LS_PRICE-NUMBER ,
            / LS_PRICE-CURRENCY .
    CATCH CX_FDT INTO LO_MESSAGE .
    ENDTRY .
    Thanks & Regards,
    Joyjit Biswas

  • Confirmation creation error in web portal using BRF

    Hi SRM Gurus,
    We are new to SRM 7.0. Currently we are trying to create a confirmation step through BRF to get approval for confirmation of  goods received.  We are using a copy of the FM: /SAPSRM/WF_BRF_0EXP000 with the following parameters:
       0C_C1_C_FWFCORLCNTNT   > Class: /SAPSRM/CL_WF_RULE_CONTXT_CONF
       0C_C2_C_GET_PROPERTY    >  Method - Get Atrribute Value 
       0C_C3_C_SPECIFICAT             > Specification (for example, confirmation/return delivery/cancellation)
    The standard workflow number is WS 40000015.
    When we are using the Result Type as Boolean, we are getting a pop-up error message "Schema not found" in the web portal.
    When the Result Type is changed to C (Length 30), we are getting a pop-up error message "No process levels defined in process scheme CF" error in the web portal.
    Kindly provide us your valuable suggestions..
    Thanks in Advance.
    Cheers,
    Ashok.

    Hi,
      Is your schema evaluation(Event) linked to a expression(Schema definition) determine dynamically? if so check your FM expression when EV_VALUE return correct value.. make sure you clear the ev_data_missing..

  • Validate empty tags using xquery

    Hi All,
    I have a question regarding xquery flwor exrpession. My scenarion is I need to validate an xml input file wether one of its elements is empty so I created an xquery to validate. However, I receive an error when I try to make an input file that has a repeating element.
    Below is my xquery for validating empty tags:
    declare namespace cred="http://www.pldt.com.ph/eai/service/component/CreditService/";
    declare namespace com="http://www.pldt.com.ph/eai/Common";
    declare variable $inputdata as element(cred:PushQuote) external;
    let $QuoteNumber := data($inputdata/PushQuote/com:QuoteNumber)
    let $AccountNumber := data($inputdata/PushQuote/com:CustomerAccountNumber)
    let $QuoteLineItemList := $inputdata/PushQuote/com:LineItemList
    for $data in $inputdata
    return
    if (fn:string-length($QuoteNumber) > 0 and
    fn:string-length($AccountNumber) > 0)
    then
    for $quoteLineItem in $QuoteLineItemList
    return
    if (fn:string-length(data($quoteLineItem/com:QuoteLineItem/com:LineNumber)) > 0 and
    fn:string-length(data($quoteLineItem/com:QuoteLineItem/com:ProductCatalogId)) > 0 and
    fn:string-length(data($quoteLineItem/com:QuoteLineItem/com:Product)) > 0 and
    fn:string-length(data($quoteLineItem/com:QuoteLineItem/com:Quantity)) > 0 and
    fn:string-length(data($quoteLineItem/com:QuoteLineItem/com:Mrc)) > 0 and
    fn:string-length(data($quoteLineItem/com:QuoteLineItem/com:Currency)) > 0 and
    fn:string-length(data($quoteLineItem/com:QuoteLineItem/com:LastUpdateDate)) > 0 and
    fn:string-length(data($quoteLineItem/com:QuoteLineItem/com:LastUpdatedBy)))
    then
    "0"
    else
    "1"
    else
    "1"
    Below is my input xml document:
    <cred:PushQuote xmlns:com="http://www.pldt.com.ph/eai/Common" xmlns:cred="http://www.pldt.com.ph/eai/service/component/CreditService/">
    <PushQuote>
    <com:QuoteNumber>ZXCV-233</com:QuoteNumber>
    <com:CustomerAccountNumber>1213654889</com:CustomerAccountNumber>
    <!--Optional:-->
    <com:LineItemList>
    *<!--1 or more repetitions:-->*
    <com:QuoteLineItem>
    <com:LineNumber>3</com:LineNumber>
    <com:ProductCatalogId>string</com:ProductCatalogId>
    <com:Product>asdf</com:Product>
    <com:Quantity>string</com:Quantity>
    <com:Mrc>3</com:Mrc>
    <com:Currency>USD</com:Currency>
    <com:LastUpdateDate>string</com:LastUpdateDate>
    <com:LastUpdatedBy>string</com:LastUpdatedBy>
    </com:QuoteLineItem>
    <com:QuoteLineItem>
    <com:LineNumber>3</com:LineNumber>
    <com:ProductCatalogId>string</com:ProductCatalogId>
    <com:Product>1234</com:Product>
    <com:Quantity>string</com:Quantity>
    <com:Mrc>3</com:Mrc>
    <com:Currency>USD</com:Currency>
    <com:LastUpdateDate>string</com:LastUpdateDate>
    <com:LastUpdatedBy>string</com:LastUpdatedBy>
    </com:QuoteLineItem>
    <com:QuoteLineItem>
    <com:LineNumber>3</com:LineNumber>
    <com:ProductCatalogId>string</com:ProductCatalogId>
    <com:Product></com:Product>
    <com:Quantity>string</com:Quantity>
    <com:Mrc>3</com:Mrc>
    <com:Currency>USD</com:Currency>
    <com:LastUpdateDate>string</com:LastUpdateDate>
    <com:LastUpdatedBy>string</com:LastUpdatedBy>
    </com:QuoteLineItem>          
    </com:LineItemList>
    </PushQuote>
    </cred:PushQuote>

    atheek1 wrote:
    Try this:
    <ResultDoc>
    for data in $inputData/PushQuote
    return
    if( put all your if conditions here) then
    <result> 1</result>
    else
    <result>0</result>
    </ResultDoc>
    This will return a xml :
    <ResultDoc>
    <result>1</result> <!.. one result per PushQuote in input !>
    <result>0</result>
    </ResultDoc>yup I've tried that, and now I'm able to get result, my problem now is I can't get the result that is equal to 1 even if I use xpath.
    please see my updated code:
    declare namespace cred="http://www.pldt.com.ph/eai/service/component/CreditService/";
    declare namespace com="http://www.pldt.com.ph/eai/Common";
    declare function local:CheckValidation($PushQuote as element(cred:PushQuote))
    let $QuoteNumber := data($PushQuote/PushQuote/com:QuoteNumber)
    let $AccountNumber := data($PushQuote/PushQuote/com:CustomerAccountNumber)
    let $QuoteLineItemList := $PushQuote/PushQuote/com:LineItemList/com:QuoteLineItem
    return
    <status>
    for $QuoteLineItem in $QuoteLineItemList
    return
    if (fn:string-length(data($QuoteNumber)) > 0 and
    fn:string-length(data($AccountNumber)) > 0 and
    fn:string-length(data($QuoteLineItem/com:Quantity)) > 0 and
    fn:string-length(data($QuoteLineItem/com:Product)) > 0 and
    fn:string-length(data($QuoteLineItem/com:Mrc)) > 0 and
    fn:string-length(data($QuoteLineItem/com:Currency)) > 0 and
    fn:string-length(data($QuoteLineItem/com:LastUpdateDate)) > 0 and
    fn:string-length(data($QuoteLineItem/com:LastUpdatedBy)) > 0)
    then
    <code>0</code>
    else
    <code>1</code>
    </status>
    declare variable $PushQuote as element(cred:PushQuote) external;
    let $returnValue := local:CheckValidation($PushQuote)
    return
    $returnValue
    $returnValue[code=1]/code
    I've tried putting xpath like this to get result = 1 but no luck :)

  • Validate xml fails using XInclude.

    I tried to use the XInclude syntax in a very simple way in order to make my xml more modular.
    Here the example :
    <?xml version='1.0' encoding='windows-1252'?>
    <frame name="pippo" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xsd:schemaLocation="http://www.axioma.it/AXI Frames.xsd" xmlns="http://www.axioma.it/AXI">
    <vo name="prova">
    <xi:include href="Incluso.xml" parse="xml"/>
    </vo>
    </frame>
    The validate Xlm fails with this error
    Error(4,45): <Line 4, Column 45>: XML-24534: (Error) Element 'include' not expected.
    How can avoid this ?
    Did I forget something ?
    Tks
    Tullio

    I'm quite new and I don't know exactly the syntax You are speaking about.
    I just need to create an xml file, wich is validated by Frames.xsd, including in it some other xml fragments I need to reuse.
    In my code I named 2 xmlspaces, my own and xi wich refers to include specification and I thought it was enough in order to use XInclude specification, is it wrong ?
    How can I specify what I need ?
    Tks
    Tullio

  • Validate IP Address using REGEXP

    Hi All,
    Sub:Validate IP Address.
    My requirement is as this query.
    where regexp_like(col1,'^([1-126]|[128-254]).[0-255].[0-255].[1-254]$')
    ....I searched for a solution using REGEXP, but no luck..
    Thanks in advance.
    Jeneesh
    (Between, this is not a buisiness requirement.But a challenge from our collegue)
    Message was edited by:
    jeneesh

    My mistake, I was looking the Forum only..Did you? :))
    cd posted his nice trilogy about regexpr's,
    and in the Introduction to regular expressions ... last part. he was talking about uncluding the IP-validating topic.

  • Design Time Bean Customizer validate Rule and use multiple time problem

    Hi,
    I have implement a custom validation rule ,add a design time bean customizer for my rule then register on datamodel project,i can use the graphic design time bean customizer and add my validate rule to my entity xml file,but when i add another instance to the same entity,data added to entity xml file was not correct,it may be not integrity or all data are same ,how can i do ? I found all bean validation with the same name ,it is the registered rule name "plsql rule", any suggestion are appreciative
    thank you advance
    li xin zhu 2007/09/08

    Hi,
    One thing you can do in the FOX would be to mark all fields in 'to be changed'. This will have the impact of having all data in the same data package and the FOX code will execute only once.

  • AOP -- is this a reasonable use?

    I'm a bit new to AOP (I'm using spring, if that matters), it occurs to me that data validation is a good case for using AOP. I can set a joinpoint before data is provided to an object and then have the advice be to call one or more validators on that data. The question becomes how to reasonably handle the case where validation fails. Should it perhaps throw an exception and have the interface to the object declared to indicate that the exception is possible so that the caller will handle the case where the object wants its data validated? Any thoughts here?

    zanyjudy wrote:
    Very interesting. Although it doesn't specifically answer the question it does suggest that the transfer rate I am getting is good, that is encouraging.
    It's fairly good. Mine run somewhat faster, but there are many variables.
    Try the things in #D2 of Time Machine - Troubleshooting (or use the link in *User Tips* at the top of this forum). One or more may help.

  • Validate a number using regex

    I would like to validate numbers using regex, and thought that a search both here on the net would produce what I was looking for, but...
    The closest I can get to a number validation sequence (thankyou www.interviewjava.com) was the following:
    "^[-+]?[0-9]*\\.?[0-9]+$"
    but unfortunately it is incomplete. The explanation of the code is as follows:
    * ^[-+]? : Starts with an optional “+” or “-” sign. [0-9]* : May have
    * one or more digits. \\.? : May contain an optional “.” (decimal
    * point) character. [0-9]+$ : ends with numeric digit.
    Can anyone point me to a validation sequence that includes the comma for separating thousands? (The comma can appear multiple times, and is always followed by three digits).
    I'd be very grateful for any help on this. Thankyou.

    Thank you very much for your incredibly fast reply.
    Did you cook that up yourself in the seven minutes since I posted the question, or did you have it somewhere ready?

  • Satellite C855-1CU switch on itself without any reason using Ubuntu

    Hi to all,
    I hope that somebody can help, I have a notebook TOSHIBA C855-1CU
    I installed Ubuntu 12.10 on a partition and WINDOWS 7 on another partition
    the question is : if I turn off my PC from Ubuntu then stays turned off for about 4-7 seconds, and then switch on by it self without any reason!
    Knowing that the same thing happens with my friends who have the same notebook .
    Thanks in advance.

    Hi there
    I recognize this. Had the same issue with Fedora recently.
    It is most likely a Kernel bug.
    You can try the following:
    - when running Ubuntu, remove the external power (unplug the AC adapter from the PC)
    - shut down the unit.
    Does it stay off now?
    If yes, I am most certain that this is a kernel bug and is already solved upstream.
    If You use Ubuntu 13.04 I believe this is sorted out.
    BR Tom

  • Struts how can validate form without using validate method.

    Hi
    Is this possible validate a form without using validate form
    if it is possible then
    please tell me how can we validate it
    Thanks
    Surendra

    Make use of validator framework.. this would enable you to do validation both @ client side by javascript under defined validation rules and also enables you to do it @ serverside....
    And if want to create a Dyanamic Form beans which takes care of validations to make use ValidatorForm or DynaValidatorForm class under the pacakage org.apache.struts.validator and create an instance of it with preconfigured validations under structs...
    Make use of the links below which i think are the best tutors for newbies....
    http://www.roseindia.net/struts/struts_validator_framework.shtml
    http://www.oracle.com/technology/oramag/oracle/04-jan/o14dev_struts.html
    http://www.onjava.com/pub/a/onjava/2002/12/11/jakartastruts.html
    Hope might be of some help.. :)
    REGARDS,
    RaHuL

Maybe you are looking for

  • Setting a value in a Model w/o using bindings?

    Hello! I have a model that's defined like so: <mx:Model id="personModel"> <person> <name></name> <age></age> </person> </mx:Model> In some actionscript, I've tried to do something similar to this: personModel.person.name = "bob"; This doesn't work. I

  • Error while Testing the Inbound Function Module

    Hi,        I have created a Z Function Module (Posting Program) for Testing the EDI Shipment Tender Status. When I try to process the IDoc with the Transaction WE19 and when I enter the name of the Z function Module , it gives me an error saying that

  • How do I transfer files from mac with snow leopard to a new retina display mac

    What is the easiest way to transfer files from my old mac(2008) snow leopard to my new retina display mac book pro?

  • Adding text to iphoto book in folio

    I just started making a book. It looks like it is going to work well, however, I am having trouble entering text into the text boxes. The boxes are uneven and the type is too small. I have changed the size of the font and that works in one of the box

  • Search help in online interactive form...

    Hi Friends, I am facing a strange issue with search help. I have created a Dictionary based interface and included the field for which i want search help. I have created a search help and attached at the context of webdynpro. I dragged and dropped th