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 String for the SAP System<br />

l ABAP/4:<br />

© SAP AG<br />

w <strong>Data</strong>base structure<br />

CPICCONN<br />

Field Length<br />

REQID 4<br />

REQTYPE 4<br />

AMODE 1<br />

IMODE 1<br />

FILL1 2<br />

MAND 3<br />

NAME 12<br />

CODE 8<br />

LANG 1<br />

KORR 1<br />

PROG 8<br />

MODN 30<br />

l C:<br />

w SAP_CMLOGON (<br />

output,<br />

&send_length,<br />

reqid,<br />

reqtype,<br />

amode,<br />

client,<br />

usr,<br />

pwd,<br />

language,<br />

prog,<br />

form,<br />

&rc<br />

);<br />

In an ABAP/4 (client) program, you can use the ABAP/4 Dictionary structure CPICCONN. Set the data<br />

and then send the logon string with COMMUNICATION SEND.<br />

In a C program, you first set up the logon string with SAP_CMLOGON and then send it with<br />

CMSEND. The logon string is appropriately formatted and converted from ASCII to EBCDIC because<br />

a logon string is expected in EBCDIC both for R/2 and for R/3.

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

Saved successfully!

Ooh no, something went wrong!