The logical process of account assignment determination

 

The logical process of account assignment determination

It’s very easy if you are strong in IMG. I can guide you go to OMJJ Create a movement type by copying 601 to say 901 (or Z01) Now:

1)      Table T156 will have something called posting reference.

2)      Taking the posting reference to the table T156SY, for the Posting Reference     determined in the step# 1, SAP finds two things called: Value Reference Key and   Quantity Reference Key  

3)      Value Reference Key is verified in table T156W and Qty ref in T156M Earlier T156S used to be there before 4.6 B. It is divided into T156SY (Client independent System table) and T156SM (Client Dependent - customized). For our context, T156SY is important.

 

With the above knowledge, let's now see how movement type determines Quantity and value reference keys in any transaction:

1)      Your movement type says 601: from this, (T156), it finds Posting reference: 601

2)       Transaction that you are using: say VL02N, using this value, it goes to T158, it finds movement indicator, KZBEW (L Goods movement for delivery note)

            If the transaction involves any special stock, (say consignment W). For simple

            case, say no special stock so...blank for SOBKZ

3)      Plant is supplied by the transaction that you do Material# you will supply. For Plant and material# you supplied, it goes to T134M (material type config) to see if value update (WERTU) and Quantity Update (MENGU) are active or not. It selects this combination and passes back to code in its search Receipt Indicator ( If it is stock transfer, say T etc)...in your case, it is Blank Consumption Indicator (Blank for you) (Consumption posting specifies that the consumption is to be posted to a consumption account (V) or an asset account (A). The indicator is used in the case of goods receipts for purchase orders and is derived from the account assignment category of the purchase order....Used by SD and QM to determine if an assignment to CO object is necessary). Just don't worry about this very much

4)      Now SAP found all the values it requires (above listed), to go to T156SY to find what are the values of Value String and Quantity String. So, while narrating this, I ran the entries suitable for the above scenario in T156SY and go the below values:

Pstng strng ref   601

Value updating X

Qty updating X

Special Stock

Movement ind. L

Receipt ind.

Consumption

Value string WA01

Quantity string MA01

SLoc. necessary    X

W/o value strg.

InspLotOrigin D    05

InspLotOrigin C   02

Bus. trans D PMS1

Bus. trans. C PMS5

For you, just important ones are:

Value string WA01

Quantity string MA01

5)      Now, it turns out to be more interesting:

Let's talk about Value String first: WA01

Go to T156W with WA01 You will have the value of ‘Trans./ev. Key’ as below:

BSX

GBB

PRD

BSX

UMB

GBB

GBB

BSX

This content derived from T156W and earlier determined content of T156SY together gets into a valuation program SAPLMBGB (FORM WA01).

In this program, it loops an internal table X156W and extracts values: Transaction/Event Key and its corresponding value simultaneously.

From T030 (OBYC configuration for account determination) will be looped to pass the determined G/Ls back to code (for the above transaction/event keys)

From T156W, counter (say 02) for corresponding processing key (Ex: GBB) is used to determine matching Keys (02) in T156X

Of course, passes the account modifier to T030:

Movement Type 601

Value updating X

Qty updating X

Special Stock

Movement ind. L

Consumption

Value string WA01

Consec. counter 2

Acct modif VAX

Check acct.ass. X (again VAX and VAY are determined based on cost object requirement, ignore it for your basic understand now) depends upon consumption posting .The result goes to an internal table XACCIT to provide us the final accounting document results.

 

T156B can be used for copying CO object (say Project or WBSE) to PRD account if customer wants. Second episode continues tomorrow

 

Note 34913 – The handling of tables T156S, T156X, T156W, T163K

Summary

Symptom

Entries are missing or available entries are to be modified in table T156S. Error message M7001 'Entry & & & not in table T156S (system error)' is displayed when posting a goods movement.

Additional key words

T156S, T156X, T156W, T163K, OME9, M7001

Cause and prerequisites

Solution

The above tables are read as follows during a goods movement:

T163K
The 'Consumption posting' indicator and the account grouping code for the automatic account determination are read from table T163K for the account assignment category from the purchase order.
The consumption posting is empty for goods receipts that are not assigned.
The value from T163K is not always used for goods issues.
During goods issues with movement type 601, the 'Consumption posting' indicator originates from the delivery.
You can maintain the table with transaction OME9.

T156S
This table must contain an entry for the following key fields, because otherwise error message M7001 'Entry & & & not in table T156S (system error)' is displayed.
The movement type is entered in the goods receipt transactions.
The value update is stored in the detail screen for the material type, transaction OMS2.
The quantity update is stored in the detail screen for the material type, transaction OMS2.
The special stock indicator is entered in the goods receipt transaction.
The movement indicator is derived from the transaction-Table T158.
Consumption posting indicator for stock transfer.
The consumption posting is selected from T163K.
For this key, important economical data such as value string and quantity string is read from T156S during a goods movement. If a value string is maintained for an entry for a material with value update, this must not be deleted because otherwise inconsistencies may occur.

T156X
If you add an entry in T156S, you must also maintain T156X. T156X has the same key fields as T156S plus value string plus numerator. The account grouping code for every entry is stored here. It is used in the automatic account determination.

T156W
The respective transaction/event keys (GBB, WRX) for the value string are maintained here. For these transaction/event keys, you must store a G/L account for the automatic account determination considering the valuation grouping code and the account grouping code (from T163K and T156X).

 

内容概要:本文系统阐述了企业新闻发稿在生成式引擎优化(GEO)时代下的全渠道策略与效果评估体系,涵盖当前企业传播面临的预算、资源、内容与效果评估四大挑战,并深入分析2025年新闻发稿行业五大趋势,包括AI驱动的智能化转型、精准化传播、首发内容价值提升、内容资产化及数据可视化。文章重点解析央媒、地方官媒、综合门户和自媒体四类媒体资源的特性、传播优势与发稿策略,提出基于内容适配性、时间节奏、话题设计的策略制定方法,并构建涵盖品牌价值、销售转化与GEO优化的多维评估框架。此外,结合“传声港”工具实操指南,提供AI智能投放、效果监测、自媒体管理与舆情应对的全流程解决方案,并针对科技、消费、B2B、区域品牌四大行业推出定制化发稿方案。; 适合人群:企业市场/公关负责人、品牌传播管理者、数字营销从业者及中小企业决策者,具备一定媒体传播经验并希望提升发稿效率与ROI的专业人士。; 使用场景及目标:①制定科学的新闻发稿策略,实现从“流量思维”向“价值思维”转型;②构建央媒定调、门户扩散、自媒体互动的立体化传播矩阵;③利用AI工具实现精准投放与GEO优化,提升品牌在AI搜索中的权威性与可见性;④通过数据驱动评估体系量化品牌影响力与销售转化效果。; 阅读建议:建议结合文中提供的实操清单、案例分析与工具指南进行系统学习,重点关注媒体适配性策略与GEO评估指标,在实际发稿中分阶段试点“AI+全渠道”组合策略,并定期复盘优化,以实现品牌传播的长期复利效应。
在开发过程中,遇到 `System.InvalidOperationException` 异常,具体信息为“Specified element is already the logical child of another element. Disconnect it first.”,通常发生在尝试将一个已经作为逻辑子元素的 UI 元素添加到另一个父元素时。这种异常常见于 WPF 或 UWP 等基于 XAML 的 UI 框架中。 ### 异常原因 该异常的核心原因在于,UI 元素(如 `UIElement`、`FrameworkElement`)在 XAML 框架中具有父子关系的逻辑树结构。每个元素在同一时间只能拥有一个逻辑父元素。如果试图将一个已有父元素的子元素添加到另一个父容器中,就会触发此异常[^1]。 ### 解决方案 #### 方法一:从原有父元素中移除目标子元素 在将元素添加到新容器之前,需要先将其从原有父容器中移除。例如,在 WPF 中可以通过 `Children.Remove(element)` 实现: ```csharp if (element.Parent != null) { ((Panel)element.Parent).Children.Remove(element); } newParent.Children.Add(element); ``` #### 方法二:使用 `ContentPresenter` 或 `ContentControl` 间接托管内容 如果需要在多个位置复用内容,可以考虑使用 `ContentPresenter` 或 `ContentControl`,它们不会直接将内容作为逻辑子元素添加到自身中,而是通过引用的方式呈现内容: ```xaml <ContentControl Content="{Binding YourSharedContent}" /> ``` #### 方法三:使用 `ItemsControl` 或数据绑定 当需要动态管理一组元素时,推荐使用 `ItemsControl` 并绑定到一个集合,这样框架会自动处理元素的创建与销毁,避免手动操作导致的冲突: ```xaml <ItemsControl ItemsSource="{Binding YourCollection}" /> ``` #### 方法四:深拷贝元素 如果确实需要多个独立实例,可以通过序列化与反序列化的方式创建元素的深拷贝。虽然性能较高,但适用于不频繁操作的场景: ```csharp string xaml = XamlWriter.Save(element); StringReader stringReader = new StringReader(xaml); XmlReader xmlReader = XmlReader.Create(stringReader); UIElement copy = (UIElement)XamlReader.Load(xmlReader); newParent.Children.Add(copy); ``` ### 注意事项 - 在处理 UI 元素时,始终检查其是否已经有父元素。 - 避免直接操作逻辑树,尤其是在数据绑定和 MVVM 模式中。 - 使用工具类或封装方法统一处理元素的移动,确保逻辑一致性。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值