Dear All
Currently we are developing a custom transaction in SAP to mass upload Purchase Info records from a flat file (excel)
We are using the standard Function Module ME_POST_INFORECORD to create the PIR s
We use two different number ranges for Material and Material Group PIR s. This is set up already in SPRO>MM>PIR>Define Number Ranges
Purchasing info record for stock material (Group - IL ) have a number range X
Purchasing info record for material group (non-stock mat.)(Grpup -IN) have number range Y
So when we create a Material PIR manually in SAP it picks X number range and Y number range for Material Group PIR
But when we create Material Groups PIR via the new custom transaction it creates PIR s with Number range X.
Upon checking understood that the standard FM ME_POST_INFORECORD is always defaulting the Number Range Group as IL internally . Seems like a harcoding done by SAP
Wanted to know
- Is there any another FM we should consider while creating Material Group PIR s. Any other Function module provided by SAP for that ?
- Or what can be other way to resolve this ?
Please let me know your views on this.
Regards
Shyam