cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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.

View Entire Topic
Former Member
0 Kudos

Hi,

Did you try and add # to the list of allowable characters using Tcode RSKC. That should get rid of your data load problem. But you would still have it show up and displayed as #. For that the routine has to be there.

Cheers,

Kedar

Former Member
0 Kudos
  1. isn't the problem

  2. is just a dynpro trying to display hex 09 - it will still display # if it was hex 07

Former Member
0 Kudos

Hi Kedar,

Could you please provide me a full solution on how to remove the # symbol in my report.

Thanks in advance.

Regards,

Azimah