Skip to Content
avatar image
Former Member

Create characteristics for new batch created from idoc type MBGMCR03

Hi Experts,

We have a scenario where material,batch data coming from inbound idoc type MBGMCR03. As per requirement we need to create characteristic for this material+batch while idoc is processed. The batch can be existing or new to create also.

We were trying to use exit EXIT_SAPLV01D_001 for this purpose but issue is that, if a batch is new its not yet created at point when this exit is called so BAPI_OBJCL_CHANGE that we intend to use to crate characteritic gives error that "Object does not exists".

And if it is case of existing batch exit EXIT_SAPLV01D_001 is not getting triggered so our logic is not called.

So can you please let me know which other enhancements I can use for this purpose.

Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • May 12, 2017 at 01:43 PM

    Please look at the following thread:

    I think maybe you should consider using some or all of these exits:

    Batch classification


    It is called in Function Modules VB_CREATE_BATCH and VB_CHANGE_BATCH to determine whether classification and exits should be executed. In other words, it’s possible make the system ignore the classification routines. Just set the parameters TYPE_OF_CLASSIFYING and EXTENDED_CLASSIFYING accordingly.


    It’s called in VB_CREATE_BATCH and VB_CHANGE_BATCH to set/change free characteristics. Free characteristics are those that do not begin with “LOBM_”.


    It is used to fill the classification data in MM transactions.

    Add comment
    10|10000 characters needed characters exceeded

    • There area lot of other exits listed in the thread you may need to check.

      What is being triggered by your idoc? Do you show a material movement in your MB51 document list? If so, what transaction is creating it?

      If you do, I would have to think one or more of those exits are called.


  • avatar image
    Former Member
    May 12, 2017 at 07:12 PM

    " you need to create a characteristic for the material batch ..!"

    What do you mean; for same material in different batch you may have different characteristics..? This can not happen as you assign the characteristic in Material master-> classification tab class 023

    And you dont directly assign the characteristic, but you assign it to Class, which derives the characteristics.

    If your material characteristics are changing during transaction; its not a same material.

    Your requirement is incorrect; you can have different results on characteristics; but you cannot change the characteristic itself.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Alfred,

      I understand your approach. But what is it that you are trying to full fill. Can you explain why you are doing this; & what you want to achieve?



  • May 15, 2017 at 01:15 PM

    SAP uses separate BAPIs to create movements, batches and classification

    BAPIs more or less correspond to IDOCs, e.g. when I load initial stocks with IDoc method in a migration project then I have 3 LSMWs, one for each of those objects.

    OSS note 833668 - Creating batches in the inbound delivery using IDOC also explains the limitation of the inbound delivery Idoc.

    From this point of view you should be very explicit in describing your business case so that we can help thinking about a possible solution.

    Add comment
    10|10000 characters needed characters exceeded