UCCX Ver 8 adding XML

                   I'm having trouble with a script pulling the data from an xml file.  I would like the script to run normal Monday thru Friday but on Saturday run on the first and third.  On my script have a holiday xml already but I would like to add an xml for first and third saturday.  I'm having trouble with the path. I attached a screenshot of the xml and script. I'm not sure if I'm add the xml file in the wrong location on the script as well.

Hi,
er... your XML structure is a tiny bit overcomplicated - is it something you can control? If yes, can't you create something like this:
>
This would be easier to work with. For instance, using an XPath expression like this
count(//specialdate[@date="5/2/2012" and @from>"5" and @to<"23"])
or just simply
//specialdate[@date="5/2/2012" and @from>"5" and @to<"23"]
Of course, "5/2/2012" and "5" and "23" should countain actual date and time (hour) values.
As pointed out by Anthony, Java can help you getting the day of week in month - and check against the actual date. For example, if you add a new boolean variable named isSpecialDate and use a Set step to assign its value to a code block like this:
Set isSpecialDate = {
        java.util.Calendar calendar = new java.util.GregorianCalendar();
        calendar.setTime(new java.util.Date());
        if (calendar.get(java.util.Calendar.DAY_OF_WEEK)  == java.util.Calendar.SATURDAY && (
                calendar.get(java.util.Calendar.DAY_OF_WEEK_IN_MONTH) == 1 ||
                calendar.get(java.util.Calendar.DAY_OF_WEEK_IN_MONTH) == 3
            // it's that special date
               return true;
        } else {
            // just a regular rainy day
               return false;
        } //else
}//block
then the value of the isSpecialDate variable would be true if it's the first or third Saturday of the month.
G.

Similar Messages

  • NFe de entrada com XML versão 1.10 em ambiente com versão de XML 2.00

    Olá colegas,
    Nossos locais de negócio estão configurados para a NFe na versão XML 2.0.
    Com isso, todas notas criadas, tanto de saída quanto de entrada são da versão 2.00 do XML.
    Entretanto, ainda recebemos notas de clientes na versão do XML 1.10.
    Com isso, em processos de devolução em SD, ao informar os campos que compõe a chave da NFe, temos dificuldade com campo tpEmis. Consequentemente, não conseguimos gerar a chave corretamente.
    Este campo não existe na versão 1.10 do xml, pois integrava o campo do nr.aleatorio.
    Pergunto: Como está sendo resolvida esta questão por quem já se deparou com ela?
    Obrigado.
    Heron Caetano

    Heron,
    no recebimento, vc pode ir no botao Nota Fiscal, aba NFe, e setar a versao para "1,10".
    Isso vai fazer com que os parametros sejam mostrados como no layout 1.10 (i.e. randomico de 9 digitos e sem tpEmis).
    Veja a nota [1470661|https://service.sap.com/sap/support/notes/1470661].
    Abs,
    Henrique.

  • Impact of Domain Controllers changes on Cisco Unity Ver 7.0(2.0) and UCCX ver ver 7.0(2) and CUCM ver 7.1.5.34900-7

    Hi
    Can someone please advise me about the following question
    We are using CUCM ver 7.1.5 , Cisco Unity ver 7.0(2.0) and UCCX ver 7.0(2)
    we already have a plan to upgrade them all to the latest versions but in the mean time a need came that we have to upgrade the domain controllers
    as follows
    Upgrade from Windows 2003 to Windows 2008
    Domain Controller host names will change, however replacement servers will assume the IP of the old server as they are brought online.
    Similarly, once the Domain Controllers have been upgraded, the existing Certificate Authority will also be moved from Windows 2003 to Windows 2008.
    My question will be what will be the impact of this change to the above applications we are using in production
    Thank you for your feedback and comments
    Abdul

    if it is possible email me your feed back to my email as below
    [email protected]
    thank you

  • Nova versão do XML -.2.00

    Boa tarde!
    Estamos trabalhando na atualização da versão do arquivo xml para 2.0.
    Além do SP14, é possível listar aqui quais são as notas da SAP  necessárias para a atualização da versão. Apenas por precaução, para evitar que esqueçamos de alguma nota.
    Muito obrigada,
    Fabiana

    Oi Henrique,
    Tenho mais duas questões:
    1. Aplicamos o SAPKH60307 - nesse caso as notas não deveriam ter sido aplicadas e somente as config. manuais deveria ser feitas? Nenhuma nota foi encontrada no nosso ambiente de DEV. É isso mesmo?
    SAP Note 1463719 - New XML Layout Version 2.00: Functionality (ERP relevant).
    SAP Note 1454820 - New XML Layout Version 2.00: Pre-Implementation (ERP relevant). Included in ERP Support Package SAPKH60307
    SAP Note 1454408 u2013 NF-e: Change of access key tpEmis and random number. Included in ERP Support Package SAPKH60307
    SAP Note 1451966 u2013 NF-e: contingency date, time and reason. Included in ERP Support Package SAPKH60307
    SAP Note 1443089 u2013 NF-e: Inclusion of NF-e issuing type in Access Key u2013 Part 1. Included in ERP Support Package SAPKH60307
    SAP Note 1441403 u2013 NF-e: Authorization Timestamp for DANFE. Included in ERP Support Package SAPKH60307
    SAP Note 1474338 u2013 Missing field in ADI Table (manual). Included in ERP Support Package SAPKH60307.
    SAP Note 1477834 u2013 XML Layout version 2.00: missing parameters in NF-e BAdI. Included in ERP Support Package SAPKH60307.
    SAP Note 1435351 - New XML Printer selection for nota fiscal in status contingency. Included in ERP Support Package SAPKH60307.
    SAP Note 1441403 u2013 NF-e: Authorization Timestamp for DANFE. Included in ERP Support Package SAPKH60307.
    SAP Note 1443089 u2013 NF-e: Inclusion of NF-e issuing type in Access Key u2013 Part 1. Included in ERP Support Package SAPKH60307.
    SAP Note 1454408 u2013 NF-e: Change of access key tpEmis and random number. Included in ERP Support Package SAPKH60307.
    SAP Note 1445874 u2013 NF-e: Format of phone number (manual / SNOTE) Included in ERP Support Package SAPKH60307.
    SAP Note 1448895 u2013 NF-e: Check contingency function (manual / SNOTE) Included in ERP Support Package SAPKH60307.
    SAP Note 1451966 u2013 NF-e: contingency date, time and reason. Included in ERP Support Package SAPKH60307.
    SAP Note 1456583 u2013 contingency date, time and reason are not filled. Included in ERP Support Package SAPKH60307.
    SAP Note 1451768 u2013 Authorization timestamp shall be printed on DANFE u2013 included in SAPK-10014INSLLNFE.
    SAP Note 1462919 u2013 NF-e: Reason at switch to contingency. Included in ERP Support Package SAPKH60307
    SAP Note 1470661 - NF-e: Flexible XML-Version in Nota Fiscal-Writer
    SAP Note 1467110 - New XML Layout Version 2.00: Corrections (included in SAPKH60307 but contains manual steps)
    SAP Note 1485135 u2013NF-e Government Version - Included in ERP Support Package SAPKH60307
    2. Aplicamos também o SP14 e fizemos a configuração XI/PI. Ao aplicarmos o SP15, teremos que reconfigurar o XI/PI, correto?
    SAP Note 1456108 - SAPK-10014INSLLNFE: Support Package 14 for SLL-NFE
    ABAP - SLL-NFE
    XI Content SAP SLL-NFE
    Java Bean Digital Signature SAP SLL-NFE-JWS
    3. O ERP está no SP14, e o GRC vai ser SP15. Algum problema de divergência versões/ambientes?
    Grata,
    Fabiana

  • UCCX 9.0(2) XML question

    I'm teaching myself about SOAP and XML responses for an upcoming project for a self-service application. We have UCCE/ICM UCCX/IPIVR premium licenses. I used the excellent article by Gergely (https://supportforums.cisco.com/document/97736/uccx-8x-really-simple-soap-client-no-custom-jar) with success. Thank you.
    In playing around, I found one of the free web services to use to send the SOAP request and receive a response. After much poking around I finally got something to work and got data successfully. From one of the services I used (cydne.com) I was able to get a response XML file, parse the response data and separate it into the various variables I created to receive the data. No problems there.
    However, when I used the service www.webservicex.net, the resulting XML response doesn't have < and > in many of the fields. Instead, it has &lt; and &gt;. I figured I could just do a string replace and replace the &lt; with < and &gt; with >. After I got the response in the soapResponseString variable, I did a Do statement to replace the string &lt; with < and &gt; with >.
    Do:
    soapResponseString = soapResponseString.replace("&lt;","<");
    soapResponseString = soapResponseString.replace("&gt;",">");
    The substitution looked fine and the strings were replaced appropriately. However, when I did create XML document step using (Document)soapResponseString for some reason instead of the string showing TEXT[soapResponseString text goes here] it shows as §com.cisco.wf.steps.io.XMLDocument§com.cisco.wf.steps.io.XMLDocument@0§ . Then, the Get XML Document Data step fails with:
    XML Parser Exception: Nested exception is:
    org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed; nested exception is:
    com.cisco.wf.steps.io.SAXIOException: XML Parse exception; nested exception is:
    org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL] is not allowed.
    The replace does something to the soapResonseString string the Create XML Doucment step [(Document)soapResponseString] doesn't like for some reason and I can't figure out what. I don't need the data from the web service for anything other than testing to verify I can successfully get SOAP data. I'm wondering what the string replacement step does to the original string causing the parsing error. It's not apparently obvious what, if anything, changed.
    I attached a text document with the soapResponseString before string replacement, the Document soapResponseDocument before the replacement, the soapResponseString after replacement and the Document soapResponseDocument after replacement.
    Any insight would be appreciated.
    Bill

    Bill,
    could you please post the WSDL of the webservicex.net service you're trying to use? Is it "Global Weather"?
    If so, I took a look at the request/response pair and the XML they're sending is valid. But it's a bit different from what I am able to see in the text attachment posted by you.
    This is the request:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://www.webserviceX.NET">
       <soapenv:Header/>
       <soapenv:Body>
          <web:GetWeather>
             <!--Optional:-->
             <web:CityName>Wien</web:CityName>
             <!--Optional:-->
             <web:CountryName>Austria</web:CountryName>
          </web:GetWeather>
       </soapenv:Body>
    </soapenv:Envelope>
    And this is the response:
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
       <soap:Body>
          <GetWeatherResponse xmlns="http://www.webserviceX.NET">
             <GetWeatherResult><![CDATA[<?xml version="1.0" encoding="utf-16"?>
    <CurrentWeather>
      <Location>Wien / Schwechat-Flughafen, Austria (LOWW) 48-07N 016-34E 190M</Location>
      <Time>Dec 19, 2014 - 12:50 AM EST / 2014.12.19 0550 UTC</Time>
      <Wind> from the W (270 degrees) at 16 MPH (14 KT) (direction variable):0</Wind>
      <Visibility> greater than 7 mile(s):0</Visibility>
      <SkyConditions> partly cloudy</SkyConditions>
      <Temperature> 57 F (14 C)</Temperature>
      <DewPoint> 44 F (7 C)</DewPoint>
      <RelativeHumidity> 62%</RelativeHumidity>
      <Pressure> 30.00 in. Hg (1016 hPa)</Pressure>
      <Status>Success</Status>
    </CurrentWeather>]]></GetWeatherResult>
          </GetWeatherResponse>
       </soap:Body>
    </soap:Envelope>
    Now what we can see here is perfectly legal, however, a sane person would never do this (I mean embedding a complete XML (with a header) into an XML. I mean, you can do that with enclosing the embedded XML with a CDATA tag, but again, the XML parser needs to take extra care and the programmer of the web service data consuming application needs to make extra effort to parse this.
    This is an exception to the rule I guess so it can be safely ignored.
    Anyway, can you double check the response string. Or, actually, would you mind posting your script?
    G.

  • Adding XML Attriubutes to Nodes

    Hello,
    I'm working on a project that requires parsing of messages between server and client programs and we're using XML as the language.
    The server is programmed in C# and the client in Java ..
    I need something like this:
    <ROOM>
    <TYPE message="CREATE">
    // A create type message goes in here
    </TYPE>
    </ROOM>
    The following is the method that actually creates the message (located in the client) ...
    public void CreateRoomOperationMessage (String toLocation, String roomName, String messageOperation) {
            // The create room operation message is a method which creates the create/kill messages
            try {
                DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                DocumentBuilder builder = factory.newDocumentBuilder();
                DOMImplementation impl = builder.getDOMImplementation();
                Document doc = impl.createDocument(null, toLocation, null);
                Node rootElement = doc.getDocumentElement();
                Node roomNode = doc.createElement(ROOM);
                rootElement.appendChild(roomNode);
                Node typeNode = doc.createElement(TYPE);
                roomNode.appendChild(typeNode);
                //Element typeElement = doc.getElementsByTagName(TYPE);
                //typeElement.setAttribute("MESSAGE", messageOperation);
                // PROBLEM ... NEED TO FIGURE OUT HOW TO INSERT AN ELEMENT INTO THE TREE?
                Text typeText = doc.createTextNode(messageOperation);
                typeNode.appendChild(typeText);
                Node roomNameNode = doc.createElement(ROOMNAME);
                roomNode.appendChild(roomNameNode);
                Text roomNameText = doc.createTextNode(roomName);
                roomNameNode.appendChild(roomNameText);
                TransformerFactory xformFactory = TransformerFactory.newInstance();
                Transformer idTransform = xformFactory.newTransformer();
                Source input = new DOMSource(doc);
                Writer txtWriter = new StringWriter();
                Result output = new StreamResult(txtWriter);
                idTransform.transform(input, output);
                setXmlMessage(txtWriter.toString());
            } catch (FactoryConfigurationError e) {
                System.err.println("ROOMMESSAGEFACTORY: Could not locate a JAXP factory class");
            } catch (ParserConfigurationException e) {
                System.err.println("ROOMMESSAGEFACTORY: Could not locate a JAXP DocumentBuilder class");
            } catch (DOMException e) {
                System.err.println("ROOMMESSAGEFACTORY: DOM Exception");
                System.err.println(e);
            } catch (TransformerConfigurationException e) {
                System.err.println("ROOMMESSAGEFACTORY: Input to Output transformation error!");
                System.err.println(e);
            } catch (TransformerException e) {
                System.err.println("ROOMMESSAGEFACTORY: Transformer Exception");
                System.err.println(e);
        }I just don't see any way of taking a node and setting/adding an attribute ...
    eg .. Node typeNode = doc.createElement(TYPE);
    roomNode.appendChild(typeNode);
    typeNode.setAttribute("message", messageOperation); // This is the pseudocode

    The return value of createElement() is an Element, and Element has a setAttribute method. Just don't implicitly upcast to Node and your pseudocode is correct.Element  typeNode = doc.createElement(TYPE);
    roomNode.appendChild(typeNode);
    typeNode.setAttribute("message", messageOperation);Pete

  • UCCX 7.1 Holiday.xml file being overwritten with older file

    I'm administering a UCCX server v7.1 in which the holiday.xml file in the wfaavid\documents\user directory keeps resorting to an older holiday.xml file after I manually copy an updated file into the directory. When I initially copy the file over, our Contact Center identifies the holidays fine. I find each holiday there after, an older version of the file with older dates appears. So I have to manually copy the file to the directory again that holiday morning. I'm assuming the switch occurs before hand but not sure when or why. Is there another directory I'm missing that I should be copying the updated file too? Or is there another explanation that is causing this issue?
    Any help would be appreciated.

    That local directory is overwritten by the document in the repository (in the database).
    That's working as designed.  You'll need to leverage the web page AppAdmin to update your XML file, or do it from within a script with the Upload Document step.  Those are the only two supported methods.
    Anthony Holloway
    Please use the star ratings to help drive great content to the top of searches.

  • Help needed adding xml into website

    I am looking for some help adding a few .xml files into my
    website using Dreamweaver
    First ..I would like to add the following RDS.xml file below.
    I would like it to go into a box that is 100 x 100 px
    <?xml version="1.0" encoding="utf-8" ?>
    - <Playing station="HAWK">
    - <item type="MUS">
    <DateTime>Thu 10:52AM</DateTime>
    <Cart />
    <Artist>THE ROLLING STONES</Artist>
    <SongTitle>JUMPIN' JACK FLASH</SongTitle>
    </item>
    </Playing>
    Second ..an event.xml file that will scroll info with box
    dimensions of 400 px w x 30 px h.
    Both xml files would be on my site in a user_files folder
    Any help would be greatly appreciated. Rob

    > To use Dreamweaver, you'll need to write some code to
    transform the XML
    > into
    > HTML. What code to write will depend on the server-side
    scripting language
    > you are using.
    It means that you can't just plop in XML in the middle of
    your HTML. Your
    pages are HTML, so the XML needs to be transformed in to HTML
    first. There
    are various ways to do this. Are you using PHP? ASP? Etc.
    Once we know that,
    we can narrow down a solution for you.
    -Darrel

  • UCCX script to pull XML data

    Hello,
    My goal is to create a UCCX script that will run on a Standard license server. Basically, when a user dials a four digit "speed dial", I want them to be translated to a UCCX route point, that will take the original called number, and the calling number, and use that to create a URL that it will then query and retrieve the actual number that will need to be dialed.
    So my plan currently is to have a phone inside of a partition that has a translation pattern of XXXX. The called number gets translated to 1158, which is the trigger of the application on UCCX.
    The url I want to query will be something like this:
    http://localhost:35798/RestServiceImpl.svc/XML/1017/6314
    "Localhost" will eventually become the IP address of the server hosting IIS application that will provide the XML output. 1017 is the "speed dial" or the original called number, 6314 is the calling number.
    Going to that URL should return me this output:
    <XMLDataResponse xmlns="http://tempuri.org/">
      <XMLDataResult>
      <CallingXML>
      <Extension>6300</Extension>
      <SpeedDial>1001</SpeedDial>
      <PhoneNumber>918005551212</PhoneNumber>
      </CallingXML>
      </XMLDataResult>
    </XMLDataResponse>
    This is the script as I have written it out so far:
    It does not seem to like what I have put together thus far when I try to validate it. I'm just wondering if I'm doing something that's obviously wrong.
    The end goal will be to take the NewNumber and dial it, while hiding it from the phone.
    Thanks,
    Mark

    Here's an update: I have the script retrieving the correct numbers and formulating the URL correctly. It also appears to be delivering the query from the XML.
    Here's what the XML looks like when I hit it from my browser:
    http://tempuri.org/
    ">
      http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">63141017918003551111
    When I do an Interactive Script Debug session and dial the number, I can see that there are two problems: 1) the NewNumber string is "null" by the time it gets to the step to do a Call Consult Transfer, and 2) the script just shows up a blank Exception.
    This tells me I am not parsing the XML correctly.
    Here is what I have currently:
    NewNumber = Get XML Data (xml, "/descendant::XMLDataResponse/child::XMLDataResult/child::PhoneNumber")
    Which based upon what I've read in Cisco's Volume 2 and elsewhere, should be correct.
    Notice in the screenshot that the XML data that UCCX pulls in looks different from when I look at it from my browser. I've also attached the script.
    Thanks,
    Mark

  • Adding XML tags to a predesigned page

    Hello Adobe Community and Merry Christmas to all. I've recently been given a job that requires adding a large amount (200+) of XML tags to an already designed article, so it can be then added to a database.
    I've tried using GREP, but I'd like to know if there's a program or plug-in that can speed up the process, like Java scripts or similar. If my company were to have a influx of these kind of jobs, would it be worth it to buy something like Atomik Xport?
    Thank you all!
    Alex

    hallway3 wrote:
    I've created my page in Fireworks, imported it to Dreamweaver, and now realized that I need to add Header tags.
    Basically not the correct way to build a web page.  You should never let a graphics program write the html for you.  A Fireworks html page may be ok to create a protype to show a client, but not much good for a live production site.
    and now realized that I need to add Header tags.  Is there a simple way?  Should I have done it in Fireworks?
    Can you explain what you mean here - it's difficult to understand what you are trying to do, hence the reason why no-one has responded to your question 
    Also, my text is all in div tags, I'm assuming I'll have to go back to fireworks, take them out, and then re-import?
    Again, you should only export the images you need for the site and then build/write the page in DW itself.
    This tutorial may help:
    TAKING FIREWORKS COMP TO DREAMWEAVER:
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt1.html
    Nadia
    Adobe Community Expert : Dreamweaver
    Unique CSS Templates | Tutorials | SEO Articles
    http://www.DreamweaverResources.com
    Web Design & Development
    http://www.perrelink.com.au
    http://twitter.com/nadiap

  • Cisco UCCX 10.6 Get XML Document Data XPath count() function

    Hi
    I'd like to retrieve the number of XML nodes in a document to make a script more efficient.
    e.g. with this XML, I'd like to know how many <message> nodes there are:
    <messages>
    <message>contentA</message>
    <message>contentA</message>
    <message>contentA</message>
    </messages>
    I've tried iNodeCount = Get XML Document Data (inputXMLfile, "count(//messages/message)")
    If I try this in an XPath expression tester then I get the result I'm expecting - an integer of 3. However, in UCCX this produces the error "Can not convert #NUMBER to a NodeList!"... What am I doing wrong?
    Thanks

    Hi, 
    you may want to use a Set or a Do step to execute Java code. 
    First, reference the XML file (within the repository) by calling DOC[myFile.xml] and of course, assigning this value to a Document type variable, e.g.: 
    Set myDocument = DOC[myFile.xml]
    Then add a Do step that actually does the XPath part of the job. 
    There's a nice step by step explanation of it here: http://viralpatel.net/blogs/java-xml-xpath-tutorial-parse-xml/
    Remember, you can get the Inputstream object of the myDocument variable using the getInputStream() method on it.
    G.

  • UCCX XPath on Get XML Document Data Step always returns null

    Hello,
    Can someone tell whats wrong with my XPath, because it always returns null. I have tried different variations and nothing. I'm using UCCX 7.0
    XML
    <?xml version="1.0" encoding="utf-8" ?>
    <GetManagersResult xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.labdomain.com/">
      <ClaimManagersList>
        <X_CLAIM_MANAGER>
          <ClaimManagerUserName>test</ClaimManagerUserName>
        </X_CLAIM_MANAGER>
      </ClaimManagersList>
    </GetManagersResult>
    XPATH
    "/descendant::GetManagersResult/child::ClaimManagersList/child::X_CLAIM_MANAGER/child::ClaimManagerUserName"
    During debug, this is the value of the xml document when it reaches the Get XML Document Data step:
    TEXT[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<GetManagersResult xmlns=\"http://www.labdomain.com/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n  <ClaimManagersList>\r\n    <X_CLAIM_MANAGER>\r\n      <ClaimManagerUserName>test</ClaimManagerUserName>\r\n    </X_CLAIM_MANAGER>\r\n  </ClaimManagersList>\r\n</GetManagersResult>]

    It's your XML namespace in the root element.
    First off, I have never seen the CRS Editor play nice when XML namespaces are involved.
    Secondly, with your namespace in place, not even a generic xpath expression tester can find your data.  See attachements.
    I think that if you find a way to either: not send, or remove the namespace from your document, your xpath expression will work.
    With Namespaces
    Without Namespaces

  • Versão do XML errada - Notas de entrada com referencia a Saida em 1.10

    Boa Tarde Pessoal,
    Minha empresa emite notas fiscais em 2.0 em todas suas filiais e estou tendo problemas ao criar notas de devoluções para notas de saídas que saíram na versão 1.10.
    Elas deveriam sair em 2.0 pois não emitimos mais em 1.10.
    Estamos recebendo a rejeição 595      Rejeição: A versão do leiaute da NF-e utilizada não é mais válida.
    Alguem sabe o que pode estar acontecendo?
    Leandro Von Zubem.
    Edited by: Leandro VonZubem on May 17, 2011 8:07 PM

    Bom dia Fernando,
    O problema é que o SAP esta determinando a versão 1.10 na nota que crio hoje referenciando uma nota antiga emitida em 1.10.
    Não sou ABAP mas debuguei a criação da nota e segue o cenário que encontrei:
    Na função J_1B_NF_MAP_TO_XML, alimentamos a estrutura wk_header com os dados da J_1BNFDOC (estrutura i_nfdoc), o campo wk_header-XMLVERS é alimentado com a versão 1.10. (E aqui esta o grande problema)
    Depois disso, através da tabela J_1BNFE_CUST3 ele verifica que a versão que devemos gerar a nota é a 2.0, na função que preenche o Bloco A, eu alimento a xmlh-version com 2.0. mas o wk_header-XMLVERS continua com 1.10.
    Passo pela BADI de header, e atualizo as informações necessárias, mas mantenho 2.0 nas estruturas XMLH e XMLH_BADI.
    Agora eu chamo a função CALL_XI (passando a XMLH com as informações de cabeçalho), é chamada a função /XNFE/NFE_CREATE no GRC e, no validation (Função Check_ID) a variavel gc_xmlvers1_erp esta como 1.10, o que gera um erro de validação na chave de acesso (forcei esse passo para não gerar erro porque sei que se o wk_header não tivesse determinado errado, ele teria preenchido o TPEMIS e não teriamos esse erro)
    Quando ele sai da função de NFE e volta pra criação standard da nota fiscal ele volta pra função J_1B_NF_DOC_INSERT_FROM_OBJECT e depois chama a função J_1B_NF_DOCUMENT_INSERT passando como parâmetro a wk_header (que continua com o XMLVERS como 1.10) e aí criamos a nota com a versão 1.10
    Em resumo, se a nota de saida foi como 1.10, a nota de entrada será forçada a sair como 1.10 também devido a referência standard do SAP. Me parece que o problema esta no standard do SAP.
    O que achei mais estranho é que não vi mais ninguem reclamando, então estou desconfiando que falta aplicar alguma nota em meu ERP.
    Fiz um "workaround" para confirmar que daria certo, segue o que eu fiz:
    Coloquei um ponto de parada na função J_1B_NF_DOC_INSERT_FROM_OBJECT (início do processamento de NFe) e alterei o wk_header-xmlvers para 2.0, após isso ele gerou a nota de devolução com a versão 2.0.
    Leandro Von Zubem.

  • Error while adding XML Schemas with cyclic references

    I have to use the 3rd party bunch of XML Schema files, but two of them reference each other, i.e. there are cyclic references. ESB displays a conflict in this case.
    Is there any way to resolve the problem without changing source xsd-files?
    My configuration is WebLogic Platform 9.2.1 + AquaLogic Service Bus 2.6

    Our scenario is that the corporate data model (in UML) is transformed into XSD and delivered as several separate XSD files. Our modellers argue that cyclic references make sense in this context and are not forbidden by the standard.
    We restructured the transformation so that only a single XSD file is delivered (~550K) but this is unwieldy, inflexible and ALSB is sloooooooooow when manipulating a schema of this size inside the console.

  • Maximum length of a prompt which can be recorded in UCCX ver 8.5?

    I have a customer who would like to be able to record company announcements via a script in UCCX and have it saved as a prompt.  Is there a time limit on the length of a prompt which can be recorded?  

    Hi.
    As i checked just now,there is no problem with 86400 seconds value.
    So it depends i think most from your storage usage.
    Hope,attached script will be usefull for you.
    Good luck.

Maybe you are looking for

  • No SMTP log after upgrade to Server 4.0.3

    I just updated my server to 4.0.3 and I initially had an error message saying that a script was not owned by postfix repeated in the SMTP log file. First I tried to fix it with disk utility but it didn't work. So in Terminal I did: sudo chown _postfi

  • IMovie on iPad transfer project to iMovie for Mac?

    Would I be able to transfer an iMovie project, mid-project, between an iPad and Mac versions of iMovie? Apple made it clear in the keynote and press releases that this would be possible in GarageBand, but I want to know about iMovie.

  • Chaining stylesheets with XSQL!

    I am attemping to post a form to an XSQL page and insert the parameters into an Oracle database. The easiest way to do the tranformation is to apply a stylesheet to the XML generated automatically by the XSQL servelet and then apply another styleshee

  • Load Balancing 2 routers

    Hi all Can someone tell me the best way to load balance between 2 routers, can someone post a typical config ? thanks a million Carl

  • Error while doing KP06

    Dear Experts, After doing KP04 and selecting one of the planner profile, i am trying to do KP06. Here it is showing error as "Errors occurred during testing for field" "Version". Please reply on a very very very urgent basis. Rgds