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

Read Classification data from Material master

former_member189779
Active Contributor
0 Likes
7,532

Hello,

Is there any FM or any way to read classification data in material master from buffer. I know there is a FM CLAF_CLASSIFICATION_OF_OBJECTS to read, but this reads from database tables. I want to know the FM, which would read this from buffer when I have changed the classification values but not saved them.

Thanks in Advance.

Regards

Vinit

1 ACCEPTED SOLUTION
Read only

reachdebopriya
Active Participant
0 Likes
2,842

Hi Vinit,

I am not sure if there is any FM or any way to read classification data in material master from buffer. But you can try the below link if it is helpful.

http://scn.sap.com/message/13719979#13719979

OR

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...

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.

Thanks,

Debopriya Ghosh

4 REPLIES 4
Read only

reachdebopriya
Active Participant
0 Likes
2,843

Hi Vinit,

I am not sure if there is any FM or any way to read classification data in material master from buffer. But you can try the below link if it is helpful.

http://scn.sap.com/message/13719979#13719979

OR

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...

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.

Thanks,

Debopriya Ghosh

Read only

0 Likes
2,842

No My problem is different.

I have custom search help attached to Characteristic Values in Material Master. When user press F4 user ill see the values in Pop UP to select from. I am checking if there are any values already present for that characteristic from database tables. If there any values already present then in POP UP they are marked AS already selected as check box ticked.

Now if I select one more value from search help (which is not already present in database) and press F4 again the my pre selected values goes wrong as this new value is not yet saved in database.

So I need some FM or any clue how I can get this values from screen?

Read only

Former Member
0 Likes
2,842

Duplicate posting........

Read only

Former Member
0 Likes
2,842

Duplicate posting........