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

create a classification view over bapi

Former Member
0 Likes
1,518

Hello,

i start a vb Programm to create a material in sap.

I get all views with material_savedata but the classification view is missing.

Does anybody know if there exist a special bapi to create a classification view

over the .net connector ?

thanks for any help

7 REPLIES 7
Read only

former_member194669
Active Contributor
0 Likes
1,048

Hi,

I think the material classification data get stored in tables AUSP, KSSK tables.

Try with the following BAPI's


1). BAPI_OBJCL_GETCLASSES.
2). BAPI_OBJCL_GETDETAIL  " For reading classification details of the Object
3). BAPI_OBJCL_GETOBJECTS 

a®

Read only

0 Likes
1,048

Hi,

thank you for your answer. I am trying to use BAPI_OBJCL_GETDETAIL.

I have filled in some information in sap in the classview.

I do not really new how to use the parametsr of this bapi.

The object seems to be the materialnumber with 18 digits like

000000000012345678 .

Can anybody give my a little

example how to use this bapi .

thanks

Read only

0 Likes
1,048

Hi,

Please check this link. This link i found in SAPFANS abap forum long back. I think this will

helpful to you.

Instead of cut & paste the code, I am giving you the link

Sapfans Link

a®

Read only

Former Member
0 Likes
1,044

There is no BAPI but you can use a RFC RFC_MG_CLASSIFICATION_MAINTAIN to assign objects to classes and maintain their characteristic values.

Read only

0 Likes
1,044

Hello Srinivas,

thank you for your answer. I have taken a look at the RFC.

It seems to me that this programm can only tranfer a classification entry from one

sap to an other with a batch.

I need to start a VB programm with the proxy connector.

Or is is possible to use this RFC also from the VB Programm (how

should i send the datas to the RFC ?).

Thanks a lot

Read only

Former Member
0 Likes
1,048

hi

good

please check this

Able to solve this issue. I have written a wrapper around 'BAPI_MATERIAL_SAVEDATA', BAPI_TRANSACTION_COMMIT' & 'CLAE_CLASSIFY_OBJECT' . 'BAPI_MATERIAL_SAVEDATA to create the Basic Data View and few other required views. But actual material is created after my call to 'BAPI_TRANSACTION_COMMIT' . Once the material is created,

I am calling the function 'CLAE_CLASSIFY_OBJECT' to create the Classification view.

thanks

mrutyun^

Read only

0 Likes
1,048

Hello , thanks a lot for the answers. I am using a vb programm with the proxy connector.

In this connector i have defined:

Dim oClassnum As String

Dim oClasstype As String

Dim oKeydatum As String

Dim oLanguage As String

Dim oObjectkey As String

Dim oObjecttable As String

Dim oUnvaluated_char As String

Dim oStandardklasse As String

Dim oStatus As String

Dim oAllocvaluechar As New BAPI1003_ALLOC_VALUES_CHARTable

Dim oAllocvaluecurr As New BAPI1003_ALLOC_VALUES_CURRTable

Dim oAllocvaluesnum As New BAPI1003_ALLOC_VALUES_NUMTable

Dim oReturn0 As New BAPIRET2Table

Try

oProxy.Bapi_Objcl_Getdetail(oClassnum, oClasstype, oKeydatum, _

oLanguage, _

oObjectkey, oObjecttable, oUnvaluated_char, oStandardklasse, _

oStatus, oAllocvaluechar, _

oAllocvaluecurr, oAllocvaluesnum, oReturn0)

MsgBox(oReturn0.Item(0).Message.ToString)

Catch ex As Exception

MsgBox(ex.ToString)

End Try

When i start the programm i get the error:

The function OBJECT_CHECK_ does not exist.

WHY ??

I have also tried to use

Bapi_Charact_Getdetail

to test, if something works but i really do'nt know what the meaning of

the parameters are . Perhaps somebody can explain them to me.

I have tried with charactername and used a * but the result is always 0.

Has somebody a documentation of the fields and tables that are

needed or filled or a little example of the us of the classification.

thanks a lot