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

Classification FM

Former Member
0 Likes
557

Can someone give me the list of FM's which can be used to get the Classification information based on the Configuration Number?

Please help.

1 ACCEPTED SOLUTION
2 REPLIES 2
Read only

Former Member
0 Likes
481

I think with this function you will able to find out your data.

CLAF_CLASSIFICATION_OF_OBJECTS

Sample for a vendor

DATA: pw_object TYPE ausp-objek,

pw_class TYPE sclass,

pt_class TYPE TABLE OF sclass,

pw_objectdata TYPE clobjdat,

pt_objectdata TYPE TABLE OF clobjdat.

CLEAR: pw_lfa1.

READ TABLE pt_lfa1 INTO pw_lfa1 WITH TABLE KEY lifnr = pw_lifnr.

IF sy-subrc NE 0.

  • Vendor Data

SELECT SINGLE lifnr name1 adrnr

FROM lfa1 INTO pw_lfa1

WHERE lifnr = pw_lifnr.

IF sy-subrc NE 0.

MOVE: pw_lifnr TO pw_lfa1-lifnr.

ELSE.

  • Classification

MOVE: pw_lfa1-lifnr TO pw_object.

CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'

EXPORTING

class = k_class

classtype = k_classtype

object = pw_object

initial_charact = space

TABLES

t_class = pt_class

t_objectdata = pt_objectdata

EXCEPTIONS

no_classification = 1

no_classtypes = 2

invalid_class_type = 3

OTHERS = 4.

<REMOVED BY MODERATOR>

Regards,

Christophe

Edited by: Alvaro Tejada Galindo on Apr 30, 2008 12:06 PM