10-28-2015 1:21 PM
We have a Variant Configuration set up to change the Item Text field (POTX1) of a material.
I want to read this changed field from a function module. I have tested CS_BOM_EXPLOSION and CS_BOM_EXPL_MAT_V2, I get all the data but the POTX1 field is not calculated as configured.
VC_I_GET_CONFIGURATION and CUD0_GET_VAL_FROM_INSTANCE gets me the characteristics, but still no sign of POTX1...
Exploding it in CU51 shows the expected value but no luck with the FMs.
Please advice!
Best regards
Jörgen Lindqvist
10-28-2015 3:09 PM
Hi Jörgen,
a possibility could be to directly read the table STPO and get the field POTX1, by joining MAST, STKO and STPO tables.
Thank you and bye,
Flavio
10-28-2015 3:44 PM
Thank you,
Unfortunately I can not find the data in the STPO table and neither in MAST. =(
I believe it is calculated "live"?
// Jörgen
10-28-2015 5:29 PM
Hi Jörgen,
it's weird.... just tried in my sandbox system and seems okay:
here, added a dummy text to item 10:
here, the table STPO reading for that item:
Unfortunately I have no further ideas....
Thanks and bye,
Flavio
10-28-2015 5:43 PM
Hello again!
Yes, if the text is written manually, that approach works. However in my case the text is set automatically by the variant configuration, by a procedure dependency. I guess I was not very clear on that in my first question...
Thank you again
// Jörgen