06-06-2006 2:22 PM
Hi all,
I want to find a function module to get all material configuration options for a material.
I found 'BAPI_CFGINST_CHARCS_READ' but unfortunately it does not take into account allready existing characteristics.
For instance :
- I have a charac "A" and a charac "B".
- "B" only appears if "A" has the value X.
What I'm looking for is a FM that gives me "A" if the actual config is initial, and that gives me "A" and "B" if "A" is valuated with X.
Do you know if it exists ?
Regards,
Sylvain
06-06-2006 2:28 PM
Hi,
Here you go..
VC_I_GET_CONFIGURATION. This fm perfectly suits your requirement.
regards,
Ram
06-06-2006 3:03 PM
Hi Sylvain,
Try Fm CUCB_GET_CONFIGURATION to extract Material configuration.You can check other FMs of function group CUCB.
regards,
Naren
06-06-2006 3:31 PM
Hi Ram and Naren,
VC_I_GET_CONFIGURATION only seems to give the actual configuraton whereas I want all characteristics options available from the actual config.
CUCB_GET_CONFIGURATION gives data concerning the instance but I did not find characs with it too.
Thanks for your help
Sylvain
06-06-2006 3:39 PM
Sylvian,
Did you look at the funciton BAPI_CLASS_GETDETAIL to get the configuration for a specific material?
You can look at BAPI_CLASS_GET_CHARACTERISTICS and different BAPI_CLASS* functions.
Regards,
Ravi
06-06-2006 4:00 PM
Hi Ravi,
BAPI_CLASS* functions only gives information about class and characs but do not take actual config values to determine available characs to be filled.
Thanks
Regards,
Sylvain
06-06-2006 4:43 PM
Hi,
check this,
DATA: lt_chars TYPE TABLE OF api_var_r.
Call function 'CACL_CLASS_READ_VALIDATION'.
Exporting
object type = 'MARA'
class_type = '300'
TABLES
charact_values = lt_chars.
06-07-2006 8:41 AM
Hi Ram,
'CACL_CLASS_READ_VALIDATION' is used "to display the restricted value set that was defined when your class was allocated to a superior class."
I don't think it could help me such i do not not have a call allocated to a superior one, and I'm not searching for restricted value set but for restricted characteristics according to actual value.
Regards,
Sylvain