Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Return binary data via RFC

Tags:

abap

pyrfc

saprfc

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

like image 401
guettli Avatar asked Jun 04 '26 18:06

guettli


1 Answers

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
like image 108
Pilot Avatar answered Jun 08 '26 00:06

Pilot



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!