Application Development 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: 

Classification view for material

Former Member
0 Kudos

How to create the Classification view for material? Actually i am using BAPI_MATERIAL_SAVEDATA.

Thanks.

regards.

Marisol

3 REPLIES 3

Former Member
0 Kudos

Hi ,

You cannot create Classification View using BAPI

BAPI_MATERIAL_SAVEDATA..

For creating Classification View: Use Function Module

CLMM_MAINTAIN_CLASSIFICATIONS and pass

class_type = '001'

object_table = 'MARA'

key_date = sy-datum

  • CHANGE_NUMBER =

new_log = 'X'

test_run = ' '

Fill tables :

OBJECTS = it_clsel_objects

class_allocs_set = it_allocation_classes

  • CLASS_ALLOCS_DEL =

  • VALUATION_OLD =

valuation_new = it_comw

with corresponding values and it will work..

Hope this helps

0 Kudos

Hi Rohit.

I need to maintain the new values for the characteristics,and equipments as well for the class type 002 and Table EQUI.

Can you please let me know the fields responsible to maintain characteristic,values and equipments in the function module

CLMM_MAINTAIN_CLASSIFICATIONS. If possible paste the code if u got something.

Regards,

Surya.

Former Member
0 Kudos

hi check this...

CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'

EXPORTING

headdata = T_HEAD

PLANTDATA = T_MARC

PLANTDATAX = T_MARCX

STORAGELOCATIONDATA = T_MARD

STORAGELOCATIONDATAX = T_MARDX

SALESDATA = T_MVKE

SALESDATAX = T_MVKEX

IMPORTING

RETURN = T_RETURN

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

WAIT = 'X'

IMPORTING

RETURN = T_RETURN

regards,

venkat .