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.

Conversion Commands<br />

© SAP AG<br />

ABAP/4:<br />

C:<br />

TRANSLATE field USING ASC_TO_EBC.<br />

TRANSLATE field USING EBC_TO_ASC.<br />

TRANSLATE field FROM CODE PAGE abc<br />

TO CODE PAGE xyz.<br />

CMCNVO ( output, &send_length, &rc );<br />

CMCNVI ( input, &received_length, &rc);<br />

SAP_CMLOADCONVTAB()<br />

SAP_CMMODCONVTAB()<br />

If an EBCDIC host system is attempting to communicate with an R/3 ASCII machine, the data must be<br />

converted, but it is not important whether the sending program or the receiving program performs the<br />

conversion.<br />

You can use include programs (RSEBCASC in ABAP/4, cpic.h in C) to convert data. It is even possible<br />

to convert between code pages. You must maintain the relevant code page in the SAP system. In R/3,<br />

you do this with the Transaction SPAD.<br />

CMCNVO() converts from ASCII to EBCDIC.<br />

CMCNVI() converts from EBCDIC to ASCII.<br />

For the C functions SAP_CMLOADCONVTAB() and SAP_CMMODCONVTAB(), you use a special<br />

conversion table in the file convert.txt (for the precise syntax, see the online manual BC<br />

Communication: Programming).

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

Saved successfully!

Ooh no, something went wrong!