Skip to Content
avatar image
Former Member

Cannot create charecteristic values using BAPI_OBJCL_CREATE

Hi guys, my req is to transfer material charecteristc values from one system to other. I am using BAPI_OBJCL_GETDETAIL to get characteristic values and by using BAPI_OBJCL_CREATE i am trying to create. But cannot create values in target system.thanks.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 23, 2015 at 02:17 PM

    Paste your code pls.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Fetch Batch Characteristics, these will be empty for new batches

      * Fetch object characterstics.

            CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'

              EXPORTING

                objectkey        = lv_object

                objecttable      = 'MCH1'

                classnum         = this is class name

                classtype        = this is class type '023' etc values

                keydate          = sy-datum

                unvaluated_chars = 'X'

                language         = sy-langu

              TABLES

                allocvaluesnum   = lt_alloc_num

                allocvalueschar  = lt_alloc_char

                allocvaluescurr  = lt_alloc_curr

                return           = lt_rettab.

      . Modify the above num, char and curr internal tables with your values

      . Create Batch characteristics

            CALL FUNCTION 'BAPI_OBJCL_CREATE' destination 'DEST'

              EXPORTING

                objectkeynew      = lv_object

                objecttable      = 'MCH1'

                classnum         = this is class name

                classtype        = this is class type '023' etc values

                keydate          = sy-datum

                no_default_values = 'X'

              TABLES

                allocvaluesnum    = lt_alloc_num

                allocvalueschar   = lt_alloc_char

                allocvaluescurr   = lt_alloc_curr

                return            = lt_rettab.

      This is my code , I am able to create Batch  in destination but even after success message in BAPI_OBJCL_CREATE there are no characteristic values assigned in MM03 transaction for that Batch and Material.

  • Oct 23, 2015 at 02:23 PM

    Hi, use standard tr. BD91, BD92, BD93 for transport. ALE-Configuration must be done before.

    Add comment
    10|10000 characters needed characters exceeded