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

Function Module for CU50

madhu_vadlamani
Active Contributor
0 Likes
4,924

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.

17 REPLIES 17
Read only

Former Member
0 Likes
3,283

Please find the suitable FM as below:

VIEWFRAME_V_T476

VIEWFRAME_V_TVARC

VIEWPROC_V_T476

VIEWPROC_V_TVARC

Regards,

Venkat.

Read only

0 Likes
3,283

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.

Read only

0 Likes
3,283

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.

Read only

0 Likes
3,283

Dear Venkat,

Here it dont have any import parameters. I think we can use it directly.

Regards,

Madhu.

Read only

0 Likes
3,283

Madhu,

Please find below cu50 related FM:

CTRA_CHANGE_CHANGECONFIG

CTRA_CHECK_DATE_OF_CHANGE.

CTRA_DISPLAY_CHANGECONFIG.

Regards,

Venkat.

Read only

0 Likes
3,283

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.

Read only

3,283

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.

Read only

0 Likes
3,283

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.

Read only

0 Likes
3,283

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.

Read only

0 Likes
3,283

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

Read only

Subhankar
Active Contributor
0 Likes
3,283

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.

Read only

0 Likes
3,283

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.

Read only

Former Member
0 Likes
3,283

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

Read only

0 Likes
3,283

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.

Read only

0 Likes
3,283

HI,

How did u provide the solution for this requirement. I am looking for the similar solution.

Regards,

Manoj Kuruvella

Read only

0 Likes
3,283

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

Read only

former_member50350
Discoverer
0 Likes
3,283

CS_BOM_EXPL_MAT_V2 can work, I tried it and done.