PackagePackagetypeA library you install and call yourself.See every one →What this type is →independently maintainedindependently maintainedoriginPublished by one person or a small company outside SAP. Says nothing about quality; the readings say that.See every one →

abapFaker

Generates fake data in ABAP, for bootstrapping a database, creating XML documents, stress-testing a persistence layer or anonymising data taken from a production service.

Getting realistic-looking data into a system otherwise means writing it by hand. abapFaker generates it instead: a faker generator holds many generator properties, such as name and address, packaged into providers, and zcl_faker's class constructor takes a locale so the values come back localized. Localized providers ship for German, US English and Brazilian Portuguese, and the constructor falls back to the default en_US locale when a locale has no provider of its own. The report Z_ABAP_FAKER_DEMO shows it running, the list of providers is in the extended docs, and the maintainer credits joke2k/faker for the design.

Facts

Last pushLicenceMIT

Where it sits

Lives in
Provides
Seed dataABAPSeed datacapabilityGetting realistic data into a service so it can be developed and demonstrated — initial data, per-tenant content, and believable volumes for testing.

Who is behind it

Uwe FetzerUwe FetzerPersonMaintains this
In the atlas: maintains 1, contributes to 5
@se38
maintainerGabbianiiiiPersonContributes to this
In the atlas: contributes to 1
@gabbianiiii
Gregor WolfPersonContributes to this
In the atlas: maintains 17, contributes to 59, wrote 2
@gregorwolf
Tom SchmelzerPersonContributes to this
In the atlas: contributes to 7
@schmelto
3 contributors

Before choosing this

Signals

ActivityQuietNo published releases; repository quiet for 53 months

It publishes no releases, and its repository has been quiet for at least 24 full months. This may be normal for stable software; check whether its current state still fits your use.

What it declares

Every artifact

Type
Package
Origin
Independently maintained

As a package

Where it runs
Inside its host
Distributed through
abapGit

Connections1

README

quoted from se38/abapFaker under MIT, read
se38/abapFaker/README.rstOn GitHub

abapFaker is an ABAP package that generates fake data for you. Whether you need to bootstrap your database, create good-looking XML documents, fill-in your persistence to stress test it, or anonymize data taken from a production service, Faker is for you.

Design inspired by https://github.com/joke2k/faker.


::

_|_|_|_|          _|
_|        _|_|_|  _|  _|      _|_|    _|  _|_|
_|_|_|  _|    _|  _|_|      _|_|_|_|  _|_|
_|      _|    _|  _|  _|    _|        _|
_|        _|_|_|  _|    _|    _|_|_|  _|

|docs| |license|

For more details, see the extended docs_.

Installation

This project is supported by ABAPGit Project_. Download ZIP file or integrate this project to him.

Basic Usage

See also demo report Z_ABAP_FAKER_DEMO_.

Providers

Each of the generator properties (like name, address...) are called "fake". A faker generator has many of them, packaged in "providers".

::

DATA(faker) = NEW zcl_faker( ).
cl_demo_output=>display( |{ faker->person->first_name( ) } { faker->person->last_name( ) }| ).

Check the extended docs_ for a list of providers_.

Localization

zcl_faker's class constructor can take a locale as an argument, to return localized data. If no localized provider is found, the constructor falls back to the default en_US locale.

::

METHOD constructor.

_locale = SWITCH #( i_locale
                    WHEN `` THEN get_locale( )
                    ELSE i_locale
                  ).
...

You can check available abapFaker locales in the source code, under the providers package. The localization of abapFaker is an ongoing process, for which we need your help. Please don't hesitate to create a localized provider for your own locale and submit a Pull Request (PR).

Included localized providers:

  • de\_DE <https://abapfaker.readthedocs.io/en/latest/locales/de_DE/index.html>__ - German
  • en\_US <https://abapfaker.readthedocs.io/en/latest/locales/en_US/index.html>__ - English (United States)
  • pt\_BR <https://abapfaker.readthedocs.io/en/latest/locales/pt_BR/index.html>__ - Portuguese (Brazil)

License

abapFaker is released under the MIT License. See the bundled LICENSE_ file for details.

.. _extended docs: https://abapfaker.readthedocs.io/en/latest/ .. _ABAPGit Project: https://github.com/larshp/abapGit .. _Z_ABAP_FAKER_DEMO: https://raw.githubusercontent.com/se38/abapFaker/master/src/z_abap_faker_demo.prog.abap .. _providers: https://abapfaker.readthedocs.io/en/latest/ .. _LICENSE: https://github.com/se38/abapFaker/blob/master/LICENSE

.. |docs| image:: https://readthedocs.org/projects/abapfaker/badge/?version=latest :target: https://abapfaker.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status .. |license| image:: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square :target: https://raw.githubusercontent.com/se38/abapfaker/master/LICENSE :alt: Package license

MIT, read
Seed data
  1. @animb1996/cds-data-driftCompares a CAP project's CSV data with its database rowsfrom CAP
  2. cap-js-mockdataCSV seed data generated from @Mockdata annotations with Fakerfrom CAP
  3. @sap/cds-common-contentISO content for CAP's countries, languages, currencies and timezonesfrom CAP
  4. @sap/cdsCAP Node.js runtimefrom CAP
  5. cap-mock-generatorFills db/data with relationally consistent CSV from a .cds schemafrom CAP

Details

Sources3
dotabapdiscovered herechecked
github.com/se38/abapFakertree, pushes, contributors, CIchecked
README.rstquoted, and what the entry declareschecked

Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.

Compatibility and provenance
discovered viadotabap
first seen in the atlas
ecosystem and domainabap, developer-experience
abaplint
issues under its own abaplint configuration1,075
lines7,406
statements1,541
objects34
files66
analysed, master
abaplint version2.120.84
Contributors3

From the repository’s contributor list, .

History in the atlas1
  1. First seen.
For your agent
Ref
artifact:se38-abapfaker
JSON
/artifacts/se38-abapfaker.json
MCP
Connecting an agent