‎2025 Apr 02 7:51 AM - edited ‎2025 Apr 02 8:22 AM
Dear all
i'm struggling to get to the way how to interpret data from XS_GET_CONTEXT which is returning context object in a complex multireference embedded structure....
I need to have access to Control_recipe context releven sections of XSTEP tree to have some custom checks during Control Recipe generation (CONTROL_RECIPE_CREATE FM which is triggered in Process order release).
Using XS_GET_CONTEXT of CL_COCR_CMX_TOP class gives IO_CONTEXT object with copmlex embedded structure with nodes: OBJECT, CLC_CMX_CX_NODE, CLC_CMX_CX_NODE_LEAF, CLC_CMX_CX_CONTEXT
and i managed to find steps of level 1 (where root step i treat as level 0) when i click on M_PARENT under CLC_CMX_CX_NODE and in M_PARENT under LCL_CMX_PERSISTENT node there is M_PERSISTENT_CHILDS table with lines refering to STEPS of Xtree level 1.
If i use XS_GET_CONTEXT_FROM_NODE method of the same class, then it seems that using CM_SESSION under M_PARENT gives M_PERSISTENT object with reference to all steps in XSTEP tree, but only to the header of step and not to the end level of details (refer to CM_Session_all_steps.png).
Could you please help to understand the following:
1) how to read entire Xstep tree data with abap tools from Process order
2) how to read specific Xstep step from header level to the final level of details (process instructions assigned, etc, etc).
3) how to interpet objects like IO_CONTEXT, IO_NODE described above...
Thanks a lot in advance,
KR, Andrew.
Request clarification before answering.
going to close the topic as there were no replies received.
there are 2 ways to get the data from xstep:
1) physical DB tables:
2) ROOT object available in various XSTEP related actions (method, etc). For example in ICMXCRIMP02 from where Control Recipe generation is triggered.
ROOT consists of string classes in a tree form. The way to find needed data is to step top->down direction through M_PERSISTENT_CHILDS table available under LCL_CMX_XS_PERSISTENT class. Each line in M_PERSISTENT_CHILDS represents sub node in Xstep. Its possible to match nodes via OID (GUID ids from Xstep tree within Process order). At certain stage M_PARAM_LOADED = ‘X’ will tell you that you're in the STEP where params and valuation takes place. The list of params with those values will be available in M_PARAM_LOADED_BUFFER.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 39 | |
| 22 | |
| 20 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.