In XI mapping, how to get number from a number_range object in SAP R/3
HI All,
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.
Scenario:
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.
Many thanks
Shirin
AnandhaKrishnan Balaradjou replied
Hi Shrin,
Believe i havent used RFC_READ. Just copy the code and write you FM in the code snippet which i had mentioed you.
Make sure to declare the same import and export parameters as UDF's input and output parameters.
Regards,
Krish