記錄 FI substitution 相關(guān) OSS Note 查看時(shí)自己關(guān)注的要點(diǎn)。并非翻譯或全文解讀。
42615
會(huì)計(jì)憑證沖銷 (FB08 / F.80)不會(huì)觸發(fā)替代,因?yàn)闆_銷憑證 (reversal document)必須和原憑證只有借貸方相反,其他完全相同 (當(dāng)然憑證日期可以有一些變化)。
會(huì)計(jì)憑證替代有三種,header 替代,line item 替代和 complete document 替代。line item 替代時(shí)不能修改 header 的字段,否則系統(tǒng)產(chǎn)生一個(gè) dump: PERFORM_PARAMETER_TOO_SHORT 。
關(guān)鍵字段不應(yīng)該被替代,比如會(huì)計(jì)科目、金額、GSBER 等。
如何允許某字段被替代
如果默認(rèn)情況下,某字段不能被替代,使用下面的方法將該字段設(shè)置為可以被替代 (以 BSEG-MABER 為例 )
Step 1: 修改 GB01 表 :
將
BOOLCLASS CLASSTYPE BCLTAB BCLFIELD BEXCLUDE
009 S BSEG MABER X
修改為:
BOOLCLASS CLASSTYPE BCLTAB BCLFIELD BEXCLUDE
009 S BSEG MABER
bexclude 修改為 space 。用一種自己熟悉的方法修改。比如使用 ABAP 的 modify :
report z_modify_gb01.
data zgb01 like gb01.
select single * into zgb01 from gb01
where boolclass = '009'
and classtype = 'S'
and bcltab = 'BSEG'
and bclfield = 'MABER'
and beclude = 'X' .
* bexclude 修改為 space
zgb01-bexclude = ''.
modify gb01 from zgb01.
說明:
BOOLCLASS - Specifies the Boolean class. This is determined in the application area and callup point in each case, for example:
008 - Document header (FI)
009 - Line item (FI)
015 - Complete document (FI)
016 - Cost of sales accounting
100 - Document header (CO)
CLASSTYPE - Specifies if the field can be used for validations (B), substitutions (S) or both (A).
BCLTAB - Table that is used
BLCFIELD - Field of this table
BEXCLUDE - Can be used ' ' or cannot be used 'X'.
- complete document :
boolclass = '015'。同時(shí)要?jiǎng)h除 GB01 中的下面一行:
BOOLCLASS CLASSTYPE BCLTAB BCLFIELD BEXCLUDE
015 S BSEG * X
Step 2: 重新生成 substitution export routines
使用程序 RGUGBR00 重新生成 substitution export routines。
Complete doucment 替代的作用范圍
At callup point 3, substitution is only carried out if the document is posted in FI (with program SAPMF05A or SAPF110S) or in MM invoice verification (with program SAPMM08R). When posting via the FI/CO interface, for example, with direct input (RFBIBL00 Mode 'D' or transfer billing document with Transaction VF01) no substitution is carried out.
這一點(diǎn),386896 有專門說明。
386896
FI 完全憑證替代只適用于 FI 手工憑證和 MR01 所做的 LIV 憑證。其他組件所做憑證,不會(huì)運(yùn)行 FI 替代。
如果要實(shí)現(xiàn)其他組件業(yè)務(wù)傳給 FI 的會(huì)計(jì)憑證,有兩種方法:
- BTE: process 1120 和 process 1130
- ERP 2004 版之后,可以使用 BADI : ac_document
97557
97557 介紹憑證更改 (document change)時(shí)候替代 (substitution)是否起作用。簡單來說,就是憑證更改的時(shí)候,如果修改憑證抬頭 (document header),則憑證抬頭必須有字段被修改過。如果修改憑證行項(xiàng)目,則至少在行項(xiàng)目中有字段被修改過。
原文:
When you change documents (Transaction FB02), a substitution is only carried out for callup point 1 (document header) if a field has been changed manually in the document header.
When you change documents, a substitution is only carried out for callup point 2 (line item) if a field has been changed manually in the line in question.
參考資料
42615 - Substitution in FI
97557 - Substitution in FI for change document
386896 - Substitution at call-up point 3 ("Complete document")
Substitution with BADI AC_DOCUMENT in FI transaction codes
842318 - Frequently asked questions about validations and substitutions