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 activated

Former Member
0 Kudos

Hi Experts,

I am uploading Material Master data through BAPI 'BAPI_MATERIAL_SAVEDATA' everything goes well but now client requirment is :-

Activated classification view for this i am using 'BAPI_OBJCL_CREATE' and all classification data updated sucessfully but client needs classification tab in MM03 always be acitvated if there is no values in the file for classification data.

Is it possible if we are not passing any value for classification data and activate that tab in MM03.

Please Advice me what can i do for this requirement .

Regards,

Nee.

1 ACCEPTED SOLUTION

Pawan_Kesari
Active Contributor
0 Kudos

call bapi BAPI_OBJCL_CREATE with empty TABLES. This will create assignment without any characterristics values

ALLOCVALUESNUM STRUCTURE  BAPI1003_ALLOC_VALUES_NUM OPTIONAL

ALLOCVALUESCHAR STRUCTURE  BAPI1003_ALLOC_VALUES_CHAR OPTIONAL

ALLOCVALUESCURR STRUCTURE  BAPI1003_ALLOC_VALUES_CURR OPTIONAL

Regards,

Pawan.

8 REPLIES 8

Former Member
0 Kudos

Hi Nee

How are you populating the work-area of structure BAPI1003_KEY?

You can populate the mandatory parameters of the BAPI in your code itself.

Regards,

Xineohpi

0 Kudos

Hi,

Yes,i am populateing the mandatory parameters of the BAPI :-

            OBJECTKEYNEW            = BAPI1003_KEY-OBJECT(Material Number)

          OBJECTTABLENEW          = 'MARA'

          CLASSNUMNEW               = BAPI1003_KEY-CLASSNUM(class:- MATCLASS)

          CLASSTYPENEW              = BAPI1003_KEY-CLASSTYPE(001)

it will creat assigment with class type and class,but my requirment is i do not want any data in classification view only activate it when user see item in MM03 the classification tab should be there.

Regards,

Nee

Pawan_Kesari
Active Contributor
0 Kudos

call bapi BAPI_OBJCL_CREATE with empty TABLES. This will create assignment without any characterristics values

ALLOCVALUESNUM STRUCTURE  BAPI1003_ALLOC_VALUES_NUM OPTIONAL

ALLOCVALUESCHAR STRUCTURE  BAPI1003_ALLOC_VALUES_CHAR OPTIONAL

ALLOCVALUESCURR STRUCTURE  BAPI1003_ALLOC_VALUES_CURR OPTIONAL

Regards,

Pawan.

0 Kudos

Hi Pawan,

Yes, i know if i'll pass tables with empty values then it will not create any characterristics values but i have to pass mandotory parameter like:-

           OBJECTKEYNEW            = BAPI1003_KEY-OBJECT
          OBJECTTABLENEW          = 'MARA'
          CLASSNUMNEW             = BAPI1003_KEY-CLASSNUM
          CLASSTYPENEW            = BAPI1003_KEY-CLASSTYPE

and i do not want to pass anything in the BAPI,just need to activated classiffication tab without any data.

i hope you understood .

Regards,

Nee.

0 Kudos

You could check BAPI UPDATE_MATERIAL_CLASSIFICATION.

0 Kudos

Hi,

Thank you so much for your help my problem has been solved through this BAPI.

Regards,

Nee.

Former Member
0 Kudos

Hello,

Could please tell how to use the bapi 'BAPI_OBJCL_CREATE'

Thanks you in advance

Former Member
0 Kudos

Hello,

Do you know how can I get the classnum of the material?, I dont know what to put in this parameter

Thanks