‎2010 Mar 19 6:15 AM
Dear all,
Here i have a small issue. We have a no of configure materials. When i am trying to create a quotation or sales order that will show the default characteristics. In the same way is there any bapi or fm will give the characteristics.
In cu50 tcode i can see the characteristics of my material. I want to get the same way in any fm . Please share your ideas with me . I can say almost like cu50 fm.
Regards,
Madhu.
‎2010 Mar 19 6:55 AM
Please find the suitable FM as below:
VIEWFRAME_V_T476
VIEWFRAME_V_TVARC
VIEWPROC_V_T476
VIEWPROC_V_TVARC
Regards,
Venkat.
‎2010 Mar 19 6:59 AM
Dear Venkat,
Thank you for your reply. Here in these fm there is no parameter to pass material number. These are not useful for my requirement.
Regards,
Madhu.
‎2010 Mar 19 7:12 AM
Madhu,
Try this
CALL FUNCTION 'CTL8_DISPLAY_MATERIAL'
IMPORTING
MATERIAL = MATERIAL
WERK = WERK
EXCEPTIONS
NO_OBJECTS = 1
OTHERS = 2
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
‎2010 Mar 19 7:15 AM
Dear Venkat,
Here it dont have any import parameters. I think we can use it directly.
Regards,
Madhu.
‎2010 Mar 19 7:20 AM
Madhu,
Please find below cu50 related FM:
CTRA_CHANGE_CHANGECONFIG
CTRA_CHECK_DATE_OF_CHANGE.
CTRA_DISPLAY_CHANGECONFIG.
Regards,
Venkat.
‎2010 Mar 19 7:24 AM
Dear venkat,
I think you did not understood my requirement. The fm posted by you is not at all related to this query.
Regards,
Madhu.
‎2010 Mar 19 7:29 AM
hi madhu ,
Did you try any of these ?
VC_I_DISPLAY_CONFIGURATION
VC_I_GET_CONFIGURATION.
CS_BOM_EXPLOSION
CS_BOM_EXPL_MAT_V2
Hope these help.
Regards
Manthan.
‎2010 Mar 19 7:33 AM
Dear Manthan,
Thank you for your reply. i tried all these. it is giving all the characteristics. At the same time it required an object number this we will get after create an order only . I have to get these details before creation to display default characteristics.
Regards,
Madhu.
‎2010 Mar 19 11:26 AM
Hi madhu,
The logic must be like to get the classes of materials and then the charactersitics for the class.
in se37 search in pattern CUCP*, those fm's will surely help you.
‎2010 Mar 19 11:56 AM
Dear Keshav,
Thanks for your reply. I tried all of them with that pattern but i did not get it. Can you give me some more idea on this.
Regards,
Madhu
‎2010 Mar 19 7:18 AM
Hi
Use the below saple code for the same.
1. You need to get the class name.
2. Use the FM GET_CHAR_LIST to get the characteristics.
data: l_cuobj type cuobj,
l_clint type clint,
l_class type klasse_d,
l_kmat type cuobn.
condense l_kmat. " Material Number
select single cuobj
from inob
into l_cuobj
where objek = l_kmat and
klart = c_class.
if sy-subrc = 0.
select single clint
from kssk
into l_clint
where objek = l_cuobj and
klart = c_class.
if sy-subrc = 0.
select single class
from klah
into l_class
where clint = l_clint and
klart = c_class.
endif.
endif.
if l_class is not initial.
call function 'GET_CHAR_LIST'
exporting
class = l_class
class_type = c_class
with_values = c_check
importing
return = wa_bapireturn
tables
char_list = i_char_list
val_list = i_val_list.
endif.
‎2010 Mar 19 7:30 AM
Dear Subha,
Thank you subha for your reply . This is giving all the characteristics of the material. My requirement is like cu5o i have to get only few of them. Suppose our material have 30 characteristics . But we will give few of the only for customer to select in va21 or vao1. But some standard fm is giving all the characteristics. I hope i am clear on this.
Regards,
Madhu.
‎2010 Mar 19 6:43 PM
Hello-
The code behind CU50 is not just 1 BAPI call, it is many.
I have done some work in this area, but I am not "all-knowing", either.
First, create an "instance" using fm BAPI_CFG_CREATE.
Then use fm BAPI_CFGINST_CHARCS_VALS_SET to set characteristic values and then you can call BAPI_CFGINST_CHARCS_VALS_READ to read "available" choices.
You can also use f.m. BAPI_CFGINST_INCOMPLETE_CHECK to check for incomplete characteristics.
Obviously, there is more code around reading the classes and characteristics to get the valid values, etc, but this should give you a place to look.
Hopefully this helps you.
Regards,
Mark
‎2010 Mar 20 3:04 AM
Dear Mark,
Thanks for your reply. I tried a lot with these fm and bapi and not reach my requirement. Please give me a good idea on this if you have an idea on this .
Regards,
Madhu.
‎2011 Jul 22 12:27 AM
HI,
How did u provide the solution for this requirement. I am looking for the similar solution.
Regards,
Manoj Kuruvella
‎2011 Sep 01 2:41 PM
Hi All,
You can use the FM 'BAPI_UI_GETDETAIL' to read the Characteristic Grouping detail in CU50.
You can use the FM 'BAPI_UI_SAVEM' or IDOC 'VCUI_SAVEM02' to create Characteristic Grouping tabs in CU50.
Hope this solves your query.
Regards,
Bhawit Kumar
‎2021 Oct 29 3:26 AM