Problem in converting ASCII value in Dev. and Production

Hi...
The ASCII values for # differ in the development and the production system.
The code below (value 0009 ) populates # in the variable lv_sep.
DATA: lv_sep TYPE x.
FIELD-SYMBOLS : <field> TYPE x.
ASSIGN lv_sep TO <field> CASTING TYPE x.
<field> = 0009.
The the development # = 0009 and in production # = 1000.
Need to know why is this happening.

How do you get the XML document? Do you use XSU? You can use:
String str = qry.getXMLString();
to get the result XML document in String.
XSU will escape all of the < and >. Or the the XML document in
one of the column will make the result XML doc not well-formed.
Not quite understand your problem. You can send me your test
case.
i have an application that needs to send an XML document
over the wire. For this reason, I need to convert the
doc into a String at the sending side and back to Doc
at the receiving side. This document is stored in a "CLOB"
column in a table in the database. I use XDK to retrieve
this entire row (including the CLOB - hence this is an XML
document which has a column that itself is an xml document in
string format - this is just the clob read in by XDK).
Thus the row looks like
<ROWSET>
<ROW>
<col1> A <col1>
<CLOB_COL> ..clob value of an xml doc..</CLOB_COL>
</ROW>
</ROWSET>
When I convert this document into String and back, one of the "<"
tags in the clob column document gets changed to "<" and hence
the parsing fails! I have used the latest label of the XDK build
to get the latest parser jar but still i have the same problem.
I am using the following routines for the conversion.
/* for converting document to string */
public static String convertToString(XMLDocument xml) throws
IOException
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
xml.print(pw);
String result = sw.toString();
return result;
/* for converting string to document */
public static XMLDocument convertToXml(String xmlStr)
throws
IOException,SAXException
ByteArrayInputStream inStream = new
ByteArrayInputStream(xmlStr.getBytes());
DOMParser parser = new DOMParser();
parser.setPreserveWhitespace(false);
parser.parse(inStream);
return parser.getDocument();

Similar Messages

  • How to convert ascii value into character and vice versa

    Hello the java world people,
    I want to convert each characters from my array into their corespondent ascii value and vice versa, how can I do that ?

    The term "ASCII" is often used very loosely.
    Java char values are UNICODE and the ASCII codes are indentical to UNICODE characters in the range 0 .. 127. UNICODE values 128 and above don't have coresponding ASCII values, though 128-255 corespond to ISO-8859-1 which is one of the encodings often called "extended ASCII".
    As shown above you can covert between chars and coresponding int value simply with a cast, but you should be aware that the more exotic characters will not give you sensible values.

  • Dev and Production BW systems not in sync.

    Hello All,
    We have been using two BW systems for our implementation project. One is the development and second one is production BW system. I observed that few BW objects have different configuration (like update rules, user exits, queries , web templates…etc…) in the production compared to the development system.  Now my requirement is to find out the all the BW objects in the production that having different status than development.  So that I can make corresponding changes in the development system as well in order to sync dev and production systems.
    1.     Is there any tool/transaction is available by which I can retrieve the list of the BW objects and may be delta changes between dev and prd systems.
    2.      Or any standard process exists to sync the both versions.
    Any help to this will be highly appreciated.
    Thanks in advance.
    Regards
    Harsh.

    Hi Harsh,
    For the Transfer rules/update rules you can do a remote compare of the Generated Program which would give you an idea whether they are in sync or not. Likewise you can do remote compare of the User exit fn module.
    Bye
    Dinesh

  • ONE BI publisher for DEV and Production

    Hi,
    is there anyway I can setup ONE BI publisher for both the dev and production environment. the dev and production are in
    separate boxes? the reason I need to do this is that oracle charges licenses fees for the development as well.
    Thanks,
    Odeh

    Hi,
    Iis technically possible to have two different databases pointing at BI Publisher, but you want to make sure the users can access the correct reports. But what I would say is that it isn't a particular good way to have your environments setup. The point of having a dev and a prod environment is to ensure that things are tested and proof of concept can be carried out without affecting the live systems. I would suggest that the separate licenses is worth the cost from my own personal experience, otherwise you risk having a live environment that is quite unstable.
    Suzanne

  • Strange problem in converting between XML to string and vice versa

    i have an application that needs to send an XML document
    over the wire. For this reason, I need to convert the
    doc into a String at the sending side and back to Doc
    at the receiving side. This document is stored in a "CLOB"
    column in a table in the database. I use XDK to retrieve
    this entire row (including the CLOB - hence this is an XML
    document which has a column that itself is an xml document in
    string format - this is just the clob read in by XDK).
    Thus the row looks like
    <ROWSET>
    <ROW>
    <col1> A <col1>
    <CLOB_COL> ..clob value of an xml doc..</CLOB_COL>
    </ROW>
    </ROWSET>
    When I convert this document into String and back, one of the "<"
    tags in the clob column document gets changed to "&lt;" and hence
    the parsing fails! I have used the latest label of the XDK build
    to get the latest parser jar but still i have the same problem.
    I am using the following routines for the conversion.
    /* for converting document to string */
    public static String convertToString(XMLDocument xml) throws
    IOException
    StringWriter sw = new StringWriter();
    PrintWriter pw = new PrintWriter(sw);
    xml.print(pw);
    String result = sw.toString();
    return result;
    /* for converting string to document */
    public static XMLDocument convertToXml(String xmlStr)
    throws
    IOException,SAXException
    ByteArrayInputStream inStream = new
    ByteArrayInputStream(xmlStr.getBytes());
    DOMParser parser = new DOMParser();
    parser.setPreserveWhitespace(false);
    parser.parse(inStream);
    return parser.getDocument();

    How do you get the XML document? Do you use XSU? You can use:
    String str = qry.getXMLString();
    to get the result XML document in String.
    XSU will escape all of the < and >. Or the the XML document in
    one of the column will make the result XML doc not well-formed.
    Not quite understand your problem. You can send me your test
    case.
    i have an application that needs to send an XML document
    over the wire. For this reason, I need to convert the
    doc into a String at the sending side and back to Doc
    at the receiving side. This document is stored in a "CLOB"
    column in a table in the database. I use XDK to retrieve
    this entire row (including the CLOB - hence this is an XML
    document which has a column that itself is an xml document in
    string format - this is just the clob read in by XDK).
    Thus the row looks like
    <ROWSET>
    <ROW>
    <col1> A <col1>
    <CLOB_COL> ..clob value of an xml doc..</CLOB_COL>
    </ROW>
    </ROWSET>
    When I convert this document into String and back, one of the "<"
    tags in the clob column document gets changed to "<" and hence
    the parsing fails! I have used the latest label of the XDK build
    to get the latest parser jar but still i have the same problem.
    I am using the following routines for the conversion.
    /* for converting document to string */
    public static String convertToString(XMLDocument xml) throws
    IOException
    StringWriter sw = new StringWriter();
    PrintWriter pw = new PrintWriter(sw);
    xml.print(pw);
    String result = sw.toString();
    return result;
    /* for converting string to document */
    public static XMLDocument convertToXml(String xmlStr)
    throws
    IOException,SAXException
    ByteArrayInputStream inStream = new
    ByteArrayInputStream(xmlStr.getBytes());
    DOMParser parser = new DOMParser();
    parser.setPreserveWhitespace(false);
    parser.parse(inStream);
    return parser.getDocument();

  • How to get the ascii value of characters and numbers

    Hi,
    Can someone please tell me weater there is an inbuild function in java to get the ascii values....Suppose I want to know the ascii value of a which is 63...then how do i do it...Like if it is c or c++ we can use "toascii" function...
    Please help me with an answer...
    Thanks
    Rahul

    Thanks....This solves my problem at present as I have to do validations using ascii values.
    regards
    rahul

  • Org.structure differs on dev and production

    Hi,
    I'm developing a workflow and in one of the steps (activity step), I assign agent using organizational structure (position from HR). The problem is, that the org.structure differs on dev system and on production system. Mainly the IDs of position posts differ. How to solve this? Thanks in advance.
    Best regards,
    Tomas

    >
    Tomas Linhart wrote:
    > thanks for answer, I guess that's the best way of handling such situation. I'm going to creat custom table holding position used in workflow mapped to real position ID from org.structure. Or more generally, holding WF post mapped to org.structure type (position, job, ...) with corresponding ID in org.
    I don't see why you need a custom table?
    The org issues aside, all that is needed is to assign your org unit to the task. Then leave the agent assignment blank in your WF. Job done.
    The other option is to create a dummy rule, which you thought was to be avoided. I don't agree, it takes 5 minutes, less effort than a table, less non-standard stuff ==> less explaining to people how to maintain & easier to troubleshoot.
    Edit: Forgot to answer your other question
    > I'm not sure if you consider org. replication the same as transport of org. I was thinking of transport myself, just didn't know the way how to. I've found transaction RE_RHMOVE30 (also acessible from customizing), that should do that, but am not sure, if that's the right one and/or what options to select when transporting. Also, I'm not sure if this would ensure the position/job IDs are the same on both systems.
    Replication would be carried out via transports. The RHMOVE* reports can also be used, or you could even set up an ALE connection between DEV and PRD. However I still would not recommend it. The development system is where you would need to create test users and/or org units. The other alternative is to have a master data client. All of these are a great deal of work which only make sense in certain types of environments - certainly not for the sake of a workflow.
    Edited by: Mike Pokraka on Sep 27, 2009 9:52 PM

  • How to populate SNDPRN with different values in Development and Production?

    Hello experts,
    I have to fill the field SNDPRN in the message mapping with a different value in Development and in Production. As I am new to PI, I used a simple solution - but it is rather ugly: I set a constant value in the mapping in development and a different one in Production. However, I would like to know if there is any solution to have a condition in the mapping like:
    IF system is Development, set SNDPRN as Constant1.
    IF system is Production, set SNDPRN as Constant2.
    (And eventually IF system is Test, set SNDPRN as Constant3)
    Thanks in advance for your help,
    Luis

    Hi Luis,
          You can go with the parameterized mapping , where you can provide different values for SNDPRN in interface determination for development and production.
          At point of time if you want to change the values it requires only a change in the configuration.
          Please refer the below links for reference;
    Parameterized Mapping Programs - Enterprise Services Repository - SAP Library
    http://scn.sap.com/people/jin.shin/blog/2008/02/14/sap-pi-71-mapping-enhancements-series-parameterized-message-mappings
         We are following the same approach for some of our interfaces.
    - Muru

  • Best methodology to have dev and production?

    HTML DB users-
    A customer asks what are some of the better methodologies to have a development and production environment with HTML DB? They are used to having controlled releases of new features and fixes into the production environment and want to do that as well with HTML DB.
    We would like your thoughts...
    The customers exact question:
    Our thinking is that we develop in a development workspace and app and then migrate via export and import to a production workspace and app.
    What we have encountered is several issues:
    1) After the workspaces have been set up the user can only point to one at a time.
    2) We get integrity violations in the export an import.
    Is there a better methodology/solution?
    You help is greatly appreciated.
    Cheers,
    -david

    david,
    Different options for separating production from development environment are discussed in this best practices whitepaper:
    http://www.oracle.com/technology/products/database/htmldb/pdf/Oracle_HTML_DB_Best_Practices.pdf
    Do you have more details on the two issues that were raised about the current approach:
    1) After the workspaces have been set up the user can only point to one at a time.
    2) We get integrity violations in the export an import.
    Why can the user only point to one at a time? What does that mean? Can you describe the steps used to export and import and show as error messages?
    Sergio

  • Connection string in dev and production

    I have a several servers that i want to pull data from.
    I put the connection string in a OBJECT variable that come from configuration table and use it in the for loop mapping the value to local variable called connectionstring, this variable is the expression for the connection string property.
    So far everything is working as expected.
    my problem is that on my development i put my local server in the connection string variable so i will be able to connect to the server so i will be able to map source to destination.
    When i deploy the solution to production the data in the configuration table is different obviously but i get a connection error that saying that it try to connect to my dev server.
    Any idea why?
    Thanks.

    Seems like you haven't configured your package properly 
    Here are some important consideration for SQL Server Configuration 
    Now, let’s go through some important considerations that will help you to understand this configuration type better, and to avoid common implementation issues:
    SQL Server configurations are very flexible, as you can store multiple configuration properties/values in the same table.
    Multiple packages can use the same configuration table and filter.
    You can have a configuration filter for each entry in the configuration table, or you can use the same filter to group a set of entries. If you use the second approach, make sure that all properties under the selected filter exist in the package
    being configured. Otherwise warning messages are generated for those properties in the configuration filter that do not exist in the target package.
    You can use existing database security and backup policies to protect the configuration table contents.
    A drawback of this configuration type is that it relies on an SSIS connection manager to get access to the configuration table, but does not have built-in support for updating its connection string. In other words, the connection string that points
    to the configuration table is hard-coded inside of the package, and you have to take extra steps in order to update it (for example, through an extra package configuration placed at the top of the Package Configurations Organizer, or in SQL Server 2008, by
    using the /CONN option of DTExec).
    The /CONN option of DTExec utility can be used to override the connection string used by the configuration only in SSIS 2008. This is because SQL Server 2008 Integration Services reloads configurations after applying DTExec command line options.
    The configuration wizard can create the table and insert the required rows when they do not exist, but only if the direct method is chosen. The wizard never includes any sensitive data in the ConfiguredValue column of the table, and you would need
    to manually update the table to add the required sensitive data.
    If you use the direct method, and provide an existing configuration filter, the wizard will prompt you to either reuse the configuration information in the table or to override it with the property values from the current package. Make sure that
    you understand this behavior, since choosing the wrong option could change the contents of the configuration table and produce unexpected execution results.
    When you use the indirect method, the environment variable must contain the name of the configuration connection manager, the name of the configuration table and the configuration filter. The syntax should be:
    “ConfigurationManagerName”;”Schema.ConfigurationTableName”;’ConfigurationFilter”
    As with the direct method, you have to account for extra logic if you need to modify the connection string inside of “ConfigurationManagerName”

  • Execute SQL Tasks Failing for Duplicate Syntax Between DEV and Production DB

    Newbie here...be patient with me!
    I added tasks to refresh two tables (delete from, insert into, update) to an SSIS project . I have them running from the WinXP scheduler. The issue:
    In dev the tasks integrate and execute successfully from scheduler
    In prod I can right click and execute each of the three tasks without any problem, but the same tasks cause my project to fail when executed from scheduler
    Questions:
    Any ideas about what I am failing to see?
    How do I get a meaningful log messages from the tasks that are failing?
    Thanks for your ideas...
    Installed Edition: IDE Standard
    SQL Server Analysis Services  
    Microsoft SQL Server Analysis Services Designer
    Version 9.00.1399.00
    SQL Server Integration Services  
    Microsoft SQL Server Integration Services Designer
    Version 9.00.1399.00
    SQL Server Reporting Services  
    Microsoft SQL Server Reporting Services Designers
    Version 9.00.1399.00
    Microsoft Visual Studio 2005
    Version 8.0.50727.42  (RTM.050727-4200)
    Microsoft .NET Framework
    Version 2.0.50727
    Installed Edition: IDE Standard
    SQL Server Analysis Services  
    Microsoft SQL Server Analysis Services Designer
    Version 9.00.1399.00
    SQL Server Integration Services  
    Microsoft SQL Server Integration Services Designer
    Version 9.00.1399.00
    SQL Server Reporting Services  
    Microsoft SQL Server Reporting Services Designers
    Version 9.00.1399.00

    Newbie here...be patient with me!
    I added tasks to refresh two tables (delete from, insert into, update) to an SSIS project . I have them running from the WinXP scheduler. The issue:
    In dev the tasks integrate and execute successfully from scheduler
    In prod I can right click and execute each of the three tasks without any problem, but the same tasks cause my project to fail when executed from scheduler
    Questions:
    Any ideas about what I am failing to see?
    How do I get a meaningful log messages from the tasks that are failing?
    If i understand correctly you are trying to run SSIS package from Window XP task scheduler.  The reason for the failure may be due to permission while accessing resources required in the package. However it is difficult to suggest without
    looking at the error message.
    Scheduled tasks maintains a log file (Schedlgu.txt), in the c:\Windows folder. You can view the log from the Scheduled Tasks window by clicking
    View Log on the Advanced menu.
    The log file size is 32 kilobytes (KB), and when the file reaches its maximum size, it automatically starts to record new information at the beginning of the log file and writes over the old log file information.
    Refer http://support.microsoft.com/kb/308558
    http://msdn.microsoft.com/en-us/library/windows/desktop/aa383604(v=vs.85).aspx
    Regards, RSingh

  • Protal in DEV and Production

    I am a little confused. I want to be able to develop prolets in DEV (development) database
    and then deploy it to production. Is there an easy way to accomplish this.
    Thanks
    null

    Thanks for the tip. Does this mean that I have to install the heavy duty repository on Production as well as Development machine. Seems to me a big overhead. If only I could connect to the production repository to retrieve the data at runtime. Has anyone run into this issue or am I the only one ??.
    I was hoping that it would run somewhat like Oracle Designer Product. Can somebody from Oracle confirm this
    Thanks
    null

  • Problems Transporting SAPQUERY INFOSET (Global) From DEV to Production

    I made modifications to an INFOSET using SQ01. I trapped the modifications in a transport. The modifications transported successfully to our Quality Assurance (Q/A) environment. When we move the transport to our Pre-Production environment the transport logs state it migratwed successfully, but the modifications are not present. Pre-Prod security mirrors our production environment, therefore I'm unable to "adjust" the infoset or generate it. That constitutes making changes which I'm not allowd to do in production.
    Is there an established method to transport a global infoset from a test environment to production?

    You can set the object changability flags to allow you to make mods to either of three major components of process chains:
    1.  Process chain - lets you change the chain
    2.  Process starter - lets you change the start process
    3.  Process variant - lets you change process variants
    Go to the admin workbench and select transport.  Find the changability options in the upper right portion of the screen and set the process starter to everything changeable.  Leave the other set to changable original or set to no changes to lock that portion down.
    That should get you around your current issue. 
    As an added check, us table RSPCCHAIN to figure out if the whole chain is ready and active for migrating.  Plug in the chain technical name and set the version to A and if the number of entries matches the number of processes all processes are active and ready to be migrated.

  • Report working in different ways in BI Dev and  BI production

    Hi Expert,
    I have created a Report in which i am giving input to the variable(Date input) and using this i am displaying all the values that is till the date that i entered, and it is working fine in BI dev, but in BI production it is showing only data that is equal to supplied date only.
    Although i had checked all the restrictions and variables are as it is transported.
    if you have an idea please share your knowledge please...
    Regards
    Prakash

    Hi,
    Are you using this date variable in the global filter or in any of the local KFs?
    Are you using the operand 'less than or equal to' for getting all the values less than or equal to this date?
    Is this operand same in both the systems?
    Is there data in production prior to the date range that you have entered?
    Can you check the information on the report output to find out what value is captured in this date variable?
    What is the last changed date of the queries in dev and Production?
    I hope any of the above should give a clue to solve your issue.
    Thanks.

  • How to find as ascii value for a string or char in unicode system?

    Hello,
    How to find an ascii value for a string or char in unicode system?
    Thanks in Advance

    hi ,
    report demtest.
    data : c.
    field-symbols : <n> type x.
    data : rn type i.
    c = 'A'.
    assign c to <n> casting.
    move <n> to rn.
    write rn.
    This will convert 'A' to 65.
    Tom Demuyt
    How to convert ascii value to character.
    If I give input as 65 (ascill value) I want display 'A'.
    Below logic is for convert from character to ascii value , now I want to know how to convert ascii value to character.
    Naveen
    report demtest.
    *going from A to 65
    data : c value 'A'.
    field-symbols : <n> type x.
    data : rn type i.
    assign c to <n> casting.
    move <n> to rn.
    write rn.
    *going from 66 to B
    data : i type i value 66.
    data : x type x.
    field-symbols : <fc> type c.
    move i to x.
    assign x to <fc> casting type c.
    move <fc> to c.
    write c.
    regards,
    venkat.

Maybe you are looking for