2007 Dec 03 3:52 PM
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
2007 Dec 03 4:13 PM
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®
2007 Dec 04 4:11 PM
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
2007 Dec 04 4:18 PM
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
a®
2007 Dec 04 4:32 PM
There is no BAPI but you can use a RFC RFC_MG_CLASSIFICATION_MAINTAIN to assign objects to classes and maintain their characteristic values.
2007 Dec 05 7:11 PM
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
2007 Dec 04 4:43 PM
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^
2007 Dec 05 6:51 PM
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