Request.getParameter(): special character handling problem

Hello, there:
This should be an easy question for the gurus in here.
I use a string attached to the url as the parameter string, which includes spaces. the system automatically converts them to %20, but when I receive them in my servlet using request.getParameter, a special character, Â appears; I couldn't proceed with it.
I suppose this is a common problem but seems that I didn't find topics about it on this forum.
So anyone can help? Any encoder/decoder APIs to handle it?
Thanks a lot,
Sway

hi,
escape can solve ur problem
use js function to submit form like
function subForm()
var any_spcl_value ="kdfhjdf$%@#$% 2FGSFG @%@#%@# V";
mainForm.action = "index.jsp?value="+ escape(any_spcl_value);
mainForm.submit();
and use request.getParameter("value");
u ll get kdfhjdf$%@#$% 2FGSFG @%@#%@# V as it is.
AE

Similar Messages

  • Special character handling in XI

    Hi,
    I have a scenario wherein edifact files are passed through XI to partners .
    The edifact input file contains special characters like ô which gets converted to Ã.This is causing the despatch advice to fail at the receiver end.
    Can anyone suggest how such characters should be handled in XI ?
    Thanks in advance.

    You can use localejbs/Seeburger/CharsetConversion bean as well. And in the module config table, add teh following parameters
    sourceEnc = UTF-8
    targetEnc = ISO-8859-1(or what ever target encoding you want).
    This is with the assumption that the data is going from SAP to a local(EDI)system via XI.
    Use localejbs/CallBicXIRaBean after the character conversion in the Processing sequence.
    cheers
    danus
    Edited by: Chidambaram Danus on May 8, 2008 3:27 PM

  • Special Character Handling (&) in the payload content in PI 7.1

    Hello All,
    My Scenario is Idoc to File. I need to handle some special characters like "&" in  XML payload content in PI 7.1. I am receiving & character in the text field.
    eg:
    <RECORD>
       <BEGDA>20100901</BEGDA>
       <STAT1>A</STAT1>
       <NAME1>Grandview&MO CLMR</NAME1> 
      <PERL_SUB_AREA>0005</PERL_SUB_AREA>
    </RECORD>
    I created java mapping by using the blog: http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9420. [original link is broken] [original link is broken] [original link is broken]
    "The code used in java mapping is converting & into &amp"
    Mapping is working fine in the test tab of Operation mapping and the message is successfully handling the record with & character(message with Chequered Flag).In the result tree view,it is showing 
    <PERL_TEXT>Grandview&MO CLMR</PERL_TEXT
    and in the source XML view
    <PERL_TEXT>"Grandview&ampMO CLMR"</PERL_TEXT>
    Issue:
    Now the record is written as
    <RECORD>
      <CUST_STATUS>A</CUST_STATUS>
      <COMPANY>1050</COMPANY>
      <PERL_AREA>1MOB</PERL_AREA>
      <PERL_TEXT>"Grandview&ampMO CLMR"</PERL_TEXT>
      <PERL_SUB_AREA>0005</PERL_SUB_AREA>
    </RECORD>
    Since & is coming as part of text, "it is converting & -> &amp" in the text field and the record is written in the file as
    "A|1050|1MOB|Grandview&ampMO  CLMR|0005 ....."
    While it should come as:
    A|1050|1MOB|Grandview&MO  CLMR|0005 .....
    Java mapping code used is as:
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.Map;
    import com.sap.aii.mapping.api.StreamTransformation;
    public class HandleAmpersand implements StreamTransformation {
         public void setParameter (Map param) { }
         public void execute (InputStream in, OutputStream out) {
              try {
                   int read_data;
                        while ((read_data = in.read() ) != -1) {
                             if (read_data != '&') {
                                  out.write(read_data);
                             } else {                         
                             out.write("&amp;".getBytes());
                        out.flush();
         } catch (Exception e) {  }
    Also, i am using message mapping after java mapping in operation mapping
    Please guide me where it is going wrong.
    Thanks
    Shikha Jain
    Edited by: Jain Shikha on Jan 5, 2011 4:42 AM

    Hi Jain Shikha,
    I have faced similar issue in our production system.
    Our issue:-
    Sender system is sending :- DEKOR " OBS!
    Other middleware is converting it and sending to SAP PI as :- DEKOR &amp ;quot; OBS!
    Because of this, there is increase in size from 12 characters to 21 characters. We were getting error as the target side ABAP table has column width 15.
    Our solution:- Wrote a java mapping to convert &amp;quot; to u201C
    if (strContent.contains("&")) {
                        getTrace().addInfo("& is present");
                        strContent = strContent.replaceAll("&amp ;", "&");
                        strContent = strContent.replaceAll("&quot ;", "\"");
                        strContent = strContent.replaceAll("&apos ;", "\'");
                        strContent = strContent.replaceAll("&amp ;", "&");
                        strContent = strContent.replaceAll("&lt ;", "<");
                        strContent = strContent.replaceAll("&gt ;", ">");
    Note: - quote ("), apostrophe ('), ampersand (&), less than (<), greater than (>) are special characters in XML. They should not be present in data. http://www.w3.org/TR/REC-xml/
    Not Well formed XML:
    <Name>Raghuu2019s</Name>   <Name> Raghu & Vamsee </Name>
    Well formed XML:
    <Name>Raghu&apos;s</Name>   <Name>Raghu &amp; Vamsee</Name>
    Graphical mapping, XSLT, DOM, SAX need well formed XML as input, otherwise they give parser exception.
    Your solution:-
    I understand you are using a graphical mapping. Follow below steps
    Step 1: Convert u201CNot Well formed XMLu201D to u201CWell formed XMLu201D, using java mapping (which your doing already).
    Step 2: Use Graphical mapping for your transformation logic.
    Step 3: Again convert back u201CWell formed XMLu201D to u201CNot Well formed XMLu201D (As this what target system is expecting. Use below java mapping.
    Regards ,
    Raghu
    Edited by: Raghu Vamsee on Jan 6, 2011 1:45 PM
    Edited by: Raghu Vamsee on Jan 6, 2011 1:59 PM

  • XML special character/encoding problem

    Hi
    I would like to store XML in a MSSQL database into a column with the datatype xml.
    It seems like the xml datatype in an xMII transaction allways is stored with encoding type UTF-8
    and the MSSQL xml datatype is UTF-16. This gives me some problem with special characters when inserting into the MSSQL database (in the example below is the MSSQL datatype xml):
    INSERT INTO
         VALUES
    The error returned is this:
    "com.microsoft.sqlserver.jdbc.SQLServerException: XML parsing: line 1, character 62, illegal xml character"
    If I replace the 'ä' with a normal 'a' the command executes ok.
    I am currently using a workaround that looks like this, when setting the parameter in my transaction:
    stringreplace(Local.test, " encoding=" & doublequote & "UTF-8" & doublequote, "")
    But I was hoping I could get rid of the stringreplace.
    Is there a solution / recommended way of doing this?
    Best Regards
    Simon Bruun
    Edited by: Simon Bruun on Mar 4, 2011 10:43 AM

    I solved this. I convert to Unicode UTF-8

  • Request.getparameter with same name problem

    hi all ,
    can u please help me,
    my code ->
    <form>
    <input type= "hidden" name= "mid" id = "mid" value = "search" />
    </form>
    and m redirecting this jsp to another with url
    showDetails.jsp?mid="hello";
    String str[] = request.getParameterValues("mid");
    this str contains only hidden parameter value ie. search
    but i also want value appended to url
    can u please tell me how thats possible ?
    i don't want to use request.queryString() that is not a good answer.
    please tell me

    If you want to assign multiple parameter values to the same parameter name in a query string, you need the array notation. E.g. foo.jsp?name[]=value1&name[]=value2

  • & special character problem with parseXML() and parseEscapedXML().

    Hi,
    I'm having a problem to parse messages that has '&' character. According to metalink note 1340195.1 I tried to use parseXML instead of parseEscapedXML, still had same problem. Then added the following scope that replaces "&" with "& a m p ; a m p" (without spaces). Tried to use the java code as mentioned in the metalink note...
        <scope name="Replace_spec_char_scope">
          <faultHandlers>
            <catchAll>
              <sequence name="Error_Sequence_9_spec_char">
                <assign name="Assign_Error_Message_9">
                  <copy>
                    <from expression="ora:getInstanceId()"/>
                    <to variable="Error_Handler_Invoke_initiate_InputVariable"
                        part="payload"
                        query="/ns8:ErrorHandlerProcessRequest/ns8:instanceId"/>
                  </copy>
                  <copy>
                    <from expression="string('XXOGL.B106.001')"/>
                    <to variable="Error_Handler_Invoke_initiate_InputVariable"
                        part="payload"
                        query="/ns8:ErrorHandlerProcessRequest/ns8:errorCode"/>
                  </copy>
                  <copy>
                    <from expression="ora:getProcessId()"/>
                    <to variable="Error_Handler_Invoke_initiate_InputVariable"
                        part="payload"
                        query="/ns8:ErrorHandlerProcessRequest/ns8:process"/>
                  </copy>
                  <copy>
                    <from expression="string('Receive_Kund')"/>
                    <to variable="Error_Handler_Invoke_initiate_InputVariable"
                        part="payload"
                        query="/ns8:ErrorHandlerProcessRequest/ns8:activity"/>
                  </copy>
                  <copy>
                    <from expression="ora:getFaultAsString()"/>
                    <to variable="Error_Handler_Invoke_initiate_InputVariable"
                        part="payload"
                        query="/ns8:ErrorHandlerProcessRequest/ns8:errorPayload"/>
                  </copy>
                  <copy>
                    <from expression="bpws:getVariableData('Receive_Kund_Dequeue_InputVariable','Message','/ns6:Message/Kund')"/>
                    <to variable="Error_Handler_Invoke_initiate_InputVariable"
                        part="payload"
                        query="/ns8:ErrorHandlerProcessRequest/ns8:inputPayload"/>
                  </copy>
                </assign>
                <bpelx:exec name="Log_Error_9" language="java" version="1.5">
                  <![CDATA[OGLLogger logger = new OGLLogger("B106.bpel");                    
    try{                      
        Element errorDetails= (Element)getVariableData("Error_Handler_Invoke_initiate_InputVariable","payload","/ns8:ErrorHandlerProcessRequest/ns8:errorPayload");             
        logger.error("XXOGL.B106.001","InstanceID: "+getInstanceId()+" Error details: "+errorDetails.getFirstChild().getNodeValue());            
    }catch(BPELFault e){            
        addAuditTrailEntry(e);            
        logger.fatal("Failed to log error details for message XXOGL.B106.001",e);      
    }]]>
                </bpelx:exec>
                <terminate name="Terminate_1"/>
              </sequence>
            </catchAll>
          </faultHandlers>
          <bpelx:exec name="Replace_spec_char" language="java" version="1.5">
            <![CDATA[java.lang.String temp = (String) getVariableData("Receive_Kund_Dequeue_InputVariable");
          OGLLogger logger = new OGLLogger("B106.bpel");
    try{
    temp = temp.replaceAll("&", "&amp;amp");
    setVariableData("Receive_Kund_Dequeue_InputVariable", temp);
    }catch(BPELFault e){             
        addAuditTrailEntry(e);             
        logger.fatal("Failed to replace special character ",e);       
    }]]>
          </bpelx:exec>
        </scope>Now getting this error.
    <scope name="Replace_spec_char_scope">
    Replace_spec_char(faulted)
    [2012/05/18 11:16:28] "{http://schemas.oracle.com/bpel/extension}runtimeFault" has been thrown. less
    -<runtimeFault xmlns="http://schemas.oracle.com/bpel/extension">
    -<part name="code">
    <code>java.lang.ClassCastException
    </code>
    </part>
    -<part name="summary">
    <summary>com.collaxa.cube.engine.types.bpel.CXMessageVariable
    </summary>
    </part>
    -<part name="detail">
    <detail>
    java.lang.ClassCastException: com.collaxa.cube.engine.types.bpel.CXMessageVariable
         at bpel.xxogl_b106_kundinterface.ExecLetBxExe5.execute(ExecLetBxExe5.java:197)
         at com.collaxa.cube.engine.ext.wmp.BPELXExecWMP.__executeStatements(BPELXExecWMP.java:50)
         at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:200)
         at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:4174)
         at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1680)
         at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:238)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:335)
         at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:6285)
         at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:1111)
         at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:650)
         at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:381)
         at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
         at com.evermind.server.ThreadState.runAs(ThreadState.java:705)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at CubeDeliveryBean_LocalProxy_4bin6i8.handleInvoke(Unknown Source)
         at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:148)
         at com.collaxa.cube.engine.dispatch.BaseDispatchTask.run(BaseDispatchTask.java:58)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:595)
    </detail>
    </part>
    </runtimeFault>
    <catchAll>
    <sequence>
    Assign_Error_Message_9
    [2012/05/18 11:16:28] Updated variable "Error_Handler_Invoke_initiate_InputVariable" More...
    [2012/05/18 11:16:28] Updated variable "Error_Handler_Invoke_initiate_InputVariable" More...
    [2012/05/18 11:16:28] Updated variable "Error_Handler_Invoke_initiate_InputVariable" More...
    [2012/05/18 11:16:28] Updated variable "Error_Handler_Invoke_initiate_InputVariable" More...
    [2012/05/18 11:16:28] Updated variable "Error_Handler_Invoke_initiate_InputVariable" More...
    [2012/05/18 11:16:28] Updated variable "Error_Handler_Invoke_initiate_InputVariable" More...
    Log_Error_9
    [2012/05/18 11:16:28] bpelx:exec executed
    Terminate_1
    [2012/05/18 11:16:28] Instance terminated. Don't really understand what's wrong... Am I doing it incorrectly? Can anybody pls help!!
    Thanks in advance.
    Lisan

    Try to use parameters instead hardcoding values in the queries:
    select * from user where lower(username)=?;
    and don't forget to lower the value from java side as well ;-)

  • How to handle special character in SAP CRM

    Hi all,
    I am facing a problem on SAP CRM Web UI - Contact Creation - When a special character is inserted on address fields of Business
    Partner (e.g. ` ~ ^ etc.), the interface does not understand this character and changes it to a TRIANGLE on pressing enter key.
    Kindly guide as how to handle it or something is missing in terms of (note or patch).
    I am running on SAP CRM 7.0
    Thanks,
    Pradeep Singh Dhadwal

    Hi Pradeep.
    At the end of the day, a character is stored as a byte sequence on disk, and a code page defines the mapping between the byte sequence and any given character.The code page determines what character you can see and enter, therefore different code pages map different characters to the same byte sequence.
    I suggest you to first check if your system is a Unicode system by checking the System menu->Status option->Unicode system field. I'll assume it is.
    Then, please run report RSCP0018 (optionally also RSCPINST and then select Current NLS config pushbutton).
    These reports will show you the actual configuration of languages and code pages of your Application Server. Please check that the correct languages and code pages are configured. If you need to know more about code pages configuration, please check Note 42305, which explains pretty well the whole process.
    Kind regards, and good luck.
    Federico

  • Request.getParameter problem

    Did any one faced the problem please provide me a solution I am converting a project to WebSphere. using J2EE jsp 1.1 from NAS,jsp 0.92
    I have a jsp page and I am submitting the form:
    Test.jsp
    <body>
    <form name="frm" method="post" action="TestServlet">
    <INPUT type="CHECKBOX" name="CKBXVCH23" value="A" checked>A
    <INPUT type="CHECKBOX" name="CKBXVCH23" value="B" checked>B
    <INPUT type="CHECKBOX" name="CKBXVCH23" value="C" checked>C
    </form>
    </body>
    TestServlet:
    when i do String str=request.getParameter("CKBXVCH23")
    I am getting only str="A"
    It suppose to give str=A;B;C because I have selected all the three items Its working fine in iPlanet, jsp 0.92
    can anyone know whats the diffenrece.???
    Thanks
    zakir hussain

    If you change the post to a get so you can see what is passed to the servlet you'll see the following parameters are passed:
    CKBXVCH23=A&CKBXVCH23=B&CKBXVCH23=C
    You need to use the
    public java.lang.String[] getParameterValues(java.lang.String name)
    mehod to get an array of all the values associated with "CKBXVCH23"

  • Xml publisher reprot - special character problem

    I invoice report through xml publisher. I have '&' special character in vendor list. I am getting below error
    A semi colon character was expected. Error processing resource.
    Below is the code
    CREATE OR REPLACE PACKAGE BODY XML_RPT AS
        FUNCTION XML_TAG (p_tag IN VARCHAR2, p_data IN VARCHAR2) RETURN VARCHAR2 IS
        l_ret_str VARCHAR2(5000);
        BEGIN
            l_ret_str := '<'||p_tag||'>'||p_data||'</'||p_tag||'>';
            RETURN l_ret_str;
        END XML_TAG;
         PROCEDURE VENDOR(errbuf          OUT  VARCHAR2,
                         retcode         OUT  NUMBER) IS
        CURSOR inv_Cur  IS
            select pv.vendor_name          
            from po_vendors pv;        
         xmldata            varchar2(1000);
         l_sqlstr           varchar2(1000);
         l_seqnum           varchar2(3);
         l_vendor_name      varchar2(100);
        BEGIN
          xmldata := '<?xml version="1.0" encoding="UTF-8"?>';     
          xmldata :=xmldata|| '<VENDOR>';
          xmldata := xmldata||' <LIST_VENDOR>';
          fnd_file.put_line(fnd_file.output,xmldata);    
          FOR rpt_rec IN inv_Cur LOOP
              xmldata := '<VENDOR_REC>';
              l_vendor_name := replace(rpt_rec.VENDOR_NAME,'&','&amp');         
              xmldata := xmldata || XXMCG_XML_TAG('VENDOR_NAME',L_VENDOR_NAME);
              xmldata :=xmldata|| '</VENDOR_REC>';
              fnd_file.put_line(fnd_file.output,xmldata);
          END LOOP;
          xmldata := '</LIST_VENDOR>';
          xmldata := xmldata||'</VENDOR>';
         fnd_file.put_line(fnd_file.output,xmldata);
        EXCEPTION
        WHEN OTHERS THEN
             fnd_file.put_line(fnd_file.log,substr(SQLERRM,1,500));
        END VENDOR;
    END XML_RPT;can any one advice.

    Duplicate post ? xml publisher report problem
    Srini

  • Problem with special Character & in Proxy

    Hi,
    We have a File --> XI --> R/3 Scenario. In this scenario, from XI we are passing the data to R/3 by calling the Proxy. When the data in the file has special character like & (for example <Companyname>Dave&Busters</Companyname>), it is failing in R/3. But if I replace "&" with "&amp;" in the file it works fine. Is there any solution to this problem without writting custom code in XI to replace & with &amp;.
    Thanks
    Sudheer

    >But if I replace "&" with "&" in
    > the file it works fine. Is there any solution to this
    > problem without writting custom code in XI to replace
    > & with &.
    No. If the sender of the message provides an XML format with an unescaped &, then the XML is not valid and therefore cannot be processed.
    All adapters (IDOC, RFC, File with content conversion) perform the escaping and deescaping.
    Regards
    Stefan

  • Handle special character in mapping

    Hi Experts,
    I have requirement to handle special character in mapping.
    ö this tiny special charcter comes in I/O file and we cant avoid.
    Refering the given blog:  http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9420 [original link is broken]
    FILE --- XI --- FILE where Source and target structures are same, using 1:1 mapping with FCC at both the side..
    Input/Output files consist of special charcters ö due to which getting error in mapping.
    Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0x13(:main:, row:8237, col:22) com.sap.aii.utilxi.misc.api.BaseRuntimeException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0x13(:main:, row:8237, col:22) at com.sap.aii.mappingtool.tf3.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:157) at com.sap.aii.mappingtool.tf3.rt.xparser.XParser.run(XParser.java:73) at java.lang.Thread.run(Thread.java(Compiled Code))
    Do we required Java mapping? Is there any other way to acheive wtihout using Java mapping?
    How can we hadle in mapping?
    Sameer

    ö this tiny special charcter comes in I/O file and we cant avoid.
    Refering the given blog:  http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9420 [original link is broken]
    What has an ö to do with an ampersand?
    Assign the correct encoding to the file adapter channel.

  • ALV Excel Download problem ( Special Character)

    Hi,
    I am unable to download completely in XLS format from ALV grid. When i tried in couple of ways there is a special character( " ) in one of the filed. Due to the same Excel download has some problem. I tested by removing those and it worked fine, 
    Please suggest me to solve the issue.
    Thanks,
    Bhanu Gattu,

    Data strings with special characters can not be downloaded into XLS format from ALV grid. In my case, I replaced the special character " with space and I could download the data into excel.

  • Problem about printing special character in bex query analyzer

    Hi,
    in bex query analyzer i have created one restricted key figure , in which i have substracted two date with the help of replacement path.
    So i got result.
    But i am facing one problem. when in both date, if one date is null or # then it is giving some big value like -734567.
    But i want some special character like X instead of this big values.
    So how can i do this?
    With the help of if and else it can be done.
    But how can we print special character in report.
    Please help me
    Thank you in advance

    hi,
    You cannot show X in a formula result. You can highlight the row using exception.
    Still if you want to show X in the result then you need to create a formula variable on a char which returns X value all the times.
    Then you can use the three formula variable to write a formula so that it shows the difference:
    date1 -- formula variable
    date2 -- formula variable
    charx -- formula variable.
    the formula will be
    Count(date1)Count(date2)(date1 - date2) + charx *(count (delta(date1) + delta(date2))).
    this would return the X value if any of the dates are empty otherwise their difference.
    regards.
    Arvind.

  • Problem in Smartform convert to PDF with special character

    Hi ABAP Guru,
    While convert smartforms to pdf.Some special character like ( - ) convert to ( # ).In development server there is no problem but the problem arise in quality.Please help

    Hi Palash,
                  Please use PDF! in print preview command field.. it will convert pdf file.
    regards,
           Thangam.P

  • Problem in dealing with special-character filename

    Hi,
    I am facing a weird problem while dealing with a file which has a special character in its name. That character is the big-hyphen, i.e. '–' (not the normal hyphen we can type from keyboard), you would have seen this character in MS Word.
    My java program is running on HP-UX OS, and its basically trying to copy this file to a Windows target system through socket. But while executing it, I am getting Broken Pipe Exception.
    I am applying UTF-8 encoding while running my program (by specifying the argument "-Dfile.encoding=UTF-8" in the java process), and I am also confirming that the file-encoding is being applied to UTF-8 properly by putting a debug in the beginning of the program. My understanding is UTF-8 supports all the characters exist in this world.
    Any suggestion / pointers would be really appreciated.
    Thanks,
    Rajiv

    Fine..... but is there any way to know which encoding has been applied on it ..
    Let's say if you create any file on unix-based system in any application, which encoding gets applied there by default ?
    This file is basically nothing but an html page created using 'Save As' from the browser.
    The person who has created the file is a non-technical .. and won't know much about this all stuff... encoding etc.

Maybe you are looking for