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.

Logon to the Basis System<br />

ABAP/4<br />

REPORT RSCPIC01.<br />

... ...<br />

TABLES: CPICCONN.<br />

CMINIT CMINIT ... ...<br />

INCLUDE RSCPICDF.<br />

CMALLC CMALLC ... ...<br />

INCLUDE RSEBCASC.<br />

... .<br />

COMMUNICATION INIT ...<br />

SAP_CMLOGON ( (<br />

COMMUNICATION ALLOCATE ...<br />

output, output,<br />

CPICCONN-REQID = 'CONN'.<br />

&sendlength,<br />

&sendlength,<br />

CPICCONN-REQTYPE = 'CPIC'.<br />

"CONN", "CONN",<br />

CPICCONN-AMODE = '1'.<br />

"CPIC", "CPIC",<br />

...<br />

'1', '1',<br />

CPICCONN-PROG = 'ABAPPROG'.<br />

... ...<br />

CPICCONN-MODN = 'FORM1'.<br />

"ABAPPROG",<br />

"FORM1"<br />

TRANSLATE CPICCONN USING ASC_TO_EBC.<br />

"FORM1" ); );<br />

COMMUNICATION SEND ...<br />

CMSEND<br />

BUFFER CPICCONN ... CMSEND ( ( convid, convid, output, output, ... ... ); );<br />

CMRCV<br />

COMMUNICATION RECEIVE ...<br />

CMRCV ( ( convid, convid, input, input, ... ... ); );<br />

BUFFER CPICCONN ... ... ...<br />

TRANSLATE CPICCONN USING EBC_TO_ASC.<br />

...<br />

© SAP AG<br />

..<br />

.<br />

..<br />

.<br />

The logon data record must always be sent to an SAP System in EBCDIC format.<br />

In ABAP/4, you can use the TRANSLATE statement for data conversion. The include program<br />

RSEBCASC contains conversion tables for a conversion to IBM’s EBCDIC character set, but you can<br />

also specify certain code pages explicitly.<br />

In C, you can make use of the relevant functionality via the SAP libraries.<br />

C

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

Saved successfully!

Ooh no, something went wrong!