Leading '0' removed from field

Hi,
I am linking a Crysta Report to an Excel spreadsheet and displaying the information. I am trying to display a field on the page that looks like 0810911071309. In the spreadsheet the format of this is "Custom" and 0000000000000. However, when I try and display this in my report the leading 0 from 0810911071309 is taken off.
Can anyone help me?
Thanks in advance
Aled

When crystal connects to Excel it ignores any excel formating and derives its data type from the first field it finds.
Thus crystal will treat your data as a number.
To restore your formatting use a formula
totext(yourexcelfield, "0000000000000", 0, "")
Replace field on design view with the above formula.
Ian

Similar Messages

  • Leading zeros remove from FB05 for assignment field in process open items b

    Dear expert
    At present i am using the electronic bank statement completed OT83 & OT51configuration, when i am running FF-5 the EBS soft copy has been uploaded and created batch input session.
    I executed  batch input session and the transactions has been posting through FB05 for outgoing payment clearing  with assignment field ( where check number is laying correctly and matching EBS soft copy cheque number and SAP outgoing clearing account line item assignment cheque number ) in case of outgoing clearing is happening correctly.
    but where as i have a problem incoming clrg cheque number which is displaying in assignment field and updated when client using FF68(check deposit / collections).
    the user is punching all collections from customers using t.code FF68 and cheque number is updated with 6 digit number in the variant. it is like a JV.
    after posting batch input session the cheque is number displaying in assignment field. the cheque number is updated with 6 digit number. but in the variant cheque number width 6 digit only  but after posting FF68 & SM35 the system automatically taking leading zeros for the remaining length. Cheque number standard length in SAP 13 in table .
    total 13 digit length but user punched only 6 digit only, because the cheque number 6 digit numberonly. so the remaining 7 digits it is occupaying 0000000.
    while executing FF_5 and SM35  (thr FB05) the assignment field cheque number (0000000586585) and soft copy cheque number 6 digit (586585) is not matching , because of that i am unable to clear the incoming collections or incoming payments clrg.
    so how  can i remove the leading zeros after cheque number ( actually displaying 0000000586585 , but i want without zeros only cheque number 586585) in assignment field in FB05 using FF-5 & SM35).
    is there any enhancement or user exit to remove leading zeros or any other way of work around .
    Regards

    Hi Amareswar,
    In your case, request your bank to provide cheque number with leading zeros in electronic bank statement as the leading zeros in the assignment field is SAP system behaviour.
    Alternatively, use 'Define Search String for Electronic Bank Statement' (refer http://help.sap.com/erp2005_ehp_05/helpdata/EN/6d/0cdf4b142e11d3963800a0c9426c73/frameset.htm for details) in the IMG, customize it to search for the cheque number provided in the note to payee field > then append leading zeros.
    The first method is the solution we are using and it is the most cost effective.
    Hope the above helps.
    Kind regards,
    John Chin

  • Removing Leading Spaces in the field to be displayed

    Hi,
    Could you please tell me how to remove leading spaces in currency field in write statement?
    the length of the field cannot be changed by writing fieldname(length).
    is there any other method to do the same. the length should vary according to the amount in the field.
    Ragards,
    Krutika

    hi,
    please use "SPLIT "  or condense  .
    eg:  SPLIT wa_bseg-hzuon at space into wa_bseg1-hzuon l_space.
    to better understand refer this code:
    IF it_mhnd IS NOT INITIAL.
      SELECT hzuon bukrs gjahr augdt augbl
      FROM Bseg
      INTO TABLE it_bseg
      FOR ALL ENTRIES IN it_mhnd
      WHERE belnr = it_mhnd-belnr
        AND bukrs = it_mhnd-bukrs
        AND gjahr = it_mhnd-gjahr
        AND umskz = 'E'.
    endif.
    data: l_space type char6.
    loop at it_bseg into wa_bseg.
      SPLIT wa_bseg-hzuon at space into wa_bseg1-hzuon l_space.
      wa_bseg1-bukrs = wa_bseg-bukrs.
      wa_bseg1-hzuon = wa_bseg-belnr.
      wa_bseg1-hzuon = wa_bseg-gjahr.
      wa_bseg1-hzuon = wa_bseg-umskz.
      append wa_bseg1 to it_bseg1.
      clear: l_space, wa_bseg1.
    endloop.
    IF it_bseg1 IS NOT INITIAL.
          SELECT belnr bldat
            FROM bsad into table it_bsad
            FOR ALL ENTRIES IN it_bseg1
            WHERE belnr = it_bseg1-hzuon
            AND   bukrs = it_bseg1-bukrs
            AND   augbl = it_bseg1-belnr.
    endif.
    regards
    rahul
    Edited by: RAHUL SHARMA on Jan 5, 2009 12:19 PM
    Edited by: RAHUL SHARMA on Jan 5, 2009 12:20 PM

  • HT1277 how can i remove the email add from a deleted mailbox from the prompts of the 'from' field?

    how can i remove the email add from a deleted mailbox from the prompts of the 'from' field?

    Thanks a lot, roam! That worked

  • Remove text field from Array via for loop

    Hi,
    i have a problem to remove text fields added via for loop.
    That im doing is, via for loop im dynamically creating menu with 10 buttons.
    Each button contain, dynamically created, background (shape) and text field.
    And everything is fine.
    But when im try to remove text fields then i got this error:
    - Im using button to remove text fields - lang_btn.addEventListener(MouseEvent.CLICK, clickHandler);
    ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
              at flash.display::DisplayObjectContainer/removeChild()
              at Loading_Img_fla::MainTimeline/xmlLoaded()
              at flash.events::EventDispatcher/dispatchEventFunction()
              at flash.events::EventDispatcher/dispatchEvent()
              at flash.net::URLLoader/onComplete()
    In the script bellow marked with red is what should remove text fields from an Array, instead giving me error.
    Here is my script
    // Create for loop
    for (var i:int = 0; i < 10; i++)
              for each (xml in listItems)
                        if (i == xml.attribute("Id"))
                                  // Add MovieClip to stage to hold the data
                                  addChild(lmHolder);
                                  lmHolder.x = 0;
                                  lmHolder.y = 0;
                                  // Create new MovieClip to hold buttons
                                  lmButtonsMCArray[i] = new MovieClip();
                                  lmButtonsMCArray[i].buttonMode = true;
                                  lmButtonsMCArray[i].mouseChildren = false;
                                  lmButtonsMCArray[i].x = 20;
                                  lmButtonsMCArray[i].y = 20 + btCount * buttonSpace;
                                  // Add each button MovieClip to lmHolder MovieClip
                                  lmHolder.addChild(lmButtonsMCArray[i]);
                                  // Create Background to buttons
                                  lmButtonsArray[i] = new Shape();
                                  lmButtonsArray[i].graphics.beginFill(lmBgColor0, 1);
                                  lmButtonsArray[i].graphics.drawRect(0, 0, 230, 85);
                                  lmButtonsArray[i].x = 0;
                                  lmButtonsArray[i].y = 0;
                                  // <<-- Add Background shape to the buttons MovieClips
                                  lmButtonsMCArray[i].addChild(lmButtonsArray[i]);
                                  // Create a new array to preserve data from XML List
                                  lmNameArrayEG = new Array();
                                  lmNameArrayUS = new Array();
                                  // Create local variable to hold
                                  var lmTxtFieldContentUS:String;
                                  var lmTxtFieldContentEG:String;
                                  var lmTxtContent:String;
                                  // If clicked button is EG then make array with Arabic text
                                  // If clicked button is US then make array with English text
                                  if (footer.lang_btn.langState == "EG")
                                            for each (var leftMenuName:XML in egLanguageList)
                                                      lmNameArrayEG.push(leftMenuName);
                                            lmTxtFieldContentEG = lmNameArrayEG[i];
                                            lmTxtContent = lmTxtFieldContentEG;
                                  else
                                            for each (var leftMenuNameUS:XML in usLanguageList)
                                                      lmNameArrayUS.push(leftMenuNameUS);
                                            lmTxtFieldContentUS = lmNameArrayUS[i];
                                            lmTxtContent = lmTxtFieldContentUS;
                                  // Setup new text field each time script is executed
                                  lmTxtFieldsArray[i] = new TextField();
                                  lmTxtFieldsArray[i].width = 110;
                                  lmTxtFieldsArray[i].border = false;
                                  lmTxtFieldsArray[i].wordWrap = true;
                                  lmTxtFieldsArray[i].multiline = true;
                                  lmTxtFieldsArray[i].selectable = false;
                                  lmTxtFieldsArray[i].embedFonts = true;
                                  lmTxtFieldsArray[i].antiAliasType = AntiAliasType.ADVANCED;
                                  lmTxtFieldsArray[i].autoSize = TextFieldAutoSize.CENTER;
                                  lmTxtFieldsArray[i].text = lmTxtContent.toUpperCase();
                                  lmTxtFieldsArray[i].x = 10;
                                  lmTxtFieldsArray[i].name = "lmTxtFieldName" + i;
                                  // <<-- Add Text fields to the Movie Clip
                                  lmButtonsMCArray[i].addChild(lmTxtFieldsArray[i]);
                                  // If clicked button is EG then set Arabic text format, and make array with Arabic text fields
                                  // If clicked button is US then set English text format, and make array with Egnlish text fields
                                  if (footer.lang_btn.langState == "EG")
                                            lmTxtFieldsArray[i].setTextFormat(txtFormat_lm_eg);
                                            // Make array from text fields;
                                            pushEgTFintoArray.push(lmTxtFieldsArray[i]);
                                  else
                                            lmTxtFieldsArray[i].setTextFormat(txtFormat_lm_us);
                                            // Make array from text fields;
                                            pushUsTFintoArray.push(lmTxtFieldsArray[i]);
                                  // If clicked button is EG then loop thrue the for loop and remove English text fields from array
                                  // If clicked button is EG then loop thrue the for loop and remove Arabic text fields from array
                                  if (footer.lang_btn.langState == "EG")
                                            for (var rNr_us:Number = 0; rNr_us < pushUsTFintoArray.length; rNr_us++)
                                                      //remove the text field array from the display
                                       removeChild(pushUsTFintoArray[rNr_us]);
                                            //clear the array
                                            pushUsTFintoArray = [];
                                  else
                                            for (var rNr_eg:Number = 0; rNr_eg < pushEgTFintoArray.length; rNr_eg++)
                                                      //remove the text field array from the display
                                       removeChild(pushEgTFintoArray[rNr_eg]);
                                            //clear the array
                                            pushEgTFintoArray = [];
              btCount++;

    it looks like those tf's are children of  lmButtonsMCArray[i], not the current scope.  use:
    if (footer.lang_btn.langState == "EG")
                                            for (var rNr_us:Number = 0; rNr_us < pushUsTFintoArray.length; rNr_us++)
                                                      //remove the text field array from the display
                                        lmButtonsMCArray[rNr_us].removeChild(pushUsTFintoArray[rNr_us]);
                                            //clear the array
                                            pushUsTFintoArray = [];
                                  else
                                            for (var rNr_eg:Number = 0; rNr_eg < pushEgTFintoArray.length; rNr_eg++)
                                                      //remove the text field array from the display
                                        lmButtonsMCArray[rNr_eg].removeChild(pushEgTFintoArray[rNr_eg]);
                                            //clear the array
                                            pushEgTFintoArray = [];

  • 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.

  • How to remove % from percent field in standard section

    Hi Experts,
    I will like to remove % symbol from a percentage field in a standard section. May I know can this be done?
    As I know the % symbol can be remove from report, but can it be done in standard section?
    **The reason I insisted to use percent field is because all other field types is already hit the limit.
    Thanks
    Anson

    Hi,
    This is working for me
    *& Report  ZTESTRAUL
    REPORT  ztestraul.
    TYPES: BEGIN OF tp,
             one TYPE wertv8,
             two TYPE char15,
           END OF tp.
    DATA: wa TYPE tp.
    wa-two = wa-one = '1345.00'.
    replace ALL OCCURRENCES OF ',' IN wa-two WITH ''.
    write: wa-one, wa-two.
    Raul Natu

  • How we remove some fields from SAP standard one's

    Hi,
    i am very new to SAP SD .if the client do not want some fields from standard one's how we can remove those fields.(example u take Standard sales order).

    HI, you cannot hice many fields in SAP, since they all need for something.
    try to explain this to your customer; furthermore many fields are filled form the master data so the users don't have do mind of them.
    Anyway you can alter the screens using the transaction variants: go to IMG
    Spro: SAPNetwaever->general settings->Field Display Characteristics->Configure Application Transaction Fields
    Reward if helpful
    Regards
    Roberto

  • Disable or Remove some field from User Profile in Personalize iView

    Hi All,
    I have a requirement  to Disable one field and Remove one field  from User Profile in Personalize iView.
    i want to disable Activate Accessibility Feature field and Remove Language field.
    How to archive this.
    Thanks and Regards
    Trilochan

    Hi,
    You can use [Personalization|http://help.sap.com/saphelp_nw70/helpdata/en/42/ed3ce7f8593eebe10000000a1553f7/frameset.htm] to do this :
    1. logon as an admin and navigate to Portal Content > Portal Users > Standard Portal Users and open Every User Core Role
    2. right click on User Profile and select edit
    3. click on the Preview button then right click + CTRL on the iView and personalize the User Profile iView
    That's it.
    Regards,
    Pierre

  • Removing text field from po

    hi gurus
    i want to keep
    in header texts
    1) header note
    2) delivery note
    3) payment terms
    in item text only item text
    all other texts in header and item level i want to remove can i do it so
    so that other texts get supress
    plz help

    If you want to remove from the transaction screen use the following path
    (generally not advisable to delete the standard configuration delivered for text types)
    SPRO->Materials Management->Purchasing->Purchase Order->Texts for Purchase Orders->Define Text Types for Purchase Order Texts.
    In this you can keep the texts you want and delete the rest. Similarly, you can do the same for item texts.
    If your requirement is to delete from the print layout, do the following:
    SPRO->Materials Management->Purchasing->Messages->Texts for Messages->Define Texts for Purchase Orders. In this place, you configure only the text types which are needed for your print.

  • Delete mail from server after removed from IN BOX

    I have a mail management issue I have not been able to fully solve.
    I am balancing the same POP email accounts among the laptop using Mail (for home use) and my desktop using Eudora Pro (for work). Using Eudora, I can manually select to delete a message from the server. Eudora's manual deletions are flawless. Using Mail, the only option I can see that will help me do this is to select delete mail "When moved from In Box." If I hit the "delete" key, wouldn't that be the same as "moving if from the IN BOX?" When is the protocol actually carried out? On the next mail check? Immediately? Upon quitting and restarting Mail? I'm confused as to how this happens and why it does not seem to work all of the time.
    Any and all assistance is most appreciated.
    Much obliged,
    Mick

    Yes, deleting a message counts as moving it out of
    the inbox. The commands to remove the message from
    the server are sent the next time you check mail from
    that server, but only if there are new messages to be
    received from the server. Yes, many of us feel that
    is a bug in Mail, that it should send the remove from
    server commands the next time you check mail, whether
    or not there are new messages to be downloaded.
    Oh Gawd, I bet that's it. Yes, if that is the case, I would agree. It does not lead to efficient mail management if there needs to be a new message there. Do you know of any plans to change or alter that? Or has someone written an AppleScript of some kind to execute the command regardless?
    It's a great command, otherwise. It's nice to be able to delete a message off of one computer and have it delete off of the server without any extra hassle.
    Just wondering if there are any workarounds out there other than sending oneself a new message to get the delete from server command to activate.
    cheers,
    Mick

  • Cannot remove description field after adding to the Custom List

    Hello,
    Applies To: SharePoint 2013
    Problem: We created a Custom List and added a Description column from "Add from existing site columns" link. Now we need to remove it and it seems to have been sealed. We are not able to delete it.
    There is no remove/delete link/button when we click on the field. Moreover in the Content Type it only shows Required, Optional, Hidden.
    Requirement: Need to remove this field from the Custom List. Incidentally we added two of the description fields. We need to remove both of them without deleting the list itself.
    Thank you and
    Regards
    Tanzim Akhtar
    Tanzim Akhtar

    Hi Tanzim,
    Try the following code. I tested it and it should work for you.
    Add-PSSnapIn Microsoft.SharePoint.Powershell
    $web = Get-SPWeb "Web URL" 
    $list = $web.Lists["List Name"] 
    $field = $list.Fields["Description"] 
    $field.AllowDeletion = $true
    $field.Sealed = $false
    $field.Delete() 
    $list.Update() 
    Remove-PSSnapIn Microsoft.SharePoint.Powershell
    Narahari
    ******If a post answers/helps your question, please click "Mark
    As Answer" on that post and/or "Vote
    as Helpful*******

  • List used to add permissions to InfoPath form updated, but people removed from the list still getting permissions.

    I have a list that gives users Contribute permission to an InfoPath form during a workflow action. This list has changed, and I have added and removed users from it. The people who I've added are getting permissions, but the people I removed are STILL getting
    permissions, even though they are nowhere on the list. What could be happening? I would greatly appreciate any help!
    Thank you,
    -Lyssa Prince

    I must not be explaining this very well, and I apologize for that.
    These are time sheets we're working with, so each user needs a certain set of people to approve and review his/her time sheets. The workflow we have running on each time sheet created reads which department the user is in, matches them with the row that
    contains the field "department" that matches their department, and gives permission to all of the users in the remaining fields TS Approvers and TS Reviewers. If I update these fields at all, the new users in these fields get permissions for that department's
    time sheets, but the people I removed from these fields do not stop getting permissions. It's as if there is a cached copy of the list which is being used by the workflow to assign permissions. This list will fluctuate, so it is not a viable solution to keep
    running powershell scripts to remove people from each of these items after they have been removed from the list.

  • OIM 11.1.1.5 BP2 Roles removed from users automatically

    Hi All,
    We are using OIM 11.1.1.5 BP02 and facing issues with event handlers, role membership and access policy. We have a custom post create user handler and a custom user post update event handler. We are creating users through trusted reconcilication by using EBS Employee Recon connector and provisioning users to AD & Exchange by using the 11.1.1.5 ICF connectors.
    The issue we are seeing is with the Roles of the users, the behavior we are seeing is that, on user creates through trusted recon, the users are getting roles correctly and then the resources are assigned correctly, but after sometime, the roles are removed from the user. We donot have 'Revoke if no longer applies' on the access policy and thus the resources are appearing fine for the user, but we donot want roles to be removed from the user since the rule membership rules criteria is still holding good for the user.
    We are seeing this issue only with trusted reconcilication and not when we create users through the UI. Our custom event handlers have the same logic for both the execute methods; with the difference that the bulk execute method is working on the array of identities received from trusted recon while the normal execute method working on just one identity through the UI.
    We are doing complex computation in the event handlers (& setting multiple fields of the user) and are forced to use UserManager API to set the fields in the create user handler (Following article: 1469286.1); this we believe is effecting the ordering of the custom event handler and the OOTB Role ChangeCalculator event handler.
    We have already checked the bugs(14075985 & 14221435) and wanted to confirm if we are hitting the same and/or how can we debug this more. We have already checked the UPA_USR table but that does not tell us as to why the role is revoked from the user.
    Anyone faced similar issue?
    Thanks,
    Bikash

    The patch we were given was 14226386, also called 11.1.1.5.2AK. The readme has the following overview:
    This patch addresses the concurrency issues encountered in 11g R1 PS1 as described below
    1. Unlike in OIM 11g R1 PS1, when a user's role membership changes policy evaluation doesn't
         kick off immediately. Instead the user is flagged for policy evaluation in the future.
         'Evaluate User Policies' scheduled task then triggers policy evaluation for such users.
         The scheduled task ensures that there is only one policy evaluation for a user at any
         given time. So, duplicate accounts or entitlements wouldn't be provisioned to a user.
         With this fix, access policy based provisioning events will be triggered only when
         'Evaluate User Policies' scheduled task runs. Hence, the frequency of this scheduled
         task needs to be tuned for the customer's deployment. The recommendation is to set it to
         10 minutes.
         In addition to binary changes, this fix involves data model and metadata changes as
         described below.
    2. In a custom event handler, use Platform.getServiceForEventHandler() instead of
    Platform.getService() to get a handle to a Service available in OIM before making an API
         call. This ensures that the API completes in its entirety (including any post processing)
         when it returns. Also, this brings in predicability in the order of execution of OIM
         events on the same entity created from one another.
    3. When trusted source reconciliation brings in multiple events on the same user these events
    are processed by OIM sequentially.
    But since then BP03 and BP04 have been released, I would suggest you find out if BP04 has resolved this from support before applying anything.
    -Kevin

  • Narrow From Fields in Mail

    How do I remove the number of email options from field options in the new message window?

    if you don't enter anything... it collapses those fields to just one when you go back to the To, Subj, or Body
    if you do enter addresses in the cc, bcc, or from... it stays that way...
    but the point is trivial because as you type you have to scroll anyway which gives you back that screen space so precious to you...
    so why not just scroll... is it necessary to see who is in the header fields at all times? i don't know of a reason why...

Maybe you are looking for