guettli
guettli

Reputation: 27845

Return binary data via RFC

I want to return binary data in ABAP, for example a PNG image file.

Which data type should I use? string, xstring, ...?

I use the PyRFC SDK: https://github.com/SAP/PyRFC

Upvotes: 3

Views: 2086

Answers (1)

Pilot
Pilot

Reputation: 441

xstring

Sidenotes if you have large data:

  • max size of an xstring is 2GB (depending also on profile parameter ztta/max_memreq_MB)
  • If you use an internal table of xstrings (e.g. dictionary type XSTRINGS_TABLE), dynamic memory allocation is easier because it will not be requested in one go, as is the case for a flat xstring

Upvotes: 4

Related Questions