on 09-22-2015 12:16 PM
Dear Experts
I have a requirement like this.
When the Material Master is created in MM01, then system should create Inspection Plan (QP01) automatically for that material.
How can archive this?
Please help
Regards
Mohammad.
Hi Mohammad
To Start with You have to use badi >BADI_MATERIAL_REF to create default values in material master.These default values should populate entries in QMAT table along with MARA & MARC for QM view.
Then use
User Exit : MGA00001 Material Master (Industry): Checks and Enhancements
Which will Trigger bapi BAPI_INSPECTIONPLAN_CREATE on material master creation...Although I have written it in 3 lines but its more complex than it looks...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mohammad,
We can achieve this requirement..
but for what purpose you are asking this requirement could you please explain to us for understanding
Quality inspection plan : is a master data from the Quality prospective it will indicate that how you are going to inspect the material
without knowing any parameters simply creation is not use as per my view
Regards,
Venkatesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should question the (technical) requirement.... where does it come from? It is a technical requirement, try to find out what your business requirement really is.
MH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mohammad,
I am a bit curious to understand the reasons for such a requirement. All materials should have different types of testing requirements, dependent of material types, plants, etc. Hence there can't be any unique solution and this process may lead to creation of many duplicate entries. So you need to be very careful with the upload structure to use for any proposed enhancements to fix your requirement.
Please note that creating of Material Master in MM01 is a separate activity and creating an inspection plan in QP01 is a separate activity. Once material is created and it's view is extended to plant (MARC) then only you can assign inspection type in QM View. After that you can link Material with inspection plan, which is having compatible usage to work in-sync.
There is nothing standard available to do both the things together. You can try the below approach working together with your ABAP team -
a) Your upload file for custom transaction should have all entries for creating material master, assigning to particular plant, inspection type, MIC's to be assigned, usage of the Group Counter, etc.
b) Use a custom transaction to create material master and assign QM Vew with appropriate inspection type [Example - 01, 04, 89...] and commit the same to database, and import the material number in memory.
b) Once the database commit is performed, launch the 2nd part of this Z-program to create to create inspection plan with inputs like appropriate usage [Example 3, 5... etc], MIC, DMR, sampling procedure, etc. Get the memory import of 'material number' form previous part, and use the same to link it with the inspection plan + Group Counter.
NOTE: The above proposed logic considers that material will have internal number range, hence the number will get committed only after you save the record in database.
Thanks,
Arijit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.