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

Creating Classification view for material through Standard Function

Former Member
0 Likes
480

hi,

I have created the material code through BAPI_MATERIAL_SAVEDATA. For quality inspection i have used BAPI_MATINSPCTRL_SAVEREPLICA. i have to create classification view for that material code. Can anyone suggest me which standard function helps me to create the classification view.

Thanks in advance.

Senjey

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
397

Use BAPI_OBJCL_CREATE to create the Classification view, you will need a class and class type for this.

Search in Forums for its usage and you will find all needed stuff.

BR,

Diwakar

2 REPLIES 2
Read only

Former Member
0 Likes
398

Use BAPI_OBJCL_CREATE to create the Classification view, you will need a class and class type for this.

Search in Forums for its usage and you will find all needed stuff.

BR,

Diwakar

Read only

0 Likes
397

hi,

i have tried that function module. I have mentioned the code below.

i_object = '000000151860630000'.

i_alloc_num-CHARACT = 'THICKNESS'.

i_alloc_num-VALUE_FROM = '5.70'.

append i_alloc_num.

i_alloc_char-charact = 'SHAPES'.

i_alloc_char-VALUE_CHAR = 'PLATE'.

append i_alloc_char.

clear i_alloc_char.

i_alloc_char-charact = 'CATEGORY'.

i_alloc_char-VALUE_CHAR = 'CS'.

append i_alloc_char.

clear i_alloc_char.

CALL FUNCTION 'BAPI_OBJCL_CREATE'

EXPORTING

OBJECTKEYNEW = i_object

OBJECTTABLENEW = 'MARA'

CLASSNUMNEW = 'RAWMATERIAL'

CLASSTYPENEW = '001'

  • STATUS = '1'

  • STANDARDCLASS =

  • CHANGENUMBER =

  • KEYDATE = SY-DATUM

  • NO_DEFAULT_VALUES = ' '

  • IMPORTING

  • CLASSIF_STATUS =

TABLES

ALLOCVALUESNUM = i_alloc_num

ALLOCVALUESCHAR = i_alloc_char

RETURN = i_ret.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

WAIT = 'X'.

But i am getting the error 'Assignment exists and is valid '.

Please help.

Regards,

Sengathir.J