SAP for Utilities Discussions
Connect with fellow SAP users to share best practices, troubleshoot challenges, and collaborate on building a sustainable energy future. Join the discussion.
cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve Random Contract Account Numbers

Former Member
0 Kudos

Hello Experts,

I need to retrieve random contract account numbers based on a total number inserted by the user:

Example;

The user input a 10 in the screen field, I need to retrieve 10 random contract account number that belong to different business partners, I know the fkkvkp table has the contract account for the business partner but can you please explain how retrieve random records for different business partners, Thanks in advance.

1 REPLY 1

william_eastman
Advisor
Advisor
0 Kudos

Norman:

Class CL_ABAP_RANDOM_INT can be used to enable this scenario.

regards,

bill.