‎2008 May 07 8:12 AM
Hi All,
I am seeing in the below shown code while debugging
the character hash (## line 820 -822) .
I didn't set them they are also not existing in my source.
They were set automatically it is very strange.
Do have an idea why ?
Regards
ertas
817 clear wa_zehs_incident_li.
818 LOOP AT lt_zehs_incident_li INTO wa_zehs_incident_li
819 where LOA in s_uort
820 ## and WTIME in s_azeit
821 ## and machine in s_masch
822 ## and injury IN s_verlet
823 and bodypart IN s_kteil
824 and ORGEH in p_orgeh
825 and PERSA in s_per
826 and BTRTL in s_ptb.
828 IF SY-SUBRC EQ 0.
829 MOVE wa_zehs_incident_li TO lt_ZEHS_INCIDENT_RES.
830 APPEND lt_ZEHS_INCIDENT_RES.
831 ENDIF.
832 ENDLOOP.
‎2008 May 07 8:32 AM
Hi,
DId you copy and pasted this code in your program?
When ever you copy and paste the code from ms word then in SE38 tab spaces will be replaced with the ASCII characters so just remove those tab spaces from your proagram.
Or rather copying this from MS word you just type all code manually in the program.
Thanks,
Shravan G.
‎2008 May 07 8:16 AM
‎2008 May 07 8:21 AM
everythig has been activated!
What else can cause that ?
Reagards
ertas
‎2008 May 07 8:32 AM
Hi,
DId you copy and pasted this code in your program?
When ever you copy and paste the code from ms word then in SE38 tab spaces will be replaced with the ASCII characters so just remove those tab spaces from your proagram.
Or rather copying this from MS word you just type all code manually in the program.
Thanks,
Shravan G.
‎2008 May 07 8:38 AM
This is probably because how SAP handles TABs. The SAP editor does no insert TABs. Pressing the TAB key while writing you code will not insert a tab but multiple SPACEs (generally 2).
However, if the code is written in another editor (say notepad) and pasted in SAP, the TABs are not converted to SPACEs. While debugging, these are rendered as #.
This will not affect your program in any way.
In case you want to remove these, just delete the concerned lines and rewrite in SAP editor. This should remove the issue.
A sure way of confirming this is to see your code in the SAP editor. The AND will be aligned with the WHERE and not to the left of WHERE as shown below below.
P.S : This is from experience, and not from any documentation or knowledge repository. So I may be wrong.