<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-332089195695110105</id><updated>2024-10-17T22:32:17.439+08:00</updated><category term="ABAP/4"/><category term="FI"/><category term="MM"/><category term="TR"/><category term="CO"/><category term="SD"/><category term="IMG"/><category term="PM"/><category term="其他"/><category term="QM"/><title type='text'>肥肥豬的SAP心得</title><subtitle type='html'>從事SAP相關工作以來，發現SAP相關技術及know-how非常多，利用Blogger整理曾經實作過的經驗。&#xa;本Blog歡迎交流，轉載請註明出處。</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://kenandsap.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://kenandsap.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>肥肥豬</name><uri>http://www.blogger.com/profile/07570903252757222466</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://bp2.blogger.com/_2EShorx9_WE/R1ZfOoL8jHI/AAAAAAAAAHc/bCpXxx_Gijs/S220/%E7%85%A7%E7%89%87+088..JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>61</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-332089195695110105.post-2233039111298509703</id><published>2012-01-11T13:25:00.001+08:00</published><updated>2012-01-17T15:33:21.012+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CO"/><category scheme="http://www.blogger.com/atom/ns#" term="MM"/><title type='text'>物料異動數量/金額控制及過帳的科目決定表格</title><content type='html'>&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;T134M 控制數量/價值更新&lt;br /&gt;
T156X 交易/事件代碼修改&lt;br /&gt;
T156X 過帳字串值&lt;br /&gt;
T030 &amp;nbsp;標準科目表&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://kenandsap.blogspot.com/feeds/2233039111298509703/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://kenandsap.blogspot.com/2012/01/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/2233039111298509703'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/2233039111298509703'/><link rel='alternate' type='text/html' href='http://kenandsap.blogspot.com/2012/01/blog-post.html' title='物料異動數量/金額控制及過帳的科目決定表格'/><author><name>肥肥豬</name><uri>http://www.blogger.com/profile/07570903252757222466</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://bp2.blogger.com/_2EShorx9_WE/R1ZfOoL8jHI/AAAAAAAAAHc/bCpXxx_Gijs/S220/%E7%85%A7%E7%89%87+088..JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-332089195695110105.post-4617288650494887024</id><published>2011-11-29T17:57:00.001+08:00</published><updated>2011-11-29T18:01:09.038+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ABAP/4"/><category scheme="http://www.blogger.com/atom/ns#" term="其他"/><title type='text'>用ABAP寄送mail單封處理</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;透過ABAP寄送mail時，過去都是用SCOT直接發出去&lt;br /&gt;遇到server上有等待的mail時會一口氣全部送出去，這樣在測試區會造成不必要的郵件被送出去&lt;br /&gt;&lt;br /&gt;可以改執行程式RSSOSOSTSTAT，如此就可以指定要寄送的郵件再送出&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://kenandsap.blogspot.com/feeds/4617288650494887024/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://kenandsap.blogspot.com/2011/11/abapmail.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/4617288650494887024'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/4617288650494887024'/><link rel='alternate' type='text/html' href='http://kenandsap.blogspot.com/2011/11/abapmail.html' title='用ABAP寄送mail單封處理'/><author><name>肥肥豬</name><uri>http://www.blogger.com/profile/07570903252757222466</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://bp2.blogger.com/_2EShorx9_WE/R1ZfOoL8jHI/AAAAAAAAAHc/bCpXxx_Gijs/S220/%E7%85%A7%E7%89%87+088..JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-332089195695110105.post-6283913440506216768</id><published>2011-10-31T01:37:00.001+08:00</published><updated>2011-10-31T01:38:11.738+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ABAP/4"/><category scheme="http://www.blogger.com/atom/ns#" term="SD"/><title type='text'>MV45AFZZ修改SO ITEM問題</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;有個需求是希望在SO的ITEM在修改VBKD時，能夠update VBAP某些欄位，進到MV45AFZZ去找到FORM USEREXIT_SAVE_DOCUMENT_PREPARE.直接新增修改邏輯。改完實際去測試會發現，若VBAP相關的欄位沒有修改時，save之後VBAP還是一樣的。&lt;br /&gt;&lt;br /&gt;想要在FORM USEREXIT_SAVE_DOCUMENT_PREPARE修改VBAP的值有二個方式：&lt;br /&gt;1 在VA02時就已經有VBAP的修改(解法不佳)&lt;br /&gt;2 在FORM當中指定VBAP要強制修改(可行)，做法如下：&lt;br /&gt;在XVBAP[]當中找到要修改的VBAP並指定UPDKZ = &#39;U&#39;，要特別注意UPDKZ若已是&#39;D&#39;時表示這個item save之後會被刪除，千萬不要去修改UPDKZ。另外也要考慮這一筆VBAP若是新增時，不需要指定UPDKZ 。&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kenandsap.blogspot.com/feeds/6283913440506216768/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://kenandsap.blogspot.com/2011/10/mv45afzzso-item.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/6283913440506216768'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/6283913440506216768'/><link rel='alternate' type='text/html' href='http://kenandsap.blogspot.com/2011/10/mv45afzzso-item.html' title='MV45AFZZ修改SO ITEM問題'/><author><name>肥肥豬</name><uri>http://www.blogger.com/profile/07570903252757222466</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://bp2.blogger.com/_2EShorx9_WE/R1ZfOoL8jHI/AAAAAAAAAHc/bCpXxx_Gijs/S220/%E7%85%A7%E7%89%87+088..JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-332089195695110105.post-4539215865182861492</id><published>2011-10-27T23:44:00.000+08:00</published><updated>2011-10-27T23:44:08.341+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ABAP/4"/><category scheme="http://www.blogger.com/atom/ns#" term="SD"/><title type='text'>SO 狀態說明讀取</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;下圖的狀態欄位經過讀取TABLE VBUK只能得到狀態碼，無法得到顯示的內文。若直接Call Function DOMAIN_VALUE_GET去讀到Domain的value也不是正確的。實際上SO的狀態說明是維護在TABLE TVBST當中，不是在Domain。 &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHU6WRMuH7cODx8PUkNn-az-yEzpEd1IhMWQgcsRj_-3w0K-D7ZVFe0yjKXDlrLlGx_nkl_WYC7vtJZWF_wV0wsKXseTSkYKdI3098bJsi3NXDVkFTXYzy-tIDntmjOvFYl2V4BlRPjxFV/s1600/status.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;293&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHU6WRMuH7cODx8PUkNn-az-yEzpEd1IhMWQgcsRj_-3w0K-D7ZVFe0yjKXDlrLlGx_nkl_WYC7vtJZWF_wV0wsKXseTSkYKdI3098bJsi3NXDVkFTXYzy-tIDntmjOvFYl2V4BlRPjxFV/s400/status.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://kenandsap.blogspot.com/feeds/4539215865182861492/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://kenandsap.blogspot.com/2011/10/so.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/4539215865182861492'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/4539215865182861492'/><link rel='alternate' type='text/html' href='http://kenandsap.blogspot.com/2011/10/so.html' title='SO 狀態說明讀取'/><author><name>肥肥豬</name><uri>http://www.blogger.com/profile/07570903252757222466</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://bp2.blogger.com/_2EShorx9_WE/R1ZfOoL8jHI/AAAAAAAAAHc/bCpXxx_Gijs/S220/%E7%85%A7%E7%89%87+088..JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHU6WRMuH7cODx8PUkNn-az-yEzpEd1IhMWQgcsRj_-3w0K-D7ZVFe0yjKXDlrLlGx_nkl_WYC7vtJZWF_wV0wsKXseTSkYKdI3098bJsi3NXDVkFTXYzy-tIDntmjOvFYl2V4BlRPjxFV/s72-c/status.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Taipei City, Taiwan</georss:featurename><georss:point>25.091075 121.5598345</georss:point><georss:box>24.976033 121.401906 25.206117 121.71776299999999</georss:box></entry><entry><id>tag:blogger.com,1999:blog-332089195695110105.post-3088692511827231608</id><published>2011-05-26T16:31:00.001+08:00</published><updated>2011-10-27T23:47:38.351+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ABAP/4"/><title type='text'>Smartform圖片用變數指定</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;在設計smartform時，遇到像LOGO的圖片需要依不用的條件指定時，可用以下的方式處理：&lt;br /&gt;
&lt;br /&gt;
首先設定一個smartform的參數，資料類型是TDOBNAME&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizZRee7vElUwxeVsSOMFXkUlAryotWhFg088SmLhKVwsO3FE6_wgp8PqljwsDevsP7tpsvpWFun5IXgfXYKNv3IVGyV6jcyl6qDxLDJ_TwXz6JFxMqOS_hu-4hSHD9d5pfK31XJIVs4Nrb/s1600/LOGO_01.png&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizZRee7vElUwxeVsSOMFXkUlAryotWhFg088SmLhKVwsO3FE6_wgp8PqljwsDevsP7tpsvpWFun5IXgfXYKNv3IVGyV6jcyl6qDxLDJ_TwXz6JFxMqOS_hu-4hSHD9d5pfK31XJIVs4Nrb/s400/LOGO_01.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-text-decorations-in-effect: none; color: black;&quot;&gt;再來就是指字圖片的變數名稱，前後要用符號&amp;amp;&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYpM9xRzow39RMgrz7LDX_r_OJrT-BfjwDZuwgyXa3P5qbH__5d_I49qg0P4Xeo3btuKzSvejZo34sOk0iBjQGiAlxPaoX3MQFZZ6vJZnrfluL2pOc2PPiiAi3p8jJLc7-8-08Q-QAJ_ub/s1600/LOGO_02.png&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYpM9xRzow39RMgrz7LDX_r_OJrT-BfjwDZuwgyXa3P5qbH__5d_I49qg0P4Xeo3btuKzSvejZo34sOk0iBjQGiAlxPaoX3MQFZZ6vJZnrfluL2pOc2PPiiAi3p8jJLc7-8-08Q-QAJ_ub/s400/LOGO_02.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://kenandsap.blogspot.com/feeds/3088692511827231608/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://kenandsap.blogspot.com/2011/05/smartform_26.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/3088692511827231608'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/3088692511827231608'/><link rel='alternate' type='text/html' href='http://kenandsap.blogspot.com/2011/05/smartform_26.html' title='Smartform圖片用變數指定'/><author><name>肥肥豬</name><uri>http://www.blogger.com/profile/07570903252757222466</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://bp2.blogger.com/_2EShorx9_WE/R1ZfOoL8jHI/AAAAAAAAAHc/bCpXxx_Gijs/S220/%E7%85%A7%E7%89%87+088..JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizZRee7vElUwxeVsSOMFXkUlAryotWhFg088SmLhKVwsO3FE6_wgp8PqljwsDevsP7tpsvpWFun5IXgfXYKNv3IVGyV6jcyl6qDxLDJ_TwXz6JFxMqOS_hu-4hSHD9d5pfK31XJIVs4Nrb/s72-c/LOGO_01.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-332089195695110105.post-270646326504389498</id><published>2011-05-18T12:15:00.004+08:00</published><updated>2011-05-25T13:47:24.235+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ABAP/4"/><title type='text'>READ_EXCHANGE_RATE EUR匯率問題</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;在讀匯率資料時使用READ_EXCHANGE_RATE 進行EUR/USD的匯率讀取後&lt;br /&gt;
系統會回傳一個值DERIVED_RATE_TYPE = EURX&lt;br /&gt;
這個意思是系統會以EURX的匯率來讀取&lt;br /&gt;
&lt;br /&gt;
可用TCODE OBBS進行設定&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;新增一筆時間較晚的設定&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;將替代的匯率類型空白即可使用原匯率類型讀取匯率&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgoZjS9wKe4ZSZjUUiYPRUnIfFx1qjRqmfC-U4lJc7iudRxcNiWcVdezw-pmr1Qon2g0HtLSugX7cTyEw99pwKELbdzmQW00CpadfyZCpLK8luJ89OYtt5C_F7cK-qlJtJYn-vwCxQd6NW/s1600/obbs.png&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;247&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgoZjS9wKe4ZSZjUUiYPRUnIfFx1qjRqmfC-U4lJc7iudRxcNiWcVdezw-pmr1Qon2g0HtLSugX7cTyEw99pwKELbdzmQW00CpadfyZCpLK8luJ89OYtt5C_F7cK-qlJtJYn-vwCxQd6NW/s400/obbs.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kenandsap.blogspot.com/feeds/270646326504389498/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://kenandsap.blogspot.com/2011/05/readexchangerate-eur.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/270646326504389498'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/270646326504389498'/><link rel='alternate' type='text/html' href='http://kenandsap.blogspot.com/2011/05/readexchangerate-eur.html' title='READ_EXCHANGE_RATE EUR匯率問題'/><author><name>肥肥豬</name><uri>http://www.blogger.com/profile/07570903252757222466</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://bp2.blogger.com/_2EShorx9_WE/R1ZfOoL8jHI/AAAAAAAAAHc/bCpXxx_Gijs/S220/%E7%85%A7%E7%89%87+088..JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgoZjS9wKe4ZSZjUUiYPRUnIfFx1qjRqmfC-U4lJc7iudRxcNiWcVdezw-pmr1Qon2g0HtLSugX7cTyEw99pwKELbdzmQW00CpadfyZCpLK8luJ89OYtt5C_F7cK-qlJtJYn-vwCxQd6NW/s72-c/obbs.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-332089195695110105.post-7725325095242222911</id><published>2011-05-16T14:17:00.001+08:00</published><updated>2011-10-27T23:46:31.854+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ABAP/4"/><title type='text'>Smartform 輸出總頁數問題</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;在設計SMARTFORM時，輸出總頁數會用到一個系統變數SFSY-FORMPAGES，通常是直接在內文使用&amp;amp;SFSY-FORMPAGES&amp;amp;輸出，但是遇到總頁數達到2位數時，就會顯示*&lt;br /&gt;&lt;br /&gt;目前找到有二種解法：&lt;br /&gt;1 改寫輸出方式&lt;br /&gt;&amp;amp;SFSY-FORMPAGES&amp;amp; 改成 &amp;amp;SFSY-FORMPAGES(3ZC)&amp;amp;&lt;br /&gt;2 修改內文所在視窗為最終視窗&lt;/span&gt;&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kenandsap.blogspot.com/feeds/7725325095242222911/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://kenandsap.blogspot.com/2011/05/smartform.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/7725325095242222911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/7725325095242222911'/><link rel='alternate' type='text/html' href='http://kenandsap.blogspot.com/2011/05/smartform.html' title='Smartform 輸出總頁數問題'/><author><name>肥肥豬</name><uri>http://www.blogger.com/profile/07570903252757222466</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://bp2.blogger.com/_2EShorx9_WE/R1ZfOoL8jHI/AAAAAAAAAHc/bCpXxx_Gijs/S220/%E7%85%A7%E7%89%87+088..JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-332089195695110105.post-974252340782710517</id><published>2011-05-16T13:02:00.000+08:00</published><updated>2011-05-16T13:02:43.351+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ABAP/4"/><title type='text'>讀取不同語言的Text Symbol</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;在一般情形下，ABAP處理Text Symbol時是依登入的語言來處理，&lt;br /&gt;
登入的語言若沒有維護對應的Text時，會直接參考程式建立時的Original版本&lt;br /&gt;
在報表處理上，遇到使用者想依資料的上的狀態來讀取Text時，就需要另外處理&lt;br /&gt;
以下公司設定的語言別為例：&lt;br /&gt;
&lt;br /&gt;
**讀取公司語言別的Text&lt;br /&gt;
DATA: lt_pool LIKE TABLE OF textpool.&lt;br /&gt;
READ TEXTPOOL sy-repid INTO lt_pool LANGUAGE t001-spras.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kenandsap.blogspot.com/feeds/974252340782710517/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://kenandsap.blogspot.com/2011/05/text-symbol.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/974252340782710517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/974252340782710517'/><link rel='alternate' type='text/html' href='http://kenandsap.blogspot.com/2011/05/text-symbol.html' title='讀取不同語言的Text Symbol'/><author><name>肥肥豬</name><uri>http://www.blogger.com/profile/07570903252757222466</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://bp2.blogger.com/_2EShorx9_WE/R1ZfOoL8jHI/AAAAAAAAAHc/bCpXxx_Gijs/S220/%E7%85%A7%E7%89%87+088..JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-332089195695110105.post-101073456470758124</id><published>2011-04-22T14:34:00.000+08:00</published><updated>2011-04-22T14:34:51.524+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ABAP/4"/><title type='text'>將文字以指定的輸出長度分段</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;在報表輸出時，中文字佔了二個文字的長度，而Unicode系統的SAP中文字只算1個長度&lt;br /&gt;
報表格式上有長度限制時，就需要另外處理讓文字可以分段：&lt;br /&gt;
&lt;/span&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;FUNCTION Z_STRING_SPLIT_TO_TABLE .&lt;br /&gt;
*&quot;----------------------------------------------------------------&lt;br /&gt;
*&quot;*&quot;區域介面：&lt;br /&gt;
*&quot;  IMPORTING&lt;br /&gt;
*&quot;     REFERENCE(PI_STRING) TYPE  STRING&lt;br /&gt;
*&quot;     REFERENCE(PI_SIZE) TYPE  I DEFAULT 20&lt;br /&gt;
*&quot;  EXPORTING&lt;br /&gt;
*&quot;     VALUE(PE_LINECOUNT) TYPE  I&lt;br /&gt;
*&quot;  TABLES&lt;br /&gt;
*&quot;      PT_STRING STRUCTURE  UPS_YS_STRING_TABLE OPTIONAL&lt;br /&gt;
*&quot;----------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DATA: LV_CHAR(4096),&lt;br /&gt;
LV_STRLEN   TYPE I,            &quot;輸入字串長度&lt;br /&gt;
LV_STRCOUNT TYPE I VALUE 0,    &quot;字串計數器&lt;br /&gt;
LV_COUNTER  TYPE I,            &quot;長度計數器&lt;br /&gt;
LV_LEN      TYPE I.            &quot;長度變數&lt;br /&gt;
&lt;br /&gt;
*****計算出字串長度&lt;br /&gt;
LV_STRLEN = STRLEN( PI_STRING ).&lt;br /&gt;
*****將String轉成char&lt;br /&gt;
LV_CHAR = PI_STRING.&lt;br /&gt;
*****利用CL_ABAP_LIST_UTILITIES=&amp;gt;DYNAMIC_OUTPUT_LENGTH&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;*****計算出顯示長度後依條件分割&lt;br /&gt;
WHILE LV_STRCOUNT &amp;lt; LV_STRLEN.&lt;br /&gt;
LV_COUNTER = 1.&lt;br /&gt;
WHILE LV_COUNTER &amp;lt;= PI_SIZE.&lt;br /&gt;
CALL METHOD CL_ABAP_LIST_UTILITIES=&amp;gt;DYNAMIC_OUTPUT_LENGTH&lt;br /&gt;
EXPORTING&lt;br /&gt;
FIELD = LV_CHAR+LV_STRCOUNT(LV_COUNTER)&lt;br /&gt;
RECEIVING&lt;br /&gt;
LEN   = LV_LEN.&lt;br /&gt;
IF LV_LEN = PI_SIZE.&lt;br /&gt;
PT_STRING-LINE = LV_CHAR+LV_STRCOUNT(LV_COUNTER).&lt;br /&gt;
APPEND PT_STRING.&lt;br /&gt;
LV_STRCOUNT = LV_STRCOUNT + LV_COUNTER - 1.&lt;br /&gt;
EXIT.&lt;br /&gt;
ELSE.&lt;br /&gt;
LV_LEN = LV_STRCOUNT + LV_COUNTER.&lt;br /&gt;
IF LV_LEN = LV_STRLEN.&lt;br /&gt;
PT_STRING-LINE = LV_CHAR+LV_STRCOUNT(LV_COUNTER).&lt;br /&gt;
APPEND PT_STRING.&lt;br /&gt;
LV_STRCOUNT = LV_STRCOUNT + LV_COUNTER - 1.&lt;br /&gt;
ENDIF.&lt;br /&gt;
LV_COUNTER = LV_COUNTER + 1.&lt;br /&gt;
ENDIF.&lt;br /&gt;
ENDWHILE.&lt;br /&gt;
LV_STRCOUNT = LV_STRCOUNT + 1.&lt;br /&gt;
ENDWHILE.&lt;br /&gt;
&lt;br /&gt;
*****計算分割後的字串數&lt;br /&gt;
DESCRIBE TABLE PT_STRING LINES PE_LINECOUNT.&lt;br /&gt;
ENDFUNCTION.&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kenandsap.blogspot.com/feeds/101073456470758124/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://kenandsap.blogspot.com/2011/04/blog-post_22.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/101073456470758124'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/101073456470758124'/><link rel='alternate' type='text/html' href='http://kenandsap.blogspot.com/2011/04/blog-post_22.html' title='將文字以指定的輸出長度分段'/><author><name>肥肥豬</name><uri>http://www.blogger.com/profile/07570903252757222466</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://bp2.blogger.com/_2EShorx9_WE/R1ZfOoL8jHI/AAAAAAAAAHc/bCpXxx_Gijs/S220/%E7%85%A7%E7%89%87+088..JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-332089195695110105.post-5122896325125268068</id><published>2011-04-12T16:58:00.000+08:00</published><updated>2011-04-12T16:58:52.854+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ABAP/4"/><title type='text'>日期加減月份的處理</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;有個需求要抓最近半年內的文件，比如說2011年3月底的半年內，&lt;br /&gt;
要抓的是2010/10/1~2011/3/31範圍內的文件&lt;br /&gt;
可以利用HR的FM來處理，HR_HK_ADD_MONTH_TO_DATE，範例如下：&lt;br /&gt;
&lt;br /&gt;
CALL FUNCTION &#39;HR_HK_ADD_MONTH_TO_DATE&#39; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;EXPORTING &lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;dmm_datin = &#39;20110331&#39; &lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;dmm_count = &#39;5&#39; &lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;dmm_oper &amp;nbsp;= &#39;-&#39; &lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;dmm_pos &amp;nbsp; = &#39;X&#39; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;IMPORTING &lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;dmm_daout = g_date &lt;br /&gt;
&amp;nbsp;&amp;nbsp;EXCEPTIONS &lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;unknown &amp;nbsp; = 1 &lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;OTHERS &amp;nbsp; &amp;nbsp;= 2.&lt;br /&gt;
&lt;br /&gt;
g_date+6(2) = &#39;01&#39;. &amp;nbsp;&quot;2010/10/01&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kenandsap.blogspot.com/feeds/5122896325125268068/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://kenandsap.blogspot.com/2011/04/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/5122896325125268068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/5122896325125268068'/><link rel='alternate' type='text/html' href='http://kenandsap.blogspot.com/2011/04/blog-post.html' title='日期加減月份的處理'/><author><name>肥肥豬</name><uri>http://www.blogger.com/profile/07570903252757222466</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://bp2.blogger.com/_2EShorx9_WE/R1ZfOoL8jHI/AAAAAAAAAHc/bCpXxx_Gijs/S220/%E7%85%A7%E7%89%87+088..JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-332089195695110105.post-6557762987688533417</id><published>2011-02-11T22:55:00.000+08:00</published><updated>2011-02-11T22:55:29.990+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ABAP/4"/><category scheme="http://www.blogger.com/atom/ns#" term="FI"/><title type='text'>BAPI_ACC_DOCUMENT_POST 建立Park文件TAX item問題</title><content type='html'>還是用BAPI_ACC_DOCUMENT_POST 建立Park文件的問題。TAX item要在code裡面先處理好，借貸才會相等。步驟如下：&lt;br /&gt;
&lt;br /&gt;
1 Tax不存入internal table ACCOUNTGL，要存入ACCOUNTTAX，指定的ITEMNO_ACC要正確。&lt;br /&gt;
2 處理 CURRENCYAMOUNT時，除了field AMT_DOCCUR要有稅額，field AMT_BASE稅基也要一併處理。&lt;br /&gt;
&lt;br /&gt;
處理完成後進行測試，發現以下新的問題，金額借貸不相等，但是item相加是正常的???&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgc933J7URnM5D_QZcel_k7eJPILxREaAFVxbGleNrCRHV8eVRInB5wOHgZ2tfyxci9r4Qi_4YW2-IwojOkAlgYsgE34nlCQFnqR3-MwMLs8JEQ6qANWz_05xjj6nLhkwbDwwxKZkB4U4dB/s1600/park01.gif&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgc933J7URnM5D_QZcel_k7eJPILxREaAFVxbGleNrCRHV8eVRInB5wOHgZ2tfyxci9r4Qi_4YW2-IwojOkAlgYsgE34nlCQFnqR3-MwMLs8JEQ6qANWz_05xjj6nLhkwbDwwxKZkB4U4dB/s400/park01.gif&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
檢查tax amount多了，要清除為0&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLustJv9_Vo7s27usLTJaeJHVhkHflWvWipR5HBaFLYJzDQ6lGUZbR61c5RwWBApr_suGTvuYNIlWvJk9x-I4mM6wuhkuvbB7IgE7XUtpOHs3ek7D3DIvBkPmBcRBWTQW_JFTJSqZpIlSJ/s1600/park02.gif&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLustJv9_Vo7s27usLTJaeJHVhkHflWvWipR5HBaFLYJzDQ6lGUZbR61c5RwWBApr_suGTvuYNIlWvJk9x-I4mM6wuhkuvbB7IgE7XUtpOHs3ek7D3DIvBkPmBcRBWTQW_JFTJSqZpIlSJ/s400/park02.gif&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
做法：用BADI ACC_DOCUMENT的method CHANGE&lt;br /&gt;
&lt;br /&gt;
DATA: WA_ACCTX TYPE ACCBSET.&lt;br /&gt;
LOOP AT C_ACCTX INTO WA_ACCTX.&lt;br /&gt;
CLEAR WA_ACCTX-FWSTE.&lt;br /&gt;
MODIFY C_ACCTX FROM WA_ACCTX .&lt;br /&gt;
ENDLOOP.&lt;br /&gt;
&lt;br /&gt;
再RUN一次BAPI_ACC_DOCUMENT_POST這次正常：&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjh-eqxjVdU6QJCO0jSMqoyegyVUrxzz40WROAua-qA4C64IR2SHgWBS-gj2zDwhmO2FE1aNV1hDIqaMdOVG6Wv_UxbShqlYz4Lp_ySLEw38IlIfVU6P_SmFgx2LSrlOeJoL5WmfNfEUGwv/s1600/park03.gif&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjh-eqxjVdU6QJCO0jSMqoyegyVUrxzz40WROAua-qA4C64IR2SHgWBS-gj2zDwhmO2FE1aNV1hDIqaMdOVG6Wv_UxbShqlYz4Lp_ySLEw38IlIfVU6P_SmFgx2LSrlOeJoL5WmfNfEUGwv/s400/park03.gif&quot; /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://kenandsap.blogspot.com/feeds/6557762987688533417/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://kenandsap.blogspot.com/2011/02/bapiaccdocumentpost-parktax-item.html#comment-form' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/6557762987688533417'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/6557762987688533417'/><link rel='alternate' type='text/html' href='http://kenandsap.blogspot.com/2011/02/bapiaccdocumentpost-parktax-item.html' title='BAPI_ACC_DOCUMENT_POST 建立Park文件TAX item問題'/><author><name>肥肥豬</name><uri>http://www.blogger.com/profile/07570903252757222466</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://bp2.blogger.com/_2EShorx9_WE/R1ZfOoL8jHI/AAAAAAAAAHc/bCpXxx_Gijs/S220/%E7%85%A7%E7%89%87+088..JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgc933J7URnM5D_QZcel_k7eJPILxREaAFVxbGleNrCRHV8eVRInB5wOHgZ2tfyxci9r4Qi_4YW2-IwojOkAlgYsgE34nlCQFnqR3-MwMLs8JEQ6qANWz_05xjj6nLhkwbDwwxKZkB4U4dB/s72-c/park01.gif" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-332089195695110105.post-6652855559448844988</id><published>2011-02-10T13:58:00.000+08:00</published><updated>2011-02-10T13:58:14.462+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ABAP/4"/><category scheme="http://www.blogger.com/atom/ns#" term="FI"/><title type='text'>由payment term決定baseline date的function module</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;繼上次寫到的用BAPI_ACC_DOCUMENT_POST 建立Park文件之後出現了新的問題：&lt;br /&gt;
在vendor的line item上面只寫入payment term是不夠的，baseline date會變成空的，post時還要再補上baseline date。&lt;br /&gt;
&lt;br /&gt;
以下是計算vendor baseline date的function module&lt;br /&gt;
FI_TERMS_OF_PAYMENT_PROPOSE&lt;br /&gt;
&lt;br /&gt;
要計算customer時用這個：GET_BASELINE_DATE&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://kenandsap.blogspot.com/feeds/6652855559448844988/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://kenandsap.blogspot.com/2011/02/payment-termbaseline-datefunction.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/6652855559448844988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/6652855559448844988'/><link rel='alternate' type='text/html' href='http://kenandsap.blogspot.com/2011/02/payment-termbaseline-datefunction.html' title='由payment term決定baseline date的function module'/><author><name>肥肥豬</name><uri>http://www.blogger.com/profile/07570903252757222466</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://bp2.blogger.com/_2EShorx9_WE/R1ZfOoL8jHI/AAAAAAAAAHc/bCpXxx_Gijs/S220/%E7%85%A7%E7%89%87+088..JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-332089195695110105.post-5088290316002209253</id><published>2011-01-06T17:19:00.000+08:00</published><updated>2011-01-06T17:19:09.355+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="FI"/><title type='text'>parked document posting問題</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;新project在parked document posting時出現了&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;error message 00&amp;nbsp;349&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&#39;Field COBL-FKBER does not exist in the screen SAPLKACB&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;在SAP找到了note 1020574就解決了&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Reason and Prerequisites&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;The function module CODING_BLOCK_FIELD_CLEAR is not generated.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;The field status of the field is defined as HIDE. The field contents were&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;derived and not entered manually.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Solution&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Run the generation report RFBIPPG1.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://kenandsap.blogspot.com/feeds/5088290316002209253/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://kenandsap.blogspot.com/2011/01/parked-document-posting.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/5088290316002209253'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/5088290316002209253'/><link rel='alternate' type='text/html' href='http://kenandsap.blogspot.com/2011/01/parked-document-posting.html' title='parked document posting問題'/><author><name>肥肥豬</name><uri>http://www.blogger.com/profile/07570903252757222466</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://bp2.blogger.com/_2EShorx9_WE/R1ZfOoL8jHI/AAAAAAAAAHc/bCpXxx_Gijs/S220/%E7%85%A7%E7%89%87+088..JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-332089195695110105.post-1750169367843337822</id><published>2010-11-24T18:47:00.000+08:00</published><updated>2010-11-24T18:47:25.430+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ABAP/4"/><category scheme="http://www.blogger.com/atom/ns#" term="CO"/><category scheme="http://www.blogger.com/atom/ns#" term="MM"/><title type='text'>預留單MB_RESERVATION_BADI method DATA_CHECK處理</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;有一個客戶希望在預留單Movement 201時進行成本中心及費用科目預算檢查(利用KP06設定)，不通過時不允許save。&lt;br /&gt;
&lt;br /&gt;
以下是利用BADI MB_RESERVATION_BADI時的重點：&lt;br /&gt;
1 IS_RESB有成本中心和會計科目，可以利用來讀COSP的計劃值。&lt;br /&gt;
2 讀取未刪除的預留單，需求數量減去領料數量才是要卡控的數量。&lt;br /&gt;
3 金額可考慮抓標準價格或異動平均單價。&lt;br /&gt;
4 利用I_NEW_ITEM = &#39;X&#39;判斷create時沒有科目指派，要直接去table T030找出會計科目，規則要問一下MM顧問。&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://kenandsap.blogspot.com/feeds/1750169367843337822/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://kenandsap.blogspot.com/2010/11/mbreservationbadi-method-datacheck.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/1750169367843337822'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/1750169367843337822'/><link rel='alternate' type='text/html' href='http://kenandsap.blogspot.com/2010/11/mbreservationbadi-method-datacheck.html' title='預留單MB_RESERVATION_BADI method DATA_CHECK處理'/><author><name>肥肥豬</name><uri>http://www.blogger.com/profile/07570903252757222466</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://bp2.blogger.com/_2EShorx9_WE/R1ZfOoL8jHI/AAAAAAAAAHc/bCpXxx_Gijs/S220/%E7%85%A7%E7%89%87+088..JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-332089195695110105.post-1606276871089330018</id><published>2010-11-22T13:06:00.000+08:00</published><updated>2010-11-22T13:06:52.336+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ABAP/4"/><category scheme="http://www.blogger.com/atom/ns#" term="MM"/><title type='text'>BADI ME_PROCESS_PO_CUST method CHECK拋出多筆message</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;使用BADI ME_PROCESS_PO_CUST時，method CHECK可以一次檢查所有的PO內容&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;要將訊息輸出時，從doc看不到該怎麼處理，以下是help的提醒：&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Never use the ABAP statement MESSAGE in the BAdI ME_PROCESS_PO_CUST.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;再進一步找尋，發現要用macro處理：&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;INCLUDE MM_MESSAGES_MAC.&lt;br /&gt;
MMPUR_MESSAGE_FORCED &#39;E&#39; &#39;ZMM01&#39; &#39;001&#39;&amp;nbsp;LV_MSGV1 LV_MSGV2 LV_MSGV3 LV_MSGV4.&lt;/span&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;MMPUR_MESSAGE_FORCED &#39;E&#39; &#39;ZMM01&#39; &#39;002&#39;&amp;nbsp;LV_MSGV1 LV_MSGV2 LV_MSGV3 LV_MSGV4.&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kenandsap.blogspot.com/feeds/1606276871089330018/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://kenandsap.blogspot.com/2010/11/badi-meprocesspocust-method.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/1606276871089330018'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/1606276871089330018'/><link rel='alternate' type='text/html' href='http://kenandsap.blogspot.com/2010/11/badi-meprocesspocust-method.html' title='BADI ME_PROCESS_PO_CUST method CHECK拋出多筆message'/><author><name>肥肥豬</name><uri>http://www.blogger.com/profile/07570903252757222466</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://bp2.blogger.com/_2EShorx9_WE/R1ZfOoL8jHI/AAAAAAAAAHc/bCpXxx_Gijs/S220/%E7%85%A7%E7%89%87+088..JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-332089195695110105.post-376306593693282084</id><published>2010-11-17T15:36:00.001+08:00</published><updated>2010-11-29T13:36:20.243+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ABAP/4"/><category scheme="http://www.blogger.com/atom/ns#" term="MM"/><title type='text'>利用BADI ME_PROCESS_PO_CUST進行PO check</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;BADI ME_PROCESS_PO_CUST當中有一個method CHECK可以進行整個PO的檢查。&lt;br /&gt;
要注意的是parameter只有IM_HEADER，並且是object形態。&lt;br /&gt;
&lt;br /&gt;
以下是取得內容的範例：&lt;br /&gt;
&lt;br /&gt;
*取得header&lt;br /&gt;
IM_HEADER-&amp;gt;GET_DATA( ).&lt;br /&gt;
*取得item，一樣是object形態&lt;br /&gt;
IM_HEADER-&amp;gt;GET_ITEMS( ).&lt;/span&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
檢查後若要拋出錯誤，直接用message即可。&lt;br /&gt;
MESSAGE E888(SABAPDOCU) WITH LV_MSGV1 LV_MSGV2 LV_MSGV3 LV_MSGV4.&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kenandsap.blogspot.com/feeds/376306593693282084/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://kenandsap.blogspot.com/2010/11/badi-meprocesspocustpo-check.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/376306593693282084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/376306593693282084'/><link rel='alternate' type='text/html' href='http://kenandsap.blogspot.com/2010/11/badi-meprocesspocustpo-check.html' title='利用BADI ME_PROCESS_PO_CUST進行PO check'/><author><name>肥肥豬</name><uri>http://www.blogger.com/profile/07570903252757222466</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://bp2.blogger.com/_2EShorx9_WE/R1ZfOoL8jHI/AAAAAAAAAHc/bCpXxx_Gijs/S220/%E7%85%A7%E7%89%87+088..JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-332089195695110105.post-8039394946585448793</id><published>2010-11-17T14:38:00.000+08:00</published><updated>2010-11-17T14:38:08.589+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ABAP/4"/><category scheme="http://www.blogger.com/atom/ns#" term="MM"/><title type='text'>利用BADI ME_PURCHDOC_POSTED將PO資訊在SAVE後寫入Addon Table</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;PO在save之後的BADI ME_PURCHDOC_POSTED只有一個Method POSTED，作用是在這個時間得到完整的PO資訊，可以寫到Addon Table。&lt;br /&gt;
要注意的地方是PO create時， IM_EKPO不會有PO number，只存在 IM_EKKO-EBELN當中。&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://kenandsap.blogspot.com/feeds/8039394946585448793/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://kenandsap.blogspot.com/2010/11/badi-mepurchdocpostedposaveaddon-table.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/8039394946585448793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/8039394946585448793'/><link rel='alternate' type='text/html' href='http://kenandsap.blogspot.com/2010/11/badi-mepurchdocpostedposaveaddon-table.html' title='利用BADI ME_PURCHDOC_POSTED將PO資訊在SAVE後寫入Addon Table'/><author><name>肥肥豬</name><uri>http://www.blogger.com/profile/07570903252757222466</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://bp2.blogger.com/_2EShorx9_WE/R1ZfOoL8jHI/AAAAAAAAAHc/bCpXxx_Gijs/S220/%E7%85%A7%E7%89%87+088..JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-332089195695110105.post-5301626014012209470</id><published>2010-11-15T10:29:00.000+08:00</published><updated>2010-11-15T10:29:40.564+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ABAP/4"/><category scheme="http://www.blogger.com/atom/ns#" term="CO"/><title type='text'>用K_GROUP_SELECT查詢Cost Object Group</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;寫CO的報表時，用到Cost Object的選擇條件時常會加上Group來查詢，在處理VALUE-REQUEST時可以用FM K_GROUP_SELECT處理，以下是範例：&lt;br /&gt;
&lt;br /&gt;
1 Profit Center Group&lt;br /&gt;
CALL FUNCTION &#39;K_GROUP_SELECT&#39;&lt;br /&gt;
EXPORTING&lt;br /&gt;
CLASS = &#39;0106&#39;&lt;br /&gt;
FIELD_NAME = &#39;RPRCTR &#39;&lt;br /&gt;
TABLE = &#39;GLPCT &#39;&lt;br /&gt;
IMPORTING&lt;br /&gt;
SET_NAME = P_PCGRU&lt;br /&gt;
EXCEPTIONS&lt;br /&gt;
NO_SET_PICKED = 1.&lt;br /&gt;
&lt;br /&gt;
2 Cost Center Group&lt;br /&gt;
CALL FUNCTION &#39;K_GROUP_SELECT&#39;&lt;br /&gt;
EXPORTING&lt;br /&gt;
FIELD_NAME = &#39;KOSTL&#39;&lt;br /&gt;
IMPORTING&lt;br /&gt;
SET_NAME = P_KSGRU&lt;br /&gt;
EXCEPTIONS&lt;br /&gt;
NO_SET_PICKED = 1&lt;br /&gt;
&lt;br /&gt;
3 Internal Order Group&lt;br /&gt;
CALL FUNCTION &#39;K_GROUP_SELECT&#39;&lt;br /&gt;
EXPORTING&lt;br /&gt;
FIELD_NAME = &#39;AUFNR&#39;&lt;br /&gt;
IMPORTING&lt;br /&gt;
SET_NAME = P_AUFGR&lt;br /&gt;
EXCEPTIONS&lt;br /&gt;
NO_SET_PICKED = 1.&lt;br /&gt;
&lt;br /&gt;
4 Cost Element Group&lt;br /&gt;
CALL FUNCTION &#39;K_GROUP_SELECT&#39;&lt;br /&gt;
EXPORTING&lt;br /&gt;
FIELD_NAME = &#39;KSTAR&#39;&lt;br /&gt;
KTOPL = &#39;XXX&#39;&lt;br /&gt;
IMPORTING&lt;br /&gt;
SET_NAME = P_GRP&lt;br /&gt;
EXCEPTIONS&lt;br /&gt;
NO_SET_PICKED = 1.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://kenandsap.blogspot.com/feeds/5301626014012209470/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://kenandsap.blogspot.com/2010/11/kgroupselectcost-object-group.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/5301626014012209470'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/5301626014012209470'/><link rel='alternate' type='text/html' href='http://kenandsap.blogspot.com/2010/11/kgroupselectcost-object-group.html' title='用K_GROUP_SELECT查詢Cost Object Group'/><author><name>肥肥豬</name><uri>http://www.blogger.com/profile/07570903252757222466</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://bp2.blogger.com/_2EShorx9_WE/R1ZfOoL8jHI/AAAAAAAAAHc/bCpXxx_Gijs/S220/%E7%85%A7%E7%89%87+088..JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-332089195695110105.post-4048655043750263779</id><published>2010-11-09T20:54:00.000+08:00</published><updated>2010-11-09T20:54:35.224+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ABAP/4"/><category scheme="http://www.blogger.com/atom/ns#" term="FI"/><title type='text'>Park Document Posting使用SGL Ind 的item寫入Profit Center</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;遇到一個需求在FI Park Document使用SGL Ind，此時不能輸入Profit Center，希望能夠有機會自行決定。&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;SAP的New GL有一個default profit center的BADI FAGL_3KEH_DEFPRCTR，透過這個就可以達到目的。&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;作法是在park doc的doc header reference寫入要決定的profit center，再利用FAGL_3KEH_DEFPRCTR的interface&amp;nbsp;IF_SET_DEFPRCTR 的Method&amp;nbsp;SET_DEFAULTPRCTR處理。&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;以下是sample：&lt;/span&gt;&lt;br /&gt;
&lt;style type=&quot;text/css&quot;&gt;
SPAN {
font-family: &quot;Fixedsys&quot;;
font-size: 12pt;
color: #000000;
background: #FFFFFF;
}
.L0S33 {
color: #4DA619;
}
.L0S52 {
color: #0000FF;
}
&lt;/style&gt; &lt;span class=&quot;L0S52&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;METHOD&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;IF_SET_DEFPRCTR~SET_DEFAULTPRCTR.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;CHECK&amp;nbsp;&lt;/span&gt;&lt;/span&gt;IS_ACCIT-XBLNR&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;NE&amp;nbsp;&lt;/span&gt;&lt;/span&gt;SPACE.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;CD_PRCTR&amp;nbsp;=&amp;nbsp;IS_ACCIT-XBLNR.&lt;br /&gt;
ENDMETHOD.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://kenandsap.blogspot.com/feeds/4048655043750263779/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://kenandsap.blogspot.com/2010/11/park-document-postingsgl-ind-itemprofit.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/4048655043750263779'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/4048655043750263779'/><link rel='alternate' type='text/html' href='http://kenandsap.blogspot.com/2010/11/park-document-postingsgl-ind-itemprofit.html' title='Park Document Posting使用SGL Ind 的item寫入Profit Center'/><author><name>肥肥豬</name><uri>http://www.blogger.com/profile/07570903252757222466</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://bp2.blogger.com/_2EShorx9_WE/R1ZfOoL8jHI/AAAAAAAAAHc/bCpXxx_Gijs/S220/%E7%85%A7%E7%89%87+088..JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-332089195695110105.post-4150160240004870737</id><published>2010-11-05T20:03:00.008+08:00</published><updated>2010-11-05T22:49:05.869+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ABAP/4"/><category scheme="http://www.blogger.com/atom/ns#" term="FI"/><title type='text'>BAPI_ACC_DOCUMENT_POST 建立Park文件</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;遇到客戶的新需求：透過interface轉進SAP建立會計文件時，只需要建立Park文件，不要Post。&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;系統上並沒有這樣功能的的FM及BAPI，只好把辦法想到enhancement及BADI。找到之前寫過的BADI ACC_DOCUMENT直接使用CHANGE這個Method。&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;只要在Method中指定欄位值C_ACCHD-STATUS_NEW = 2.建立的文件就是Park文件。&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://kenandsap.blogspot.com/feeds/4150160240004870737/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://kenandsap.blogspot.com/2010/11/bapiaccdocumentpost-park.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/4150160240004870737'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/4150160240004870737'/><link rel='alternate' type='text/html' href='http://kenandsap.blogspot.com/2010/11/bapiaccdocumentpost-park.html' title='BAPI_ACC_DOCUMENT_POST 建立Park文件'/><author><name>肥肥豬</name><uri>http://www.blogger.com/profile/07570903252757222466</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://bp2.blogger.com/_2EShorx9_WE/R1ZfOoL8jHI/AAAAAAAAAHc/bCpXxx_Gijs/S220/%E7%85%A7%E7%89%87+088..JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-332089195695110105.post-794781890467077725</id><published>2010-10-29T11:58:00.000+08:00</published><updated>2010-10-29T11:58:58.452+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ABAP/4"/><category scheme="http://www.blogger.com/atom/ns#" term="FI"/><title type='text'>FI posting 替換 RECN account</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;最近有個需求是要在VF01及MIRO時，把RECN科目替換成關係人的RECN科目。但是SAP Note 42615裡特別提到有些fields在substitution不會work，也不會有message。&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;改往BTE去處理，用event1120替換科目。找到1120的interface之後，copy至ZPROCESS_00001120。發現structure BSEG_SUBST並沒有提供科目的field HKONT。直接append structure把field加進去，之後再寫code。&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;以下範例僅供參考：&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;style type=&quot;text/css&quot;&gt;
SPAN {
font-family: &quot;Fixedsys&quot;;
font-size: 12pt;
color: #000000;
background: #FFFFFF;
}
.L0S31 {
font-style: italic;
color: #808080;
}
.L0S32 {
color: #3399FF;
}
.L0S33 {
color: #4DA619;
}
.L0S52 {
color: #0000FF;
}
&lt;/style&gt; &lt;span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;FIELD-SYMBOLS:&amp;nbsp;&lt;fs&gt;,&amp;nbsp;&lt;fsline&gt;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;TYPE&amp;nbsp;&lt;/span&gt;BSEG_SUBST.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;DATA:&amp;nbsp;VAR_NAME(30).&lt;br /&gt;
&lt;span class=&quot;L0S31&quot;&gt;**MIRO&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;DATA:&amp;nbsp;XEKBE&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;LIKE&amp;nbsp;&lt;/span&gt;EKBE&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;OCCURS&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S32&quot;&gt;10&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;WITH&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;HEADER&amp;nbsp;&lt;/span&gt;LINE,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;XEKPO&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;LIKE&amp;nbsp;&lt;/span&gt;EKPO&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;OCCURS&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S32&quot;&gt;10&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;WITH&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;HEADER&amp;nbsp;&lt;/span&gt;LINE,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;TMP_EKPO&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;LIKE&amp;nbsp;&lt;/span&gt;EKPO.&lt;br /&gt;
&lt;span class=&quot;L0S31&quot;&gt;**billing&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;DATA:&amp;nbsp;XVBRPVB&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;LIKE&amp;nbsp;&lt;/span&gt;VBRPVB&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;OCCURS&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S32&quot;&gt;10&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;WITH&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;HEADER&amp;nbsp;&lt;/span&gt;LINE.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;L0S31&quot;&gt;**Logic&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;READ&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;TABLE&amp;nbsp;&lt;/span&gt;T_BKPF&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;INDEX&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S32&quot;&gt;1.&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;CASE&amp;nbsp;&lt;/span&gt;T_BKPF-BLART.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;WHEN&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S33&quot;&gt;&#39;RE&#39;&lt;/span&gt;.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;VAR_NAME&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;L0S33&quot;&gt;&#39;(SAPLMRMP)XEKBE[]&#39;&lt;/span&gt;.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;ASSIGN&amp;nbsp;&lt;/span&gt;(VAR_NAME)&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;TO&amp;nbsp;&lt;/span&gt;&lt;fs&gt;.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;CHECK&amp;nbsp;&lt;/span&gt;SY-SUBRC&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;L0S32&quot;&gt;0.&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;XEKBE[]&amp;nbsp;=&amp;nbsp;&lt;fs&gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;LOOP&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;AT&amp;nbsp;&lt;/span&gt;XEKBE.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;SELECT&amp;nbsp;&lt;/span&gt;*&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;FROM&amp;nbsp;&lt;/span&gt;EKPO&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;WHERE&amp;nbsp;&lt;/span&gt;EBELN&amp;nbsp;=&amp;nbsp;XEKBE-EBELN&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;AND&amp;nbsp;&lt;/span&gt;EBELP&amp;nbsp;=&amp;nbsp;XEKBE-EBELP&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;AND&amp;nbsp;&lt;/span&gt;(&amp;nbsp;KNTTP&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;L0S33&quot;&gt;&#39;A&#39;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;OR&amp;nbsp;&lt;/span&gt;KNTTP&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;L0S33&quot;&gt;&#39;K&#39;&amp;nbsp;&lt;/span&gt;).&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;APPEND&amp;nbsp;&lt;/span&gt;EKPO&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;TO&amp;nbsp;&lt;/span&gt;XEKPO.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ENDSELECT.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ENDLOOP.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;CHECK&amp;nbsp;&lt;/span&gt;XEKPO[]&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;IS&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;NOT&amp;nbsp;&lt;/span&gt;INITIAL.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;LOOP&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;AT&amp;nbsp;&lt;/span&gt;XEKPO.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;IF&amp;nbsp;&lt;/span&gt;XEKPO-NETWR&amp;nbsp;&amp;gt;&amp;nbsp;TMP_EKPO-NETWR.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;TMP_EKPO&amp;nbsp;=&amp;nbsp;XEKPO.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ENDIF.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ENDLOOP.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;CLEAR&amp;nbsp;&lt;/span&gt;LFA1.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;LOOP&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;AT&amp;nbsp;&lt;/span&gt;T_BSEG&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;WHERE&amp;nbsp;&lt;/span&gt;KOART&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;L0S33&quot;&gt;&#39;K&#39;&lt;/span&gt;.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;READ&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;TABLE&amp;nbsp;&lt;/span&gt;T_BSEGSUB&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;WITH&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;KEY&amp;nbsp;&lt;/span&gt;TABIX&amp;nbsp;=&amp;nbsp;SY-TABIX&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;ASSIGNING&amp;nbsp;&lt;/span&gt;&lt;fsline&gt;.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;SELECT&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;SINGLE&amp;nbsp;&lt;/span&gt;*&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;FROM&amp;nbsp;&lt;/span&gt;LFA1&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;WHERE&amp;nbsp;&lt;/span&gt;LIFNR&amp;nbsp;=&amp;nbsp;T_BSEG-LIFNR&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;AND&amp;nbsp;&lt;/span&gt;KTOKK&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;L0S33&quot;&gt;&#39;Z101&#39;&lt;/span&gt;.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;IF&amp;nbsp;&lt;/span&gt;SY-SUBRC&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;L0S32&quot;&gt;0.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S31&quot;&gt;&quot;關係人&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;CASE&amp;nbsp;&lt;/span&gt;TMP_EKPO-KNTTP.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;WHEN&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S33&quot;&gt;&#39;A&#39;&lt;/span&gt;.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;fsline&gt;-HKONT&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;L0S33&quot;&gt;&#39;0021460001&#39;&lt;/span&gt;.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;WHEN&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S33&quot;&gt;&#39;K&#39;&lt;/span&gt;.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;fsline&gt;-HKONT&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;L0S33&quot;&gt;&#39;0021901001&#39;&lt;/span&gt;.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ENDCASE.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ELSE.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S31&quot;&gt;&quot;非關係人&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;CASE&amp;nbsp;&lt;/span&gt;TMP_EKPO-KNTTP.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;WHEN&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S33&quot;&gt;&#39;A&#39;&lt;/span&gt;.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;fsline&gt;-HKONT&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;L0S33&quot;&gt;&#39;0021450001&#39;&lt;/span&gt;.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;WHEN&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S33&quot;&gt;&#39;K&#39;&lt;/span&gt;.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;fsline&gt;-HKONT&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;L0S33&quot;&gt;&#39;0021700002&#39;&lt;/span&gt;.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ENDCASE.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ENDIF.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ENDLOOP.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;WHEN&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S33&quot;&gt;&#39;RV&#39;&lt;/span&gt;.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;VAR_NAME&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;L0S33&quot;&gt;&#39;(SAPMV60A)XVBRP[]&#39;&lt;/span&gt;.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;ASSIGN&amp;nbsp;&lt;/span&gt;(VAR_NAME)&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;TO&amp;nbsp;&lt;/span&gt;&lt;fs&gt;.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;CHECK&amp;nbsp;&lt;/span&gt;SY-SUBRC&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;L0S32&quot;&gt;0.&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;XVBRPVB[]&amp;nbsp;=&amp;nbsp;&lt;fs&gt;.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;READ&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;TABLE&amp;nbsp;&lt;/span&gt;XVBRPVB&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;INDEX&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S32&quot;&gt;1.&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;CHECK&amp;nbsp;&lt;/span&gt;SY-SUBRC&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;L0S32&quot;&gt;0.&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;SELECT&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;SINGLE&amp;nbsp;&lt;/span&gt;*&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;FROM&amp;nbsp;&lt;/span&gt;VBAK&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;WHERE&amp;nbsp;&lt;/span&gt;VBELN&amp;nbsp;=&amp;nbsp;XVBRPVB-AUBEL&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;AND&amp;nbsp;&lt;/span&gt;AUART&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;L0S33&quot;&gt;&#39;ZSLA&#39;&lt;/span&gt;.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;CHECK&amp;nbsp;&lt;/span&gt;SY-SUBRC&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;L0S32&quot;&gt;0.&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;SELECT&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;SINGLE&amp;nbsp;&lt;/span&gt;*&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;FROM&amp;nbsp;&lt;/span&gt;KNA1&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;WHERE&amp;nbsp;&lt;/span&gt;KUNNR&amp;nbsp;=&amp;nbsp;VBAK-KUNNR&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;AND&amp;nbsp;&lt;/span&gt;KTOKD&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;L0S33&quot;&gt;&#39;Z005&#39;&lt;/span&gt;.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;IF&amp;nbsp;&lt;/span&gt;SY-SUBRC&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;L0S32&quot;&gt;0.&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;LOOP&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;AT&amp;nbsp;&lt;/span&gt;T_BSEG&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;WHERE&amp;nbsp;&lt;/span&gt;KOART&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;L0S33&quot;&gt;&#39;D&#39;&lt;/span&gt;.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;READ&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;TABLE&amp;nbsp;&lt;/span&gt;T_BSEGSUB&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;WITH&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;KEY&amp;nbsp;&lt;/span&gt;TABIX&amp;nbsp;=&amp;nbsp;SY-TABIX&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;ASSIGNING&amp;nbsp;&lt;/span&gt;&lt;fsline&gt;.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;IF&amp;nbsp;&lt;/span&gt;SY-SUBRC&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;L0S32&quot;&gt;0.&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;fsline&gt;-HKONT&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;L0S33&quot;&gt;&#39;0011550001&#39;&lt;/span&gt;.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ENDIF.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ENDLOOP.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ELSE.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;LOOP&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;AT&amp;nbsp;&lt;/span&gt;T_BSEG&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;WHERE&amp;nbsp;&lt;/span&gt;KOART&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;L0S33&quot;&gt;&#39;D&#39;&lt;/span&gt;.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;READ&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;TABLE&amp;nbsp;&lt;/span&gt;T_BSEGSUB&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;WITH&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;KEY&amp;nbsp;&lt;/span&gt;TABIX&amp;nbsp;=&amp;nbsp;SY-TABIX&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;ASSIGNING&amp;nbsp;&lt;/span&gt;&lt;fsline&gt;.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;L0S52&quot;&gt;IF&amp;nbsp;&lt;/span&gt;SY-SUBRC&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;L0S32&quot;&gt;0.&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;fsline&gt;-HKONT&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;L0S33&quot;&gt;&#39;0011460001&#39;&lt;/span&gt;.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ENDIF.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ENDLOOP.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ENDIF.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;ENDCASE.&lt;/fsline&gt;&lt;/fsline&gt;&lt;/fsline&gt;&lt;/fsline&gt;&lt;/fs&gt;&lt;/fs&gt;&lt;/fsline&gt;&lt;/fsline&gt;&lt;/fsline&gt;&lt;/fsline&gt;&lt;/fsline&gt;&lt;/fs&gt;&lt;/fs&gt;&lt;/fsline&gt;&lt;/fs&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kenandsap.blogspot.com/feeds/794781890467077725/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://kenandsap.blogspot.com/2010/10/fi-posting-recn-account.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/794781890467077725'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/794781890467077725'/><link rel='alternate' type='text/html' href='http://kenandsap.blogspot.com/2010/10/fi-posting-recn-account.html' title='FI posting 替換 RECN account'/><author><name>肥肥豬</name><uri>http://www.blogger.com/profile/07570903252757222466</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://bp2.blogger.com/_2EShorx9_WE/R1ZfOoL8jHI/AAAAAAAAAHc/bCpXxx_Gijs/S220/%E7%85%A7%E7%89%87+088..JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-332089195695110105.post-1736143856829877855</id><published>2010-10-19T22:04:00.001+08:00</published><updated>2010-10-19T22:07:12.372+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ABAP/4"/><category scheme="http://www.blogger.com/atom/ns#" term="FI"/><title type='text'>FI park document 檢查 2/2</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;前篇提到&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;park document save時，借貸要相等的做法是用BTE&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;event&amp;nbsp;2213，但是error時會整個交易Exit。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;我想解法應該不只一種，就用ECC6以後才有的Enhancement Implementation處理：&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;1 以F-65為例，先找到save時在PAI檢查的PAI module。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;2 進一步找到include program LF040F00裡面的form&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;beleg_parken_pruefen，從這段code當中發現是用來做save檢查的。&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;3 直接在form上面enhance，Enhancement Implementation名稱就取叫ZEH_LF040F00。&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;4 在enhancement加入以下code：&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;style type=&quot;text/css&quot;&gt;
SPAN {
font-family: &quot;Fixedsys&quot;;
font-size: 12pt;
color: #000000;
background: #FFFFFF;
}
.L0S33 {
color: #4DA619;
}
.L0S52 {
color: #0000FF;
}
&lt;/style&gt; &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;data:&amp;nbsp;h_wrbtr&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;type&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;wrbtr,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;s_wrbtr&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;type&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;wrbtr.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;LOOP&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;AT&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;xbseg&amp;nbsp;.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;case&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;xbseg-SHKZG.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;when&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;L0S33&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&#39;H&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;h_wrbtr&amp;nbsp;=&amp;nbsp;h_wrbtr&amp;nbsp;+&amp;nbsp;xbseg-wrbtr.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;when&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;L0S33&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&#39;S&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;s_wrbtr&amp;nbsp;=&amp;nbsp;s_wrbtr&amp;nbsp;+&amp;nbsp;xbseg-wrbtr.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;endcase.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;ENDLOOP.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;check&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;h_wrbtr&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;ne&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;s_wrbtr.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;message&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;e888(SABAPDOCU)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;L0S52&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;with&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;L0S33&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&#39;借貸金額不平，請修改明細項目!&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;5 最後記得要active。&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;style type=&quot;text/css&quot;&gt;
SPAN {
font-family: &quot;Fixedsys&quot;;
font-size: 12pt;
color: #000000;
background: #FFFFFF;
}
&lt;/style&gt;</content><link rel='replies' type='application/atom+xml' href='http://kenandsap.blogspot.com/feeds/1736143856829877855/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://kenandsap.blogspot.com/2010/10/fi-park-document-22.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/1736143856829877855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/1736143856829877855'/><link rel='alternate' type='text/html' href='http://kenandsap.blogspot.com/2010/10/fi-park-document-22.html' title='FI park document 檢查 2/2'/><author><name>肥肥豬</name><uri>http://www.blogger.com/profile/07570903252757222466</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://bp2.blogger.com/_2EShorx9_WE/R1ZfOoL8jHI/AAAAAAAAAHc/bCpXxx_Gijs/S220/%E7%85%A7%E7%89%87+088..JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-332089195695110105.post-794655538820824823</id><published>2010-10-19T21:49:00.001+08:00</published><updated>2010-11-29T13:38:22.562+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ABAP/4"/><category scheme="http://www.blogger.com/atom/ns#" term="FI"/><title type='text'>FI park document 檢查 1/2</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;新project在FI有個很特殊的需求：&lt;br /&gt;
1 park document的item輸入時檢查利潤中心和成本中心不可空白。&lt;br /&gt;
2 park document save時，借貸要相等。&lt;br /&gt;
&lt;br /&gt;
需求1本想用validation做，一試之下發現不行。&lt;br /&gt;
退而求其次，改用BTE event 2213，試了之後檢查是可行的，但有個缺點只能在save時檢查，並且一旦檢查出錯誤時，就Exit，失敗!&lt;/span&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
想來想去差點就無解了，突然想到一個幾乎失傳的技術(RWIN_CHECK)，我最早看到是在R/3 4.0有人這麼做過。&lt;br /&gt;
&lt;br /&gt;
考慮利潤中心和成本中心是在item的coding block，所以就copy標準的function FI_COBL_CHECK到ZFI_COBL_CHECK。&lt;br /&gt;
在裡面加入以下park doc的檢查code：&lt;br /&gt;
&lt;br /&gt;
IF I_COBL-VORGN = &#39;RFBV&#39;. * BREAK IBM_KEN.&lt;br /&gt;
CASE I_COBL-HKONT(3).&lt;br /&gt;
WHEN &#39;006&#39; OR &#39;007&#39;.&lt;br /&gt;
IF I_COBL-KOSTL = &#39;&#39;.&lt;br /&gt;
SUBRC = 12.&lt;br /&gt;
ENDIF.&lt;br /&gt;
ENDCASE.&lt;br /&gt;
&lt;br /&gt;
SELECT SINGLE FSTAG INTO FSTAG FROM SKB1&lt;br /&gt;
WHERE BUKRS = I_COBL-BUKRS&lt;br /&gt;
AND SAKNR = I_COBL-HKONT&lt;br /&gt;
AND FSTAG = &#39;G005&#39;.&lt;br /&gt;
IF SY-SUBRC = 0 AND I_COBL-PRCTR = &#39;&#39;.&lt;br /&gt;
SUBRC = 13.&lt;br /&gt;
ENDIF.&lt;br /&gt;
ENDIF.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
之後再補上message&lt;br /&gt;
&lt;br /&gt;
WHEN 12.&lt;br /&gt;
MESSAGE E888(SABAPDOCU) WITH &#39;成本中心欄位不可空白!!&#39;.&lt;br /&gt;
WHEN 13.&lt;br /&gt;
MESSAGE E888(SABAPDOCU) WITH &#39;利潤中心欄位不可空白!!&#39;.&lt;br /&gt;
&lt;br /&gt;
完成之後要將table TRWPR補上ZFI_COBL_CHECK設定。&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
park document save可用失敗的BTE來做，但一樣會Exit，解法下篇再說。&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kenandsap.blogspot.com/feeds/794655538820824823/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://kenandsap.blogspot.com/2010/10/fi-park-document-12.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/794655538820824823'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/794655538820824823'/><link rel='alternate' type='text/html' href='http://kenandsap.blogspot.com/2010/10/fi-park-document-12.html' title='FI park document 檢查 1/2'/><author><name>肥肥豬</name><uri>http://www.blogger.com/profile/07570903252757222466</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://bp2.blogger.com/_2EShorx9_WE/R1ZfOoL8jHI/AAAAAAAAAHc/bCpXxx_Gijs/S220/%E7%85%A7%E7%89%87+088..JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-332089195695110105.post-5267539479970766252</id><published>2010-10-12T10:55:00.000+08:00</published><updated>2010-10-12T10:55:07.905+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ABAP/4"/><category scheme="http://www.blogger.com/atom/ns#" term="PM"/><title type='text'>IE01自動寫入asset值</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;友人提問：在IE01要如何能自動帶入asset的值&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;在IDES找了一下，發現有個EXIT_SAPMIEQ0_001很有機會，但是沒有提供asset的field，所以動手用append structure加一下fields&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLvVnVMYk9zZQE0vJix18l78_PCPpLenYSIuP4TLZGqANQmT2bbPMUqvSrLzooYrD3peddKIroptXdT1XCW2OH9BE4HHsvUC8G6NKeG2YUMtVY3hZtziXcoIB1Y5uYtcMju0R1r2xw2T45/s1600/exit+01.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;230&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLvVnVMYk9zZQE0vJix18l78_PCPpLenYSIuP4TLZGqANQmT2bbPMUqvSrLzooYrD3peddKIroptXdT1XCW2OH9BE4HHsvUC8G6NKeG2YUMtVY3hZtziXcoIB1Y5uYtcMju0R1r2xw2T45/s640/exit+01.png&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;二個structure都要加，下圖只show一個&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQpUEU9SGER5TLpQ0rPjKM41FllpAuR-SswH-TGtxcJe5cyXJ1SZ4FLK4KlcevQiybt7RLsbB-NjwpwLSKJojUTOuYrHBSaPNZmoY6wROj7yX-piGR9ET_Xizu9xamP6ryFB43es6bbJ8g/s1600/exit+02.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;312&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQpUEU9SGER5TLpQ0rPjKM41FllpAuR-SswH-TGtxcJe5cyXJ1SZ4FLK4KlcevQiybt7RLsbB-NjwpwLSKJojUTOuYrHBSaPNZmoY6wROj7yX-piGR9ET_Xizu9xamP6ryFB43es6bbJ8g/s640/exit+02.png&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;加完之後，建立一個asset&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgM2cISS4sjZ8n_XviTxyoIJ6SESK5oLNhiRDwzTsUaCfK3FjASwsb9CXwG644YLBaLw0nVN5nQrJGdymNNSrW-IOZECRWPP8_XOePwHjOuFFyzsLne8_ZafjiCAG0O1k-imbkG1yXu6rLL/s1600/asset01.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;278&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgM2cISS4sjZ8n_XviTxyoIJ6SESK5oLNhiRDwzTsUaCfK3FjASwsb9CXwG644YLBaLw0nVN5nQrJGdymNNSrW-IOZECRWPP8_XOePwHjOuFFyzsLne8_ZafjiCAG0O1k-imbkG1yXu6rLL/s640/asset01.png&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;之後加入code&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;UPDATE_DATA_EZ-BUKRS = &#39;0001&#39;.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;UPDATE_FLAGS_EZ-BUKRS = &#39;X&#39;.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;UPDATE_DATA_EZ-ANLNR = &#39;000000020000&#39;.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;UPDATE_FLAGS_EZ-ANLNR = &#39;X&#39;.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;UPDATE_DATA_EZ-ANLUN = &#39;0000&#39;.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;UPDATE_FLAGS_EZ-ANLUN = &#39;X&#39;.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;CMOD就略過，直接建立IE01&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRYf9o45tt4FCf0r6hfpN6t0Ch30Ylwbd7X3XA2kLVQeFr_I8aLbJdy7gwcS78JbnT-IXwYuP4izyDWigu4pNAJJxiVlo-mxi4lrqTGifwoIdQM-NIgIW3vJ4d4KShhVYoeuvwZAjte_RW/s1600/ie01.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;322&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRYf9o45tt4FCf0r6hfpN6t0Ch30Ylwbd7X3XA2kLVQeFr_I8aLbJdy7gwcS78JbnT-IXwYuP4izyDWigu4pNAJJxiVlo-mxi4lrqTGifwoIdQM-NIgIW3vJ4d4KShhVYoeuvwZAjte_RW/s640/ie01.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;測試自動給值，所以直接保存&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgksc2Aa7gR66i5tLZaH84eD1D2BIZnmkwHJjffR23pGONN6V5jKvIjET4JFxkoJn4-xD1RVGBKLoQk_0fLJ5o7nwRJ4lVJqZwSfS1wDL_WhGldjYpUICK7vRANu3L4OUaA9X4O2uAKwATR/s1600/ie02.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;444&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgksc2Aa7gR66i5tLZaH84eD1D2BIZnmkwHJjffR23pGONN6V5jKvIjET4JFxkoJn4-xD1RVGBKLoQk_0fLJ5o7nwRJ4lVJqZwSfS1wDL_WhGldjYpUICK7vRANu3L4OUaA9X4O2uAKwATR/s640/ie02.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;asset已寫入&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTu_mb16lH953hllaiIIKctj8DH4nfrJYoXDiLJtDRu1CrtRIpGZ9GVGCdPafUu8x_1LXPfpwQiJ2IlIbxisrAhr6TTIuV0nqP4KCb30zGagUEVp3pqqY8tvRlgvUzdK4kRy4BYfmrfCKL/s1600/ie03.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;330&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTu_mb16lH953hllaiIIKctj8DH4nfrJYoXDiLJtDRu1CrtRIpGZ9GVGCdPafUu8x_1LXPfpwQiJ2IlIbxisrAhr6TTIuV0nqP4KCb30zGagUEVp3pqqY8tvRlgvUzdK4kRy4BYfmrfCKL/s640/ie03.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kenandsap.blogspot.com/feeds/5267539479970766252/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://kenandsap.blogspot.com/2010/10/ie01asset.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/5267539479970766252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/5267539479970766252'/><link rel='alternate' type='text/html' href='http://kenandsap.blogspot.com/2010/10/ie01asset.html' title='IE01自動寫入asset值'/><author><name>肥肥豬</name><uri>http://www.blogger.com/profile/07570903252757222466</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://bp2.blogger.com/_2EShorx9_WE/R1ZfOoL8jHI/AAAAAAAAAHc/bCpXxx_Gijs/S220/%E7%85%A7%E7%89%87+088..JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLvVnVMYk9zZQE0vJix18l78_PCPpLenYSIuP4TLZGqANQmT2bbPMUqvSrLzooYrD3peddKIroptXdT1XCW2OH9BE4HHsvUC8G6NKeG2YUMtVY3hZtziXcoIB1Y5uYtcMju0R1r2xw2T45/s72-c/exit+01.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-332089195695110105.post-7211981413625118018</id><published>2010-09-25T16:54:00.001+08:00</published><updated>2010-09-27T00:10:38.379+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ABAP/4"/><category scheme="http://www.blogger.com/atom/ns#" term="QM"/><title type='text'>BAPI_QUALNOT_CREATE 建立Q3通知單處理訂單號碼及作業號碼</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;最近想起上個project有個透過interface從MES轉入生產訂單異常，在SAP用BAPI開出QN時，要把訂單號碼及作業號碼寫入的問題。&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;１ 以下是在IDES建立的QN，訂單號碼及作業號碼是直接填入的&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuyrn8cyLv3b03cqsevjDOmvE5O7o2PmuClkLuTSgqrufwFMiH1ByEopVT6w4oiUnUVX9X-DMxdBEvdop5AKGgS8fylkbne6s9nD2gB8VfbqInNOt4zTKYtgwABUKKc90HOy8N340tkUQW/s1600/QM03.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;236&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuyrn8cyLv3b03cqsevjDOmvE5O7o2PmuClkLuTSgqrufwFMiH1ByEopVT6w4oiUnUVX9X-DMxdBEvdop5AKGgS8fylkbne6s9nD2gB8VfbqInNOt4zTKYtgwABUKKc90HOy8N340tkUQW/s400/QM03.png&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;2 在BAPI_QUALNOT_CREATE傳入的NOTIFHEADER只找到&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;PROD_ORDER是生產訂單，卻&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;找不到作業號碼對應的field&lt;/span&gt;&lt;br /&gt;
&lt;style type=&quot;text/css&quot;&gt;
SPAN {
font-family: &quot;Fixedsys&quot;;
font-size: 12pt;
color: #000000;
background: #FFFFFF;
}
&lt;/style&gt; &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;3 進table AFVC找到field&amp;nbsp;AUFPL及APLZL，剛好可以對應到NOTIFHEADER，改填入這二個field&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;4&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;BAPI_TRANSACTION_COMMIT前要記得先處理&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;BAPI_QUALNOT_SAVE&lt;/span&gt;&lt;br /&gt;
&lt;style type=&quot;text/css&quot;&gt;
SPAN {
font-family: &quot;Fixedsys&quot;;
font-size: 12pt;
color: #000000;
background: #FFFFFF;
}
&lt;/style&gt; &lt;style type=&quot;text/css&quot;&gt;
SPAN {
font-family: &quot;Fixedsys&quot;;
font-size: 12pt;
color: #000000;
background: #FFFFFF;
}
&lt;/style&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt; &lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://kenandsap.blogspot.com/feeds/7211981413625118018/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://kenandsap.blogspot.com/2010/09/bapiqualnotcreate-q3.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/7211981413625118018'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/332089195695110105/posts/default/7211981413625118018'/><link rel='alternate' type='text/html' href='http://kenandsap.blogspot.com/2010/09/bapiqualnotcreate-q3.html' title='BAPI_QUALNOT_CREATE 建立Q3通知單處理訂單號碼及作業號碼'/><author><name>肥肥豬</name><uri>http://www.blogger.com/profile/07570903252757222466</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://bp2.blogger.com/_2EShorx9_WE/R1ZfOoL8jHI/AAAAAAAAAHc/bCpXxx_Gijs/S220/%E7%85%A7%E7%89%87+088..JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuyrn8cyLv3b03cqsevjDOmvE5O7o2PmuClkLuTSgqrufwFMiH1ByEopVT6w4oiUnUVX9X-DMxdBEvdop5AKGgS8fylkbne6s9nD2gB8VfbqInNOt4zTKYtgwABUKKc90HOy8N340tkUQW/s72-c/QM03.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>