Application Development and Automation 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: 
Read only

Display material configuration options

Former Member
0 Likes
1,255

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

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

7 REPLIES 7
Read only

Former Member
0 Likes
1,135

Hi,

Here you go..

VC_I_GET_CONFIGURATION. This fm perfectly suits your requirement.

regards,

Ram

Read only

Former Member
0 Likes
1,135

Hi Sylvain,

Try Fm CUCB_GET_CONFIGURATION to extract Material configuration.You can check other FMs of function group CUCB.

regards,

Naren

Read only

0 Likes
1,135

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

Read only

Former Member
0 Likes
1,135

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

Read only

0 Likes
1,135

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

Read only

0 Likes
1,135

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.

Read only

0 Likes
1,135

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