{"id":70,"date":"2008-03-26T13:50:34","date_gmt":"2008-03-26T17:50:34","guid":{"rendered":"http:\/\/www.prglab.com\/blog\/p\/70"},"modified":"2009-04-30T13:47:46","modified_gmt":"2009-04-30T17:47:46","slug":"abap%e5%ad%97%e7%ac%a6%e4%b8%b2%e6%af%94%e8%be%83%e4%b8%ad%e7%a9%ba%e6%a0%bc%e7%9a%84%e5%bd%b1%e5%93%8d","status":"publish","type":"post","link":"https:\/\/www.prglab.com\/blog\/p\/70","title":{"rendered":"ABAP\u5b57\u7b26\u4e32\u6bd4\u8f83\u64cd\u4f5c\u4e2d\u7a7a\u683c\u7684\u5f71\u54cd"},"content":{"rendered":"<p>ABAP\u5bf9\u5b57\u7b26\u4e32\u6709\u5f88\u591a\u9690\u5f62\u7684\u64cd\u4f5c\uff0c\u6709\u65f6\u66f4\u65b9\u4fbf\u7a0b\u5e8f\u5458\uff0c\u6709\u65f6\u53c8\u6bd4\u8f83\u5bb9\u6613\u4f7f\u4eba\u56f0\u60d1\u3002<\/p>\n<p>\u6bd4\u5982\u5728\u6bd4\u8f83\u5b57\u7b26\u4e32\u7684\u503c\u65f6\uff0cABAP\u4f1a\u81ea\u52a8\u5ffd\u89c6\u6709\u6548\u5b57\u7b26\u540e\u9762\u7684\u7a7a\u683c\uff0c\u800c\u5982\u679c\u5728\u5b57\u7b26\u524d\u9762\u6709\u7a7a\u683c\uff0c\u5219\u4f1a\u5f71\u54cd\u6bd4\u8f83\u7684\u7ed3\u679c\u3002<\/p>\n<p>\u6bd4\u5982\uff1a &#8216;X&#8217; \u548c &#8216;X__&#8217; \u6bd4\u8f83\u7684\u7ed3\u679c\u662f\u76f8\u7b49\uff1b\u800c&#8217;X&#8217;\u548c&#8217;__X&#8217;\u6bd4\u8f83\u7684\u7ed3\u679c\u5219\u662f\u4e0d\u76f8\u7b49\u3002 \uff08\u8fd9\u91cc\u4e0b\u5212\u7ebf__\u4ee3\u8868\u7a7a\u683c\uff09<\/p>\n<p>\u8fd0\u884c\u4e0b\u9762\u7684\u7a0b\u5e8f\u53ef\u4ee5\u770b\u5230\u6548\u679c\uff1a<\/p>\n<p>DATA: l_string1 TYPE string,<br \/>\nl_string2 TYPE string,<br \/>\nl_string3 TYPE string.<br \/>\nl_string1 = &#8216;X&#8217;. &#8220;No space<br \/>\nl_string2 = &#8216;X &#8216;. &#8220;Space after X<br \/>\nl_string3 = &#8216; X&#8217;. &#8220;Space before X<br \/>\nIF l_string1 EQ l_string2.<br \/>\nWRITE: \/ &#8216;String 1 and String 2 are identical.&#8217;.<br \/>\nELSE.<br \/>\nWRITE: \/ &#8216;String 1 and String 2 are NOT identical.&#8217;.<br \/>\nENDIF.<br \/>\nIF l_string1 EQ l_string3.<br \/>\nWRITE: \/ &#8216;String 1 and String 3 are identical.&#8217;.<br \/>\nELSE.<br \/>\nWRITE: \/ &#8216;String 1 and String 3 are NOT identical.&#8217;.<br \/>\nENDIF.<\/p>\n<p>\u8fd0\u884c\u7ed3\u679c\u662f\u8f93\u51fa:<\/p>\n<blockquote><p>String 1 and String 2 are identical.<\/p>\n<p>String 1 and String 3 are NOT identical.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>ABAP\u5bf9\u5b57\u7b26\u4e32\u6709\u5f88\u591a\u9690\u5f62\u7684\u64cd\u4f5c\uff0c\u6709\u65f6\u66f4\u65b9\u4fbf\u7a0b\u5e8f\u5458\uff0c\u6709\u65f6\u53c8\u6bd4\u8f83\u5bb9\u6613\u4f7f\u4eba\u56f0\u60d1\u3002 \u6bd4\u5982\u5728\u6bd4\u8f83\u5b57\u7b26\u4e32\u7684\u503c\u65f6\uff0cABAP\u4f1a\u81ea\u52a8\u5ffd\u89c6\u6709\u6548\u5b57\u7b26\u540e\u9762\u7684\u7a7a\u683c\uff0c\u800c\u5982\u679c\u5728\u5b57\u7b26\u524d\u9762\u6709\u7a7a\u683c\uff0c\u5219\u4f1a\u5f71\u54cd\u6bd4\u8f83\u7684\u7ed3\u679c\u3002 \u6bd4\u5982\uff1a &#8216;X&#8217; \u548c &#8216;X__&#8217; \u6bd4\u8f83\u7684\u7ed3\u679c\u662f\u76f8\u7b49\uff1b\u800c&#8217;X&#8217;\u548c&#8217;__X&#8217;\u6bd4\u8f83\u7684\u7ed3\u679c\u5219\u662f\u4e0d\u76f8\u7b49\u3002 \uff08\u8fd9\u91cc\u4e0b\u5212\u7ebf__\u4ee3\u8868\u7a7a\u683c\uff09 \u8fd0\u884c\u4e0b\u9762\u7684\u7a0b\u5e8f\u53ef\u4ee5\u770b\u5230\u6548\u679c\uff1a DATA: l_string1 TYPE string, l_string2 TYPE string, l_string3 TYPE string. l_string1 = &#8216;X&#8217;. &#8220;No space l_string2 = &#8216;X &#8216;. &#8220;Space after X l_string3 = &#8216; X&#8217;. &#8220;Space before X IF l_string1 EQ l_string2. WRITE: \/ &#8216;String 1 and String 2 are identical.&#8217;. ELSE. WRITE: \/ &#8216;String [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.prglab.com\/blog\/wp-json\/wp\/v2\/posts\/70"}],"collection":[{"href":"https:\/\/www.prglab.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.prglab.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.prglab.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.prglab.com\/blog\/wp-json\/wp\/v2\/comments?post=70"}],"version-history":[{"count":2,"href":"https:\/\/www.prglab.com\/blog\/wp-json\/wp\/v2\/posts\/70\/revisions"}],"predecessor-version":[{"id":93,"href":"https:\/\/www.prglab.com\/blog\/wp-json\/wp\/v2\/posts\/70\/revisions\/93"}],"wp:attachment":[{"href":"https:\/\/www.prglab.com\/blog\/wp-json\/wp\/v2\/media?parent=70"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.prglab.com\/blog\/wp-json\/wp\/v2\/categories?post=70"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.prglab.com\/blog\/wp-json\/wp\/v2\/tags?post=70"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}