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).

 

内容概要:本文介绍了ENVI Deep Learning V1.0的操作教程,重点讲解了如何利用ENVI软件进行深度学习模型的训练与应用,以实现遥感图像中特定目标(如集装箱)的自动提取。教程涵盖了从数据准备、标签图像创建、模型初始化与训练,到执行分类及结果优化的完整流程,并介绍了精度评价与通过ENVI Modeler实现一键化建模的方法。系统基于TensorFlow框架,采用ENVINet5(U-Net变体)架构,支持通过点、线、面ROI或分类图生成标签数据,适用于多/高光谱影像的单一类别特征提取。; 适合人群:具备遥感图像处理基础,熟悉ENVI软件操作,从事地理信息、测绘、环境监测等相关领域的技术人员或研究人员,尤其是希望将深度学习技术应用于遥感目标识别的初学者与实践者。; 使用场景及目标:①在遥感影像中自动识别和提取特定地物目标(如车辆、建筑、道路、集装箱等);②掌握ENVI环境下深度学习模型的训练流程与关键参数设置(如Patch Size、Epochs、Class Weight等);③通过模型调优与结果反馈提升分类精度,实现高效自动化信息提取。; 阅读建议:建议结合实际遥感项目边学边练,重点关注标签数据制作、模型参数配置与结果后处理环节,充分利用ENVI Modeler进行自动化建模与参数优化,同时注意软硬件环境(特别是NVIDIA GPU)的配置要求以保障训练效率。
在开发过程中,遇到 `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 模式中。 - 使用工具类或封装方法统一处理元素的移动,确保逻辑一致性。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值