Supress the zero's

Hi,
I have estimated qty(eqty) and actual qty(aqty) fields, they were declared in the table as NUMC(9), when I display these fields the values are comming like 000000050 and 000000040 instead of 50 and 40. How can I supress the zero's? Should I move this value in to a different variable and display that or is there any way to supress the zero's.
Thanks,

Hi Veni,
U can use <b>shift <VAR> left deleting leading '0'.</b>
Data: X(10) type N value '10'.
write: x.
shift x left deleting leading '0'.
write: / x.
*Output
0000000010
10        
Regards
Allan Cristian
Message was edited by:
        Allan Cristian

Similar Messages

  • How to Supress the record having zero value

    Hello All,
    I have the situation where if the value is zero, i shoud supress the record not to show in the output.
    This if for the purely a xmlP desktop report.
    can some one let me know how to achive this.
    Thanks
    Balaji.

    Hi PBV,
    You can add one more condition.
    For columns:
    <?for-each:groupname?>
    <?if:ELEMENT!='0' and ELEMENT!='' ?>
    Col1 col2.....
    <?end if?>
    <?end for-each?>
    Thanks
    Ravi

  • Supressing Leading Zero's

    My database has a field that has a total of 30 characters.
    Depending on the data that was entered there could be a large number of leading zero's that is displayed within that field.  How do you supress the leading zero's for that field when the number of leading zero's could fluctuate?
    In addition to that, they are also using Bar Code Scanning on that same field.  How can you suppress the Leading zero information on the same field once it has been converted to Bar Code?

    I dont think cstr(val(x)) will work if the value is "001000000000000000005147002589" as val(x) will convert it to a number and due to the number of digits, CR will convert it to scientific notation, at least CR XI converts.
    One possible solution would be to loop through the digits and extract the data by eliminating the leading zeros.  For example:
    stringvar x := "001000000000000000005147002589";
    // Example, you don't need this in your formula
    numbervar i;
    for i := 1 to length(x) do
    if x<i> NOT EQUAL TO '0' then exit for
    // use the not equal sign (greater than and less than symbols)
    x[i to length(x)];
    You can use this formula for both display and bar code purposes by replacing X with the db field.
    Edited by: Sanjay Kodidine on Oct 21, 2009 4:50 AM

  • How to supress the error in a column?

    Hi all ,
    I am using FR_studio for creating reports.
    Can any telll me how could I supress the error in a column which will be caused by Division by zero by using conditional formula?
    Thanks

    Hi,
    I think you are mixing two separate things here. the original question was about FR studio
    FR is Financial reporting, which is a reporting tool, separate from Essbase / EAS
    Essbase Report writer is a native reporting utility, by which you can export data from Essbase database. Though, you will not be able to show data in Workspace and in pdf format etc.
    Regarding FR, you can select the grid where the error is coming, In the grid properties, select suppression and give a value or name in the error "text option".
    Let me know if it helps.
    Cheers
    RS

  • To Supress Leading Zeros

    Hi Gurus
       I am developing ALV Report.
    For my Header I have to display Material Number.
    It is displaying with Leading Zeros.
    I want to supress those Zeros.
    Please send me the sample code urgently.
    Regards,
    Kumar

    when you are storing the material no in your int table take it in a character variable
    and use
    SHIFT cmatnr left deleting leading '0'.
    now itab-matnr = cmatnr.
    append or modify your inttable.
    or
    loop at itab.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
      EXPORTING
        INPUT         = itab-matnr
    IMPORTING
       OUTPUT        = itab-matnr
    modify itab.
    endloop.
    regards
    shiba dutta

  • How can we supress leading zeros?

    how can we supress leading zeros?

    use
    <b>CONVERSION_EXIT_ALPHA_OUTPUT</b>
    Conversion exit ALPHA, external->internal
    ALPHA conversion is used especially with account numbers. During conversion from the external to the internal format, the system checks to see if input in the INPUT field is purely numeric, that is, if this input consists only of numbers, possibly with spaces before and after them. If this is the case, then the number string is inserted right- justified in the display field OUTPUT and all spaces to the left of the value are filled with zeroes ('0'). If the input is not purely numeric, it is inserted in the display field from left to right and all extra spaces are filled with blanks.
    Example:
    (Input field and output field are both eight characters in length)
    1. '1234 ' --> '00001234'
    2. 'ABCD ' --> 'ABCD '
    3. ' 1234 ' --> '00001234'
    Conversion from the internal to the external format (function module CONVERSION_EXIT_ALPHA_OUTPUT) is undertaken in exactly the opposite manner.
    Usage:
    call function 'CONVERSION_EXIT_ALPHA_INPUT'
    exporting
    input = v_input
    importing
    output = v_output
    exceptions
    others = 1.
    regards,
    srinivas
    <b>*reward for useful answers*</b>

  • New-GL-how to assign the zero balance accounts to scenarios

    Dear Experts
    Please help me how/where to assign the zero balance accounts to scenarios.
    Standard functionality supports: Profit Center derication as mentioned below:
    Derivation based on master data--If the line item contains a cost object, the profit center in the master data of the cost object is used.
    Derivation based on product category
    Derivation based on organizational structure
    Derivation based on document splitting - For line items in the Accounts Payable, Accounts Receivable, Cash, and Taxes sub-ledgers, a profit center is only derived if you are using profit center segment accounting with clearing or with balancing. For journal entries, document splitting is always performed for the line items in these sub-ledgers after the other line items have been created.we are concerned abt the 1st scenario & 4
    Default profit center-FAGL3KEH -If no profit center could be determined based on the product category, organizational structure, or document splitting, the standard profit center we specified when configuring the corresponding ledger is used.
    But I am looking for a specific requirement to configure the Zero balance clearing account to the scenarios.
    Thanks
    Rama

    That information will not be any use.
    You can carry forward any number of times - the last should be after closing of previous years accounts.
    Hope it is clear.

  • New GL - Doc Splitting - Profit Center not hitting the Zero Balance GL

    Dear SAP New GL Gurus,
    I am trying to activate the doc splitting where the system uses a GL Account to ensure that Profit Center wise Trial Balances are tallied.
    I have done the following configuration till now, and I feel that these steps should ideally split the doc and post the PCA Adjustment Account Entry - I think its the Zero Balance Clearing account that the system should ideally be using.
    I am not sure what I am missing here - This is what is done till now:
    1. Activated Document Splitting - Used Standard Method 0000000012.
    2. Classified GL Accounts for Doc Splitting as per standard SAP categories.
    3. Classify Doc Types with assignments of Transaction and Variant. Done as per standard, no changes made.
    4. Defined Zero Balance Clearing Account.
    5. Define Document Splitting Characteristics for General Ledger Accounting - Made Profit Center field as Mandatory
    6. Define Document Splitting Characteristics for Controlling - Left it BLANK as Point No. 5 is done for GL Accounting.
    7. Define Post-Capitalization of Cash Discount to Assets - Ignored
    8. Edit Constants for Nonassigned Processes - Ignored
    Under Real-Time Integration of Controlling with Financial Accounting:
    1. Standard variant 0001 used.
    2. Assigned 0001 variant on the Co Code.
    3. Define Rules for Selecting CO Line Items - Ignored
    4. Define Account Determination for Real-Time Integration - Ignored
    Accouting Entry posted by me - Both lines are Balance Sheet items:
    DR     Bank GL     Profit Center X
    CR     Bank GL     Profit Center Y
    Please help me out here.
    I will assign full points.
    Many Thanks
    Bob

    Hi,
    Yes. Very much. you need to assign scenarios even if you are using leading ledger.
    In any enty there will be minimum two views, Entry view and Ledger View
    Ex.
    Entry view
    Account    Amt    A/c Assig objects - Profit Center
    Customer  400                                   
    Sale A/c  -400                                     2000
    Gl View
    Account                    Amt    A/c Assig objects - Profit Center
    Customer Recon A/c  400                                   
    Sale A/c                   -400                                     2000
    If you dont assign Profit center in the scenario to the leading ledger, in gl view you will not be able to see profit center against the sales line item
    Assign points if useful
    Regards
    Raghu Ram

  • How to supress the tags in XI

    HI Everyone,
    i have two questions for you.
    1) i have a traget field of type integer and its a non mandatory field,  can i send empty fields for this elements. iam getting a response from target webservice saying that it is not valid value.
    2) How can i supress the tags if they are empty.
    Regards,
    Sita Rama Raju

    Hi ,
    Just check this link
    /people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
    no. 5
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/877c0d53-0801-0010-3bb0-e38d5ecd352c
    page 14
    Regards
    Sachin
    Message was edited by:
            Sachin Dhingra

  • Help Required in Supressing the logs printed on console

    Hi,
    have creted the logger and the code is below.... when i log something using subscriberLogger it writes both on console and as well file.
    I badly need to supress the logs which is written on console... and someone help me in this reagards.
               subscriberLogger = Logger.getLogger("SubscriberLogger");
                FileHandler fhsubscriber = new FileHandler("SubscriberLogMessages.log");
                fhsubscriber.setFormatter(new SimpleFormatter());
                subscriberLogger.addHandler((FileHandler) fhsubscriber);
                subscriberLogger.setLevel(Level.INFO);Cheers,
    Jagadeesh

    have added this in static block of that class
    System.setProperty("java.util.logging.config.file", "logging.properties");and my logging.properties looks like this.
    level= INFO
    handlers= java.util.logging.FileHandler
    java.util.logging.FileHandler.pattern= Kikzl1.%g.log
    java.util.logging.FileHandler.formatter= java.util.logging.SimpleFormatter
    Doing this has stopped logging on console.
    Cheers,
    Jagadeesh Sadashiv

  • How to supress the dialog box in smartforms

    Hi Experts,
    Can any body tell how to supress the dailog box while executing the smarform.
    valid answers will be rewarded.
    Thanks,
    Satish.

    data p_out like ssfcompop.
    Look at smartform function module,there could be option like
    p_out-tdnoprev = 'X'.
    pass p_out to smartform function module

  • Supressing the initial screen of CG3Y transaction

    Hi All,
    I am calling standard transaction CG3Y from a customised report program. I want to supress the pop up screen that comes up .Please advise how it can be achieved.
    I am using a wrapper transaction of CG3Y
    Regards
    Rudra

    Dear Rudra,
    Try this
    Call Transaction 'CG3Y' and skip first screen.
    Regards,
    Vijay

  • How to supress the header if there is no detail record in the report

    Hi,
    I am trying to create a report using the TEXT_IO utility in oracle forms. The header part is created in one program unit and detail part is created in another program unit. How can I supress the header if there is no detail part? I came to know that I can use HOST command . How can I use this? Can any one help me in resolving this?
    My report should apppear in the format specified below.
    case number : 1
    Name Address1 Address2 State ZIp
    XXXXX XXXXXXX XXXXXXXx XXXXX XXXxx
    case number: 2
    Name Address1 Address2 State Zip
    YYYYY YYYYYY YYYYYYY YYYYY YYYY
    Edited by: 837462 on Feb 16, 2011 6:12 PM

    Hi
    i think it's a better idea to paste ur code here...
    but logically... i supposed u have 2 function header_function & detail_function e.g. both functions returns either 1 or 0 if there is data then it returns and the contrary if returns 0
    In the calling these functions i e.g. WHEN-BUTTON-PRESSED u need to validate as follow
    DECLARE
    v_header_output  varchar(2);
    v_detail_output  varchar(2);
    BEGIN
    v_header_output :=  header_function ( PARAMETERS ... , ,);
    v_detail_output :=  header_function ( PARAMETERS ... , ,);
    IF  v_detail_output = 0 THEN
    v_header_output := 0;   -- or u can do some works that change the return of the   header_function  to null or 0
    END IF;
    END;Hope it works...
    Regards,
    Abdetu...

  • Supress the enter key in JavaScript

    Hello,
    If I enter a in the textbox and hit on enter key without coming out of the that textbox ( not by hitting submit button page ), the execution goes to JavaScript method and start validating mandatory fields in the page .
    I supress the enter key: but expecting a better solution
    <input name="histYr" class="formtext" type="text" maxlength="6" size="6" onKeyPress="if (window.event.keyCode == 13) return false;"/>Please any body have some better idea to handel.
    Thanks

    I supress the enter key: but expecting a better
    solutionThe code you have posted is the only way I know for suppressing keystrokes. But be aware that window.event.keyCode doesn't work with NetScape... and JavaScript is NOT Java.

  • How to get the zero of phone number eg. 0612345678

    Dear Adobe Flex Builder Professionals,
    I've got a problem with getting the zero of a phone number eg. 0612345678
    If I enter the folowing phone number as input:
    0612345678
    I will get the phone number as output:
    612345678
    The application has been written in Adobe Flex Builder 3.
    The code of the MXML file is:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
    creationComplete="init()"
    horizontalScrollPolicy="off" verticalScrollPolicy="off">
    <mx:Metadata>
      [Event(name="customerSaveEvent", type="events.CustomerEvent")]
      [Event(name="customerCancelEvent", type="flash.events.Event")]
    </mx:Metadata>
    <mx:Script>
      <![CDATA[
       import util.ComboBoxUtil;
       import mx.controls.Alert;
       import events.CustomerEvent;
       import mx.collections.ArrayCollection;
       import mx.core.Application;
       import valueObject.Customer;
       import mx.validators.Validator;
       import mx.validators.PhoneNumberValidator;
       private var phoneCheck:PhoneNumberValidator;
       [Bindable]
       public var selectedCustomer:Customer;
       private function init():void{
        //this.cretePhoneValidator();
        if(this.selectedCustomer == null){
         this.clearForm(null);
       private function cretePhoneValidator():void{
        phoneCheck = new PhoneNumberValidator();
        phoneCheck.source = phoneNumber;
        phoneCheck.property = "text";
       private function validateForm():void {
        //var validatorList:Array = new Array(emailCheck, phoneCheck);
        //Validator.validateAll(validatorList);
       private function cancelClickHandler():void{
        var cancelManageCustomerObj:Event = new Event("customerCancelEvent");
        dispatchEvent(cancelManageCustomerObj);
       private function saveCustomer():void {
        //validateForm();
         var c:Customer = null;
         var selCust:Customer = Application.application.selectedCustomer;
         if(selCust != null){
          c = selCust;
         } else {
          c = new Customer();          
         c.setLastName(lastName.text);
         c.setFirstName(firstName.text);
         c.setStreet(street.text);
         c.setPostal(postal.text);
         c.setCity(city.text);
         c.setEmail(email.text);
         c.setPhoneNumber(new Number(phoneNumber.text));
         c.setMailing(mailing.selectedItem.data);
         c.setComment(comment.text);
         var modified: Customer = Application.application.customerService.createOrUpdate(c);
        var customerEventObj:CustomerEvent = new CustomerEvent("customerSaveEvent", modified);
        dispatchEvent(customerEventObj);
        this.clearForm(selCust);
        private function clearForm(selCust:Customer):void{
         if(selCust == null){
          this.lastName.text = "";
          this.firstName.text = "";
          this.street.text = "";
          this.postal.text = "";
          this.city.text  = "";
          this.phoneNumber.text = "";
          this.email.text = "";
          this.mailing.selectedIndex = 0;
          this.comment.text  = "";
         focusManager.setFocus(lastName);
      ]]>
    </mx:Script>
    <!--mx:EmailValidator id="emailCheck" source="{email}" property="text"
      trigger="{save}" triggerEvent="click"/-->
    <mx:Form id="manageCustomerForm">
      <mx:FormItem label="Achternaam:">
       <mx:TextInput id="lastName" text="{selectedCustomer.getLastName()}"/>
      </mx:FormItem>
      <mx:FormItem label="Voorletters:">
       <mx:TextInput id="firstName" text="{selectedCustomer.getFirstName()}"/>
      </mx:FormItem>
      <mx:FormItem label="Straat:">
       <mx:TextInput id="street" text="{selectedCustomer.getStreet()}"/>
      </mx:FormItem>
      <mx:FormItem label="Postcode:">
       <mx:TextInput id="postal" text="{selectedCustomer.getPostal()}"/>
      </mx:FormItem>
      <mx:FormItem label="Stad:">
       <mx:TextInput id="city" text="{selectedCustomer.getCity()}"/>
      </mx:FormItem>
      <mx:FormItem label="Telefoonnummer:">
       <mx:TextInput id="phoneNumber" text="{selectedCustomer.getPhoneNumber()}"/>
      </mx:FormItem>
      <mx:FormItem label="E-mail:">
       <mx:TextInput id="email" text="{selectedCustomer.getEmail()}"/>
      </mx:FormItem>
      <mx:FormItem label="Opmerkingen:" >
       <mx:TextArea id="comment" text="{selectedCustomer.getComment()}"
         width="447" height="144"/>
      </mx:FormItem>
      <mx:FormItem label="Mailing:">
       <mx:ComboBox id="mailing" dataProvider="{Application.application.comboBoxUtil.yesNo}"
        selectedIndex="{ComboBoxUtil.getIndex(selectedCustomer.getMailing())}"/>
      </mx:FormItem>
      <mx:HBox id="manageButtonBox">  
       <mx:Button id="save" label="Opslaan" click="saveCustomer()" />  
       <mx:Button id="resetButton" label="Wis" click="clearForm(null)" />  
       <mx:Button id="cancelButton" label="Annuleer" click="cancelClickHandler()" />
      </mx:HBox> 
    </mx:Form>
    </mx:Canvas>
    The code of the SQL file is:
    create table customer (
    id integer not null primary key autoincrement,
    lastName VARCHAR(50),
    firstName VARCHAR(50),
    street VARCHAR(50),
    city VARCHAR(50),
    postal VARCHAR(10),
    phoneNumber INT(10),
    email VARCHAR(50),
    mailing boolean default false,
    comment VARCHAR(255)
    create table treatment (
    id integer not null primary key autoincrement,
    date Date,
    treatment varchar(255),
    customerId integer not null,
    constraint fk_customer foreign key(customerId) references customer(id)
    create table user (
    id integer not null primary key autoincrement,
    loginName varchar(50) not null,
    lastName varchar(50) not null,
    firstName varchar(50) not null,
    password varchar(50) not null,
    active boolean not null default true,
    accessright varchar(10) not null
    create table agenda (
    id integer not null primary key autoincrement,
    userId integer not null,
    date Date,
    hour integer,
    minute integer,
    description varchar(50),
    constraint fk_user foreign key(userId) references user(id)
    create table license (
    id integer not null primary key autoincrement,
    key varchar(50),
    val varchar(50)
    I hope someone can help me with this problem.

    Customer List?
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml
    initialize="init()">
    <mx:Metadata>
      [Event(name="selectCustomerEvent", type="events.CustomerEvent")]
    </mx:Metadata>
    <mx:Script>
      <![CDATA[
       import mx.core.Application;
       import service.CustomerService;
       import events.CustomerEvent;
       import valueObject.Customer;
       import mx.events.ListEvent;
       import mx.collections.ArrayCollection;
       [Bindable]
       public var customerData:ArrayCollection;
       private var customerService:CustomerService;
       private function init():void{
        this.customerService = new CustomerService();
        this.customerData = this.customerService.getCustomers();
        if(this.customerData == null){
         this.customerData = new ArrayCollection();
       private function itemClickHandler(event:ListEvent):void {
        if(event.columnIndex != 0){
         var customerData:Customer;
         customerData = event.itemRenderer.data as Customer;
         var customerEventObj:CustomerEvent = new CustomerEvent("selectCustomerEvent", customerData);
         dispatchEvent(customerEventObj);
       public function deleteCustomer(id:int):void{
        var cust:Customer = new Customer();
        cust.setId(id);
        this.customerService.deleteCustomer(cust);
        this.customerData.removeItemAt(customerGrid.selectedIndex);
      ]]>
    </mx:Script>
    <mx:DataGrid id="customerGrid" dataProvider="{customerData}" height="100%"
      itemClick="itemClickHandler(event)" width="340">
      <mx:columns>
       <mx:DataGridColumn deactivate="true" dataField="id" headerText=" " width="15">
              <mx:itemRenderer>
                <mx:Component>
                  <mx:Image source="images/delete.jpg" click="outerDocument.deleteCustomer(data.id)"
                   buttonMode="true" height="15" width="15"/>
                </mx:Component>
              </mx:itemRenderer>
            </mx:DataGridColumn>
       <mx:DataGridColumn dataField="lastName" headerText="Achternaam" />
       <mx:DataGridColumn dataField="firstName" headerText="Voorletters" />
      </mx:columns>
    </mx:DataGrid>
    </mx:Canvas>

Maybe you are looking for

  • IOS 4.3.5 update failed (persistent error 1602) - Apple's Support steps don't work

    Hi guys, So I seem to be having very bad luck with my iPod Touch, 4th Gen. What happened this time is pretty much what happened when I tried to update to 4.3.4, as described in this thread: https://discussions.apple.com/thread/3179905 So I got an err

  • Pirobase and sharepoint server in ep

    Hi, Can anyone tell me if we can use Pirobase as the content management with EP and Sharepoint server for collaboration with EP.If yes, where to find the documents related to the same. rgds, Rohit

  • Replication of user actions

    Hi All, I have two databases. One is 9i and other is 10g. There are process executing on 9i like loading of data, updating of data etc which are done using unix jobs. Plus few users also work on the already loaded data. All these actions may happen o

  • Valid Metadata tags?

    Hello, If you look at this documentation page, there are lots of valid metadata tags missing (just a couple of examples: Exclude, Managed). Why that? Where can I find the full list of documented metadata tags that are permitted in flex? Thanks, Rober

  • Moving eiskaltdcpp from AUR to community repo

    Not sure if this is the place to ask this Is there any reason why eiskaltdcpp is not there in the community repo and instead in AUR. Considering that Eiskaltdcpp works much better than Linuxdcpp which currently is available in the official repos, I w