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

get data from classification

Former Member
0 Likes
1,424

Hello,

I maintained classification for a material item (MM02 --> Select a material --> choose Classification Tab --> General) and I wanna pass these data to a smartform. How can I retrieve the info?

1 ACCEPTED SOLUTION
Read only

reachdebopriya
Active Participant
0 Likes
1,280

Try this one.

KLAH,AUSP,CABN,CAWN tables.

Try this Function Module:

'BAPI_OBJCL_GETDETAIL'

All characteristic values (for various objects) are stored in AUSP.

Check this document : http://scn.sap.com/people/srikanth.tulasi/blog/2008/12/09/issues-in-fetching-internal-characteristic...

Thanks,

Debopriya Ghosh

2 REPLIES 2
Read only

reachdebopriya
Active Participant
0 Likes
1,281

Try this one.

KLAH,AUSP,CABN,CAWN tables.

Try this Function Module:

'BAPI_OBJCL_GETDETAIL'

All characteristic values (for various objects) are stored in AUSP.

Check this document : http://scn.sap.com/people/srikanth.tulasi/blog/2008/12/09/issues-in-fetching-internal-characteristic...

Thanks,

Debopriya Ghosh

Read only

basarozgur_kahraman
Contributor
0 Likes
1,280

Hi,

You can use function CLAF_CLASSIFICATION_OF_OBJECTS .

Example Usage:

DATA: _object        LIKE  ausp-objek,

         _it_class      TYPE STANDARD TABLE OF sclass   WITH HEADER LINE,

         _it_objectdata TYPE STANDARD TABLE OF clobjdat WITH HEADER LINE.


       _object = matnr.

      CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'

        EXPORTING

          classtype          = '001'

          object             = _object

        TABLES

          t_class            = _it_class

          t_objectdata       = _it_objectdata

        EXCEPTIONS

          no_classification  = 1

          no_classtypes      = 2

          invalid_class_type = 3

          OTHERS             = 4.

Best Regards

Basar Ozgur