Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
Showing results for 
Search instead for 
Did you mean: 

Changing Material Document Type while Posting GR

0 Kudos


Is it possible to change the document type of material document number while posting the GR.

The method MB_DOCUMENT_BEFORE_UPDATE of BADI MB_DOCUMENT_BADI has all the necessary parameters required to change the document type.

I do not have any data with me as of now, so just need a confirmation whether this is possible or not.

If not possible, any other process ???

Thanks in Advance



Active Contributor
0 Kudos


it is possible and u can use it....but make sure when the materials doc# is generated. if this is the place it is generating then u can very well use it or locate for an exit

0 Kudos

Thanks Prabhu.

The material document is already existing and I have to change the associated document type based on some condition of GR.

Hope it is possible.

Active Contributor
0 Kudos

yes u can go 4 it

Former Member
0 Kudos

Hi Amol,

Can you please suggest how can I change the document type because all the parameters to that BADI are import only. Is there any function module module to do that for us.

Thanks in Advance