Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Variant Configuration Changing Item Text (POTX1)

joltdx
Active Contributor
0 Kudos

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

4 REPLIES 4

Flavio
Active Contributor
0 Kudos

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

joltdx
Active Contributor
0 Kudos

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

Flavio
Active Contributor
0 Kudos

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

joltdx
Active Contributor
0 Kudos

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