Remove comma in query output from Char used as KF

Hello Friends,
To be able to display a characteristic in a particular way I used formula variable and displayed it as Key Figure in the query output. By doing this I am getting the output in the required format, but only problem is that the value is being displayed with commas. As it is an order number, I want to display it without commas.
I don't want to use VB as the query is to be published in web also.
Please suggest if there is any way to achieve this.
Thanks in advance.
Praveen

Hey Praveen, there's a few ways to skin this cat. The simplest method is to make sure that the user parameters in SU3 don't have commas for numbers. The problem is that this is a global setting so you won't get commas for other numbers in which you may want commas. Also, you'd have to make sure your replacement variable was defined as type "number". The other options include using VBA in BEx, and/or Table Interface in the Web. If you are using BW 3.5, you can use XSLT to render a table with and not have commas for that value by using the XML Query Result Set Item. Hope that helps,
Prakash

Similar Messages

  • Anyway to supress the coulmn names in the query output from SQLPLUS

    Hi,
    I am using sqlplus to run a script which returns the results with column names.
    Is there anyway to omit the column names from the query output from sqlplus?
    I would like to have only results with out their column names in the output.
    Thanks in advance!!

    Hi,
    Maybe your LINES(IZE) isn't set ?
    SCOTT>set lines 130
    SCOTT>select status, machine, module
      2    from v$session
      3   where upper(username) = 'SCOTT';
    STATUS   MACHINE                                                          MODULE
    INACTIVE PFAE3\VPC4894-03                                                 TOAD 9.7.2.5
    ACTIVE   PFAE3\VPC4894-03                                                 SQL*Plus
    2 rows selected.
    SCOTT>As an alternative to setting linesize, you can format columns:
    SCOTT>set lines 80
    SCOTT>col status for a8
    SCOTT>col machine for a30
    SCOTT>col module for a30
    SCOTT>select status, machine, module
      2    from v$session
      3   where upper(username) = 'SCOTT';
    STATUS   MACHINE                        MODULE
    INACTIVE PFAE3\VPC4894-03               TOAD 9.7.2.5
    ACTIVE   PFAE3\VPC4894-03               SQL*Plus
    2 rows selected.
    SCOTT>Regards
    Peter

  • [svn:osmf:] 14178: PARB changes: Remove unload and query methods from PluginManager.

    Revision: 14178
    Revision: 14178
    Author:   [email protected]
    Date:     2010-02-15 21:35:12 -0800 (Mon, 15 Feb 2010)
    Log Message:
    PARB changes: Remove unload and query methods from PluginManager.  We lack compelling use cases for those methods, but can easily re-add them later if we come across some.
    Modified Paths:
        osmf/trunk/apps/samples/framework/DynamicStreamingSample/src/DynamicStreamingSample.mxml
        osmf/trunk/apps/samples/plugins/AkamaiPluginSample/src/AkamaiPluginSample.mxml
        osmf/trunk/apps/samples/plugins/CaptioningSample/src/CaptioningSample.mxml
        osmf/trunk/framework/OSMF/org/osmf/events/PluginManagerEvent.as
        osmf/trunk/framework/OSMF/org/osmf/plugin/PluginManager.as
        osmf/trunk/framework/OSMFIntegrationTest/org/osmf/plugin/TestPluginManagerIntegration.as
        osmf/trunk/framework/OSMFTest/org/osmf/plugin/TestPluginManager.as
        osmf/trunk/plugins/CaptioningPluginTest/src/CaptioningPluginTest.mxml

  • No output from executable using JNI

    Hi, Guys -
    New to JNI, have a question: I can get both my C and Java code to compile, a .dll to build, and the program to run, but I get no output. Execution seems to endl at the System.loadLibrary() call. I've tried to get it running in both cmd and cygwin windows without success.
    Any ideas?
    Thanks.
    ----- Environment/platform/makefile info ------
    Win2kPro
    Java 1.4.1
    DCTAgent.class: DCTAgent.java
         ${JAVA_DIR}/javac DCTAgent.java
         ${JAVA_DIR}/javah -jni -d ./include DCTAgent
    DCTAgentImp.dll: DCTAgentImp.c
         ${CC} -D__int64="long long" ${PCAP_INCLUDE} ${JAVA_INCLUDE} -mrtd -g -c DCTAgentImp.c
         ${CC} ${PCAP_INCLUDE} ${JAVA_INCLUDE} -shared -g -o DCTAgentImp.dll DCTAgentImp.o
    ----- Java code ------
    public class DCTAgent {
    public native void hello();
    private void helloWorld() {
    System.err.println("calling hello() native...");
    hello();
    System.err.println("... done!");
    static {    
    System.err.println("loading...");
    System.loadLibrary("DCTAgentImp");
    public static void main(String[] args) {       
    new DCTAgent().helloWorld();
    ----- C file ------
    #include <jni.h>
    #include "include/DCTAgent.h"
    #include <stdio.h>
    JNIEXPORT void JNICALL Java_DCTAgent_hello (JNIEnv *env, jobject obj) {
    printf("\nHello world!");
    return;
    ----- C header ------
    /* DO NOT EDIT THIS FILE - it is machine generated */
    #include <jni.h>
    /* Header for class DCTAgent */
    #ifndef IncludedDCTAgent
    #define IncludedDCTAgent
    #ifdef __cplusplus
    extern "C" {
    #endif
    * Class: DCTAgent
    * Method: hello
    * Signature: ()V
    JNIEXPORT void JNICALL Java_DCTAgent_hello
    (JNIEnv *, jobject);
    #ifdef __cplusplus
    #endif
    #endif
    ----- output ------
    $ c:/~path.to.java~/java -Djava.library.path=C:\mypath DCTAgent
    loading...
    $

    Your problem sounds a lot like I was having until about an hour ago when I found this:
    http://www.cygwin.com/ml/cygwin/2004-04/msg00099.html
    The short answer (originally posted by Igor Pechtchanski) is to set the flag
    -mno-cygwin
    when you are linking your DLL.
    To do this you need to install the packages "gcc-mingw" and "mingw-runtime" in your cygwin installation.
    The reason for the problem is apparently that cygwin1.dll cannot be dynamically loaded, and programs will hang if/when they try to dynamically load it. If your DLL does not require the POSIX functions found in cygwin1.dll, you can force the equivalent of a mingw-compiled DLL with that flag, and cygwin1.dll will not be dynamically loaded.
    It works like a charm for me, and has solved my problems with calling C++ code from JNI, as well as calling C++ code from Matlab (through an intermediary C DLL, although I think there are ways to eliminate that as well). Hope that helps.

  • Get first value and then remove remaining in query output

    hi all,
    we have a query where we want to count the number of sales orders and show this count by created on month and salesperson.  trick is that sales orders have multiple line items so the same order can show in multiple months. 
    lets say order 1000 has 3 line items.  each item is for month 1,2 and 3 of 2009.  the report is showing as such:
    1.2009 1
    2.2009 1
    3.2009 1
    each value represents the same order number.  we only want to see 1.2009 and then 2 and 3 show nothing because the counting of the order should happen 1X.  so the first month it finds an order number in, it counts it for that month and if it finds the same order for a later month then don't count it.
    is there a way to accomplish this?
    thank you

    Hi there,
    If you simply want to create count on sales order, then in query designer, just create a calculated key figure in that use option of formula variable,
    create one new formula variable of processing type replacement path and assign that sales order number characteristic to reference characteristic.
    in next replacement path tab
    Replace variable with - Infoobject
    Replace with  - Attributes
    Attributes - characteristic reference.
    For calculated key figure use aggregation after option.
    Hope this will help you.
    Regards,
    Rajdeep.

  • Removing commas in fmt:formatNumber

    Hi
    just wondering how to remove commas with numbers outputted within a fmt:formatNumber tag.
    So for example instead of showing 1,000 I want 1000 to be outputted.
    Thanks in advance

    I found out after a bit of testing just have to add
    pattern="#"

  • Removing Leading zeros from query output.

    Hello Experts,
    Is it possible to remove leading zeros from the query output for a particular column?
    I have a characteristics 'Reference Document' which has values like '000001386'. The users just need '1386' to be displayed and have asked us to remove the leading zeros.
    Is there something that can be done for this at a query level? I can't modify the underlying InfoProvider because this requirement is just for one set of users, the other users need the document nmber in the original format.
    Thanks
    Arvind

    Hi,
    you can use ALPHA conversion option in the definition of that particular characteristic.
    Try this code  in a routine.,in query designer;
    data a(9) value '000001386'.
    SHIFT a LEFT DELETING LEADING '0'.
    write:/ a.
    Output will be : 1386
    Or use this method also
    data a(9) value '000001386'.
    Call function 'CONVERSION_EXIT_ALPHA_OUTPUT'
    Exporting
    input = a
    Importing
    output = a.
    write a.
    output:
    1386
    Regards
    CSM Reddy

  • How to remove new line character from query output?

    Hi,
    How to remove new line character from query output?
    have tried select replace(column_name, CHR(10), ' ') from table_name.
    Edited by: GreenHorn on Sep 11, 2008 12:53 AM

    Please consider, that windows uses a sequence of chr13||chr(10) Unix uses only one character chr(10).
    The new line character(s) may be OS-dependent.
    You could consider both with:
    replace(replace(column_name, CHR(13)||CHR(10), ' '),CHR(10),' ')
    Hartmut
    Edited by: hartmutm on 11.09.2008 01:32

  • BEX iView - Remove unwanted tabs in the query output

    Hi
    EP SP 6.0 SP21
    BW 3.5
    We have created a couple of BEX iViews that reported from the BW system. But we do not want some of the options provided by the BEX iView like the sorts, characteristics, etc and wanted to hide the query tabs that we are not using like informaiton broadcasting etc.
    Has any one been succesful in removing this unwanted options from the BEX query output? I couldn't find anything in the iView properties that helped me with the issue.
    Appreciate any suggestion on this item.
    regards
    Raj

    Hi Raj,
    I suggest you to have a webtemplate against the query and create SAP BW Report iVew in the portal.
    Iin  WAD tool you suppress standard options/ have new options by adding javascript & Html code.
    Ram

  • Removing commas from on address line!!

    I need to remove comma's from an address field:
    substr(s_claim_periods.latest_prop_addr(CLAIMS.cla_refno),1,255) AS D,
    i have tried my usual method of
    translate (CONTACT_ADDRESS, ',' ,' ')
    but im having problems incorporating it with the substr command!!

    you could also use replace
    replace (adr, ',')as in
    SQL> with test as
      2  (select 'address,address,address,address,address' adr from dual
      3  )
      4  -- End of Testdata; here is the actual query:
      5  select adr
      6       , replace (adr, ',')
      7    from test
      8  /
    ADR                                     REPLACE(ADR,',')
    address,address,address,address,address addressaddressaddressaddressaddress

  • Removing commas from report result

    Hello gurus,
    Is there a way to remove commas from data values in the BEx reports?
    I used NODIM() to remove $ signs and units. We need to remove the commas as well.
    Thank you,
    Malli

    hi,
    in query properities you should have option to show unit on the top of column only and in key figure properities should be option to choose how many decimal spaces you want to be visible on report (this option you have in rsa1 -> infoobjects -> your key figure -> BEx reporting tab)
    Regards,
    Andrzej

  • Remove Power Query queries while keeping the query output tables

    I use power query to load data from external sources into several excel tables. Before sending this excel to a client, I would like to remove all power query queries (M code) while keeping the output/query tables at place.
    My current workaround is:
    unload Power Query
    convert each table to range
    load Power Query
    delete queries (M code)
    Is there a better/faster way to achieve what I want?

    You can unlink the existing tables and remove custom XML data in Document Inspector. No need to duplicate the worksheet.
    exactly. and even unlinking the tables is not neccessary for DocInspector to remove the custom XML of PQ.
    Do you have any suggestion on how to trigger the cleaning of PQ XML code via VBA? 
    the following code does not work:
    ActiveWorkbook.RemoveDocumentInformation (xlRDIAll)

  • Remove particular field and button from a screen when using pnp

    hi,
    i came to a request of remove a field and button from the displayed screen. i developed the report using logical database pnp. i need help.

    There are a couple of ways to accomplish this.
    1. Use a report category so that the only fields on the screen are those that you want.
    2. Do something like this:
          LOOP AT SCREEN.
        IF SCREEN-NAME = 'PNPTIMED' OR
           SCREEN-NAME = 'PNPBEGDA' OR
           SCREEN-NAME = 'PNPENDDA'.
          SCREEN-ACTIVE = '1'.
          SCREEN-INPUT = '0'.
          SCREEN-OUTPUT = '1'.
          SCREEN-INVISIBLE = '0'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.

  • BEx Query output in Enterprise Portal using "Information Broadcasting"

    Dear Experts,
    I am having BEx Query output in Enterprise Portal
    EP 6.0 and BW 3.5 version
    I am trying to send email attachments from
    Portal Query directly
    using "Information Broadcasting"  tab button
    ==================================
    Email gets triggered Okay,
    but Portal URL link is not showing correctly
    Here is an Online Link to the BI Document: http://mtv01spbw01.businesssap.com:8100/sap/bw/BEx?CMD=LDOC&INFOCUBE=0CRM_OPPH&QUERY=0CRM_C04_TESTQ001
    <b>The URL above is coming wrongly,
    I want it to point to
    http://mtv01spbw01.businesstree.com:8000/sap/bw/BEx?CMD=LDOC&INFOCUBE=0CRM_OPPH&QUERY=0CRM_C04_TESTQ001</b>
    Please help me to correct this error / wrong configuration
    any help links would also be appreciated
    Thanks,
    Aby Jacob

    Hi Jacob,
    Here, p/s refer to this links.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ca6de811-0c01-0010-43b2-c64584eef943">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ca6de811-0c01-0010-43b2-c64584eef943</a>
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/84/30984076b84063e10000000a1550b0/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/84/30984076b84063e10000000a1550b0/frameset.htm</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/84/30984076b84063e10000000a1550b0/frameset.htm">http://help.sap.com/saphelp_nw04s/helpdata/en/84/30984076b84063e10000000a1550b0/frameset.htm</a>
    OSS Notes : 760775
    Hopefully it can helps you a lot.
    Many thanks.
    Regards,
    Niel.
    (Many thanks for any points you choose to assign).

  • Removing comma (,) from string

    Hello Friends,
    I have a string something of this nature
    Sting : ',3456,45454,,45454,'
    Need to have just comma seperated value : '3456,45454,45454'
    Tried with replace but getting - '34564545445454'
    select replace ( ltrim(RTRIM(replace(',3456,45454,,45454,', ',,', ','),',')),',', '') from dual;
    Appreciate your help .
    Thanks/Kumar

    Hi, Kumar,
    kumar73 wrote:
    Hello Friends,
    I have a string something of this nature
    Sting : ',3456,45454,,45454,'
    Need to have just comma seperated value : '3456,45454,45454'
    Tried with replace but getting - '34564545445454'
    select replace ( ltrim(RTRIM(replace(',3456,45454,,45454,', ',,', ','),',')),',', '') from dual;Do you want to remove ','s at the beginning of the string, but leave them in the other places?
    If so:
    LTRIM (string, ',')LTRIM removes the given character(s) from the <b>L</b>eft side (that is, the beginning) of string. That's all you want here. (Was your string generated by SYS_CONNECT_BY_PATH? This is a very common problem.)
    RTRIM removes the given character(s) from the <b>R</b>ight side (that is, the end) of string. I don't think you want that; you certainly don;'t need it in the example you gave.
    REPLACE removes the given characters anywhere in the string. You definitely don't want that. If you did, there would be no point in also using LTRIM or RTRIM.

Maybe you are looking for

  • Status Problem

    Hello Experts! i have a error message when I am creating a Good Rcpt Document (MIGO). of "Goods receipt for purch. order" is not allowed (WBS TKY.0001.A.2   .01) Diagnosis The current status of object 'WBS TKY.0001.A.2   .01' prohibits business trans

  • Compile error on fireColumnSelectionChanged

    I get the following error for the below code snippet... Why? Error(181,11): method fireColumnSelectionChanged() not found in class Athena.com.ProspectFrameX.3 ListSelectionModel rowSM = jTable1.getSelectionModel(); rowSM.addListSelectionListener(new

  • My iPad's screen isnt working.. PLS HELP!

    just this morning, i accidentally drop my iPad on the hardwood floor of my house. now when i turn it on, the screen of the iPad is full of multicolors in lines and it moves around. i tried turning it off so i can turn it back on, but the screen is st

  • PM order settlement to asset - but I want statistical posting to I/O????

    We use internal orders for our capital budgets - we set a plan for the year.  We do requisitions against the order which gives us our commitment.  We have workflow to upper management to release the requisiton.  Once done the req is turned into PO bu

  • Volume bar comes up after discconnecting any calls

    Hi, Everytime when I disconnect a call (outgoing/incoming), the volume bar comes up even though i have not pressed any volume key. It even happens when I make a call and disconnect it if there is no answer. It wouldn't do the same earlier. It occurre