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

Classification view for material

Former Member
0 Likes
1,118

Hi all

I am creating materials using BAPI_MATERIAL_SAVEDATA. I need to fill the characteristics values of the material also.

Can anyone please tell How to create the Classification view for material using BAPI_MATERIAL_SAVEDATA.

Thanks

Neelima.

1 ACCEPTED SOLUTION
Read only

Subhankar
Active Contributor
0 Likes
909

Hi,

1. First create the material using BAPI_MATERIAL_SAVEDATA.

2. Create classification using bapi BAPI_OBJCL_CREATE

  • Create the classification

call function 'BAPI_OBJCL_CREATE'

exporting

objectkeynew = v_object

objecttablenew = c_mara

classnumnew = wa_temp-klart

classtypenew = wa_temp-classtyp

tables

allocvalueschar = i_bapi_char_tmp

return = i_bapi_return.

Thanks

Subhankar

2 REPLIES 2
Read only

Subhankar
Active Contributor
0 Likes
910

Hi,

1. First create the material using BAPI_MATERIAL_SAVEDATA.

2. Create classification using bapi BAPI_OBJCL_CREATE

  • Create the classification

call function 'BAPI_OBJCL_CREATE'

exporting

objectkeynew = v_object

objecttablenew = c_mara

classnumnew = wa_temp-klart

classtypenew = wa_temp-classtyp

tables

allocvalueschar = i_bapi_char_tmp

return = i_bapi_return.

Thanks

Subhankar

Read only

Former Member
0 Likes
909

Thanks

The problem got solved.