Modificacion de la clase de valoracion

Colapsar
X
 
  • Tiempo
  • Mostrar
Limpiar Todo
nuevos mensajes
  • javibest
    Senior Member
    • ene
    • 185

    #1

    Modificacion de la clase de valoracion

    Hola. Para modificar la clase de valoracion de un material, alguien conoce alguna funcion, bapi , lo que sea ?
    Es para no tener que hacer un Batch input.

    Gracias.
  • bisonye
    Senior Member
    • ago
    • 635

    #2
    La BAPI_MATERIAL_SAVEDATA no te sirve?
    http://sapymas.blogspot.com/

    Comentario

    • javibest
      Senior Member
      • ene
      • 185

      #3
      Pues no encuentro la forma de utilizar esa funcion para esto.

      y con la BAPI_OBJCL_CHANGE, veo como modificar la clase , pero no la asignacion entre el material y la clase.

      los datos se guardan en las tablas MARA -> KSSK -> KLAH , pero no hay manera....

      Comentario

      • bisonye
        Senior Member
        • ago
        • 635

        #4
        Y en el maestro de materiales ¿Donde ves eso? No hablo de tablas si no de la pantalla en la MM03.

        A ver si veo por donde tocarlo.
        http://sapymas.blogspot.com/

        Comentario

        • javibest
          Senior Member
          • ene
          • 185

          #5
          En la pestaña de clasificacion

          Comentario

          • bisonye
            Senior Member
            • ago
            • 635

            #6
            Prueba con esto a ver si te vale:

            Código:
            * Obtengo la clase de material
            CALL FUNCTION 'CLAP_DDB_GET_CLASSIFICATION'
                    EXPORTING
                      object                       = material
                      obtab                        = 'MARA'
            *         STANDARD_TYPE_ONLY           = ' '
            *         OBJECT_EQ_CLASS              = ' '
            *         SPRAS                        = SY-LANGU
            *         ONLY_VARKLART                = ' '
            *         POBTAB                       = ' '
            *         DATE_OF_CHANGE               =
            *         CHANGE_SERVICE_NUMBER        =
            *         CLASSTYPE                    =
            *         READ_ONLY                    = ' '
            *         CALLED_FROM_API              = ' '
            *       IMPORTING
            *         ERROR_STATU                  =
                   TABLES
                     allocations                  = it_allocations
                   EXCEPTIONS
                     NO_ALLOCATION                = 1
            *         SET_AENNR                    = 2
            *         CHANGE_NR_NOT_EXIST          = 3
            *         DATE_IN_PAST                 = 4
            *         ERROR_CLASS                  = 5
            *         ERROR_DATE_RESTRICTION       = 6
            *         ERROR_STATUS                 = 7
            *         OTHERS                       = 8
                            .
                  if sy-subrc = 0.
                  READ TABLE it_allocations INDEX 1 INTO wa_allocations.
                  IF sy-subrc = 0.
            *       Obtenemos las características
                    CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
                      EXPORTING
                        objectkey              = material
                        objecttable            = 'MARA'
                        classnum               = wa_allocations-class
                        classtype              = wa_allocations-klart
            *           KEYDATE                = SY-DATUM
            *           UNVALUATED_CHARS       = ' '
            *           LANGUAGE               = SY-LANGU
            *         IMPORTING
            *           STATUS                 =
            *           STANDARDCLASS          =
                      TABLES
                        allocvaluesnum         = it_numeros
                        allocvalueschar        = it_valores
                        allocvaluescurr        = it_monedas
                        return                 = it_return
                              .
            Saludos
            http://sapymas.blogspot.com/

            Comentario

            Trabajando...