‎2012 Dec 21 7:14 AM
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
‎2012 Dec 21 7:20 AM
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
‎2012 Dec 21 7:20 AM
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
‎2012 Dec 21 8:57 AM
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?
‎2012 Dec 21 7:24 AM
‎2012 Dec 21 7:25 AM