17.08.2013 Views

Data Interfaces

Data Interfaces

Data Interfaces

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Standard Includes (<strong>Data</strong> Definitions)<br />

ABAP/4 C<br />

REPORT XYZ. XYZ.<br />

... ...<br />

INCLUDE RSCPICDF.<br />

INCLUDE RSEBCASC.<br />

... ...<br />

© SAP AG<br />

...<br />

#include <br />

oder<br />

#include "{pathname}/cpic.h"<br />

For CPI-C programs, both ABAP/4 and C contain includes (reports or files) with data definitions on the<br />

one hand and conversion tables on the other.<br />

ABAP/4:<br />

RSCPICDF: This report performs all CPI-C definitions as specified by IBM or X/Open. It defines, for<br />

example, the different return codes.<br />

RSEBCASC: This include program contains both the conversion tables for converting EBCDIC to<br />

ASCII<br />

and vice-versa.<br />

C program:<br />

Here, you have to include the header file cpic.h. You can specify the file name explicitly or the file must<br />

exist in the central include directory. In this file, all constants, structures and function prototypes are<br />

declared.<br />

For the data conversion, you can use the file convert.txt. The explicit path to this file is declared via the<br />

environment variable CONVERT.<br />

...

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!