Skip to Content

Create characteristics for new batch created from idoc type MBGMCR03

May 11, 2017 at 03:43 PM


avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Craig S
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.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi Craig,

Thanks for reply.

We checked this exits. EXIT_SAPLV01Z_012 and EXIT_SAPLV01Z_014 are called through VB_CREATE_BATCH and MSC1n tcode. But this isn't called while processing inbound idoc MBGMCR03. Also EXIT_SAPMM07M_004 is no triggered from idoc MBGMCR03. so this seems not relevant to us. Is there any other way to achieve this?




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.


Anand Sagar Sethi 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.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi Anand,

Thanks for reply.

Yes. This characteristics will be created at batch level which will be then visible under classification tab in tcode MSC3N. Batch will be present under material. We need to create it during processing of inbound idoc MBGMCR03 only and not tcode. Let me know if you require more info.


Alfred Dbritto


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?



Jürgen L
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.

10 |10000 characters needed characters left characters exceeded