In XI mapping, how to get number from a number_range object in SAP R/3
I have a scenario where I need to read a Number_range object in SAP R/3 or ABAP XI and retreive the current number.
I need to use this number during the message mapping.
(I read about JCO and RFC, but am a little confused about how-to and what is the correct approach)
Just to let you know, I do not want to pass this number in the original IDOC coming from IDOC, so I need this lookup.
In MM, make a call to SAP.
Get the latest number from SNRO( number-range object)
Use this number in mapping.
Any help pointers, greatly appreciated.