
Send HTTP GET and POST Requests in ABAP with Error Handling
In classic ABAP, call a REST API with cl_http_client: create the client, set method and body, then send, receive and close. Check sy-subrc after each step.…

In classic ABAP, call a REST API with cl_http_client: create the client, set method and body, then send, receive and close. Check sy-subrc after each step.…

A split on the separator is sufficient only when fields cannot contain the separator, quotes or line breaks. This parser reads well-formed input with a single-character…

To convert JSON to an ABAP object, define a type that mirrors the JSON, then call /ui2/cl_json=>deserialize( ). Set pretty_name to the naming convention used in…

Call /ui2/cl_json=>serialize( ) to turn any ABAP structure or internal table into a JSON string. Use pretty_name to get camelCase names and compress to leave out…

DATA(name) declares a variable at the position where it first receives a value. The compiler takes the type from the context. Inline declarations are available since…

To read a local file in SAP GUI, open a file dialog, upload the file in binary mode and convert the table to an xstring. Pass…

Convert the xstring to a binary table and pass its exact length as bin_filesize. The same code works for text, Excel and PDF content, because the…

An xstring is a sequence of bytes; the hexadecimal digits you see in the debugger are only its display. Converting between text and bytes always needs…

POPUP_GET_VALUES shows an input popup for a list of Dictionary fields, so you do not have to create a screen. Fill an internal table of type…

cl_salv_table displays an internal table with a flat row type as an ALV list without a manually built field catalog. factory and display are all you…