Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Function Module for generating Randon Numbers

Hi,

Is there any Function Module to generate Random Numbers automatically.

Say for example: The Lower Limit is 10 and the Higher imit is 30.

So is should generete the random numbers between 10 and 30. and it should store in he Data Base level.

Please help me in this ascept.

Thanks & Regards:

JSR

Tags:
Former Member
Former Member replied

Hello

You may try class CL_ABAP_RANDOM if it is available on your system.

Alternatives:

CL_ABAP_RANDOM_INT
GENERAL_GET_RANDOM_INT (fm)

Regards

Uwe

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question