We are using COPA module and we defined many customing characteristic just like WW004. It will be alse added into table ACDOCA, But not BSEG.
When we post a FI document. we want to get text from Asset master into WW004. So we are going to define substituion to set this field. But failed. We can't use OBBH to change this field.
Symptom
Can the FI-Substitution for Line Item (Callup point 2) be used for documents having BSTAT = 'U' ?
Other Terms
OBBH, substitution, BADI_FINS_ACDOC_POSTING_EVENTS, BTE, Business Transaction Event
Reason and Prerequisites
.
Solution
FI-Substitution for Line Item (Callup point 2) are based on structure BSEG.
But for processes having BSTAT = 'U' BSEG is not created anymore, only ACDOCA is created.
Therefore it's not guaranteed that during runtime the FI-Substitution is processed for those kind of processes.
Processes having BSTAT = 'U' for which the FI-Substitution is processed:
Foreign Currency Valuations posted with FAGL_FCV or using the FIORI app 'Post Currency Adjustments ( S4H 1610 or later and sFIN 3.0 / sFIN oP 1605)
GL Allocations ( S4H 1610 or later and sFIN 3.0 / sFIN oP 1605 )
Asset Depreciation Posting Run (AFAB, AFABN) with S4H 1809 and later.
Please note that a substitution should be restricted to those fields which are included in ACDOCA (SGTXT, ZUONR..). If you substitute a BSEG field which is not included in ACDOCA, the substitution is useless.
Processes having BSTAT = 'U' for which the FI-Substitution is not processed:
Intra-Company CO transaction eg. KB11, KB21, CO allocations (please note that for all CO internal postings no FI substitutions and FI validations are processed due to design reasons - more info can be found in note 2666595)
Material movements which contains only statistical items with zero value (KSTAT = 'U')
For such processes the only substitution option is to use BADI BADI_FINS_ACDOC_POSTING_EVENTS (see notes 2453614 , 2676581).
Please note that in BADI BADI_FINS_ACDOC_POSTING_EVENTS only customer fields (e.g. Z* fields) contained in structure INCL_EEW_ACDOC can be substituted - standard fields can not be substituted.
Additional information:
For BSTAT = 'U' documents the Open FI Substitutions in BTEs 1120 and 1130 are not processed.