ZwdCSV
A CSV parser and generator for ABAP that follows RFC 4180, including line breaks embedded inside quoted fields, for strings and for files on the application server and the frontend.
A CSV reader that just splits on line breaks fails once a field itself contains one; ZwdCSV should respect RFC 4180, and because of that 'the entire CSV string is needed for correct parsing' rather than being read line by line. ZCL_WD_CSV parses and generates CSV strings directly with PARSE_STRING and GENERATE_STRING, while ZCL_WD_CSV_FILE reads and writes CSV files on the application server and the frontend, assuming UTF-8 encoding. A separate parser and generator, ZwdCSV-Cloud, covers ABAP Cloud, where this version does not run.
Facts
Where it sits
Who is behind it
In the atlas: maintains 3, contributes to 10@WegnerDanmaintainer
What it declares
Every artifact
- Type
- Package
- Origin
- Independently maintained
As a package
- Where it runs
- does not say
- Distributed through
- does not say
Connections
Turning typed data into JSON, CSV or protobuf and back
Download
README
quoted from WegnerDan/ZwdCSV under MIT, readZwdCSV
CSV Parser and Generator for ABAP
The Parser should respect RFC 4180, especially end-of-line characters inside of cells. Because of this, the entire CSV string is needed for correct parsing.
Class ZCL_WD_CSV contains Methods PARSE_STRING and GENERATE_STRING for directly handling csv strings.
Class ZCL_WD_CSV_FILE contains Methods for dealing with CSV files (reading and writing files from/to application server and frontend).
UTF-8 Encoding for methods of class ZCL_WD_CSV_FILE is assumed.
ABAP Cloud
A version of this parser/generator for ABAP Cloud can be found here: ZwdCSV-Cloud
History
Notes
added some unit tests and bug fixes for bugs discovered by those unit tests :)
Others providing
Compare all 12 on the Serialisation page →- ABAP JSON APIABAP JSON APIA JSON renderer and parser for ABAP built on the standard identity transformation, adding automatic camelCase conversion and support for polymorphic arrays.independent, abapJSON renderer and parser for ABAP with camelCase conversionfrom ABAP
- zcl_mdp_jsonzcl_mdp_jsonAn ABAP library that generates and parses JSON strings, documented in the repository's wiki rather than its README, which names no ABAP release or installation method.independent, abapABAP library generating and parsing JSON stringsfrom ABAP
- JSON2ABAPTypeJSON2ABAPTypeA generator that produces an ABAP type definition from a JSON structure, with the repository holding the code and pointing to a blog article and an SAP blog post for the rest.independent, abapGenerator of ABAP type definitions from JSON structuresfrom ABAP
- abap-protobufabap-protobufAn implementation of Protocol Buffers in ABAP, stating support for proto2 syntax only; its repository description names gRPC, which the README says nothing further about.independent, abapProtocol Buffers (proto2) implementation in ABAPfrom ABAP
- ZASISZASISThe ABAP String Interpreter: an ABAP component that reads named field values out of an unstructured string, such as a barcode or scanner payload, through regex RuleSets configured in a Fiori app and called from ABAP or over HTTP.independent, abapRegex RuleSets that read barcode strings into named fieldsfrom ABAP
- ABAP ArchitectABAP ArchitectAn Eclipse plug-in that generates ABAP type definitions and parsing code from a pasted JSON or XML sample and creates the matching DDIC objects in a connected system over ADT.independent, abapEclipse plug-in turning JSON or XML into ABAP types and DDIC objectsfrom ABAP
- ABAP to JSON serializer and deserializerABAP to JSON serializer and deserializerAn open-source Z* version of SAP's standard /UI2/CL_JSON class, which serialises ABAP data to JSON and reads it back, installed with abapGit and needing SAP_BASIS 7.31 or later.sap official, abapOpen-source Z* version of /UI2/CL_JSON for ABAP to JSONfrom ABAP
- ajsonajsonA JSON parser and serialiser for ABAP that parses into a flexible, unstructured node tree rather than a fixed target structure, converting to one only when asked through to_abap.independent, abapJSON parser and serialiser for ABAP with a node treefrom ABAP
- sbcgua/text2tabsbcgua/text2tabA library that parses TAB-delimited text into an internal table of any flat ABAP structure, with non-strict, header and type-less modes, and serialises tables back to text in configurable formats.independent, abapParser of TAB-delimited text into ABAP internal tables and backfrom ABAP
- ABAP JSON Encoder/DecoderABAP JSON Encoder/DecoderA JSON encoder and decoder for ABAP, modelled on Go's encoding/json package, installed through abapGit with no other required package and documentation still marked under construction.independent, abapJSON encoder and decoder for ABAP, modelled on Go's encoding/jsonfrom ABAP
- ABAP CSV ManagerABAP CSV ManagerA configurable CSV reader and writer for ABAP, with per-field format, validation and column-mapping options, reading into a flat or a dynamically typed internal table.independent, abapConfigurable CSV reader and writer for ABAPfrom ABAP
Details
Sources
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
abaplint
History in the atlas
- First seen.
For your agent
- Ref
artifact:wegnerdan-zwdcsv- JSON
- /artifacts/wegnerdan-zwdcsv.json
- MCP
- Connecting an agent