{"id":15148566,"url":"https://github.com/zenrosadira/abap-tbox-random-data","last_synced_at":"2026-02-15T15:06:03.933Z","repository":{"id":167378576,"uuid":"623032514","full_name":"zenrosadira/abap-tbox-random-data","owner":"zenrosadira","description":"Simple ABAP random data generator","archived":false,"fork":false,"pushed_at":"2023-05-19T20:59:42.000Z","size":429,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-18T09:03:25.515Z","etag":null,"topics":["abap","abap-development","abap-oo","sap"],"latest_commit_sha":null,"homepage":"","language":"ABAP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zenrosadira.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-03T14:57:02.000Z","updated_at":"2024-07-17T09:20:57.000Z","dependencies_parsed_at":"2023-07-17T21:31:00.292Z","dependency_job_id":null,"html_url":"https://github.com/zenrosadira/abap-tbox-random-data","commit_stats":null,"previous_names":["zenrosadira/abap-tbox-random-data"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zenrosadira/abap-tbox-random-data","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenrosadira%2Fabap-tbox-random-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenrosadira%2Fabap-tbox-random-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenrosadira%2Fabap-tbox-random-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenrosadira%2Fabap-tbox-random-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zenrosadira","download_url":"https://codeload.github.com/zenrosadira/abap-tbox-random-data/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenrosadira%2Fabap-tbox-random-data/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29481925,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T11:35:25.641Z","status":"ssl_error","status_checked_at":"2026-02-15T11:34:57.128Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["abap","abap-development","abap-oo","sap"],"created_at":"2024-09-26T13:20:29.653Z","updated_at":"2026-02-15T15:06:03.890Z","avatar_url":"https://github.com/zenrosadira.png","language":"ABAP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ABAP Random Data Generator\n\n![ex1](/img/ex1.jpg)\n\nA utility class that simplifies the generation of random data and allows for quick population of variables (tables, structures, scalar data). \nThe data generated is devoid of meaning but is consistent with types domain: if fixed values are expected, one of these values will be randomly assigned; if a value table is assigned, values will be randomly chosen from it. Additionally, it is possible to configure ranges and value dimensions. \n\n It can be useful for preparing performance stress tests or managing test automation.\n \n ## Quick Start\n \n ```abap\n * To generate a random table\n DATA t_sflight TYPE TABLE OF sflight.\n DATA(tab_rand) = ztbox_cl_rand=\u003etable( ).\n tab_rand-\u003egenerate( IMPORTING table = t_sflight ).\n \n * To generate a random structure\n DATA s_sflight TYPE sflight.\n DATA(str_rand) = ztbox_cl_rand=\u003estruct( ).\n str_rand-\u003egenerate( IMPORTING struct = s_sflight ).\n \n * To generate a random value\n DATA amount TYPE wrbtr.\n DATA(val_rand) = ztbox_cl_rand=\u003evalue( ).\n val_rand-\u003egenerate( IMPORTING value = amount ).\n ```\n \n ## Configuration\n\n You can decide the number of rows in the generated table\n \n ```abap\n DATA t_sbook TYPE TABLE OF sbook.\n DATA(tab_rand) = ztbox_cl_rand=\u003etable( ).\n\n tab_rand-\u003erows( `10000` ). \" Default is 100\n tab_rand-\u003egenerate( IMPORTING table = t_sbook ). \n \" Now t_sbook has exactly 10000 rows \n ```\n The number of rows can also be a range in the form `[min, max]`\n \n ```abap\n tab_rand-\u003erows( `[10, 2000]` ).\n tab_rand-\u003egenerate( IMPORTING table = t_sbook ). \n \" Now t_sbook has a number of rows randomly chosen between 10 and 2000\n ```\n You can manage fields configuration using `-\u003efield( )` method.\n \n ```abap\n tab_rand-\u003efield( `MANDT` )-\u003efixed( sy-mandt ). \" To always assign the same value\n tab_rand-\u003efield( `FORCURAM` )-\u003erange( `[1, 1000]` ). \" To assign value randomly chosen from an interval\n tab_rand-\u003efield( `FLDATE` )-\u003erange( `[19990101, 20251231]` ). \" As above, also applies to dates and times\n tab_rand-\u003efield( `FORCURAM` )-\u003edecimals( 2 ). \" To set decimals precision for packed/float fields\n tab_rand-\u003efield( `PASSNAME` )-\u003elen( `5` ). \" To assign char-value with fixed length\n tab_rand-\u003efield( `PASSNAME` )-\u003elen( `[3, 14]` ). \" To assign char-value with a randomly chosen length\n tab_rand-\u003efield( `PASSNAME` )-\u003eascii( ). \" To genere words using ASCII characters\n tab_rand-\u003efield( `PASSNAME` )-\u003ewords_upper( ). \" To generate words in upper case\n tab_rand-\u003efield( `WUNIT` )-\u003euse_check_table( abap_false ). \" To de-activate the use of domain check-table\n \n tab_rand-\u003egenerate( IMPORTING table = t_sbook ).\n ```\n The same `-\u003efield( )` configurations can be applied to structure generator too.\n \n ```abap\n DATA s_uni TYPE bapimtcs_unicode.\n DATA(str_rand) = ztbox_cl_rand=\u003estruct( ).\n * For string field generation you can set the number of words to generate and the length of each word\n * (for both, fixed or randomly chosen from a range),\n str_rand-\u003efield( `DATA` )-\u003ewords_number( `[1, 15]` )-\u003ewords_len( `[5, 10]` ). \n \n str_rand-\u003egenerate( IMPORTING struct = s_uni ).\n ```\n\nAnd you can configure the single value too.\n\n```abap\nDATA order_num TYPE n LENGTH 10.\nDATA(val_rand) = ztbox_cl_rand=\u003evalue( ).\nval_rand-\u003elen( `6` ).\nval_rand-\u003egenerate( IMPORTING value = order_num ). \" It could be any value of the form `0000XXXXXX`.\n```\n\n## Installation\nInstall this project using [abapGit](https://abapgit.org/) ![abapGit](https://docs.abapgit.org/img/favicon.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenrosadira%2Fabap-tbox-random-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzenrosadira%2Fabap-tbox-random-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenrosadira%2Fabap-tbox-random-data/lists"}