Update batch no in ME21N

Hi Friend,
I want to update batch no in ME21N.
-     At the time of saving the purchase order, a batch number should be generated as follows:
o     XXXXX = last 5 digits from the purchase order
o     XXXXX = Item number of the purchase order item

check this thread you can get some idea
Batch creation through ME21N, ME22N and MSC1N

Similar Messages

  • Updating Batch classification data from MIGO for Purchase order

    Hi,
    I need to update batch classification data (in MSC3n) from MIGO for purchase order. The logic needed for this is as below,
    1) Pass material and batch to MCH1 table to get CUOBJ_BM.
    2) Pass CUOBJ_BM to INOB table to get INOB-OBJEK.
    3) Pass INOB-OBJEK to CLAF_CLASSIFICATION_OF_OBJECTS to get class name & characteristic name.
    4) Pass INOB-OBJEK, CLASS name and characteristic name to BAPI_OBJCL_CHANGE to update batch classification data.
    I created implicit enhancement at the bottom of FM "CLVF_VB_INSERT_CLASSIFICATION". But the problem is, the return parameter of BAPI_OBJCL_CHANGE is giving the following error.
    Class type 023, object type MCH1, object RAW-6             0000001151
    Object is currently locked by user
    The assignment was not changed
    Please let me know how to do it. Is there any BADI or User Exit?

    Hi,
    As you said the break point is not triggering did you activate your exit and activated even the project to which your exit is assigned.
    I hope you missed activating your project in CMOD transaction. Please verify it once and if it is not activated then immediately activate it and try debugging again.
    Regards,
    Rafi

  • Updating Batch Number while delivery creation from sales document

    Hi Experts,
         I have to write code inside user exit MV50AFZZ which updates batch number during delivery creation. Suppose I have a sales having more than one line items. Each line item have different material numbers, and one material number may have more than 1 batch number. And all these batch numbers have to be updated for their corresponding material numbers. Batch  number corresponds to LIPS-CHARG. So how we can maintain values for this field more than once for a particular material number?

    Hi Pankaj,
    Were you able to update the Batch Number?
    What is the function Module that you used? and where exactly did you code in the logic?
    Thanks,
    RV

  • How to update batch (LIPS-CHARG) using FM WS_DELIVERY_UPDATE

    Hi guys,
    I posted a question regarding a function module here:
    How to update batch (LIPS-CHARG) using FM WS_DELIVERY_UPDATE
    If you have experience about this FM, kindly visit the link and share your wisdom. Thanks.
    Regards,
    Carl

    Hi guys,
    I posted a question regarding a function module here:
    How to update batch (LIPS-CHARG) using FM WS_DELIVERY_UPDATE
    If you have experience about this FM, kindly visit the link and share your wisdom. Thanks.
    Regards,
    Carl

  • Cannot update batch header MIGO GR in MB_DOCUMENT_BADI

    I am trying to update next inspection date via MIGO when Goods Receipting a production order which is held in the batch header and in a classification we have set up. I have used function modules to try and perform the update.
    I have used both 'VB_UPDATE_BATCH' and QEVA_BATCH_UPDATE both by themselves and in an update task to update field QNDAT. (1st one updating MCHA and MCH1 the second one to update MCHA).
    I had the code before in POST_DOCUMENT of BADI MB_MIGO_BADI and this made no difference either. Sometimes it updates if I cancel the material document and redo the goods receipt with the same production number but this is very inconsistent. I need this to be done when I am posting the goods receipt.
    Does anyone have any ideas as I am at the end of my tether with this one?
    Many thanks
    Regards
    Larissa Maryniuk

    i did not get total req .
    but i came to know that u want to update batch.
    rt .use this i did in this.
    MB_MIGO_BADI
    use this method  LINE_MODIFY
    where u can modify batch field.
    and if u want to modify batch characteristics
    use
    MBCFC004
    in this
    EXIT_SAPMM07M_004
    if nay clarification plz reply.

  • I need a FM to update batch no. & picking qty. of delivery  also to do PGI.

    I need a FM to update batch no.& picking qty of delivery items as well as to do PGI (Post goods issue) for the same delivery.I am using 'WS_DELIVERY_UPDATE' but it doesn't update the batch no. and gives error saying no bactches are deifned for delivery no XXXXX and item XXXX.Can any one suggest the suitable function module to do this? It will be better if you can give details about input parameters with example.
    Thanks & Regards,
    Nimish Dongare.

    Hi,
    I used the following code for both picking & PGI...I think it shud also work for updating the batch details.
    Picking:
    *get header data
    WA_VBKOK-VBELN_VL = <DEL_NBR>
    WA_VBKOK-VBELN = VBFA-VBELV
    get line data
    LOOP AT TAB_VBPOK.
    TAB_VBPOK-VBELN_VL = WA_VBKOK-VBELN_VL.
    tab_vbpok-posnr_vl = <line number> '900001'
    tab_vbpok-matnr= <material nbr>
    tab_vbpok-charg= <batch nbr>
    tab_vbpok-pikmg =<pick qty>
    tab_vbpok-meins= <uom>
       TAB_VBPOK-VBELN = SY-DATUM.
          TAB_VBPOK-POSNN = SY-UZEIT.
          TAB_VBPOK-VBTYP_N = VBFA-VBTYP_N.
          SELECT * INTO TABLE TVBFA FROM VBFA
                              WHERE VBELV = WA_VBKOK-VBELN_VL.
          SORT TVBFA DESCENDING.
          CLEAR TVBFA.
          READ TABLE TVBFA WITH KEY VBELV = TAB_VBPOK-VBELN_VL
                                    POSNV = TAB_VBPOK-POSNR_VL
                                    VBTYP_N = 'Q'
                                    TAQUI = ' '.
          IF SY-SUBRC EQ 0.
            V_PIKMG = TAB_VBPOK-PIKMG + TVBFA-RFMNG.        " Picking quantity
            CLEAR TVBFA.
            READ TABLE TVBFA WITH KEY VBELV = TAB_VBPOK-VBELN_VL
                                  POSNV = TAB_VBPOK-POSNR_VL
                                  VBTYP_N = 'Q'
                                  TAQUI = 'X'.
            IF SY-SUBRC EQ 0.
              V_PIKMG = V_PIKMG + TVBFA-RFMNG.               " Total Picking quantity
    *****Error Message: Picked quantity is larger than the quantity to be delivered.
              IF LIPS-LFIMG LT V_PIKMG.
                PERFORM GET_RETURN  USING 'E' 'VL' '019' SPACE SPACE SPACE SPACE
                          RETURN.
                V_EXIT = 'Y'.
                EXIT.             " EXIT THE RFC.
              ENDIF.
            ENDIF.
          ENDIF.
          MODIFY TAB_VBPOK.
    CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
          EXPORTING
            VBKOK_WA             = WA_VBKOK
            SYNCHRON             = 'X'
            DELIVERY             = WA_VBKOK-VBELN_VL
            UPDATE_PICKING       = 'X'
            COMMIT               = 'X'
            IF_DATABASE_UPDATE_1 = '1'
         TABLES
            VBPOK_TAB            = TAB_VBPOK
            PROT                 = I_PROTT.
        IF NOT I_PROTT IS INITIAL.
          RETURN-TYPE = 'E'.
          RETURN-MESSAGE = 'Picking Failed!'.
          EXIT.                                  "EXIT THE RFC
        ELSE.
          COMMIT WORK AND WAIT.
        ENDIF.
    PGI
    *get header data
    WA_VBKOK-VBELN_VL = <DEL_NBR>
    WA_VBKOK-VBELN = VBFA-VBELV
    CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
        EXPORTING
          VBKOK_WA               = WA_VBKOK
          SYNCHRON               = 'X'
          DELIVERY               = WA_VBKOK-VBELN_VL
          NICHT_SPERREN_1        = 'X'
          IF_ERROR_MESSAGES_SEND = 'X'
         TABLES
          PROT                   = I_PROTT.
      IF NOT I_PROTT IS INITIAL.
        RETURN-TYPE = 'E'.
        RETURN-MESSAGE = 'Goods Issue Failed!'.
        EXIT.                                  "EXIT THE RFC
      ELSE.
        COMMIT WORK AND WAIT.
    endif.
    thanks

  • Stale Data Error only Resolved by selecting "Use Update Batching"

    Hello,
    I'm having an issue after creating an update page in OAF.  The page only works when I select update batching within my EO.  The problem with this is my page is using a column type of BLOB which greys out the option to use update batching.  I have tried everything I can think of as well as search on every possible topic over the internet to resolve this issue.  Can't seem to figure it out.  It has become very frustrating as to why I can only update the table by selecting update batching.  Does anyone know how to overcome this issue?
    Thanks,
    Jeff

    I resolved this issue.  The reason I was receiving the stale data error was due to a custom table I created getting corrupted when adding the primary key through SQL Developer instead of doing coding it.  After I recreated the table the stale data error stopped displaying.  Hope this helps people in the future.  Just remember to code the table creation instead of creating it through SQL Developer.

  • BAPI to update batch characteristics

    Hi,
    We have a requirement to update batch characteristics in SAP. I used the VB_BATCH_CHANGE to update the batch characteristics. Below is my code. After the call, I don't get any error from this BAPI/RFC, but batch chararacteristcis values are not updated. Any ideas?
    FUNCTION Z_VB_CHANGE_BATCH.
    *"*"Global Interface:
    *"  IMPORTING
    *"     VALUE(YMCHA) LIKE  MCHA STRUCTURE  MCHA
    *"     VALUE(YUPDMCHA) LIKE  UPDMCHA STRUCTURE  UPDMCHA OPTIONAL
    *"     VALUE(CHANGE_LGORT) LIKE  MCHB-LGORT OPTIONAL
    *"     VALUE(BYPASS_LOCK) LIKE  AM07M-XSELK DEFAULT SPACE
    *"     VALUE(BYPASS_POST) LIKE  AM07M-XSELK DEFAULT SPACE
    *"     VALUE(X_BNCOM) LIKE  BNCOM STRUCTURE  BNCOM OPTIONAL
    *"     VALUE(KZCLA) LIKE  T156-KZCLA OPTIONAL
    *"     VALUE(XKCFC) LIKE  T156-XKCFC OPTIONAL
    *"     VALUE(CLASS) LIKE  KLAH-CLASS OPTIONAL
    *"     VALUE(NO_CHECK_OF_QM_CHAR) LIKE  AM07M-XSELK DEFAULT SPACE
    *"     VALUE(REF_MATNR) LIKE  MCHA-MATNR OPTIONAL
    *"     VALUE(REF_CHARG) LIKE  MCHA-CHARG OPTIONAL
    *"     VALUE(REF_WERKS) LIKE  MCHA-WERKS OPTIONAL
    *"     VALUE(SET_OLD_BATCH) LIKE  AM07M-XSELK DEFAULT 'X'
    *"     VALUE(BUFFER_REFRESH) LIKE  AM07M-XSELK OPTIONAL
    *"     VALUE(NO_CHANGE_DOCUMENT) LIKE  AM07M-XSELK DEFAULT SPACE
    *"     VALUE(GRUND) LIKE  MSEG-GRUND DEFAULT SPACE
    *"     VALUE(NO_CFC_CALLS) LIKE  AM07M-XSELK DEFAULT SPACE
    *"     VALUE(BATCH_DEL_FLAGS) LIKE  BATCHDELFLG STRUCTURE  BATCHDELFLG
    *"       DEFAULT SPACE
    *"     VALUE(SEND_SYS) TYPE  LOGSYS DEFAULT SPACE
    *"  EXPORTING
    *"     VALUE(YMCHA) LIKE  MCHA STRUCTURE  MCHA
    *"     VALUE(EMKPF) LIKE  EMKPF STRUCTURE  EMKPF
    *"  TABLES
    *"      CHAR_OF_BATCH STRUCTURE  CLBATCH OPTIONAL
    *"      CHANGED_BATCH STRUCTURE  MCHA OPTIONAL
    *"      ZIMSEG STRUCTURE  IMSEG OPTIONAL
    *"      RETURN STRUCTURE  BAPIRET2 OPTIONAL
    *"  EXCEPTIONS
    *"      NO_MATERIAL
    *"      NO_BATCH
    *"      NO_PLANT
    *"      MATERIAL_NOT_FOUND
    *"      PLANT_NOT_FOUND
    *"      LOCK_ON_MATERIAL
    *"      LOCK_ON_PLANT
    *"      LOCK_ON_BATCH
    *"      LOCK_SYSTEM_ERROR
    *"      NO_AUTHORITY
    *"      BATCH_NOT_EXIST
    *"      NO_CLASS
    *"      ERROR_IN_CLASSIFICATION
    *"      ERROR_IN_VALUATION_CHANGE
      DATA: F_TRANSACTION_ID           LIKE ARFCTID.
      CALL FUNCTION 'TRANSACTION_BEGIN'
        IMPORTING
          TRANSACTION_ID = F_TRANSACTION_ID.
      CALL FUNCTION 'VB_CHANGE_BATCH'
        EXPORTING
          YMCHA                     = YMCHA
          YUPDMCHA                  = YUPDMCHA
          CHANGE_LGORT              = CHANGE_LGORT
          BYPASS_LOCK               = BYPASS_LOCK
          BYPASS_POST               = BYPASS_POST
          X_BNCOM                   = X_BNCOM
          KZCLA                     = KZCLA
          XKCFC                     = XKCFC
          CLASS                     = CLASS
          NO_CHECK_OF_QM_CHAR       = NO_CHECK_OF_QM_CHAR
          REF_MATNR                 = REF_MATNR
          REF_CHARG                 = REF_CHARG
          REF_WERKS                 = REF_WERKS
          SET_OLD_BATCH             = SET_OLD_BATCH
          BUFFER_REFRESH            = BUFFER_REFRESH
          NO_CHANGE_DOCUMENT        = NO_CHANGE_DOCUMENT
          GRUND                     = GRUND
          NO_CFC_CALLS              = NO_CFC_CALLS
          BATCH_DEL_FLAGS           = BATCH_DEL_FLAGS
          SEND_SYS                  = SEND_SYS
        IMPORTING
          YMCHA                     = YMCHA
          EMKPF                     = EMKPF
        TABLES
          CHAR_OF_BATCH             = CHAR_OF_BATCH
          CHANGED_BATCH             = CHANGED_BATCH
          ZIMSEG                    = ZIMSEG
        EXCEPTIONS
          NO_MATERIAL               = 1
          NO_BATCH                  = 2
          NO_PLANT                  = 3
          MATERIAL_NOT_FOUND        = 4
          PLANT_NOT_FOUND           = 5
          LOCK_ON_MATERIAL          = 6
          LOCK_ON_PLANT             = 7
          LOCK_ON_BATCH             = 8
          LOCK_SYSTEM_ERROR         = 9
          NO_AUTHORITY              = 10
          BATCH_NOT_EXIST           = 11
          NO_CLASS                  = 12
          ERROR_IN_CLASSIFICATION   = 13
          ERROR_IN_VALUATION_CHANGE = 14
          OTHERS                    = 15.
      IF SY-SUBRC IS INITIAL.
        CALL FUNCTION 'TRANSACTION_END'
          EXPORTING
            TRANSACTION_ID = F_TRANSACTION_ID
          EXCEPTIONS
            OTHERS         = 1.
      ELSE.
        CALL FUNCTION 'BALW_BAPIRETURN_GET2'
          EXPORTING
            TYPE   = SY-MSGTY
            CL     = SY-MSGID
            NUMBER = SY-MSGNO
            PAR1   = SY-MSGV1
            PAR2   = SY-MSGV2
            PAR3   = SY-MSGV3
            PAR4   = SY-MSGV4
          IMPORTING
            RETURN = RETURN.
        APPEND RETURN.
        CALL FUNCTION 'TRANSACTION_ABORT'
          EXPORTING
            TRANSACTION_ID = F_TRANSACTION_ID
          EXCEPTIONS
            OTHERS         = 1.
        EXIT.
      ENDIF.
    ENDFUNCTION.
    Thanks,
    Sara

    Hi Subramani,
    Thanks for your response.
    BAPI_BATCH_CREATE will not work for us, because we are trying to update batch, not creating new batch.
    Also, The function TRANSACTION_END, I am calling in the code is responsible for committing the transaction.
    Thanks,
    Sara

  • ClassCastException using Update Batching

    Oracle 9.2.0.4/Linux, JDBC driver 9.2.0.5
    I'm trying to use update batching but always get a
    ClassCastException when doing:
    ((oracle.jdbc.driver.OraclePreparedStatement) pstmt).setExecuteBatch(10);
    I've followed chapter 12 of the "Oracle9i JDBC Developer's Guide and Reference", but cannot get rid of this damn exception.
    Can anyone give me any clue about what's happening?
    BTW, JDBC standard batch works perfectly, I just wanted
    to test oracle specific batch vs standard batch.
    Thanks in advance.

    Avi,
    I forgot to say is that the code is
    inside an EJB, running under JBoss. I've tested
    it in JBoss 3.2.5, 3.2.6 and 3.2.7 with no success.
    I did not post any code because it's exactly the same
    that serves as an example in http://www.oracle.com/technology/products/oracle9i/daily/jun07.html
    except for the question that the imports are
    oracle.jdbc.driver.*, not oracle.driver.*.
                        java.sql.Connection connection = null;
                   java.sql.PreparedStatement pstmt = null;
    try {
                                  connection = DAOUtils.getDBConnection(JNDIConstants.DATASOURCE);
    // disable autocommit
    connection.setAutoCommit(false);
    String query =
    "INSERT INTO TABLE (ID, DATO)" +
    " VALUES (TABLE_SEQ.NextVal, ?)";
    pstmt = connection.prepareStatement(query);
    log.debug(pstmt.getClass().getName()); // org.jboss.resource.adapter.jdbc.WrappedPreparedStatement
    // set batch size
    ((OraclePreparedStatement) pstmt).setExecuteBatch(10); // ClassCastException
                                  pstmt.setInt(1, object.getId());
                                  pstmt.executeUpdate();
                                  ((OraclePreparedStatement) pstmt).sendBatch();
                                  connection.commit();
                        } catch (SQLException sqlex) {
                                  connection.rollback();
    sqlex.printStackTrace();
    throw new CustomException(CustomException.DB_ERROR, sqlex);
    } finally {
    DAOUtils.closePreparedStatement(pstmt);
    DAOUtils.closeConnection(connection);
    I'm going to post it also in JBoss forums.
    I'll keep on trying.

  • Setting the update batch of entity at runtime....

    Hi ,
    Is it possible to set the update batching of entity records at runtime when the number of entity instances exceeds a specified number....????
    In other words , to simulate the check the checkbox "Update Batching" of the "Tuning" window of the property sheet of an entity.....in JDev 10.1.3.....
    Many thanks ,
    Simon

    Isn't it possible...????
    Greetings,
    Simon

  • Production order, change/update batch

    Hello,
    I need to change the batch of a produciton order.
    Is there a BAPI that can do the job?

    Hi,
    try this way..
    CALL FUNCTION BAPI_PRODORD_GET_DETAIL'
    "is used to get the Production order detials later call the below fm to update the batch
      w_poitem-po_item       = '0001'.
      CONCATENATE 'External Services - Batch-' w_e_7b1_view-batch_number INTO w_poitem-short_text.  "here Update Batch
      w_poitem-quantity      = w_menge.
      w_poitem-preq_no       = w_banfn.                 "w_child-trans_doc_id .
      w_poitem-preq_item     = w_bnfpo.                 "w_child-trans_line_id.
      APPEND w_poitem TO t_poitem.
    * Do up to X times only when locking error
      DO w_i_retry_count TIMES.
        REFRESH t_po_return.
      CALL FUNCTION BAPI_PRODORD_CHANGE'
        EXPORTING
          purchaseorder = w_expProductionOrder
        TABLES
          return        = t_return
          poitem        = t_poitem
          poitemx       = t_poitemx.
    prabhudas

  • Oracle Updating Batches

    Hi All,
    I wanted to have Batch execute in my java method.
    There are few requirements of that
    1. The data has to be inserted in 2 tables
    2. The data has to be deleted from 2 tables
    3. I have to use Statement for delete as the query uses in clause.
    I have gone through http://web.umr.edu/~ora9i/java.901/a90211/oraperf.htm for Oracle Updating batches.As per the details given in above link, I have few doubts
    1.Can I use 2 or more different Prepared Statements in same Batch?
    For Example:
    //Creating a prepared statement for first table
    ps = conn.prepareStatement(INSERT_INTO_TABLE1);
    ((OraclePreparedStatement)ps).setExecuteBatch (30);
    ps.setInt(1, 23);
    ps.setString(2, "Sales");
    ps.setString(3, "USA");
    ps.executeUpdate(); //JDBC queues this for later execution
    ps.setInt(1, 24);
    ps.setString(2, "Blue Sky");
    ps.setString(3, "Montana");
    ps.executeUpdate(); //JDBC queues this for later execution
    ps.setInt(1, 25);
    ps.setString(2, "Applications");
    ps.setString(3, "India");
    ps.executeUpdate(); //The queue size equals the batch value of 3
    //JDBC sends the requests to the database
    ps.setInt(1, 26);
    ps.setString(2, "HR");
    ps.setString(3, "Mongolia");
    ps.executeUpdate(); //JDBC queues this for later execution
    //Creating a prepared statement for second table
    ps = conn.prepareStatement(INSERT_INTO_TABLE2);
    ((OraclePreparedStatement)ps).setExecuteBatch (30);
    ps.setInt(1, 23);
    ps.setString(2, "Sales");
    ps.setString(3, "USA");
    ps.setInt(4,1);
    ps.executeUpdate(); //JDBC queues this for later execution
    ps.setInt(1, 24);
    ps.setString(2, "Blue Sky");
    ps.setString(3, "Montana");
    ps.setInt(4,1);
    ps.executeUpdate(); //JDBC queues this for later execution
    ps.setInt(1, 25);
    ps.setString(2, "Applications");
    ps.setString(3, "India");
    ps.setInt(4,1);
    ps.executeUpdate(); //The queue size equals the batch value of 3
    //JDBC sends the requests to the database
    ps.setInt(1, 26);
    ps.setString(2, "HR");
    ps.setString(3, "Mongolia");
    ps.executeUpdate(); //JDBC queues this for later execution
    //Atlast calling send batch
    ((OraclePreparedStatement)ps).sendBatch();
    2.Can I use the Oracle Updating Batches for Normal Statements? Can any one elaborate following points
    •     Do not mix standard update batching syntax with Oracle update batching syntax in the same application. The JDBC driver will throw an exception when you mix these syntaxes
    As per above statement, we can’t have both type of updating in a method or in the whole application. Can any one elaborate this point, how it’s possible as every time we have to open a new connection object?
    If we cant make use of both type of batching, then how to implement the Oracle Updating Batches for simple Statements.
    •     The Oracle implementation of standard update batching does not implement true batching for generic statements and callable statements. Although Oracle JDBC supports the use of standard batching syntax for Statement and CallableStatement objects, you will see performance improvement for only PreparedStatement objects.
    3. If first case is possible & if we can use the Oracle Updating Batches for simple Statements, then can we have all the statements in one Batch?
    the query if run from PL/SQL will be like this and in same sequence
    delete from table1 where country in ('USA','GERMANY')// multiple statement of this type
    delete from table2 where country in ('USA','INDIA'))// multiple statement of this type
    insert into table1 values(1,'SALES','USA'))// multiple statement of this type
    insert into table2 values(1,'SALES,'Australia','1')// multiple statement of this type

    Dear Robert Richardson,
    Unfortunately you can only access the Batch/Serial object by an document object.
    If you want to update a Batch fields, then you need to get the document object first, then get its batch object as
    Documents > Document_Lines > BatchNumbers.
    Another thought is to update the field value by UI API when open the OIBT form if possible.
    Best Regards
    Jane Jing
    SAP Business One Forums team

  • Update Batch Classification for a Material

    Hello friends,
    I'm facing the following problem : A specific BTCI wich simulates MB01 was calling another program called SAPLCTMS to update Batch classification for a Material, this program (SAPLCTMS ) seems to be not necessary after the support package Level 57 (we just installed SAP4.6C). I didn't find any note on OSS for this...
    Now i'm trying to use this BAPI instead of BTCI for the Material batch classification  :
    CALL FUNCTION 'BAPI_OBJCL_CHANGE'
             EXPORTING
                  objectkey          = l_objnum
                  objecttable        = 'MCH1'
                  classnum           = 'ZGB_TIDCLASS'
                  classtype          = '022'
                  status             = '1'
                  keydate            = sy-datum
             TABLES
                  allocvaluesnumnew  = t_valuesnum
                  allocvaluescharnew = t_valueschar
                  allocvaluescurrnew = t_valuescurr
                  return             = t_return.
    But its not working, it keeps asking for a batch number. I guess i'm not using the right FM ?
    Any ideas about this ?
    Thank you in advance for your help !
    Best Regards.
    Edited by: Soufiane FAYSSAL on Jun 18, 2009 11:42 AM

    Hello,
    I am Ashok Chelikani. I am working on the same Issue.
    i am getting following message:
    TYPE ID    NUMBER  MESSAGE
    E       |C1   |003          |Characteristic DIMENSIONSCOLOR not found or not valid
    I        |CL   |736          |Assignment was not created 
    my procedure as follows:
    CLEAR: lv_objnum.
    lv_objnum = I_MSEG-MATNR.
    **Get Object Details
    CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
    EXPORTING
    objectkey = lv_objnum
    objecttable = 'MARA'
    classnum = 'Z_RMBCH1'
    classtype = '001' 
    TABLES
    allocvaluesnum = lt_alloc_num
    allocvalueschar = lt_alloc_char
    allocvaluescurr = lt_alloc_curr
    return = lt_return.
    IF NOT lt_return IS INITIAL.
    CLEAR: lv_objnum.
    lv_objnum(18) = I_MSEG-MATNR.
    lv_objnum+18(10) = I_MSEG-CHARG.
    CALL FUNCTION 'BAPI_OBJCL_CHANGE'
    EXPORTING
    objectkey = lV_objnum
    objecttable = 'MCH1'
    classnum = 'Z_RMBCH1'
    classtype = '023' 
    tables
    allocvaluesnumnew = lt_alloc_num
    allocvaluescharnew = lt_alloc_char
    allocvaluescurrnew = lt_alloc_curr
    return = lt_return.
    lt_return returing error message. Kindly help me.

  • Batch classification in ME21N

    Dear,
    We wonder if it is possible within the standard system to classify a Batch in ME21N.
    For Batch Managed Materials we can CREATE a Batch in ME21N (button Create batch in Material Data-tab of the item), but this is only the number.
    Once we perform MIGO for this PO, we can CLASSIFY the Batch (button Classification in the Batch-tab of the item).
    We want to be able to CLASSIFY the Batch already in ME21N however u2026
    (How) can we do that?
    Thanks a lot in advance for any clues,
    Kind regards,
    Bart Jongen

    Hi all,
    This actully return delivery only, but here the goods were received from customer. here my client wants to give GRDO first that is Goods return delivery order first to customer, then after few days with this GRDO customer will come to factory and take the goods.
    While receiving the Goods From customer i will give one batch number in MIGO (For eg 1000 batch no,  5000 is the quantity)
    so that in MMBE under 1000 batch i will come to know that particular customer have given 5000 qty
    If i found any damage, first i do TP to CRSL storage location, then i do Return Delivery order, After issuing this to customer
    After few day customer will come with this order and by that time i will GR by  posting this Return PO(Goods Retrun Delivery order)

  • Update batch number with B1iSN

    Hi
    is it possible to update Batch Number using B1ISN ?
    i think it's the object 106 . i create the object using the dev. tools. , create a BP using this object , and try to create a xml to see the content of the object .
    When a user validate the Stock Management / Item management / batches / update , the scenario is triggered , but i have a error message :
    com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: com.sap.b1i.bizprocessor.BizProcException: BPE001 Nested exception: com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: com.sap.b1i.xcellerator.RejectedException: XCE045 IPO-Step not known: /0010000100.inbound/com.sap.b1i.datasync.ipo/P01/P01.ipo/EventConvertor
    Did i miss something ?( i've already created object using the same procedure , and never had this error ) or does it mean that it's not possible to manage batch numbers using B1ISN ?
    thanks

    I try to query the new created batch number to update the batch properties.
    But cannot found in OBTN table.

Maybe you are looking for

  • Cost Centre Query

    Hi All, What are the standard DSO's and Cubes used in Cost Centre reporting. 0CO_OM_CCA_1 0CO_OM_CCA_7 0CO_OM_CCA_8 0CO_OM_CCA_9 0CO_OM_CCA_10 Can we use 0CO_OM_WBS_1 0CO_OM_WBS_6 0CO_OM_WBS_7 0CO_OM_WBS_8 in place of CCA datasources or are the WBS u

  • Iphoto 08 max photos

    what's the maximum number of photos iPhoto can handle? I have about 15,000 photos and half of them are RAW files from a Canon 20D. I plan on shooting 90% of my photos in the future in RAW mode. is there a limit to when it starts to really crawl? (i h

  • Rating a List Item using jquery with out using User profile service

    Hi, I dont have access to Central admin and i was not not able to enable USer profile service. can i rate a list item in Sharepoint 2010 using any jquery plugin i got the link http://blogs.msdn.com/b/carloshm/archive/2009/08/24/jquery-rating-in-share

  • Error -50 and 2095

    I'm trying to burn music to a cd but it keeps saying error -50 and sometimes it says error 2095 does anyone know what this means?

  • TS4002 icloud is not deleting emails from iphone, ipad,when deleted on imac

    i have enabled icloud on my ipad, icloud, and imac. when i delete an email on one device, it reamins on the other two and has to be deleted manually. all devices have the latest updates, and i have version 10.8.2 loaded on my imac, and version 6 on m