Routine help : How to get rid of "#" ?

Hello,
I know this issue has already been discudded many times here, but I'm still having problem with invalid caracter "#". We are loading Plant Maintenance Orders every morning  and the data load failed repeatedly due to the presence of a "#" character in the text line (fied C_TEXT = Slopklep gaat constant open en dicht#).
We've found that the "#" character is in fact interpreted by default, the corresponding hexadecimal code is "09".
We were unable to convince the R/3 team to correct the error on their side, therefore i tried to write the following abap routine :
Unfortunatly, I'm not really a great abaper , as you can see, and instead of beig corrected, the field is deleted.
Could you help me to write this routine ?
  data : hex_char type X value '09',
  hex_sp type X value ' ',
  hex_text type Xstring ,
  car_text like COMM_STRUCTURE-/BIC/C_TEXT.
  move COMM_STRUCTURE-/BIC/C_TEXT to hex_text.
  replace all occurrences of hex_char in hex_text
  with hex_sp in byte mode.
  move hex_text to car_text.
result value of the routine
  RESULT = car_text .
Any help would be greatly appreciated.
Best Regards.

Hello,
Thank you for your answer, but it didn't solve my issue :
I tried to use "replace" without considering the  hexadecimal characters.
data : car_text like COMM_STRUCTURE-/BIC/C_TEXT.
move COMM_STRUCTURE-/BIC/C_TEXT to car_text.
REPLACE ALL OCCURRENCES OF '#' IN car_text WITH SPACE.
result=car_text.
But it didn't work, the system uses character '#' for all hexadecimal values for which ABAP does not have an own character. In my case, the hexadecimal "09" is interpreted as "#".
I have returted to  the initial routine :
  data : hex_char type X value '09',
  hex_sp type X value ' ',
  hex_text type Xstring ,
  car_text like COMM_STRUCTURE-/BIC/C_KTEXT.
  move COMM_STRUCTURE-/BIC/C_KTEXT to hex_text.
I try here to convert the field C_KTEXT in hexadecimal
using the move intruction but it doesn't work.
hex_text remains blank
  replace all occurrences of hex_char in hex_text
  with hex_sp in byte mode.
  move hex_text to car_text.
therefore car_text is not filled
result value of the routine
  RESULT = car_text .
By debugging, the routine I have found that the follolwing
move COMM_STRUCTURE-/BIC/C_TEXT to hex_text.

Similar Messages

  • Hi, I have this green mark (with pointing arrow looks like a link) on some words show on my window screen when I open a web page, I wonder if it is a virus link or such. Need help how to get rid of it. Thanks

    Hi, I have this green mark (with pointing arrow looks like a link) on some words show on my window screen when I open a web page, I wonder if it is a virus link or such. Need help how to get rid of it. Here's the example:
    WING
    GAMES
    MAJORITY
    Thanks

    If the third link you posted (the link containing the word "majority") does not look like the following then you inadvertently installed adware.
    That particular page should resemble the following:
    The word "majority" in the third paragraph should not be a link and should not have the green icon associated with it.
    To learn how this may have occurred, and how to prevent it from occurring in the future, read How to install adware
    Most so-called "news" websites are nothing more than entertainment outlets that cater to prurient interests, and contain advertisements that leave the user about three clicks away from installing junk. If you decide to frequent those websites, Safari's "Reader" feature helps minimize that exposure.
    Try it:

  • Help:  How to get rid of the default None from Radio buttons?

    Hi, I searched the forum and found a work around for inputSelect. It seemed it does not work for Radio buttons, i.e., inputSelectGroup with multiple=false.
    Please anyone help us to get rid of the none choice for gender among female and male. Thank you very much in advance.
    ZD

    The 'none' choice is automatically displayed for fields that allow nulls.

  • Help: How to get rid off the default Window menu from FORM screen?

    Hi,
    I am working on a FORM application. On the very top left of the FORM screen, there is a default Window menu with:
    Cascade
    Tile Horizontally
    Tile Vertically
    etc.
    The end user will never use it for this application. To make the screen look nicer, is there a way to hid or get rid off it?
    Also if possible, I want to hid or get rid off very top "Oracle Developer Forms Runtime - Web"
    Thanks.
    Jimmy

    Also if possible, I want to hid or get rid off very top "Oracle Developer Forms Runtime - Web"I see you are running with separate frame. In the When-new-form-instance trigger, use
    Set_Window_Property(Forms_MDI_Window, Title, "xyz" );
    to change the window title.

  • I keep getting asked to agreed to the new terms and conditions and can not accept them please help, how to get rid of it?

    I need help please I have my i phone, im setting the icloud and it keeps telling me to accept the new terms and conditions but the page wont populate for me to accept it, im getting annoying with it the pop up us making me crazy plase help.

    Try these...
    1)  Press the Accept Button Twice...
    2)  Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear...
    Usually takes about 15 - 20 Seconds... ( But can take Longer...)
    Release the Buttons...

  • Need Help: How to get rid the NoInitialContextException

    import javax.naming.*;
    import java.io.*;
    import java.util.*;
    public class test {
    public static void main(String[] args) throws Exception{
    Context ctx = new InitialContext();
    Hashtable env = ctx.getEnvironment();
    System.out.println(env.toString());
    I'n trying to printout the environment contained in the initial context but it just keeps giving me the NoInitialContextException during runtime. Below are the version of j2se and classpath i have set.
    J2SE version: J2SDK 1.3.1_03
    Classpath: %JAVA_HOME%/lib
    OS: WIN2K
    My Knowledge on JNDI: ROOKIE (Beginner)
    Please help out.

    tehts,
    You must set the environment first:
    import java.util.Hashtable;
    import javax.naming.*;
    import javax.naming.directory.*;
    env = new Hashtable(5, 0.75f);
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
    env.put(Context.PROVIDER_URL, URL);
    env.put(Context.SECURITY_AUTHENTICATION, "simple");
    env.put(Context.SECURITY_PRINCIPAL, DN); //use your own one
    env.put(Context.SECURITY_CREDENTIALS, PassWord); //use your own one
    try {
    ctx = new InitialDirContext(env);
    Hashtable env1 = ctx.getEnvironment();
    System.out.println(env1.toString());
    } catch (NamingException e) {
    e.printStackTrace();
    Hope this helps.
    Cheers,
    George

  • I cant update nor download any applications. My password was always invalid. And other username is prompted richardca0521@yahoo.ca which is not my account. How to get rid of this apple id and use my account for download? I have registered this to itunes.

    I can't update nor download any apps in itunes. Prompted invalid password, upon checking the apple id was not mine. The id was [email protected] whic is not mine. Pls. Help how to get rid of this. Thank you.

    try and delete the apps and re-add them

  • I have a new iPhone 5S.  While trying to learn about it, I accidentally recorded a voice memo with no content.  I cannot now figure out how to get rid of it.  There is a banner across the top of my phone with this memo which I don't want.  Help!

    I have a new iPhone 5S.  While trying to learn about it, I accidentally recorded a voice memo with no content.  I cannot now figure out how to get rid of it.  There is a banner across the top of my phone with this memo which I don't want.  I have deleted it from iTunes but cannot get it off the phone.  Help!

    The banner usually indicates that the memo is "Paused." If you go back into voice memos, touch the word "Done" beside the big red pause button, give it a name, then it will show in a list. Touch the memo in the list then touch the trash can icon that should appear.

  • TS3899 Getting a "background picture of angry birds" in back of my e mail messages...any ideas how to get rid of this?  Thanks for your help

    All of a sudden I am getting a background picture of angry birds in my e mail.  I can view the mail but it is annoying.
    I have cleard the history an still it appears.   Any ideas on how to get rid of this garbage?  Thanks for your help.

    Bettina:
    Do you see the color in Designer, or only Acrobat. If it's only in Acrobat, try changing the menu item Forms >> Highlight Fields. This toggles entry field highlights on and off.
    Mark
    You can shut off or change the highlight with this
    app.runtimeHighlightColor = color.red;
    if (app.runtimeHighlight)
    app.runtimeHighlight = false;

  • Somehow i have got mackeeper and the smartsearchnet on mac air. I do not know how to get rid of it! please help me

    I have got mackeeper and smart search.net on my Mac air. I am new to mac's so i am so lost in how to get rid of things. Im not sure how i got it but i just want it gone now   mac book is only a couple months old so running all latest programmes on it. Can anyone help me please?

    You may have installed a variant of the "VSearch" ad-injection malware. Follow Apple Support's instructions to remove it.
    If you have trouble following those instructions, see below.
    Malware is always changing to get around the defenses against it. This procedure works as of now, as far as I know. It may not work in the future. Anyone finding this comment a few days or more after it was posted should look for a more recent discussion, or start a new one.
    The VSearch malware tries to hide itself by varying the names of the files it installs. To remove it, you must first identify the naming pattern.
    Triple-click the line below on this page to select it, then copy the text to the Clipboard by pressing the key combination  command-C:
    /Library/LaunchDaemons
    In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.
    A folder named "LaunchDaemons" may open. Look inside it for two files with names of the form
              com.something.daemon.plist
    and
               com.something.helper.plist
    Here something is a variable string of characters, which can be different in each case. So far it has always been a string of letters without punctuation, such as "cloud," "dot," "highway," "submarine," or "trusteddownloads." Sometimes it's a meaningless string such as "e8dec5ae7fc75c28" rather than a word. Sometimes the string is "apple," and then you must be especially careful not to delete the wrong files, because many built-in OS X files have similar names.
    If you find these files, leave the LaunchDaemons folder open, and open the following folder in the same way:
    /Library/LaunchAgents
    In this folder, there may be a file named
              com.something.agent.plist
    where the string something is the same as before.
    If you feel confident that you've identified the above files, back up all data, then drag just those three files—nothing else—to the Trash. You may be prompted for your administrator login password. Close the Finder windows and restart the computer.
    Don't delete the "LaunchAgents" or "LaunchDaemons" folder or anything else inside either one.
    The malware is now permanently inactivated, as long as you never reinstall it. You can stop here if you like, or you can remove two remaining components for the sake of completeness.
    Open this folder:
    /Library/Application Support
    If it has a subfolder named just
               something
    where something is the same string you saw before, drag that subfolder to the Trash and close the window.
    Don't delete the "Application Support" folder or anything else inside it.
    Finally, in this folder:
    /System/Library/Frameworks
    there may an item named exactly
                v.framework
    It's actually a folder, though it has a different icon than usual. This item always has the above name; it doesn't vary. Drag it to the Trash and close the window.
    Don't delete the "Frameworks" folder or anything else inside it.
    If you didn't find the files or you're not sure about the identification, post what you found.
    If in doubt, or if you have no backups, change nothing at all.
    The trouble may have started when you downloaded and ran an application called "MPlayerX." That's the name of a legitimate free movie player, but the name is also used fraudulently to distribute VSearch. If there is an item with that name in the Applications folder, delete it, and if you wish, replace it with the genuine article from mplayerx.org.
    This trojan is often found on illegal websites that traffic in pirated content such as movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow. Never install any software that you downloaded from a bittorrent, or that was downloaded by someone else from an unknown source.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Then, still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates (OS X 10.10 or later)
    or
              Download updates automatically (OS X 10.9 or earlier)
    if it's not already checked.

  • How to get rid of Yahoo which has replaced itself as the search engine on safari . I have tried going to safari and changing the default search engine to google and the homepage to no avail can anyone PLEASE help

    After updating Firefox . I notice Yahoo has taken over as the search engine on safari . I have gone into safari and changed the default browser and home page to google but yahoo is still there . Can someone Please tell me how to get rid of Yahoo . peter

    Since I looked everywhere for this answer and never found it I decided I needed to help!
    1. GO TO THE TOOL BAR WHERE IT SAYS SAFARI AND CLICK TO BRING DOWN THE MENU OF OPTIONS, CLICK ON PREFERENCES
    2.INSTEAD OF JUST CLICKING ON THE GENERAL TAB AND CHANGING THE SEARCH ENGINE LIKE EVERY OTHER STUPID SUPPORT TELLS YOU TO DO LOOK AT THE TAB THAT SAYS EXTENSIONS.
    3. Chances are you downloaded something that was made by a third party to "enhance" your web experience but really they just screwed you over, YOU CAN CHOOSE TO SIMPLY UNINSTALL ANY EXTENSIONS PUT ON YOUR COMPUTER BY CLICKING INSTALL, BUT TO BE SURE THAT THIS IS THE ROOT OF YOUR PROBLEM IN THE SECOND COLUMN SIMPLY CLICK ON THE UNDERLINED NAME OF WHO THE EXTENSION IS MADE BY IF CLICKING THE LINK BRINGS UP A YAHOO PAGE THIS IS THE SOURCE OF YOUR ISSUES AND SIMPLY UNINSTALLING THIS WILL RID YOU OF THIS  DUMB PROBLEM!!
    HOPE THIS HELPS!!!!

  • HT1338 How to get rid of Apple Support Community notices, my box is full I receive thousand a day and I really cannot handle it.  Please help, I cannot find the notification tad in my "preferences"  I have Mac OS X 10.7.5.  Please help it is urgent

    How to get rid of Apple Support Community notices?  my box is full as I receive thousand of messages a day.  I cannot handle it anymore, please it is urgent.  Help!  I have Mac OS X 10.7.5 and unable to find the "notification tab" in my "preferences"  I need a image if possible to better understand.  Thanks a lot.

    Thank you, but I just  tried everything you said, my apple id account (icloud) continues and still is receiving the email from ASC each second.  My i phone and macpro (i cloud account) is full of messages that I have difficult to erase at once.  I have to do it one by one which can take me the whole day.  How can i unsucribe from ASC, just get ride of my account, I mean cancel the ASC account, so I will not get any messages.  Please help.  Thanks.

  • Need help!!! how to get rid of ads (pop under)

    i need help! does anyone know how to get rid of popunder ads! doesn't matter how...i just want them gone!

    The simple answer is to avoid the sort of trashy website that serves such ads. The complicated answer is to disable JavaScript when visiting those sites, or to install ad-blocking software such as GlimmerBlocker.

  • Can anyone tell me how to get rid of tlb search? it unfortunately entered into my mac. Whenever I use safari, a pop-up window opens with some ads. Please help me to find a way to remove this malware.

    Can anyone tell me how to get rid of tlb search? It unfortunately entered into my mac. Whenever I use safari, a pop-up window opens with some ads. Please help me to find a way to remove this malware.

    You installed the "DownLite" trojan, perhaps under a different name. Remove it as follows.
    Malware is constantly changing to get around the defenses against it. The instructions in this comment are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
    Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    /Library/LaunchAgents/com.vsearch.agent.plist
    Right-click or control-click the line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item named "VSearch" selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
    Repeat with each of these lines:
    /Library/LaunchDaemons/com.vsearch.daemon.plist
    /Library/LaunchDaemons/com.vsearch.helper.plist
    /Library/LaunchDaemons/Jack.plist
    Restart the computer and empty the Trash. Then delete the following items in the same way:
    /Library/Application Support/VSearch
    /Library/PrivilegedHelperTools/Jack
    /System/Library/Frameworks/VSearch.framework
    ~/Library/Internet Plug-Ins/ConduitNPAPIPlugin.plugin
    Some of these items may be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including any that have the word "Spigot" or "Conduit" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    This trojan is distributed on illegal websites that traffic in pirated movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect much worse to happen in the future.
    You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that the DownLite developer has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing, has not done so, even though it's aware of the problem. This failure of oversight is inexcusable and has compromised both Gatekeeper and the Developer ID program. You can't rely on Gatekeeper alone to protect you from harmful software.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • Since upgrading to 10.7.2 to use iCloud, i keep getting a message with ubd wants to use the login keychain, anyone for help to how to get rid of this...

    since upgrading to 10.7.2 to use iCloud, i keep getting a window message with ubd wants to use the login keychain, i put the right password but it keeps coming back, anyone for help to how to get rid of this...

    This is what I did and it seems to have worked so far. While that little annoying box is up you need to open the Keychain access by:
    going to applications -> open utilities folder -> click to open Keychain Access
    Now here is the stupid part, you have to continue to press the cancel button on the "ubd wants to use login keychain" box for the kaychain window to open. Once you have keychain access open go to:
    the top of your monitor and select "Keychain Access" right next to the little apple logo -> click preferences in the options panel-> the preference box will open now -> click "Reset My Default Keychain" -> another box will pop up that says "Please enter your login password. This password will be used to create your new keychain" (of course this is assuming that you use a login password to access your mac) -> enter your login password and a box shows up that says "created a new empty 'Login' keychain"
    After that you should be good to go. This new keychain you created with your login password overides the old keychain. The old keychain is still available in the Keychain's folder but is not being used and therefor can be deleted. All you have to do now is press ok, and your good. If the "ubd wants to use login keychain" box is still there after you reset your keychains just hit cancel and it should be gone for good or you can enter your login password.
    Is this a fixall that will work forever? I have no idea but doing this has allowed me to access my network at work and all the servers I need to get to.
    Oh and one more thing. You may need to press cancel on the ubd box throughout this entire process, I just gon in the habit of clicking a button hitting cancel on the ubd box and the new window would pop up.
    I hope this helps you! Sorry if it's long, I was trying to be as detailed as possible to make it  easier. Let me know how it goes.

Maybe you are looking for