Skip to Content

BAPI_BATCH_CHANGE not updating batch characteristics automatically after UD

Hi Guys,

I am trying to automatically update the usage decision using BAPI_INSPLOT_SETUSAGEDECISION and after UD happens i have to update the batch master with Available from date using BAPI_BATCH_CHANGE. This in-turn should automatically update the batch characteristics(Availability Date) in batch classification which is not happening. But if the user goes to the batch and clicks on change batch and goes to classification tab, then it gets updated.

I want the characteristics to get updated by BAPI_BATCH_CHANGE which should be updated automatically as per standard SAP. please let me know how do i do this. Am i missing something?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Nov 08, 2019 at 08:55 AM

    Hello,

    The flag do DOCLASSIFY in parameter BATCHCONTROLFIELDS must be set in BAPIs BAPI_BATCH_CHANGE.

    Then date will be filled correctly in the batch master transaction MSC3N.

    Also refer SAP FAQ note 619913 - FAQ: Basic batch management functions

    Question: What do I need to consider when maintaining batch data or using BAPIs for classification?

    Answer: You can use the BAPIs BAPI_BATCH_CREATE, BAPI_BATCH_CHANGE, and BAPI_BATCH_SAVE_REPLICA to maintain batch data.These three BAPIs implicitly perform a separate COMMIT WORK.If a COMMIT WORK AND WAIT is required, or if batch maintenance is to be included in a transaction, the implicit COMMIT performed by the BAPIs must be suppressed. This is done by calling the function module TRANSACTION_BEGIN before calling the individual BAPI. The calling program thus takes over the transaction control. This is ended by calling the function module TRANSACTION_END or BAPI_TRANSACTION_COMMIT.

    Best Regards,

    R.Brahmankar

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 08, 2019 at 12:27 PM

    Thanks Brahmankar, that solved my prob.

    Add a comment
    10|10000 characters needed characters exceeded