Skip to Content
author's profile photo Former Member
Former Member

Points will be rewarded soon : database query and FM !!

Hi All ,

Plz explain the meaning of text given below , will be great if u give the code also .

1) Relationship between RSEG & MSEG can be setup useing field PO no.(EBELN) , PO item(EBELP) & Plant (WERKS),To find value of Batch characteristics, From MSEG we can go to table MCHA using fields Material (MATNR), Plant (WERKS) & Batch (CHARG), Using Object ID in MCHA, we can go to table AUSP, and find value for characteristic "Z_VAT_NUMBER" (find Internal characteristic (ATINN) use table CABN) .

select options are given for question 1 are SELECT-OPTIONS : s_matnr for RSEG-MATNR ,

s_werks for rseg-werks OBLIGATORY ,

s_bukrs for RBKP-BUKRS,

s_bldat for RBKP-BLDAT,

s_blart for RBKP-BLART DEFAULT 'RE',

s_ebeln for RSEG-EBELN ,

s_vgart for rbkp-vgart MODIF ID sc1 ,

s_matkl for mara-matkl ,

s_bismt for mara-bismt .

2) Also explain how to use FM CLAF_CLASSIFICATION_OF_OBJECTS .

Thanks .

Points will be rewarded soon.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 28, 2008 at 10:00 AM

    hi

    CLAF_CLASSIFICATION_OF_OBJECTS is used to get material-characteristics. obtain the multiple values of the classification characterstic.

    Here is a sample code.

    DATA : LV_CLASSNUM LIKE KLAH-CLASS,

    LV_CLASS LIKE BAPI1003_KEY-CLASSTYPE VALUE '002' ,

    LV_OBJECTKEY LIKE BAPI1003_KEY-OBJECT ,

    LV_TAB LIKE BAPI1003_KEY-OBJECTTABLE VALUE 'EQUI',

    LT_CLASSSTRUCT TYPE STANDARD TABLE OF SCLASS,

    LT_VAL_CHAR TYPE STANDARD TABLE OF CLOBJDAT,

    LW_VAL_CHAR TYPE CLOBJDAT .

    CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'

    EXPORTING

    CLASS = LV_CLASSNUM

    CLASSTEXT = 'X'

    CLASSTYPE = LV_CLASS

    LANGUAGE = SY-LANGU

    OBJECT = LV_OBJECTKEY

    OBJECTTABLE = LV_TAB

    KEY_DATE = SY-DATUM

    INHERITED_CHAR = 'X'

    TABLES

    T_CLASS = LT_CLASSSTRUCT

    T_OBJECTDATA = LT_VAL_CHAR

    EXCEPTIONS

    NO_CLASSIFICATION = 0

    NO_CLASSTYPES = 0

    INVALID_CLASS_TYPE = 0

    OTHERS = 0.

    IF SY-SUBRC 0.

    ENDIF.

    ENDIF.

    Regards,

    Suganya.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.