on 2019 Oct 17 6:31 AM
Hi,
I want to create a transfer order using material document number. I want to pass storage type and bin as well to the BAPI. Could you please suggest bapi with sample code. I know this fn module L_TO_CREATE_SINGLE to create a transfer order but where to pass material document number and year to this fn module.
Regards,
Ravi
I am not aware of FMs where you pass a material document+ year and you create a transfer order. Still, this does not mean that what you ask is impossible, you just need to do a bit more work than you expected.
There are 2 scenarios for creating transfer orders which involve material document creation- you can have a transfer requirement or you can have posting change. You can find out whether a material document generated transfer requirement from the value of MSEG-TBNUUM. If there is posting change the relevant field is MSEG-UBNUM. For each of these scenarios there are separate FM.
For transfer requirements this is L_TO_CREATE_TR and for posting changes this is L_TO_CREATE_POSTING_CHANGE.
So you need first to check for the material document which of these cases you need to handle and then use the corresponding FM to create the transfer order.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.