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

MM classification view

Former Member
0 Likes
1,813

Hi friends,

i have a requirement to upload classification view for MM,

for other data i am using direct input method,

for classification, i tried to use direct input method too, but its giving me strange errors, like logical path not defined, when i try to define that one, now it says convert data file name is more than 45 char long, so dropped idea of using this.

now tried to write a BDC by recording, but when i see the MM01 classification in SHDB, the screen is enteirly different, after giving the class, entering value for this class is not user friendly and no input help.

please let me know where i can use any other alternate to this.

thanks a lot.

14 REPLIES 14
Read only

Former Member
0 Likes
1,578

Classification data is handled differently. Please check out standard SAP program RCCLBI03 (it's well documented).

Rob

Read only

Former Member
0 Likes
1,578

when i checked the classification view, it is showing properly...even in MM01 I am able to view properly which can be coded using BDC. Try once more using SHDB, there might be some inputs missing

Read only

Former Member
0 Likes
1,578

Alternatively, you can call the BAPI_OBJCL_CREATE / BAPI_OBJCL_CHANGE to assign char / values for materials. The OBJNR will be the material number.

REgards,

Ravi

Note - Please mark all the helpful answers

Read only

0 Likes
1,578

thanks Ravi,

will try the BAPI and let you know.

Read only

0 Likes
1,578

Ravi,

could you send me more details, with sample code, i don't know how to use this??

its giving error saying object '100027' not created, eventhough material is already existed.

thanks a lot.

Read only

0 Likes
1,578

You will have pad the material number with 0's so that it occupies the 18 characters of the OBJNR field required for the BAPI.

So, try giving 000000000000100027 as the material.

Regards,

Ravi

Read only

0 Likes
1,578

Hi Ravi,

If you don't mind can give me the example values for material master

for following in BAPI

OBJECTKEYNEW

OBJECTTABLENEW

CLASSNUMNEW

CLASSTYPENEW

STATUS

STANDARDCLASS

CHANGENUMBER

KEYDATE

NO_DEFAULT_VALUES

Tables

ALLOCVALUESNUM

ALLOCVALUESCHAR

ALLOCVALUESCURR

thanks a lot for your help

Read only

0 Likes
1,578

Thanks Ravi, got it.

Read only

0 Likes
1,578

Hi Kiran,

I have a similar requirement, please can you explain me how you had used those BAPI's suggested by Ravi. Thanks in advance.

Regards,

Sujith.

Read only

0 Likes
1,578

HI

CALL FUNCTION 'BAPI_OBJCL_CREATE'

EXPORTING

objectkeynew = gs_classification-objectkeynew "material number

objecttablenew = gs_classification-objecttablenew "MARA

classnumnew = gs_classification-classnumnew "Class number like SERIAL_NUMBER_FORM

classtypenew = gs_classification-classtypenew " class type like 001

  • STATUS = '1'

  • STANDARDCLASS =

  • CHANGENUMBER =

  • KEYDATE = SY-DATUM

  • NO_DEFAULT_VALUES = ' '

  • IMPORTING

  • CLASSIF_STATUS =

TABLES

  • ALLOCVALUESNUM =

allocvalueschar = allocvalueschar " table with actual character and value , set instance allocvalueschar-instance = '001'.

  • ALLOCVALUESCURR =

return = return.

let me know if you need more details.

thanks

Read only

0 Likes
1,578

Are you able to update material classification. CAn you please write more details about the program.

Thanks,

AP

Read only

0 Likes
1,578

Hi I am Using BAPI for material Classifications. see below code.

HI

CALL FUNCTION 'BAPI_OBJCL_CREATE'

EXPORTING

objectkeynew = gs_classification-objectkeynew "material number

objecttablenew = gs_classification-objecttablenew "MARA

classnumnew = gs_classification-classnumnew "Class number like SERIAL_NUMBER_FORM

classtypenew = gs_classification-classtypenew " class type like 001

  • STATUS = '1'

  • STANDARDCLASS =

  • CHANGENUMBER =

  • KEYDATE = SY-DATUM

  • NO_DEFAULT_VALUES = ' '

  • IMPORTING

  • CLASSIF_STATUS =

TABLES

  • ALLOCVALUESNUM =

allocvalueschar = allocvalueschar " table with actual character and value , set instance allocvalueschar-instance = '001'.

  • ALLOCVALUESCURR =

return = return.

let me know if you need more details.

thanks

Read only

0 Likes
1,578

Hi Tom,

I am working on MM Classification view... using LSMW but here Class isnot created, its not taking any values when i am recording... plz can u send me entire code for Classification.....with BAPI FM....

so i can try it if it is success... r not....

thanks,

murali

Read only

Former Member
0 Likes
1,578

hi kiran & ravi.

thanks lot. actually i had probelm uploading material clasification using BDC and LSMW and now i tried using BAPI_OBJCL_CREATE as per ur guide lines and with bapi documentation. i have acomplised in uploading data. its working perfectly.

regards,

reji,

09860770378.