How to delete trailing spaces or invalid characters

Hi experts,
I am loading data into a DSO. But in the activation it is showin error. Data is coming upto New data table. After that it is showing error as:
=============================================
Value 'Eversafe ' (hex. '204576657273616665 ') of characteristic 0CUSTOMER contains invalid characte .
Diagnosis
    Only the following standard characters are valid in characteristic
    values by default:
    !"%&''()*+,-./:;<=>?_0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ.
    Furthermore, characteristic values that only consist of the character #
    or that begin with ! are not valid.
    You are trying to load the invalid characteristic value Eversafe &
    (hexidecimal representation 204576657273616665 ).
System Response
Procedure
Procedure for System Administration
    Try to change the invalid characters to valid characters.
    If you want values that contain invalid characters to be admitted into
    the system, make the appropriate setting in BW Customizing . Refer to
    the documentation describing the requirements for special characters and
    the possible consequences.
===========================================
After i edit this in psa it is showing another record as error.
I think we have to delete the trailing spaces. If this is the case anyone please provide me how to write routine in the transfer rules to delete the trailing space.
Full points will be assigned.
Thanks & Regards,
V N.

Hi Venkat,
Thanks for your reply.
How can i know what are the extra invalid characters to be permitted.
And also i am getting a message while activating the DSO as follows:
============================================
Activation of M records from DataStore object ZDSO_OO3 terminated
Process 000033 returned with errors
=============================================
Please help me to solve this issue.
Thanks & Regards,
V N.

Similar Messages

  • 'SHIFT variable RIGHT deleting trailing space' not working

    I have a character field in a transaction that occasionally gets populated with a value that has a space at the end or at the beginning or both. This is causing the dataload to fail. I added code below to remove these spaces from the end and beginning-
    SHIFT <variable> RIGHT deleting TRAILING space.
    SHIFT <variable> LEFT deleting LEADING space.
    The SHIFT LEFT works perfectly and deletes the space at the begining of the value but SHIFT RIGHT does not delete the space at the end for some reason. I tried defining the variable as a char (16), string but nothing seems to make it work.
    Note: I cannot use CONDENSE because the value can have spaces in between that we cannot delete.
    Any ideas why shift right wouldn't work?

    Hi Maanasa,
                           First of all Shift works only with string datatype. So transfer the contents of that character field into a string datatype and do the shift operation.
    Declare a string variable of that type. Data v_str type string.
    Pass the contents of the character field into the string.
    And do the shift operation on the string and pass the value of the string back to the character field.
    Shift v_str by 1 places right.
    Please try this.
    Thanking you,
    Jerry

  • How to trim / delete trailing space

    My file contention conversion for recordset struture 'DT_INTERFACE_in_s' in recevier communication channel is below:
    DT_INTERFACE_in_s.fieldNames     zdata1, zdata2,FILE_NAME
    DT_INTERFACE_in_s.fieldFixedLengths     4,1000,0
    DT_INTERFACE_in_s.fixedLengthTooShortHandling     Cut
    DT_INTERFACE_in_s.ignoreRecordsetName     True
    DT_INTERFACE_in_s.fieldContentFormatting     Trim
    DT_INTERFACE_in_s.lastFieldsOptional     Yes
    DT_INTERFACE_in_s.fieldSeparator     
    DT_FMS_INTERFACE_in_s.endSeparator     'nl'
    The content of zdata1 and zdata2 are sent to receiver. But there are 1000 characters for zdata2. I want to delete the trailing space of zdata2.  Pls. help

    Hi,
    This is because you are using fieldFixedLengths. So PI adds trailing spaces to match your configuration for the field to be 1000-characters long. Simply switch to fieldSeparator to have the fieldContentFormatting = Trim working fine.
    I am also not sure if this is the configuration for sender or receiver channel. You are writing about the receiver, but some parameters you use are specific for sender only. Please refer here if required:
    [Converting Text Format in the Sender File/FTP Adapter to XML|http://help.sap.com/saphelp_nwpi71/helpdata/en/44/6713ec3f914ddee10000000a1553f7/content.htm]
    [Converting XML in the Receiver File/FTP Adapter to Text Format|http://help.sap.com/saphelp_nwpi71/helpdata/en/44/686e687f2a6d12e10000000a1553f6/content.htm]
    Hope this helps,
    Greg

  • How to remove trailing spaces in SQL PLUS spool

    Hi,
    I've requirement to pull data from tables and I'm using sqlplus spool to automate data fetch from various tables:
    I'm using the following script for the same :
    set echo off
    set feedback off
    set pagesize 0
    set linesize 2000
    set heading on
    set trimspool on
    Spool table1.TXT;
    prompt col1|col2|col3|col4|col5
    select
    LTRIM(RTRIM(col1))||'|'||
    LTRIM(RTRIM(col2)) ||'|'||
    LTRIM(RTRIM(col3)) ||'|'||
    LTRIM(RTRIM(col4)) ||'|'||
    LTRIM(RTRIM(col5)) ||'|'||
    from TABLE1 ;
    spool off
    After using trimspool on option also I'm having trailing spaces issue how to fix it?
    Thanks,
    Mahender.
    Edited by: user518071 on Oct 11, 2010 1:05 PM

    Hi,
    do you need LTRIM/RTRIM? This is namely your problem. By using a function around your column Oracle reserves the maximum lenght for the column. So what do you get without those functions? Furthermore you are concatenating all the columns. This is also a function. For getting '|' in between columns you can also set a seperator by using
    set colsep '|'Herald ten Dam
    http://htendam.wordpress.com

  • How to transfer trailing spaces in the source field type c

    Hello,
    I have to splitt a string key of 120 characters into two InfoObjects (CHAR). The problem is, that the trailing spaces are lost in the character Field.
    Has anybody an idea to avoid the lost?
    Thank you.
    Conversion Table for Source Field Type c
    The characters in the source field are inserted in the target field, left-aligned. Trailing spaces in the source field are not transferred. If the target field is longer than the number of characters transferred, it is filled with blank characters to the right. If the target field is shorter, the number is truncated from the right.

    Hi ,
    Create two Characteristic InfoObjects in BW With length 60 Char  and then in the Transfer Rules of this two InfoObjects write the Formula using Left() and right() function present in the Formula Builder .
    That is First infoObject Contains the Left 60 Char and next one Contains the right 60 Char.
    Regards,
    Vijay.

  • DMEE : Delete Trailing spaces in the output file..

    Dear Friends
    I am using a DMEE Tree t generate a payment file.
    Everything is fine except that teh bank requires the trailing spaces to be deleted.
    i.e. I am getting an output like below but with spaces in place of dots
    :50H:/09618078222002EUR....................<CR/LF>
    Sana'a............................................ <CR/LF>
    :70:DMEE-TEST14.................<CR/LF>
    Note:The dots represents spaces which I want to remove. The dots are added to show you the output...
    The <CR/LF> is printing at the end of the field length. I mean if the field is 34 Chr long then the
    <CR/LF> is getting printed at 35th Char irrexpective of teh field contents...
    But the bank requires in the below format. i.e. remove the spaces thats all.
    :50H:/09618078222002EUR<CR/LF>
    Sana'a<CR/LF>
    :70:DMEE-TEST14<CR/LF>
    Can anyone help.
    I am working on SAP 4.6C
    Help will surely be reawrded....

    Hello Sam,
    I DO NOT know if i can make you understand the logic, but will give it a try )
    The <CR/LF> is printing at the end of the field length. I mean if the field is 34 Chr long then the
    <CR/LF> is getting printed at 35th Char irrexpective of teh field contents...
    You define an element of length 35 char, then in the "Mapping Procedure" select the "Own Mapping (Atoms)" & set the "Atom Handling" as 01 (Concatenate values in element).
    Then create the ATOMS: one with the value "DMEE-TEST14" & the other atom with the value "<CR/LF>
    ". The output will be a concatenation of the two fields )
    Did you get what i wanted to tell you )
    BR,
    Suhas

  • How to delete trailing zeros from a quantity field to display in ALV?

    Hi there,
    i am retrieving the field LGMNG from LIPS table, which is of type QUAN(13). All LGMNG values there are stored as
    1,000
    20,000
    50,000 etc.
    But i want my values to be displayed as
    1
    20
    50 etc.
    i have tried the " shift v_variable right deleting trailing '0'" but it does not work.
    also, if the value of LIPS_LGMNG =  0,000, i need those columns in ALV empty(that is no zeros or comma displayed)
    can anyone please help?
    Thanks a lot,
    Mee

    hi,
    use this it will solve your problem, just write down this on your Fieldcatalog.
       WA_FIELDCATALOG-FIELDNAME = 'VALUE7'.
       WA_FIELDCATALOG-SELTEXT_L = 'Contribution EE(due)'.
      WA_FIELDCATALOG-DATATYPE = 'INT2'.           " it will remove trailing zero
      WA_FIELDCATALOG-DECIMALS_OUT = 0.
       APPEND WA_FIELDCATALOG TO IT_FIELDCATALOG.
       CLEAR WA_FIELDCATALOG.

  • How do I remove spaces and special characters from the file name during rendering?

    I understand that I can set LR_renamingTokensOn to true, but I would like to replace all spaces in the file name with an underscore and remove characters not in the range A-Z and 0-9. What's the easiest way to achieve this?

    local photo = catalog:getTargetPhoto()
    local sesn = LrExportSession {
        photosToExport = { photo },
        exportSettings = {
            -- ... (determine from export preset) - whatev you want, just be sure you set export directory: LR_export_destinationPathPrefix
            LR_tokens = "{{custom_token}}",
            LR_tokenCustomString = LrPathUtils.removeExtension( photo:getFormattedMetadata( 'fileName' ) ):gsub( "[ %c]", "" ) -- remove spaces and control characters
    sesn:doExportOnNewTask()

  • How to delete trailing zeros after decimal ?

    Hi,
    i want to delete trailing zeros after decimal.
    Example:
    if it is 22.000 then output will be 22
    if it is 22.010 then output will be 22.01.
    plz let me know hw to do this ?

    DATA:
      lv_decimal TYPE f DECIMALS 3,
      lv_string  TYPE string.
    lv_decimal = '22.010'.
    WRITE lv_decimal TO lv_string.
    SHIFT lv_string RIGHT DELETING TRAILING '0'.
    CONDENSE lv_string NO-GAPS.
    * now no trailing zeros are in the decimal stored in LV_STRING
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Jan 30, 2008 12:10 PM

  • How to delete trailing zeros after the decimal point in the ALV sum

    Hello Expert,
    In my alv output, I need to sum up one column, but in the sum result, I don't want to display zeros after the decimal point.
    for example,
    If the sum is 134.00, I only want to display 134 on the alv.
    Does any expert have idea about it?
    Thanks in advance,
    best regards, Johnny

    Hi ,
    Use following
    SHIFT variable RIGHT/LEFT DELETING TRAILING '0'.
    For more variations ,
    just write SHIFT and press f4 , it will show you the information you need.
    Hope this is helpful,
    Regards,
    Uma Dave

  • How to remove trailing space-sqlldr failed OCI-30951-exceeds max length

    sqlldr failed to load the xml into xdb ( table created through schema registration) because of the padded space in element 'Country' whose maximum length is defined as '3'…Is there any way to remove the extra trailing space using the control file or xdb annotation in the xsd? Thanks!
    <Address>
    <StreetAddress1>1 BRKSTONE SQ </StreetAddress1>
    <StreetAddress2>SUITE 5 </StreetAddress2>
    <City>ANDOVER </City>
    <State>MA</State>
    <Country>USA </Country>
    <ZipCode>01810</ZipCode>
    </Address>
    Here is the errors I got:
    kgepop: no error frame to pop to for error 30951
    OCI-30951: Element or attribute at Xpath /BranchRegulatoryFiling/Branches/Branch[1]/Address/Country exceeds maximum length
    Errors in file :
    OCI-30951: Element or attribute at Xpath /BranchRegulatoryFiling/Branches/Branch[1]/Address/Country exceeds maximum length
    ----- Call Stack Trace -----
    Bus Error (core dumped)
    Here is my ctl file:
    load data
    infile *
    into table xml_stg_tbl
    append
    reenable disabled_constraints exceptions cnstr_xcptn_tbl
    xmltype(XMLDATA)(
    lobfn filler char terminated by ',',
    XMLDATA lobfile(lobfn) terminated by EOF
    BEGINDATA
    /tmp/1025552.xml
    Edited by: user10954036 on Jul 27, 2009 8:12 AM

    Hi,
    Its good that u pasted the complete log file. In your environment you have to run this upgrade tool only once from any of the middle tier.
    And with respect to your error that u got in precheck is quite simple. All u have to do is just run this script from by connecting to portal schema using sqlplus.
    Run dropupg.sql
    Location-------- /raid/product/OraHome_1/upgrade/temp/portal/prechktmp/dropupg.sql
    Later you re-run the upgrade tool and let me know the status.
    Good luck
    Tanmai

  • How to delete blank space from value of Infoobject in the transfer rule

    does anyboady know how to write a routine in the transfer rule in order to delete ending blank spaces from value of Infoobject 'ORDTEXT'. E.g. value: 'ABM    '?  After routine, the result should be 'ABM'.
    Thanks for any input.

    Deleting 'ending blank spaces' from a character type field (ie info-object or text) in SAP is not meaningful. For all usage, a char type field of length 8 having value  'ABM     '  is same as 'ABM'.
    Ok, HTML is changing the display in the above, so let me restate it
    For all usage, a char type field of length 8 having value  'ABM_____'  is same as 'ABM', take the underscore character (_) in the first string as a placeholder for space character.
    Edited by: Ajay Das on Jul 29, 2009 12:07 PM

  • ASK - How to delete line space in Word document using oracle form

    Hi,
    I have 1 template word document.
    Inside the word document template :
    abcdefg
    [START_TERMS]
    [END_TERMS]
    bbbbbbbbbbbbbbbb
    currently, my program only can delete the statement [START_TERMS] and [END_TERMS].
    so the result
    abcdefg
    ----> space area
    ----> space area
    bbbbbbbbbbbbbbbb
    My expected result is
    abcdefg
    bbbbbbbbbbbbbbbb
    How to replace that two space area in oracle form ?
    Please advise.
    Thanks for your help.
    regards,
    Iwan

    Hi
    Here my code :
    Function DeleteWord(MyOwnSelection OLE2.OBJ_TYPE, MyWord VARCHAR2) Return Boolean Is
    MyArgs OLE2.LIST_TYPE;
    vReturn boolean;
    Begin
    vReturn := FindWord(MyOwnSelection , MyWord);
    -- Can't Find The word
    if vReturn = False Then
         Return False;
    End if;
    OLE2.INVOKE(MyOwnSelection, 'Delete');
    MyArgs := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(MyArgs, '0');
    OLE2.ADD_ARG(MyArgs, '0');
    OLE2.INVOKE(MyOwnSelection, 'SetRange', MyARgs);
    OLE2.DESTROY_ARGLIST(MyArgs);
    Return True;
    End;
    returnValue := WordFunction.DeleteWord(MySelection, '[START_TERMS]');
    Thanks and regards,
    Iwan
    Edited by: user1888509 on Jun 7, 2011 10:34 PM

  • How to delete several spaces between clips on timeline

    I have hundreds of clip selects in my timeline pulled on a particular track.  However, they have spaces between all of them.  How do I delete all of the spaces, so that I can view the clips back to back.  I don't want to have to click on each space & hit delete a hundred times.  In FCP you could just pull a clip to a separate track at the end & higlight the space from the beginning of the sequence to that clip + hold down the delete..  It would delete, delete, delete quickly, closing the gaps on other tracks where possible.
    How can I do that efficiently in PremPro?!
    TIA,
    Heather

    http://www.youtube.com/watch?v=I89jYuZYvP8

  • How to delete excessive spaces for a string??

    like String s="i am a new guy"
    how to make it to "i am a new guy" ??
    i've tried trim() seems it does work for this case
    thanks

    oh......no i typed several spaces symbol between "i"
    and "am" in the first sentence, but this forum seems
    ignore those blank spacesIt doesn't if you use code tags. And it's not the forum, but HTML standard.
    so what i am trying to do is. what if there are say,
    100 spaces between two words in a sentence (string)
    and i want to delete the excessive space and make it
    just one space between two wordsThen trim() doesn't do what you want it to do. As the documentation clearly describes. Use replaceAll.

Maybe you are looking for

  • Edit in Photoshop not working from Lightroom

    Hi, I've just upgraded to CS5 and LR 3.2. From within LR I can Edit in Photoshop Elements but the Edit in Photoshop doesn't work. Just get some screen refresh flashing around, "Loading" displays then nothing. Even with CS5 already up and running. Any

  • Jar Signing // Missing Digest entries

    I have a signed jar's manifest file which does not contain all of the classes ( digest entries) archived in the jar. Shouldn't this be one to one -jar classes to digest entries? Is there a reason why some classes are omitted, whereby others are inclu

  • Missing lines in books

    Downloaded Nineteen Minutes by Jodi Picoult as the first book for my wife. It appears to be missing the last line, or several lines on the pages. I can use portrait or landscape mode but miss lines in either. Am I missing something?

  • BackupCloneIsOriginalFromParent Exception

    Argh, we got this incredible showstopper: Using OracleAS TopLink - 10g (9.0.4.5) (Build 040930) and the Spring Integration. 1. Use the PlatFormTransactionManager to get a transaction and transactionstatus. 2. Read a collection of objects from the dat

  • [svn:fx-4.x] 14837: Changing the way data tips are rendered in when mirrored.

    Revision: 14837 Revision: 14837 Author:   [email protected] Date:     2010-03-18 00:26:27 -0700 (Thu, 18 Mar 2010) Log Message: Changing the way data tips are rendered in when mirrored. Single data tip shows to left in RTL now which shows to right in