13 Replies Latest reply: Sep 15, 2009 3:07 PM by xplosion79 xplosion79 RSS

Class classification characteristics

kaladhar reddy
Currently Being Moderated

Hi Experts,

 

I want to display Class classification characteristics using material number, batch, class and class type.

 

I am using BAPI  'BAPI_CLASS_GET_CHARACTERISTICS' but I am unable to fetch characteristics values.

 

Please help me.

  • Re: Class classification characteristics
    Sreeram Kumar Madisetty
    Currently Being Moderated

    Hi

     

    Try the FM: CLA1_CREATE_CLFMAS.

     

    Use the BAPI : BAPI_OBJCL_GETDETAIL

     

    Regards,

    Sreeram

     

    Edited by: Sreeram Kumar Madisetty on Sep 15, 2009 12:43 PM

  • Re: Class classification characteristics
    KOLLURI GOUTAM
    Currently Being Moderated

    use the bapi

     

    "BAPI_OBJCL_CREATE"  i hope it will work

  • Re: Class classification characteristics
    Dzed Maroz
    Currently Being Moderated

    Hello

     

      CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
           EXPORTING
                objectkey       = object  " material number + batch number
                objecttable     = 'MCH1'
                classnum        = 'TARA'
                classtype       = '023'
           TABLES
                allocvaluesnum  = numtab
                allocvalueschar = chatab
                allocvaluescurr = curtab
                return          = rettab.
    

     

  • Re: Class classification characteristics
    A G
    Currently Being Moderated

    Hi ,

     

    for Displaying class go to CL03 , Enter Class & Class type to see characteristics.

     

    Check this code ....

     

    {  CALL FUNCTION 'BAPI_CLASS_GET_CHARACTERISTICS'

              EXPORTING

                CLASSNUM              = IT_MATMAS-CLASS

                CLASSTYPE             = IT_MATMAS-KLART

               KEY_DATE              = SY-DATUM

               WITH_VALUES           = 'X'

              TABLES

                CHARACTERISTICS       =  IT_CHARACTER

                CHAR_VALUES           =  IT_CHAR_VALUE.

     

    LOOP AT   IT_CHARACTER.

     

            IT_CHAR-CHARACT = IT_CHARACTER-NAME_CHAR.

            IT_CHAR-CHARACT_DESCR  = 'Expiration date, shelf life'  .

     

            IT_NUM-CHARACT = IT_CHARACTER-NAME_CHAR.

            IT_NUM-CHARACT_DESCR  = 'Expiration date, shelf life'   .

     

            IT_CURR-CHARACT = IT_CHARACTER-NAME_CHAR.

            IT_CURR-CHARACT_DESCR  = 'Expiration date, shelf life' .

            APPEND IT_CHAR TO IT_CHAR.

            CLEAR IT_CHAR.

            APPEND IT_NUM TO IT_NUM.

            CLEAR IT_NUM.

            APPEND IT_CURR TO IT_CURR .

            CLEAR IT_CURR.

    endloop.

    P_MATNR(18) = IT_MATMAS-MATNR.

       CALL FUNCTION 'BAPI_OBJCL_CREATE'

              EXPORTING

              OBJECTKEYNEW            = P_MATNR

              OBJECTTABLENEW          = 'MARA'

              CLASSNUMNEW             =  IT_MATMAS-CLASS

              CLASSTYPENEW            =  IT_MATMAS-KLART

             STATUS                  = '1'

             KEYDATE                 = SY-DATUM

             TABLES

             ALLOCVALUESNUM          = IT_NUM

             ALLOCVALUESCHAR         = IT_CHAR

             ALLOCVALUESCURR         = IT_CURR

              RETURN                  = IT_RETURN2. }

     

    Regards

    ABG.

Actions