ebook img

RFC C++ Class Library (BC-FES-AIT) PDF

354 Pages·2001·1.16 MB·English
by  
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview RFC C++ Class Library (BC-FES-AIT)

RFC C++ Class Library (BC-FES-AIT) A E D S E F C B . P L E H Release 4.6C RFC C++ Class Library (BC-FES-AIT) SAP AG Copyright © Copyright 2001 SAP AG. Alle Rechte vorbehalten. Weitergabe und Vervielfältigung dieser Publikation oder von Teilen daraus sind, zu welchem Zweck und in welcher Form auch immer, ohne die ausdrückliche schriftliche Genehmigung durch SAP AG nicht gestattet. In dieser Publikation enthaltene Informationen können ohne vorherige Ankündigung geändert werden. Die von SAP AG oder deren Vertriebsfirmen angebotenen Software-Produkte können Software- Komponenten auch anderer Software-Hersteller enthalten. Microsoft®, WINDOWS®, NT®, EXCEL®, Word®, PowerPoint® und SQL Server® sind eingetragene Marken der Microsoft Corporation. IBM®, DB2®, OS/2®, DB2/6000®, Parallel Sysplex®, MVS/ESA®, RS/6000®, AIX®, S/390®, AS/400®, OS/390® und OS/400® sind eingetragene Marken der IBM Corporation. ORACLE® ist eine eingetragene Marke der ORACLE Corporation. INFORMIX®-OnLine for SAP und Informix® Dynamic ServerTM sind eingetragene Marken der Informix Software Incorporated. UNIX®, X/Open®, OSF/1® und Motif® sind eingetragene Marken der Open Group. HTML, DHTML, XML, XHTML sind Marken oder eingetragene Marken des W3C®, World Wide Web Consortium, Massachusetts Institute of Technology. JAVA® ist eine eingetragene Marke der Sun Microsystems, Inc. JAVASCRIPT® ist eine eingetragene Marke der Sun Microsystems, Inc., verwendet unter der Lizenz der von Netscape entwickelten und implementierten Technologie. SAP, SAP Logo, R/2, RIVA, R/3, ABAP, SAP ArchiveLink, SAP Business Workflow, WebFlow, SAP EarlyWatch, BAPI, SAPPHIRE, Management Cockpit, mySAP.com Logo und mySAP.com sind Marken oder eingetragene Marken der SAP AG in Deutschland und vielen anderen Ländern weltweit. Alle anderen Produkte sind Marken oder eingetragene Marken der jeweiligen Firmen. 2 April 2001 SAP AG RFC C++ Class Library (BC-FES-AIT) Symbole Symbol Bedeutung Achtung Beispiel Hinweis Empfehlung Syntax April 2001 3 RFC C++ Class Library (BC-FES-AIT) SAP AG Inhalt RFC C++ Class Library (BC-FES-AIT).............................................................11 What's New in Release 4.6B?......................................................................................................12 Overview.......................................................................................................................................13 Who Should Use this Help File...................................................................................................14 General Class Design Principles................................................................................................15 Class Hierarchy Diagram.............................................................................................................16 Prerequisites.................................................................................................................................17 System Requirements..................................................................................................................18 Building C++ RFC Client or Server Applications......................................................................19 Customizing the MS Visual C++ Compiler.................................................................................20 Major Class Categories................................................................................................................21 The Connection Class..................................................................................................................22 The Function Classes..................................................................................................................23 The Server Application Classes..................................................................................................24 The Parameter Classes................................................................................................................25 Other Auxiliary Classes...............................................................................................................26 Working With the Class Library..................................................................................................27 What the CRfcFunction Class Represents................................................................................28 How the CRfcClientFunc Class Works.......................................................................................29 How the CRfcServerFunc Class Works.....................................................................................30 The CRfcServerApp Class: Encapsulation of the Server Process Loop................................31 Using the CRfcServerApp and Derived Classes.......................................................................32 Writing Multithreading RFC Server Applications......................................................................33 Developing RFC Servers with RFC Server Functions..............................................................35 The CRfcTransApp Class and Transactional RFC....................................................................36 Getting System Information from the Calling System..............................................................37 Setting and Getting Values of Parameter Objects....................................................................38 Removing Parameter Objects.....................................................................................................39 Replacing Parameter Objects.....................................................................................................40 Example of Set and Get Value Methods.....................................................................................41 Row Manipulation of the CRfcTableParam Class.....................................................................42 Accessing Field Values in a Parameter with Complex Structures..........................................43 Class Library Reference..............................................................................................................44 Structures and Globals................................................................................................................45 The RFC_USER_INFO structure..............................................................................................46 The RFC_CONNECT_INFO structure......................................................................................47 The RFC_FIELD_INFO Structure.............................................................................................48 The RFC API RFC_ERROR_INFO_EX Structure....................................................................49 Some global definitions.............................................................................................................50 The CRfcClientFunc Class..........................................................................................................51 CRfcClientFunc.........................................................................................................................53 Call............................................................................................................................................54 CallReceive...............................................................................................................................55 4 April 2001 SAP AG RFC C++ Class Library (BC-FES-AIT) CreateTransID...........................................................................................................................56 IndirectCall................................................................................................................................57 Read..........................................................................................................................................58 Receive.....................................................................................................................................59 Write..........................................................................................................................................61 The CRfcComplexParam Class...................................................................................................62 AddFieldInfo (Multiple Fields)....................................................................................................64 AddFieldInfo (Single Field) (Defunct)........................................................................................65 ClearAllFieldInfo........................................................................................................................66 CopyAllFieldInfo........................................................................................................................67 CRfcComplexParam (Default Constructor)...............................................................................68 CRfcComplexParam (Copy Constructor)..................................................................................69 GetEBCDICCodePage..............................................................................................................70 GetFieldCount...........................................................................................................................71 GetFieldInfo (by Index/Column Number)..................................................................................72 GetFieldInfo (by Name).............................................................................................................73 m_bNeedConversion................................................................................................................74 Read..........................................................................................................................................75 SetEBCDICCodePage..............................................................................................................76 Write..........................................................................................................................................77 The CRfcConnection Class.........................................................................................................78 Abort..........................................................................................................................................81 Accept (Console Version).........................................................................................................82 Accept (Windows Version)........................................................................................................84 Clear..........................................................................................................................................85 Close.........................................................................................................................................86 ConnArgv..................................................................................................................................87 Connect.....................................................................................................................................89 ConnectInfoFromConnectParam..............................................................................................90 ConnectParamFromConnectInfo..............................................................................................91 CRfcConnection........................................................................................................................92 CRfcConnection........................................................................................................................93 Decrypt......................................................................................................................................94 Encrypt......................................................................................................................................95 FromHandle...............................................................................................................................96 GetAttributes.............................................................................................................................97 GetCodePage............................................................................................................................98 GetCommandLineArgument.....................................................................................................99 GetConnectInfo.......................................................................................................................100 GetHandle...............................................................................................................................101 GetR3Release.........................................................................................................................102 GetR3SystemInfo....................................................................................................................103 GetR3SystemParameters.......................................................................................................104 GetReleaseString....................................................................................................................105 GetSafeHandle........................................................................................................................106 GetTraceLevel.........................................................................................................................107 GetUserInfo.............................................................................................................................108 IsR3AtLeast40A......................................................................................................................109 Open........................................................................................................................................110 R3SystemInfo (by field-name)................................................................................................111 R3SystemInfo (by index).........................................................................................................112 R3SystemInfoCount................................................................................................................113 April 2001 5 RFC C++ Class Library (BC-FES-AIT) SAP AG ReadRegistry...........................................................................................................................114 SafeConnect............................................................................................................................115 SafeOpen................................................................................................................................116 SetCodePage..........................................................................................................................117 SetConnectInfo.......................................................................................................................118 SetTraceLevel.........................................................................................................................119 SetUserInfo.............................................................................................................................120 WriteRegistry...........................................................................................................................121 The CRfcData Class...................................................................................................................123 CRfcData.................................................................................................................................125 CRfcData (Copy Constructor).................................................................................................126 SetAttributes............................................................................................................................127 GetAttributes...........................................................................................................................128 Init............................................................................................................................................129 SetStraightData.......................................................................................................................130 operator= (CRfcData Object)..................................................................................................131 operator= (Integer)..................................................................................................................132 operator= (String)....................................................................................................................133 operator= (Float Number).......................................................................................................134 operator= (Array).....................................................................................................................135 CopyRawDataFrom.................................................................................................................136 operator RFC_INT...................................................................................................................137 operator RFC_INT1.................................................................................................................138 operator RFC_INT2.................................................................................................................139 operator CSTR........................................................................................................................140 operator RFC_FLOAT.............................................................................................................141 CopyRawDataTo.....................................................................................................................142 ConvertData............................................................................................................................143 The CRfcFunction Class............................................................................................................144 AddExportParam.....................................................................................................................147 AddImportParam.....................................................................................................................148 AddTableParam......................................................................................................................149 CRfcFunction...........................................................................................................................150 GetConnection........................................................................................................................151 GetConnectionRfcHandle.......................................................................................................152 GetExportCount......................................................................................................................153 GetExportParam (by Index)....................................................................................................154 GetExportParam (by Name)....................................................................................................155 GetFunctionName...................................................................................................................156 GetImportCount.......................................................................................................................157 GetImportParam (by Index).....................................................................................................158 GetImportParam (by Name)....................................................................................................159 GetTableCount........................................................................................................................160 GetTableParam (by Index)......................................................................................................161 GetTableParam (by Name).....................................................................................................162 RemoveExportParam (by Index).............................................................................................163 RemoveExportParam (by Name)............................................................................................164 RemoveImportParam (by Index).............................................................................................165 RemoveImportParam (by Name)............................................................................................166 RemoveTableParam (by Index)..............................................................................................167 RemoveTableParam (by Name).............................................................................................168 ReplaceExportParam..............................................................................................................169 6 April 2001 SAP AG RFC C++ Class Library (BC-FES-AIT) ReplaceImportParam..............................................................................................................170 ReplaceTableParam...............................................................................................................171 Listen.......................................................................................................................................172 SetConnection.........................................................................................................................173 SetFunctionName...................................................................................................................174 rfcTID.......................................................................................................................................175 The CRfcImpExpParam Class...................................................................................................176 Clear........................................................................................................................................177 CRfcImpExpParam.................................................................................................................178 CRfcImpExpParam (Copy Constructor)..................................................................................179 GetLength................................................................................................................................180 GetParamName......................................................................................................................181 IsAutoCreated.........................................................................................................................182 InhibitParamToR3...................................................................................................................183 IsSimpleParam........................................................................................................................184 PassParamToR3.....................................................................................................................185 SetParamName.......................................................................................................................186 The CRfcPersistStream Class...................................................................................................187 CRfcPersistStream..................................................................................................................189 CRfcPersistStream (with filename and direction)...................................................................190 Flush........................................................................................................................................191 GetDirection............................................................................................................................192 GetFileName...........................................................................................................................193 SetDirection.............................................................................................................................194 SetFileName...........................................................................................................................195 The CRfcServerApp Class.........................................................................................................196 AddServerFunction.................................................................................................................198 Clone.......................................................................................................................................199 CRfcServerApp.......................................................................................................................200 Dispatch..................................................................................................................................201 ExitInstance.............................................................................................................................202 GetFunctionCount...................................................................................................................203 GetConnection........................................................................................................................204 GetConnectionRfcHandle.......................................................................................................205 GetName.................................................................................................................................206 GetServerFunction (by Index).................................................................................................207 GetServerFunction (by Name)................................................................................................208 OnIdle......................................................................................................................................209 InstallFunction.........................................................................................................................210 ReceiveData............................................................................................................................211 RemoveServerFunction (by Index).........................................................................................212 RemoveServerFunction (by Name)........................................................................................213 ReturnCall...............................................................................................................................214 Run..........................................................................................................................................215 SetConnection.........................................................................................................................216 UnInstallFunction....................................................................................................................217 The CRfcServerFunc Class.......................................................................................................218 CallReceive.............................................................................................................................220 Clone.......................................................................................................................................221 CRfcServerFunc......................................................................................................................222 GetDescription.........................................................................................................................223 GetServerApp..........................................................................................................................224 April 2001 7 RFC C++ Class Library (BC-FES-AIT) SAP AG MultipleThreadDataProcess....................................................................................................225 Process...................................................................................................................................226 Raise.......................................................................................................................................227 RaiseTables............................................................................................................................228 ReceiveData............................................................................................................................229 ReturnCall...............................................................................................................................230 SetServerApp..........................................................................................................................231 The CRfcSimpleParam Class....................................................................................................232 Clear........................................................................................................................................234 CRfcSimpleParam...................................................................................................................235 CRfcSimpleParam (Copy Constructor)...................................................................................236 GetDecimals............................................................................................................................237 GetType...................................................................................................................................238 IsAutoCreated.........................................................................................................................239 IsSimpleParam........................................................................................................................240 operator= (General).................................................................................................................241 Read........................................................................................................................................242 SetAttributes............................................................................................................................243 Value.......................................................................................................................................244 Value (for Constants)..............................................................................................................245 Write........................................................................................................................................246 The CRfcString Class.................................................................................................................247 Clear........................................................................................................................................249 CRfcString...............................................................................................................................250 CRfcString (Copy Constructor)...............................................................................................251 CRfcString (from a CRfcData object)......................................................................................252 CRfcString (with Padding).......................................................................................................253 Find.........................................................................................................................................254 GetCapitalize...........................................................................................................................255 GetLength................................................................................................................................256 GetPaddedLength...................................................................................................................257 GetPaddedString.....................................................................................................................258 operator...................................................................................................................................259 operator CSTR........................................................................................................................260 operator != (CRfcString object)...............................................................................................261 operator != (character array)...................................................................................................262 operator += (CRfcString object)..............................................................................................263 operator += (character array)..................................................................................................264 operator= (CRfcString objecString objectt).............................................................................265 operator= (String)....................................................................................................................266 operator == (CRfcString object)..............................................................................................267 operator == (character array)..................................................................................................268 operator >= (CRfcString object)..............................................................................................269 operator >= (character array)..................................................................................................270 SetCapitalize...........................................................................................................................271 Substr (with starting position)..................................................................................................272 Substr (with starting position and length)................................................................................273 ToUpper..................................................................................................................................274 The CRfcStructParam Class......................................................................................................275 Clear........................................................................................................................................277 CopyContentsFrom.................................................................................................................278 CopyContentsTo.....................................................................................................................279 8 April 2001 SAP AG RFC C++ Class Library (BC-FES-AIT) CRfcStructParam....................................................................................................................280 CRfcStructParam (Copy Constructor).....................................................................................281 GetParamName......................................................................................................................282 IsAutoCreated.........................................................................................................................283 IsSimpleParam........................................................................................................................284 operator[ ] (Structure Fields By Index or Column)..................................................................285 operator[ ] (Structure Fields By Name)...................................................................................287 operator[ ] (Constant Structure Fields, by Index or Column)..................................................289 operator[ ] (Constant Structure Fields, by Name)...................................................................290 Read........................................................................................................................................291 SetLength................................................................................................................................292 Write........................................................................................................................................293 The CRfcTableParam Class.......................................................................................................294 AppendEmptyRow..................................................................................................................297 AppendInitializedRow..............................................................................................................298 Cell (by Row/Column Name)..................................................................................................299 Cell (by Row/Column Number)...............................................................................................301 Cell (Constant Table, by Row/Column Name)........................................................................303 Cell (Constant Table, by Row/Column Number).....................................................................305 Clear........................................................................................................................................307 ConstRow................................................................................................................................308 ConvertTable...........................................................................................................................309 CopyDataFrom........................................................................................................................310 CopyLineFrom.........................................................................................................................311 CopyLineTo.............................................................................................................................312 Create......................................................................................................................................313 CreateEmptyTableCopy..........................................................................................................314 CRfcTableParam.....................................................................................................................315 CRfcTableParam (Copy Constructor).....................................................................................316 Delete......................................................................................................................................317 Field (by Row/Column Number)..............................................................................................318 Field (by Row/Column/Field Name)........................................................................................320 Field (Constant Table, by Index/Column Name......................................................................322 Field (Constant Table, by Index/Column Number).................................................................324 GetAutoConversion.................................................................................................................326 GetHandle...............................................................................................................................327 GetIsConverted.......................................................................................................................328 GetLength................................................................................................................................329 GetParamName......................................................................................................................330 GetParentFunction..................................................................................................................331 GetRowCount..........................................................................................................................332 InsertEmptyRow......................................................................................................................333 InsertInitializedRow.................................................................................................................334 IsAutoCreated.........................................................................................................................335 MoveDataFrom.......................................................................................................................336 operator().................................................................................................................................337 Read........................................................................................................................................338 RemoveRow............................................................................................................................339 Row.........................................................................................................................................340 SetAutoConversion.................................................................................................................341 SetCurrentRow........................................................................................................................342 SetLength................................................................................................................................344 April 2001 9 RFC C++ Class Library (BC-FES-AIT) SAP AG SetParamName.......................................................................................................................345 SetTypeHandle........................................................................................................................346 Write........................................................................................................................................347 The CRfcTransApp Class..........................................................................................................348 CRfcTransApp.........................................................................................................................349 OnCheckID..............................................................................................................................350 OnCommit...............................................................................................................................351 OnRollBack.............................................................................................................................352 OnConfirm...............................................................................................................................353 Programming Examples............................................................................................................354 10 April 2001

Description:
SAP AG. RFC C++ Class Library (BC-FES-AIT). April 2001. 3. Symbole. Symbol. Bedeutung. Achtung. Beispiel. Hinweis. Empfehlung. Syntax
See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.