2014 Jan 16 7:36 PM
Hello ,
My requirement is that, In SALES ORDER I have to find a material with configuration (filed VBAP-CUOBJ) and get their characteristic , and I need to find if any material has been created with same characteristics values then i need to prevent or stop that new material being created by the same set of characteristics again.
In simplest way i can put the questions like this.
I need to find a function module or method which have to check for each configuration object and see if material variant has been already created with other material . or I can put the question other way around that , I have to check that the if any Material has been created with same characteristics by another Material .
Regards
Mat
.
2014 Jan 16 8:11 PM
Hi Mathan,
you can use this FM.
CLAF_CLASSIFICATION_OF_OBJECTS
or
Refer to the link for more details on material description fetch
Fetch material Classifications and characteristics - Code Gallery - SCN Wiki
Once the material description is fetched compare that with the material of your Interest. Hope this will solve your query.
If this has helped please mark it as answered.
Happy Coding,
Santhosh Yadav
2014 Feb 07 3:38 PM
Thanks Santosh , my issue with fetching the Similar characteristics exists with any other material , it's like CU50 .. and found this , it's working fine.
CALL FUNCTION 'CUSE_TYPE_SEARCH'
EXPORTING
iv_instance = g_cuobj
iv_material = wa_vbak_vbap_data-matnr
iv_date = sy-datum
iv_plant = wa_vbak_vbap_data-werks
iv_complete = ' ' "type of sturc rctms-typsk
iv_internal_cfg = 'X'
it_cfg = lt_cfg
is_profile = wa_cuco_data "cuco Structure data.
iv_class = wa_list-classnum "Class name for Config material.
iv_check_mbom = ' '
TABLES
et_types = ityp
EXCEPTIONS
not_found = 1
internal_error = 2
OTHERS = 3.
Regards
Mathan