Transfer rules - Removing invalid hex chars

Hi,  tried using REGEX command replacing all '\W' with spaces to remove an invalid character (horizontal tab) from a Description field.
However the result didnt leave a space but condensed the characters that were either side of the offending character.
i.e  Test#Description   became TestDescription instead of Test Description
Does anyone know of anyother techniques/code that provide a solution ?
Thanks..Steve

Sam,
  This is pretty much what I tried. I tried
i) REPLACING ALL OCCURRENCES OF REGEX '\W'  WITH SPACE   and
ii) REPLACING ALL OCCURENCES OF REGEX '\W' WITH ' '
Both resulted in the space being condensed in the resultant field.  I suspect using a variable containing the space is effectively the same thing.
Regards...Steve
PS  '\W'   detects all non alphanumeric chars
      '\w'  would detect all alphanumeric chars

Similar Messages

  • BW3.5: Error message when trying to activate the transfer rule

    When I was trying to activate the transfer rule for one info object( charateristic with master data) , I got the following error  in [[  ]]
    Error when creating transfer structure /BIC/CCPIZGR00CC_ATTR in source system CI2220
    Diagnosis
    An error occurred when creating transfer structure /BIC/CCPIZGR00CC_ATTR as an IDoc segment in source system CI2220 .
    System response
    The action was terminated. No data was changed.
    Procedure
    Use the generation log in source system CI2220 to identify the error, and remove the cause.
    CI2220 is the backend R/3 system, I had no issue in replicating the data source etc. this error occurred while trying to activate the transfer rule after assigning the info source to the replicated datasource in BW.
    Can anybody tell me how to view( what transaction etc) the generation log to understand the issue?
    Thanks in advance
    Arunabha

    Hi Roberto,
      Thanks for yoyur prompt reply, I would try to follow the instruction, but at the same time please note that previously we had no issue in activating the transfer structure. I would like to see the log in the source system, but don't know how to and which transaction to use etc. any help would be appreciated.
      Thanks
    ARUN

  • 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

  • How to debug a transfer rule during data load?

    I am conducting a flat file (excel sheet saved as a CSV file) data load.  The flat file contains a date field and the value is '12/18/1988'.  In transfer rule for this field, I use a function call to transfer this value to '19881218' which corresponds to BW DATS format, but the monitor of the InfoPackage shows red error:
    "Value '1981218' of characteristic 0DATE is not a number with 000008 spaces".
    Somehow, the last digit or character of the year 1988 was cut and the year grabbed is 198 other than 1988.  The function code is (see below in between two * lines):
    FUNCTION ZDM_CONVERT_DATE.
    ""Local Interface:
    *"  IMPORTING
    *"     REFERENCE(CHARDATE) TYPE  STRING
    *"  EXPORTING
    *"     REFERENCE(DATE) TYPE  D
    DATA:
    c_date(2) TYPE c,
    c_month(2) TYPE c,
    c_year(4) TYPE c,
    c_date_combined(8) TYPE c.
    data: text(10).
    text = chardate.
    search text for '/'.
    if sy-fdpos = 1.
      concatenate '0' text into text.
    endif.
    c_month = text(2).
    c_date = text+3(2).
    c_year = text+6(4).
    CONCATENATE c_year c_month c_date INTO c_date_combined.
    date = c_date_combined.
    ENDFUNCTION.
    Could experts here tell me what's wrong and also tell me on how to debug a transfer rule during data load?
    Thanks

    hey Bhanu/AHP,
    I find the reason.  Originally, I set the character length for the date InfoObject ZCHARDAT1 to 9, then I find the date field value (12/18/1988)length is 10.  Then I modified the InfoObject ZCHARDAT1 length from 9 to 10 and activated it already.  But when defining the transfer rule for this field, before the code screen, click the radio button "Selected Fields" and pick the filed /BIC/ZCHARDAT1, then continue to go to the transfer rule code screen, but find the declaration lines for the infoObject /BIC/ZCHARDAT1 is as following:
      InfoObject ZCHARDAT1: CHAR - 000009
        /BIC/ZCHARDAT1(000009) TYPE C,
    That means even if I've modified the length to 10 for the InfoObject and activated it, but somehow the transfer rule code screen always takes the old length 9.  Any idea to have it fixed to take the length 10 in the transfer rule code screen defination?
    Thanks

  • Receiving ORA-01465: invalid hex number when using HEXTORAW

    I'm trying to use hextoraw to convert a value in a CSV file read from an external table. Works on some systems and not on others. Is there a way that I can avoid this or program around this? Any ideas what the problem is? It fails with an “invalid hex value” .
    This is for Oracle 10.2.0.4 Here is the code and the external table that I’m using.
    select HEXTORAW(REPLACE(EnkryptedPassword,'0x')) FROM CUSTOMER1; <--- Failes or ORA-01465 (CSV file data below)
    CREATE TABLE CUSTOMER1
    UserID VARCHAR2(100 CHAR),
    FirstName VARCHAR2(50 CHAR),
    LastName VARCHAR2(50 CHAR),
    Locked VARCHAR2(50 CHAR),
    CustomerID VARCHAR2(100 CHAR),
    Pwd VARCHAR2(100 CHAR),
    EnkryptedPassword VARCHAR2(100 CHAR)
    ORGANIZATION external
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY ARCHIVE
    ACCESS PARAMETERS
    RECORDS DELIMITED BY NEWLINE
    FIELDS TERMINATED BY ","
    MISSING FIELD VALUES ARE NULL
    LOCATION ('PWDCONVERSION2')
    REJECT LIMIT 1
    COMMIT
    Inside the PWDCONVERSION2 file:
    [email protected],JOHN,SMITH,1,C_2M8C2F_CM_NC,C_2M8C2F_CM_NC,0x7C4141938A1F69944BFCA0BED5BB3FEA3CA92A7

    Thank-you for the response. I believe I may have found the problem (probably).
    On some systems the ACCESS PARAMETER for the external table "RECODRDS DELIMITED BY NEWLINE" will not work if there is some other character other than "\n". In windows it works fine. On some other systems it works finds as well. On Linux Distro I tend to run into problems. I tried this out for more than one line in the CSV. Then scaled back to just one line. It accepted one line but not more than one line. So I trying
    RECORDS DELIMITED BY NEWLINE CHARACTERSET WE8MSWIN1252
    Any ideas what would help recognize all types of newline characters?

  • BE3.5 : Error from the source system while activating the transfer rule

    When I was trying to activate the transfer rule for one info object( charateristic with master data) , I got the following error  in [[  ]]
    Error when creating transfer structure /BIC/CCPIZGR00CC_ATTR in source system CI2220
    Diagnosis
    An error occurred when creating transfer structure /BIC/CCPIZGR00CC_ATTR as an IDoc segment in source system CI2220 .
    System response
    The action was terminated. No data was changed.
    Procedure
    Use the generation log in source system CI2220 to identify the error, and remove the cause.
    CI2220 is the backend R/3 system, I had no issue in replicating the data source etc. this error occurred while trying to activate the transfer rule after assigning the info source to the replicated datasource in BW.
    Can anybody tell me how to view( what transaction etc) the generation log to understand the issue?
    Thanks in advance
    Arunabha

    Hi Arunabha,
    I would confrim that there is no issue with the datasource in your r/3 system. Can you run the datasource on your r/3 system with no errors using RSA3?
    If the datasource is ok, then I would check out the error message number in OSS or SDN. I have seen this error before, I just cannot recall what the fix was.
    Cheers!

  • Issue with the activation of transfer rules

    Hi,
    I am working with the datasource 0PRODUCT_TEXT, and I am trying to install transfer rules from BI Content and unable to get the active version.
    But the transfer rules are showing inactive and the error is as follows.
    Error generating program
    Message no. RSAR245
    Diagnosis
    An error occurred during program generation:
    Template:   RSTMPL80
    Error code: 6
    Row:        47
    Message:    Statement concluding with "...LIKE" ended unexpect
    Procedure
    Correct the template to remove the problem
    Please help me in this issue.
    Thanks in advance,
    Rama Murthy.

    Try to run RSActivate* all transfer rule program that will activate the inactive transfer rules. Don't forget to replicate the datasource once again before you run the program.
    thanks.
    Wond

  • Purpose of Routine in transfer rules in BW

    Hello BI Gurus,
    Please tell me the purpose of "Routine" selection in the transfer rules.
    with regards,
    vasu

    Vasu,
    The routine selection in TRs has many uses and advantages like cleansing, removing, transforming the data to your desired requirements from what it was not so. 
    Check out this link for an understanding of routines:
    http://help.sap.com/saphelp_nw70/helpdata/en/e3/732c42be6fde2ce10000000a1550b0/frameset.htm
    Hope this helps.

  • Urgent : Error in transfer rule of 0material_attr

    Hello,
    We are trying to activate transfer rules of InfoSource 0MATERIAL_ATTR
    in BW Quality System. But We are getting the following error message:
    ================================================
    Error when generating the message type for transfer
    structure /BIC/CCBA0MATERIAL_ATTR
    Message no. R3115
    Diagnosis
    An error occurred in the generation of the ALE message type for the
    transfer of changes to a certain basic characteristic.
    System response
    The transfer of changes to this basic characteristic cannot be carried
    out.
    Procedure
    Errors in the number range object for the naming of the message type or
    errors with the entries in the respective ALE tables could be the
    possible cause.
    ======================================================
    Pl. help me to resolve the issue

    Hi,
    Use tcode RSRV to repair object. Goto RSRV>All Combined test>Master data-->Check Master data for a char .
    hope it helps...
    regards,
    raju

  • Error when trying to access 2LIS_VDITM transfer rules

    hi everyone,
    i need help with this issue if you have any ideas/suggestions
    even though i had installed these transfer rules properly and i have loaded data in my infocube,
    i now get a meesage_type_x error when i try to access the transfer rules. the error refers to a navigational attribute which:
    a. i cannot find in my infocube so i can remove it
    b. i cannot find in my infoobjects in BI_cont so i can install it
    the error is the following and i would appreciate your input as i am completely stuck in my work now, thanks:
    Error analysis                                                                                |
    Short text of error message:
    ATR_NAV_OF_DTA_PRO_NOT_FOUND 0SOLD_TO__0DB87SIC1
    Long text of error message:
    Technical information about the message:
    Message class....... "R7"
    Number.............. 000
    Variable 1.......... "ATR_NAV_OF_DTA_PRO_NOT_FOUND"
    |    Variable 2.......... "0SOLD_TO__0DB87SIC1"

    hi
    check this link may this helps you
    ATR_NAV_OF_DTA_PRO_NOT_FOUND" in 2LIS_13_VDITM
    error when installing purchasing infocube
    http://boardreader.com/thread/Dump_while_change_or_display_of_a_Transf_6rhnjX163h2.html
    Edited by: Srikanth.T on Oct 31, 2011 10:06 AM

  • Activating Transfer Rules

    Hi All,
    After activating the Transfer Rules (means ) what will happen in bw side .  I mean what about psa & Transfer structure?  In the backend of the system exactly what happens while activating T.R's?(what structure formats will create).
    Its my interv ques.  Pls help me.
    Thanks inadvance,
    K. Yogeswaran.

    Hi,
    When you activate transfer rules your BW will create an extract structure, a PSA table, generate a program to write the extracted records into your PSA, generate a program for the transformation of your extract structure into the communication structure (you TRules).
    The PSA table is having exactly the same structure than your extract structure. Now imagine that you had data already in your PSA table.  If you remove a field from your extract structure, that would mean remoiving a field from your PSA table.
    Since you will loose data, the system will generate a new version of your PSA table. You can check the PSA table versions in table RSTSODS. Adding a field to the extract structure won't result in a new PSA table.
    hope this helps
    Olivier.

  • Transfer rules partly maintained

    Hi Experts,
    In transfer rules when I am activating it is showing transfer rules activated but when I see above the tab of transfer rules,I can see transfer rules are partly maintained(it is yellow also above its tab)
    Can anyone tell why it is showing so.
    why I am concerned is that i m getting short dump error in my infopackage.
    thanks in advance.
    Edited by: Meenu Laul on Nov 25, 2008 5:52 AM

    Thanks for your reply.
    I checked ST22 and it is showing me this message :
    '25.11.2008     09:02:54     mmscmdev     100     C     MESSAGE_TYPE_X'     
    I dont know exactly how to see error in short dump.Can anyone help me in it?
    though I know it is run time error.So I checked Update rule and transfer rule and didn't find anything which is wrong.
    I checked data source after replicating it in RSA3 and it is showing data.
    what could problem.all suggestions are welcome and <removed by moderator>.
    Edited by: Siegfried Szameitat on Nov 25, 2008 10:23 AM

  • Activate transfer rules - problem

    I was creating transfer rules for DSO 0FIGL_O02 for infosources 0FI_GL_4. Activate transfer rules  bring me mistake :Data element for InfoObject BELNR 0AC_DOC_NO could not be created.
    Information from log:
    Data element for InfoObject BELNR           0AC_DOC_NO could not be created
    Message no. RSAR274
    Diagnosis
    Special data elements of the type and length of the source system are required for creating the transfer structure. Errors occurred while creating a data element of this type for InfoObject BELNR           0AC_DOC_NO. The data element should be of type CHAR and length 000010. The technical name of the data element is /BIC/OW_######################.
    Procedure
    Check the log.
    Check data element /BIC/OW_###################### in the repository. Activate data element /BIC/OW_###################### in the repository and check the activation log, if necessary.
    0AC_DOC_NO - is important because this is key in DSO. This object have type CHAR and length 10. What i shoult do?

    Hi,
    Activate the Infoobject 0AC_DOC_NO is not recognizing by system please re-activate this once again and check the transfer rules.
    Regards,
    Anand Tej.

  • REVERSE  TRANSFER  RULES

    Dear all Experts,
    I am SAP-BW trainee.
    what are reverse transfer rules ?
    In which cases these are used?
    can anybody give me links related to this topic , which will be helpful for beginers.
    Thanks and Regards
    Vinay S. Joshi

    Hi,
    The <b>reverse</b> transfer rules are coded within the transfer rules themselves.
    Imagine the following scenario:
    From R/3, you use an abap routine in the transfer rules to convert some characteristic values when you load BW. By example you add a prefix at the customer codes like the value  <b>R3</b>.
    From a BW query displaying some sales orders, you want to display the customer views in R/3 directly (transaction XD03). You customize the targets from the BW query to the R/3 system (transaction RSBBS in BW). However, you must remove the prefix previously added!!! SAP R/3 does not know any customer beginning with <b>R3</b> as a prefix.
    Within the same update rules, you will see two parts of Abap code. The first part is for the data flow <b>SAP R/3 to BW</b>. The second part is for the flow <b>BW to SAP R/3</b> : reverse transfer rules ...
    Just have a look and tell me if you find that.
    Regards,
    Laurent

  • Removing TCP hex codes from ascii string

    I have a TCP connection to my VI and I'm using PuTTY to communicate with it. It is a basic terminal with a few commands. On boot my first command is always unrecognized because a few TCP protocol's are sent immediately beforehand:
    FF FB 1F “window size”
    FF FB 20 “terminal speed”
    FF FB 18 “terminal type”
    FF FB 27 “Telnet Environment Option”
    FF FD 01 “echo”
    FF FB 03 “suppress go ahead”
    FF FD 03 “suppress go ahead”
    Each command is always proceeded by a command character "FF". I can remove the entire offending sting without any problem, however what I've been trying to do is remove any hex code following the command character. I have tried a few things with regular expressions without much luck. Any insight on how to solve this challenge would be appreciated!
    Thanks,
    Devin 

    I'm not a regular expression power user, but I'd try something like the code below (right-click on "Search and Replace String" to set the "Regular Expression" option). This code looks for \FF followed by either \F0 through FA, or \FB through \FE followed by any other character, which I think matches the rules in the Telnet protocol as listed here: http://tools.ietf.org/html/rfc854 It replaces any match found with an empty string.

Maybe you are looking for