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

Function to remove a material in classification system

Former Member
0 Likes
1,055

Hi Folks!

I'm seeking a function that removes a material from a class belonging to a vendor from the classification system.

Thanks in advance for your help.

Regards,

Gilberto Li

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
840

Did you look at BAPIOBJCL functions? I am not sure if there is a BAPI_OBJCL_DELETE but if that does not exist BaPI_OBJCL_CHANGE should be helpful.

REgards,

Ravi

Note :Please mark all the helpful answers

4 REPLIES 4
Read only

Former Member
0 Likes
841

Did you look at BAPIOBJCL functions? I am not sure if there is a BAPI_OBJCL_DELETE but if that does not exist BaPI_OBJCL_CHANGE should be helpful.

REgards,

Ravi

Note :Please mark all the helpful answers

Read only

Former Member
0 Likes
840

Use the FM BAPI_OBJCL_DELETE to delete the classification.

Regards,

Prakash.

Read only

Former Member
0 Likes
840

Hi Folks!

Thanks for your replies, I really appreciate your help.

I was looking for the BAPI: BAPI_OBJCL_DELETE

However im having some trouble to make it work. I read the documentation, and I think this should work.

The problem I'm having is filling the BAPI:

I don't know if you have worked with this BAPI but I don't get what to pass to the parameters:

I'm doing as following, for the field:

OBJECTKEY: I'm passing the material number.

OBJECTTABLE: I'm passing 'LFA1'.

CLASNUM: I'm passing the name of the class, for example 'MATSERVPROVEEDOR'.

CLASSTYPE: I'm passing '010' that means vendor class.

What I don't understand neither is where to pass the vendor number so it only removes the material from the vendor. Another thing also is they KeyDate, don't really know what date I should pass?

After testing with no success on objectkey passing the material number I passed to the ObjectKey the vendor number, but the result was the deletion of the entire class and its values, and that wasn't what I expected, I only want to remove some values of the class, not the entire class.

Any help would be really appreciated.

Thanks Again.

Regards,

Gilberto Li.

Message was edited by: Gilberto Li

Read only

0 Likes
840

Hi folks!

I have found a FM that does the job.

CLVF_VB_INSERT_CLASSIFICATION

Thanks anyways!

Regards,

Gilberto Li