Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

hash symbol

Former Member
0 Kudos
1,860

Hi ,

In ECC ,

If we have '#' Symbol in Material Description , after finishing the program when we check in AL11.

Material Description like: Presure Roller , Glass Washer# 3F001

DAT file like : it splits as two records instead of one without hash symbol

0009935798|00001|||0010| Presure Roller , Glass Washer

3F001|0001|| 0.000| 1.000|7FSEMI S2-0703AEI|

Could you please let me know what might be the reason to split the line when there is "#' symbol in description.

And also let me know without replacing the '#' can we get the ' #' in DAT file

Please.help me

Regards ,

Kiran.

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Kudos
803

Hello Kiran,

Only feasible reason i suppose is that the system is trying to interpret '#' as a 'Line Feed' character (<CR/LF>) which is why it is splitting the record into a new line :-((

BR,

Suhas

4 REPLIES 4
Read only

Former Member
0 Kudos
803

ru spilting the fields baesd on the # key? need to split '|' with pipe symbol...

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Kudos
804

Hello Kiran,

Only feasible reason i suppose is that the system is trying to interpret '#' as a 'Line Feed' character (<CR/LF>) which is why it is splitting the record into a new line :-((

BR,

Suhas

Read only

Former Member
0 Kudos
803

Hi ,

Thnaks for your reply.

How to avoid that . i tried to use all the commands to replace the '#' .

some material descriptions , we are unable to replce it .

even it has hash , it is not going into inside the if statement.

IF wa_makt-maktx CA c_hash.

ENDIF

it is failing the condition even it contains '#' symbol that 2 only for some material descriptions not for all

Please.help me regard .

Regards

Kiran

Read only

Former Member
0 Kudos
803

Hi

Not sure if yours is the same case but I believe this thread should help you out.

"some times #(hash) is shown bcoz...some Binary characters which cannot be read by SAP Unicoded system will be shown as #(hash). check the attributes of the class CL_ABAP_CHAR_UTILITIES and find and replace with characters in there...mainly CR_LF (Carriage Return and Line Feed" Character Pair)

data: lv_hash type c value CL_ABAP_CHAR_UTILITIES=>CR_LF.

replace all occurances of lv_hash with '0' in ur_sting."

Regards,

Clarice