07-11-2008 1:02 PM
hey,
i would like to create test data. for this I would like to
create random prices. In Java we have a function random
wherewhit we are able to create different numbers.
Is there an equivalent in ABAP?
thx
chris
07-11-2008 1:05 PM
Hello
RANDOM_AMOUNT
RANDOM_C
RANDOM_C_BY_SET
RANDOM_F8
RANDOM_I2
RANDOM_I4
RANDOM_INITIALIZE
RANDOM_P
choose approaching
07-11-2008 1:05 PM
Hello
RANDOM_AMOUNT
RANDOM_C
RANDOM_C_BY_SET
RANDOM_F8
RANDOM_I2
RANDOM_I4
RANDOM_INITIALIZE
RANDOM_P
choose approaching
07-11-2008 1:21 PM
Hello,
are these functions of ABAP Objects?
I'm new to ABAP and just using ABAP without Objects til now.
Would you be so kind to give me an example how to use this?
thx
chris
07-11-2008 1:29 PM
Hello
It's functions. For example:
CALL FUNCTION 'RANDOM_AMOUNT'
EXPORTING
RND_MIN = '1'
RND_MAX = '10000000'
VALCURR = 'USD'
IMPORTING
RND_AMOUNT = BETRAG
EXCEPTIONS
OTHERS = 1.
07-11-2008 1:51 PM
The I've got an ABAP dump with the message:
The function module "RANDOM_AMOUNT" is called,
but cannot be found in the library.
So could it be, that we need a special add-On to use
the classes of ABAP OO??
07-14-2008 8:54 AM
07-14-2008 9:23 AM
07-11-2008 1:21 PM