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

Wierd characters

former_member445996
Participant
0 Likes
571

Hi All,

How can I check for Null, line feed, carriage return within a field. My issue is that I am using READ_TEXT function module to get the sales text of a material but SAP returns the followin in the internal table "##################################################'c7" if the text is not found and appends the following

"##################################################yk" if the text is found. Does anyone have any idea what these are and how can I check for the and eliminate these before writing to the table.

Any ideas/suggestions will be greatly appreciated.

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
548

Hi Aurang,

I will suggest that you first check a "REAL" text using VA03 transaction and then run the FM READ_TEXT using SE37 for the same Sales Order. Sometimes you text tables gets currupted in text environment due to client copy etc.

If you still have the same problem check the Hex code for these characters by pressing the lens button (details icon) in debug mode. You will get a hint on what is wrong with your text.

Cheers,

Sanjeev

Hi All,

How can I check for Null, line feed, carriage return within a field. My issue is that I am using READ_TEXT function module to get the sales text of a material but SAP returns the followin in the internal table "##################################################'c7" if the text is not found and appends the following

"##################################################yk" if the text is found. Does anyone have any idea what these are and how can I check for the and eliminate these before writing to the table.

Any ideas/suggestions will be greatly appreciated.

Thanks

3 REPLIES 3
Read only

Former Member
0 Likes
548

Anurag,

Since I never faced this problem before, I am assuming that unless you have weird characters in your textname the internal table doesn't get those.

Go to SO10 enter the textname, text ID and see whether you have any unnecessary characters in that.

Good luck.

Read only

Former Member
0 Likes
548

Hi,

check out the length of the fields in internal table.

With regards,

praveen.

Read only

Former Member
0 Likes
549

Hi Aurang,

I will suggest that you first check a "REAL" text using VA03 transaction and then run the FM READ_TEXT using SE37 for the same Sales Order. Sometimes you text tables gets currupted in text environment due to client copy etc.

If you still have the same problem check the Hex code for these characters by pressing the lens button (details icon) in debug mode. You will get a hint on what is wrong with your text.

Cheers,

Sanjeev