BAPI_SALESORDER_CHANGE with characteristic values

Hi everyone,
I am dealing with BAPI_SALESORDER_CHANGE. I have tried to update an item by replacing a certain material for a configurable one, and everything worked fine.
However, I cannot get the characteristic values are stored in the sales order line.
I have filled in values in ORDER_CFGS_VALUE & ORDER_CFGS_INST tables this way:
I guess I am dpig something wrong but I cannot fin the reason.
3GAA100 is the name of my configurable material.
Could someone please explain me the difference between the fields WA_VALUE-CONFIG_ID and WA_VALUE-INST_ID?
Am I filling some field with a no suitable value?
Characteristic values
WA_VALUE-CONFIG_ID = '3GAA100'.
WA_VALUE-INST_ID = '3GAA100'.
WA_VALUE-CHARC = 'M_001'.
WA_VALUE-VALUE = '1'.
APPEND WA_VALUE TO IT_VALUE.
WA_INST-CONFIG_ID = 'LEFT'.
WA_INST-INST_ID = '3GAA100'.
WA_INST-OBJ_TYPE = 'MARA'.
WA_INST-CLASS_TYPE = '300'.
WA_INST-OBJ_KEY = 'LEFTEYE'.
WA_INST-QUANTITY = 1.
APPEND WA_INST TO IT_INST.
I would be very greateful if someone could help me.
Thanks a lot in advance and best regards.
Ben.

Hi everyone,
I am dealing with BAPI_SALESORDER_CHANGE. I have tried to update an item by replacing a certain material for a configurable one, and everything worked fine.
However, I cannot get the characteristic values are stored in the sales order line.
I have filled in values in ORDER_CFGS_VALUE & ORDER_CFGS_INST tables this way:
I guess I am dpig something wrong but I cannot fin the reason.
3GAA100 is the name of my configurable material.
Could someone please explain me the difference between the fields WA_VALUE-CONFIG_ID and WA_VALUE-INST_ID?
Am I filling some field with a no suitable value?
Characteristic values
WA_VALUE-CONFIG_ID = '3GAA100'.
WA_VALUE-INST_ID = '3GAA100'.
WA_VALUE-CHARC = 'M_001'.
WA_VALUE-VALUE = '1'.
APPEND WA_VALUE TO IT_VALUE.
WA_INST-CONFIG_ID = 'LEFT'.
WA_INST-INST_ID = '3GAA100'.
WA_INST-OBJ_TYPE = 'MARA'.
WA_INST-CLASS_TYPE = '300'.
WA_INST-OBJ_KEY = 'LEFTEYE'.
WA_INST-QUANTITY = 1.
APPEND WA_INST TO IT_INST.
I would be very greateful if someone could help me.
Thanks a lot in advance and best regards.
Ben.

Similar Messages

  • New item addition with Characteristic Values - BAPI_SALESORDER_CHANGE

    Hi,
    I need to add new item in existing sales order. The new item to be added is a configurable material, with Characteristic values to be filled. Iam using 'BAPI_SALESORDER_CHANGE' to insert new item. Iam able to insert normal item. The problem is, iam not able to insert the configurable item. BAPI returns a message 'No changes made'.
    Code is attached.
      WA_HDRX-UPDATEFLAG = 'U'.
      SELECT MAX( POSNR ) FROM VBAP CLIENT SPECIFIED
      INTO MAX_POSNR
      WHERE MANDT = SY-MANDT AND
            VBELN = I_SORDER.
      TMP_POSNR = MAX_POSNR + 10.
      WA_ITEM-ITM_NUMBER = TMP_POSNR.
      WA_ITEM-MATERIAL   = 'LEFTEYE'.
      WA_ITEM-PLANT      = I_STORE.
      WA_ITEM-SHIP_POINT = I_STORE.
      WA_ITEM-CONFIG_ID  = 'LEFT'.
      WA_ITEM-INST_ID    = 'LEFTEYE'.
      APPEND WA_ITEM TO IT_ITEM.
      WA_ITEMX-ITM_NUMBER = TMP_POSNR.
      WA_ITEMX-UPDATEFLAG = 'I'.
      WA_ITEMX-MATERIAL   = 'X'.
      WA_ITEMX-PLANT      = 'X'.
      WA_ITEMX-SHIP_POINT = 'X'.
      WA_ITEMX-CONFIG_ID  = 'X'.
      WA_ITEMX-INST_ID    = 'X'.
      wa_itemx-ITEM_CATEG = 'X'.
      APPEND WA_ITEMX TO IT_ITEMX.
    Schedule lines
      WA_SCHD-ITM_NUMBER = TMP_POSNR.
      WA_SCHD-SCHED_LINE = TMP_POSNR.
      WA_SCHD-REQ_DATE   = SY-DATUM.
      WA_SCHD-REQ_QTY    = 1.
      WA_SCHD-SCHED_TYPE = 'CN'.
      APPEND WA_SCHD TO IT_SCHD.
      WA_SCHDX-ITM_NUMBER = TMP_POSNR.
      WA_SCHDX-SCHED_LINE = TMP_POSNR.
      WA_SCHDX-REQ_DATE   = 'X'.
      WA_SCHDX-REQ_QTY    = 'X'.
      WA_SCHDX-SCHED_TYPE = 'X'.
      APPEND WA_SCHDX TO IT_SCHDX.
    characteristic values
      WA_VALUE-CONFIG_ID = 'LEFT'.
      WA_VALUE-INST_ID   = 'LEFTEYE'.
      WA_VALUE-CHARC     = 'PRES_DIST_SPH'.
      WA_VALUE-VALUE     = '3.2'.
      APPEND WA_VALUE TO IT_VALUE.
      WA_INST-CONFIG_ID = 'LEFT'.
      WA_INST-INST_ID   = 'LEFTEYE'.
      WA_INST-OBJ_TYPE  = 'MARA'.
      WA_INST-CLASS_TYPE = '300'.
      WA_INST-OBJ_KEY   = 'LEFTEYE'.
      WA_INST-QUANTITY  = 1.
      APPEND WA_INST TO IT_INST.
      CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
        EXPORTING
          SALESDOCUMENT    = SALES_DOC
          ORDER_HEADER_INX = WA_HDRX
          LOGIC_SWITCH     = LS_LOGIC
        TABLES
          RETURN           = IT_RET
          ORDER_ITEM_IN    = IT_ITEM
          ORDER_ITEM_INX   = IT_ITEMX
          SCHEDULE_LINES   = IT_SCHD
          SCHEDULE_LINESX  = IT_SCHDX
          ORDER_CFGS_INST  = IT_INST
          ORDER_CFGS_VALUE = IT_VALUE.
    Where iam missing ?
    Any input would be helpfull.
    regards,
    Nagarajan.J

    Hi,
    Iam now able to insert configurable item in existing sales order. But the characteristic values are not getting stored.
    Latest code is attached. What else is missing for storing characteristic values ?
    select maximum item number in sales order
      SELECT MAX( POSNR ) FROM VBAP CLIENT SPECIFIED
      INTO MAX_POSNR
      WHERE MANDT = SY-MANDT AND
            VBELN = I_SORDER.
    calc next item number
      TMP_POSNR = MAX_POSNR + 10.
    header data
      WA_HDRX-UPDATEFLAG = 'U'.          "update
      SALES_DOC          = I_SORDER.
    item data
      WA_ITEM-ITM_NUMBER = TMP_POSNR.
      WA_ITEM-MATERIAL   = 'LEFTEYE'.
      WA_ITEM-PLANT      = I_STORE.
      WA_ITEM-SHIP_POINT = I_STORE.
      APPEND WA_ITEM TO IT_ITEM.
      WA_ITEMX-ITM_NUMBER = TMP_POSNR.
      WA_ITEMX-UPDATEFLAG = 'I'.          "add
      WA_ITEMX-MATERIAL   = 'X'.
      WA_ITEMX-PLANT      = 'X'.
      WA_ITEMX-SHIP_POINT = 'X'.
      APPEND WA_ITEMX TO IT_ITEMX.
    Schedule lines
      WA_SCHD-ITM_NUMBER = TMP_POSNR.
      WA_SCHD-SCHED_LINE = TMP_POSNR.
      WA_SCHD-REQ_DATE   = SY-DATUM.
      WA_SCHD-REQ_QTY    = 1.
      WA_SCHD-SCHED_TYPE = 'CN'.
      APPEND WA_SCHD TO IT_SCHD.
      WA_SCHDX-ITM_NUMBER = TMP_POSNR.
      WA_SCHDX-SCHED_LINE = TMP_POSNR.
      WA_SCHDX-REQ_DATE   = 'X'.
      WA_SCHDX-REQ_QTY    = 'X'.
      WA_SCHDX-SCHED_TYPE = 'X'.
      APPEND WA_SCHDX TO IT_SCHDX.
    config & characteristic values
      WA_VALUE-CONFIG_ID = '000001'.
      WA_VALUE-INST_ID   = '00000001'.
      WA_VALUE-CHARC     = 'PRES_DIST_SPH'.
      WA_VALUE-VALUE     = '3.2'.
      APPEND WA_VALUE TO IT_VALUE.
      WA_INST-CONFIG_ID     = '000001'.
      WA_INST-INST_ID       = '00000001'.
      WA_INST-OBJ_TYPE      = 'MARA'.
      WA_INST-CLASS_TYPE    = '300'.
      WA_INST-OBJ_KEY       = 'LEFTEYE'.
      WA_INST-QUANTITY      = 1.
      WA_INST-QUANTITY_UNIT = 'NO'.
      APPEND WA_INST TO IT_INST.
      WA_REF-POSEX     = TMP_POSNR.
      WA_REF-CONFIG_ID = '000001'.
      WA_REF-ROOT_ID   = '00000001'.
      APPEND WA_REF TO IT_REF.
      WA_PART-CONFIG_ID  = '000001'.
      WA_PART-PARENT_ID  = '00000001'.
      WA_PART-INST_ID    = '00000001'.
      WA_PART-OBJ_TYPE   = 'MARA'.
      WA_PART-CLASS_TYPE = '300'.
      WA_PART-OBJ_KEY    = 'LEFTEYE'.
      APPEND WA_PART TO IT_PART.
      CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
        EXPORTING
          SALESDOCUMENT      = SALES_DOC
          ORDER_HEADER_INX   = WA_HDRX
        TABLES
          RETURN             = IT_RET
          ORDER_ITEM_IN      = IT_ITEM
          ORDER_ITEM_INX     = IT_ITEMX
          ORDER_CFGS_REF     = IT_REF
          ORDER_CFGS_PART_OF = IT_PART
          ORDER_CFGS_INST    = IT_INST
          ORDER_CFGS_VALUE   = IT_VALUE
          SCHEDULE_LINES     = IT_SCHD
          SCHEDULE_LINESX    = IT_SCHDX.
      READ TABLE IT_RET INTO WA_RET WITH KEY TYPE = 'E'.
      IF SY-SUBRC = 0.
        CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
      ELSE.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      ENDIF.
    I get the following messages from BAPI.
    ORDER_HEADER_IN has been processed successfully.
    ITEM_IN has been processed successfully
    The sales document is not yet complete: Edit data
    TIL-Direct Sales TINDC01372 has been saved
    What else is missing ?  Any help is appreciated.
    thanks,
    Nagarajan.J

  • Assign Object to class with characteristic values ?

    Hi All,
    I want to assign object to class with characteristic values. I found CL20N transaction for performing the same. Is there any BDC , BAPI to upload the same.
    Thanks & Regards,
    Navneeth K.

    Hi,
    try as below
        CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
          EXPORTING
            classtext            = 'X'
            classtype            = w_classtype  "Class type
            language             = sy-langu
            object               = w_object     "Object Matnr + Batch
            objecttable          = 'MARA'     "As requirement
            change_service_clf   = 'X'
            inherited_char       = ' '
            change_number        = ' '
          TABLES
            t_class              = t_class
            t_objectdata         = t_objectdata
            i_sel_characteristic = i_sel_characteristic
            t_no_auth_charact    = t_no_auth_charact.
        IF sy-subrc <> 0.
        ENDIF.
    *     Create with reference-----------------------
          w_objectkeynew = wa_inputfile-to_matnr.
          CALL FUNCTION 'BAPI_OBJCL_CREATE'
            EXPORTING
              objectkeynew    = w_objectkeynew
              objecttablenew  = 'MARA'
              classnumnew     = w_classnum
              classtypenew    = w_classtype
            TABLES
              allocvaluesnum  = t_allocvaluesnum
              allocvalueschar = t_allocvalueschar
              allocvaluescurr = t_allocvaluescurr
              return          = t_lreturn.
    "or
    BAPI_OBJCL_CHANGE              Classification BAPI: Change Assignment
    Prabhudas

  • Characteristic values in BAPI_SALESORDER_CHANGE

    Hi,
    I want to add new configurable item in existing sales order with charactersitic values.
    Iam using bapi BAPI_SALESORDER_CHANGE.
    Iam now able to insert configurable item in existing sales order.
    But the characteristic values are not getting stored.
    Latest code is attached. What else is missing for storing characteristic values ?
    select maximum item number in sales order
    SELECT MAX( POSNR ) FROM VBAP CLIENT SPECIFIED
    INTO MAX_POSNR
    WHERE MANDT = SY-MANDT AND
    VBELN = I_SORDER.
    TMP_POSNR = MAX_POSNR + 10.
    WA_HDRX-UPDATEFLAG = 'U'.      "update
    SALES_DOC = I_SORDER.
    item data
    WA_ITEM-ITM_NUMBER = TMP_POSNR.
    WA_ITEM-MATERIAL   = 'LEFTEYE'.
    WA_ITEM-PLANT      = I_STORE.
    WA_ITEM-SHIP_POINT = I_STORE.
    APPEND WA_ITEM TO IT_ITEM.
    WA_ITEMX-ITM_NUMBER = TMP_POSNR.
    WA_ITEMX-UPDATEFLAG = 'I'.      "add
    WA_ITEMX-MATERIAL   = 'X'.
    WA_ITEMX-PLANT      = 'X'.
    WA_ITEMX-SHIP_POINT = 'X'.
    APPEND WA_ITEMX TO IT_ITEMX.
    Schedule lines
    WA_SCHD-ITM_NUMBER = TMP_POSNR.
    WA_SCHD-SCHED_LINE = TMP_POSNR.
    WA_SCHD-REQ_DATE   = SY-DATUM.
    WA_SCHD-REQ_QTY    = 1.
    WA_SCHD-SCHED_TYPE = 'CN'.
    APPEND WA_SCHD TO IT_SCHD.
    WA_SCHDX-ITM_NUMBER = TMP_POSNR.
    WA_SCHDX-SCHED_LINE = TMP_POSNR.
    WA_SCHDX-REQ_DATE   = 'X'.
    WA_SCHDX-REQ_QTY    = 'X'.
    WA_SCHDX-SCHED_TYPE = 'X'.
    APPEND WA_SCHDX TO IT_SCHDX.
    config & characteristic values
    WA_VALUE-CONFIG_ID = '000001'.
    WA_VALUE-INST_ID   = '00000001'.
    WA_VALUE-CHARC     = 'PRES_DIST_SPH'.
    WA_VALUE-VALUE     = '3.2'.
    APPEND WA_VALUE TO IT_VALUE.
    WA_INST-CONFIG_ID  = '000001'.
    WA_INST-INST_ID    = '00000001'.
    WA_INST-OBJ_TYPE   = 'MARA'.
    WA_INST-CLASS_TYPE = '300'.
    WA_INST-OBJ_KEY    = 'LEFTEYE'.
    WA_INST-QUANTITY   = 1.
    WA_INST-QUANTITY_UNIT = 'NO'.
    APPEND WA_INST TO IT_INST.
    WA_REF-POSEX     = TMP_POSNR.
    WA_REF-CONFIG_ID = '000001'.
    WA_REF-ROOT_ID   = '00000001'.
    APPEND WA_REF TO IT_REF.
    WA_PART-CONFIG_ID  = '000001'.
    WA_PART-PARENT_ID  = '00000001'.
    WA_PART-INST_ID    = '00000001'.
    WA_PART-OBJ_TYPE   = 'MARA'.
    WA_PART-CLASS_TYPE = '300'.
    WA_PART-OBJ_KEY    = 'LEFTEYE'.
    APPEND WA_PART TO IT_PART.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
      SALESDOCUMENT      = SALES_DOC
      ORDER_HEADER_INX   = WA_HDRX
    TABLES
      RETURN                         = IT_RET
    ORDER_ITEM_IN             = IT_ITEM
    ORDER_ITEM_INX            = IT_ITEMX
    ORDER_CFGS_REF         = IT_REF
    ORDER_CFGS_PART_OF = IT_PART
    ORDER_CFGS_INST        = IT_INST
    ORDER_CFGS_VALUE    = IT_VALUE
    SCHEDULE_LINES          = IT_SCHD
    SCHEDULE_LINESX        = IT_SCHDX.
    READ TABLE IT_RET INTO WA_RET WITH KEY TYPE = 'E'.
    IF SY-SUBRC = 0.
    CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
    ELSE.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    ENDIF.
    I get the following messages from BAPI :
    ORDER_HEADER_IN has been processed successfully.
    ITEM_IN has been processed successfully
    The sales document is not yet complete: Edit data
    TIL-Direct Sales TINDC01372 has been saved
    What else is missing ? Any help is appreciated.
    thanks,
    Nagarajan.J

    Hello Nagarajan,
    I have used this BAPI in my last task. You are passing the values correctly. I will tell you why it is giving like that message.
    Whenever we will create a sales order in VA01 transaction, you will get a message like "The sales order is not complete, would you like to EDIT" while saving the sales order.... This is because of not providing complete data required for careation of sales order.
    Try to implement the changes manually in VA02, if you get same errors, then you can find your code is correct.
    Even I got same type of messages when changing a sales order to change the Rejection Reason for the items.
    Best Regards,
    Sasidhar Reddy Matli.
    Edited by: Sasidhar Reddy Matli on Jul 31, 2008 2:20 PM

  • Using Characteristic value with Replacement path variable

    Hi All,
    Could you please let me know if it is possible to use charecteristic value instead of key figure with replacement path variable. My requirement is to use factory calendar id as the replacement variable on plant characteristic, now when I choose replcaement variable with Attribute value, the dropdown menu only gives the list of key figures assigned as an attributes to Plant.
    Now I am looking for a solution to use factory calendar id as the attribute.
    Thanks for your help in advance.
    Regards
    SS

    Hi sachin
    U can use it
    Look at these links
    Re: Customer exit &  Replacement path........?
    Variable with Replacement Path
    Re: Replacement Path for Charastrictics Variable
    http://help.sap.com/saphelp_nw04/helpdata/en/03/6ba03cc24efd1de10000000a114084/frameset.htm
    Regards
    KR

  • KE28 with" Copy Characteristic Value with Reference Data" doesn't work

    Hi experts:
    We need to make a top-down setting the processing option 'Copy Characteristic Value with Reference Data'. We have the following source data:
    Customer Business Unit  Value field.
    6        #              100
    On the other hand, we have plan data as reference data:
    Customer Business Unit  Value field.
           A              40
           C              40
           D              20
    We need to run a top-down to distribute from client to Business Unit but copying client of reference data. Then, we set 'Copy Characteristic Value with Reference Data' and, in the selection criteria we set '*' for customer.
    After running, the result is that the system can find 1 sender and 3 receivers. It is exactly what we are expecting. However, program doesn't make individual items and anything is distributed.
    We have found notes 1086282 and 1273924 but the result is the same after implementing these notes.
    Thanks in advance for your help.
    Best regards
    Jose

    There are some restrictions on the XML Schema format that you can report off of in Crystal Reports.
    If you're using the ODBC XML driver, you may find this of relevance:
    [http://resources.businessobjects.com/support/communitycs/TechnicalPapers/cr_xml_data_sources.pdf|http://resources.businessobjects.com/support/communitycs/TechnicalPapers/cr_xml_data_sources.pdf]
    and if you're using the native XML driver, the following gives a guide for the accepted formats:
    [http://resources.businessobjects.com/support/communitycs/TechnicalPapers/cr_xi_native_xml_driver.pdf|http://resources.businessobjects.com/support/communitycs/TechnicalPapers/cr_xi_native_xml_driver.pdf]
    Sincerely,
    Ted Ueda

  • PR created with a reference PR copied the reference material configuration( Characteristic Values).

    Hello,
    I have created a PR with reference to another PR. After adopting I changed the material and saved. After saving, when I checked the variant configuration at the line item level (Characteristic values), its showing the characteristic values of the material of the reference PR. It should be showing the details of the new material which I have used but, its showing the variant configuration of the material used in the PR which I used as reference.
    Ideally, these values has to be changed when I changed the material in the newly created PR.  What might have gone wrong here?
    Example:  PR- Purchase Requisition
                   Mat - Material.
    PR1 contains Mat1.
    I am adopting PR1 and creating PR2 with Mat2.
    After saving, when I check the variant configuration, classification values are from Mat1. I was expecting the values from Mat2 as I have Mat2 in PR2.
    Any suggestions would be of great help.
    Thanks in advance!
    Regards,
    Shaheen.

    Hi,
       Please check whether classification data has been maintained for the second material. If the configuration data doesnt exist for the second material, system cant redetermine and transfer. Refr the note: 588117 - FAQ: Configurable materials in purchasing Question number 5.
       If the configuration data exists and still the data is not changed, refer the note:  920648 - Error in the configuration when you copy PReq item  or 596994 - ME21N/ME51N: Configuration not determined again based on your release.
    Regards,
    AKPT

  • Purchase order release strategy with a characteristic value as a variable

    Hi all,
    We have Purchase order release strategy based on the following characteristics:
    Total Net Order Value
    Purchasing Organization
    a few other custom fields
    We would like to add a characteristic based on the creator of the PO. In the purchasing department there are two person which have the authorization to create an release POs. The goal is now to check if the actual user, who release the PO, is different from the PO creator. The value of this characteristic may not be a fix value, it must be contain the name of the actual user name.
    Is there are a possibility to insert the characteristic value as a variable such as SY-UNAME instead a fix value?
    Thanks,
    Charles

    this is verymuch possible.  You can use unsed fields user1, user2 etc in CEKKO or (ii) insert a new field in CEKKOZZ and use the new field.  You need to build up logic in user-exit such that this field will take the value of person who had logged in. This can be done by ABAPer.
    Hope this resolves ur problem

  • Update item characteristic values using BAPI_SALESORDER_CHANGE

    Hi Experts,
    Could anyone give me sample code on how to update the characteristic values of a sales order item? Points will be awarded... Thanks!
    Regards,
    LM

    Just checked on OSS note 549563 regarding this. This is resolved. Thanks

  • Changing DATE as a Characteristic value of batch with BAPI_OBJCL_CHANGE

    Hello,
    Could you give advice for using BAPI_OBJCL_CHANGE?
    I decided to use BAPI_OBJCL_CHANGE to update Batch characteristic value.
    I could update CHAR field but could not DATE.
    I set like below :
      - Characteristic name (e.g. Z10001) to CHARACT of ALLOCVALUESNUMNEW(Tables)
      - DATE(e.g. 20081211) to VALUE_FROM of ALLOCVALUESNUMNEW(Tables).
    But it does not work.
    Of course, I executed BAPI_TRANSACTION_COMMIT after the FM done.
    I found the value of VALUE_FROM is missing when debugging.
    Thanks in advance.
    Takeru Miyagawa

    Hello,
    you said :
    - DATE(e.g. 20081211) to VALUE_FROM of ALLOCVALUESNUMNEW(Tables).
    Data type of field VALUE_FROM is FLTP. How do you fill this field ? by MOVE ?
    You should not use MOVE, you should use :
    DATA:
    wlv_date              TYPE d,
    wls_ALLOCVALUESNUMNEW TYPE BAPI1003_ALLOC_VALUES_NUM.
               CALL FUNCTION 'CTCV_CONVERT_DATE_TO_FLOAT'
                             EXPORTING date          = wlv_date
                             IMPORTING   float       = wls_ALLOCVALUESNUMNEW-VALUE_FROM.
    - I found the value of VALUE_FROM is missing when debugging.
    Can you show us your code ?
    Cordialement,
    Chaouki.

  • Post material master idoc  with class and characteristic values

    Hi,
    I need to post the class and characterstic values of material while posting the material using idoc of basic type matmas05 . Can anyone suggest me the fields and segment details to fill the class, class type and characteristic values in matmas05.
    Note : the class and characteristic values are already created in the system, my purpose is to assign them to material while creating. so please give me the field and segment details in idoc basic type matmas05.
    thanks
    Kiran

    I  try to do the samething. I see the fields E1CUVAL : CU: Characteristic valuation in the structure of MATMAS05 but when I run the IDOC, these fields never appear even they exist for the material.
    Did you find an answer to your question that can help me?

  • How to change the characteristic value in a item of sales order by FM?

    Hi experts,
    I guess the FM BAPI_SALESORDER_CHANGE can implement my requirement. But I have made many testing program, that's all failed. I don't know which part is not correct. So could you give a very simple sample to me? Just change the characteristic value in a item of sales order, not do any change for other parts. Thanks in advanced.
    Regrads

    Hi Birendra,
    Thanks for you explain. I follow your guide to wirte abap program. But related characteristic value still not changed in SO main screen. could you give me some suggestion? Thanks a lot!
    type-pools: IBCO2,
                IBXX.
    data: l_CUOBJ type CUOBJ_VA,
          l_ibase type IBCO2_IBASE_REC,
          l_CONFIGURATION type IBCO2_INSTANCE_TAB2,
          w_CONFIGURATION type IBCO2_INSTANCE_REC2,
          l_ROOT_OBJECT type IBXX_BUSINESS_OBJECT.
    data: t_IBCO2_VALUE_TAB type IBCO2_VALUE_TAB,
          w_IBCO2_VALUE_REC type IBCO2_VALUE_REC.
    select single CUOBJ
      into l_CUOBJ
      from VBAP
      where VBELN = '0020030609'
        and POSNR = '000020'.
      CALL FUNCTION 'CUCB_GET_CONFIGURATION'
        EXPORTING
          INSTANCE                           = l_CUOBJ
        IS_BUSINESS_OBJECT                 =
        IV_MOMENT                          =
        IV_WITH_DB_INSTANCE                =
       IMPORTING
         IBASE                              = l_ibase
         CONFIGURATION                      = l_CONFIGURATION
        EO_CBASE_REF                       =
      EXCEPTIONS
        INVALID_INPUT                      = 1
        INVALID_INSTANCE                   = 2
        INSTANCE_IS_A_CLASSIFICATION       = 3
        OTHERS                             = 4
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    loop at l_CONFIGURATION into w_CONFIGURATION.
      l_ROOT_OBJECT = w_CONFIGURATION-OWNER.
    t_IBCO2_VALUE_TAB[] = w_CONFIGURATION-values[].
      read table w_CONFIGURATION-values into w_IBCO2_VALUE_REC with key ATINN = '0000000222'.
      w_IBCO2_VALUE_REC-ATWRT = 'TMP'.
      modify w_CONFIGURATION-values from w_IBCO2_VALUE_REC index sy-tabix.
      modify l_CONFIGURATION from w_CONFIGURATION index 1.
      clear: w_CONFIGURATION.
    endloop.
    CALL FUNCTION 'CUCB_SET_CONFIGURATION'
      EXPORTING
        ROOT_INSTANCE                      = l_CUOBJ
      IS_CBASE_HEADER                    =
      CHANGING
        CONFIGURATION                      = l_CONFIGURATION
    EXCEPTIONS
      INVALID_INPUT                      = 1
      INVALID_INSTANCE                   = 2
      INSTANCE_IS_A_CLASSIFICATION       = 3
      OTHERS                             = 4
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'CUCB_CONFIGURATION_TO_DB'
      EXPORTING
        ROOT_INSTANCE                       = l_CUOBJ
        ROOT_OBJECT                         = l_ROOT_OBJECT
      FORCE_NEW_INSTANCE                  =
      IV_WITHOUT_COMMIT_UPDATE            = ' '
      IV_MATERIAL                         =
      IV_LOCATION                         =
      IV_TECHS                            =
    IMPORTING
      NEW_INSTANCE                        =
    TABLES
      EXP_NEW_NESTED_CUOBJS               =
    EXCEPTIONS
      INVALID_INSTANCE                    = 1
      INVALID_ROOT_INSTANCE               = 2
      NO_CHANGES                          = 3
      ALREADY_REGISTERED_FOR_UPDATE       = 4
      INSTANCE_IS_A_CLASSIFICATION        = 5
      OTHERS                              = 6
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • Conversion of Characteristic Values to SIDs is taking long time

    Hi Experts,
        Cube load is taking more than 7 hrs to complete for 6 million records. Max time is at Conversion of Characteristic Values to SIDs. Cube consists of 500 fields. Load is from DSO to Cube. DSO has 10 fileds with no SID flag check for activation. Remaining fields in the CUBE are pouplated looking in to other DSO's. Start and End routines are executing very fast. How to fasten Conversion of Characteristic Values to SIDs step.  I need to load 15 million records daily as part of delta. any suggestions.
    Thanks
    Sunil

    Hi Sunil,
    Go through the below link, it will be useful
    http://aq33.com/business-warehouse/Articles-05269.html
    Regards,
    Marasa.

  • Get batch characteristic value

    Hi Experts,
    I need to get the characteristic value of a batch if I provide with batch number and characteristic name as parameters.
    Is there any standard function module for this?
    Regards
    Thanks in advance
    Prathib

    Dear,
    BAPI_CLASS_SELECT_OBJECTS gets objects for a class. If you want to retrieve the characteristics, try using BAPI_CLASS_GET_CHARACTERISTICS.
    or check FM CLFM_SELECT_AUSP
    Regards,
    R.Brahmankar

  • Populate Batch characteristic values in create sales order BAPI

    Can anybody help me in populating the batch characteristic values using BAPI_SALESORDER_CREATEFROMDAT2?
    I have checked the related notes provided by SAP, like, 567348 but it will be great if someone can send some code snippet on this.

      Subramanian, Brad and Raja.
      Thanks for your suggestions its were useful, with
      these i can resolve my problem.
       !!! Best Regards !!!
    Raja
      I used the se37 to test bapis, is more easy and fast !!
      and you can save data like variant, and you can simulate the real execution without write any code abap,
    and re-process the times that you need,
    when you know what fields you need you write your abap code faster.
       Thanks !!!
    Message was edited by: Noemi Huerta

Maybe you are looking for

  • HELP HELP!!! iTunes wont sync my TV Shows and Movies after 2.0 update.

    Last week I went away on holiday on the 11th. That meant I never managed to get the iPod Touch Update until Ihad arrived and found an Internet Connection. When I started to do the update I had a problem because the restore of all of my content that s

  • LDAP Client busted after 10.6.5 update...

    I had ldap lookup working through contacts on to my corp ldap server. after the update, i noticed that the port config had changed from 389 to 3268 and now none of the contact looks are working. I noticed this issue last week and didn't connect it to

  • Invisible submit button with image rollover

    I have a need to combine a rollover image with a form submit button. I need the submit button to not be visible except for those that know where to look. I have a database query that displays rows of data. Each row has a checkbox to select that item,

  • Batch change file names

    How can I batch change all my file names?

  • JScrollPane won't work, help

    I have a problem with a JScrollPane, it appears on the frame but it wont scroll down when it's to much text in the textarea, can someone help me!? import javax.swing.*; import javax.swing.event.*; import java.awt.*; import java.awt.event.*; import ja