CAD interface in SAP – Tutorial guide

CAD integration is connecting the SAP System to external applications such as CAD, PDM, and GIS. This enables your designers to access data in the production system and use this information in their work – information on existing materials and assemblies, for example. Since data can be transferred between the CAD system and the SAP System in both directions, inconsistency of the data in the two systems is avoided.

Contents of this CAD interface in SAP – Tutorial guide

CAD Interface (CA-CAD) 14
Introduction to the CAD Interface…. 15
Before You Use the CAD Interface .. 18
This Guide is Intended for: …………. 19
Use of the CAD Interface …………… 20
Applications of the CAD Interface .. 22
Structure of the CAD Interface……… 23
CAD Interfaces in the SAP System 24
Dialog Interface……. 25
Dialog RFC Interface ……………. 27
Comparison of the Dialog Interface and the Dialog RFC Interface…… 29
Integration of the Dialog Interface and the Dialog RFC Interface…….. 31
Installing Functions in the External Application 32
Overview of Functions in the CAD Dialog Interface ………. 33
Material Master Record Functions (CAD Dialog Interface) 34
Document Management Functions (CAD Dialog Interface)…………….. 36
BOM Functions (CAD Dialog Interface) ……….. 37
Engineering Change Management Functions (CAD Dialog Interface)  39
Plant Maintenance Functions (CAD Dialog Interface) ……. 40
General Functions (CAD Dialog Interface) …… 41
Overview of Functions in the Dialog RFC Interface……….. 42
Material Master Record Functions (Dialog RFC Interface) 43
Document Management Functions (Dialog RFC Interface)…………….. 44
BOM Functions (Dialog RFC Interface) ……….. 45
Engineering Change Management Functions (Dialog RFC Interface)  46
Plant Maintenance Functions (Dialog RFC Interface) ……. 47
Mail and Workflow Functions (Dialog RFC Interface)…….. 48
General Functions (Dialog RFC Interface)……. 49
Examples of How the CAD Dialog Interface Can be Used  50
Finding a Document Info Record via Matchcode…………… 51
Designing a Single-Part Drawing … 53
Designing a Single-Part Drawing by Copying.. 55
Designing an Assembly Drawing … 57
CAD Interface (CA-CAD) . 59
Technical Description of the CAD Dialog Interface ……….. 60
General Information on the CAD Dialog Interface …………. 61
SAP Function Library … 62
SAP Interface Program  63
Notes on Installation ……. 64
Customizing the SAP-CAD Function Library … 65
Before You Use the SAP-CAD Function Library……………. 66
Configuration File sideinfo………….. 67
Configuration File saprfc.ini………… 69
Customizing the SAP System ………. 70
General Information on Customizing …………… 71
Control Parameters …… 72
Customizing General Data …………. 74
User-Defined Functions …………….. 76
Example: Settings for Displaying a Where-Used List …….. 77
Example: Settings for a User-Defined Function…………….. 79
Including RCCADCOM in User-Defined Functions………… 84
Emulation of the SAP System………. 85
Emulation Library ……… 86
Data File cademu.r3….. 87
General Functions in the CAD Dialog Interface …………….. 89
General Information ….. 90
Data Transfer Using Data Strings…………… 91
General Functions in the CAD Interface ………. 93
CONNC – Establishing a Connection to the SAP System ………….. 94
DISCO – Terminating a Connection to the SAP System…………….. 95
BREAK – Terminating the Current Function 96
SYSRQ – System Functions…… 97
Displaying System Parameters …………. 98
Displaying Configuration Tables TCIM, TCIU, and TCID …….. 100
Displaying Technical Field Information for a Function…………. 102
HLPRQ – Help Functions …….. 103
Displaying ONLINE Field Documentation (F1 Help) …………… 104
Displaying Possible Entries (F4 Help) . 106
Displaying Allowed Values for Several Characteristics ……….. 108
Displaying the Long Text for an Error Message …. 109
Functions for Material Master Records ………. 110
MATCR – Creating a Material Master Record…………. 111
Creating a Material Master Record Without Classification …… 112
Creating a Material Master Record With Classification ……….. 113
Setting up Strings for Characteristics and Values………….. 115
Characteristics Data for a Class….. 116
Values for Characteristics…………… 119
Assigned Characteristic Values…… 120
MATCH – Changing a Material Master Record ……….. 122
Changing a Material Master Record Without Classification …. 123
Changing A Material Master Record With Classification……… 124
List of All Classes ……… 126
MATCH MC: Creating an Allocation to an Additional Class…………….. 127
MATCH MC: Deleting an Existing Allocation to a Class …. 128
MATRQ – Displaying a Material Master Record………. 129
Displaying a Material Master Record Without Classification… 130
Displaying a Material Master Record With Classification …….. 131
Finding a Material Master Record via Matchcode . 133
Displaying Material Master Record Data for Several Materials (Mass Access) ………. 136
RSRVE – Reserving a Material Number … 137
Functions for Document Management……….. 138
DOCCR – Creating a Document Info Record………….. 139
Creating a Document Info Record Without Classification ……. 140
Creating a Document Info Record With Classification ………… 141
DOCCH – Changing a Document Info Record ………… 143
Changing a Document Info Record Without Classification…… 144
Changing a Document Info Record With Classification……….. 145
Changing a Document Info Record (Object Links Only) ……… 148
DOCRQ – Displaying a Document Info Record……….. 151
Displaying a Document Info Record Without Classification …. 152
Displaying a Document Info Record With Classification ……… 153
Finding a Document Info Record via Matchcode… 155
Finding a Document Info Record Using Transaction CV04….. 158
Displaying a Document Info Record (Object Links Only) …….. 161
Displaying the Status History of a Document Info Record …… 164
DOCCI – Check In Functions for Original Application Files ………. 165
Check In for Original Application Files. 166
Displaying a List of All Available Vaults…………….. 168
DOCCO – Check Out Functions for Original Application Files…… 169
Check Out for Original Application Files……………. 170
Displaying an Original Application File  172
Functions for BOMs … 174
BOMCR – Creating a BOM….. 175
BOMCN – Changing a BOM… 177
BOMRQ – Displaying a BOM.. 179
BOMWU – Displaying a Where-Used List  181
CadBomCreateSubItem – Creating a BOM With Sub-Items …….. 182
CadBomChangeSubItemRead – Reading and Changing a BOM 183
CadBomChangeSubItem – Changing a BOM with Sub-Items ….. 184
CadBomDisplaySubItem – Displaying a BOM With Sub-Items…. 185
Functions for Engineering Change Management ………… 186
CHGCR – Creating a Change Master Record…………. 187
Creating a Change Master Record Without Classification …… 188
Creating a Change Master Record With Classification ……….. 190
CHGCH – Changing a Change Master Record……….. 193
Changing a Change Master Record Without Classification …. 194
Changing a Change Master Record with Classification ………. 196
CHGRQ – Displaying a Change Master Record ……… 202
Displaying a Change Master Record Without Classification … 203
Displaying a Change Master Record With Classification …….. 205
Finding a Change Master Record via Matchcode . 208
ECRCR – Creating an ECR….. 211
Creating an ECR Without Classification……………. 212
Creating an ECR With Classification … 214
ECRCH – Changing an ECR… 217
Changing an ECR Without Classification ………….. 218
Changing an ECR with Classification .. 220
ECRRQ – Displaying an ECR.. 227
Displaying an ECR Without Classification…………. 228
Displaying an ECR With Classification  230
Finding an ECR via Matchcode ……….. 233
Functions for Plant Maintenance.. 236
EQICR – Creating an Equipment Master Record…….. 237
Creating an Equipment Master Record Without Classification 238
Creating an Equipment Master Record With Classification….. 239
EQICH – Changing an Equipment Master Record…… 241
Changing an Equipment Master Record Without Classification……………. 242
Changing an Equipment Master Record With Classification… 243
Dismantling Equipment Master Records …………… 246
EQIRQ – Displaying an Equipment Master Record….. 247
Displaying an Equipment Master Record Without Classification…………… 248
Displaying an Equipment Master Record With Classification.. 249
Finding an Equipment via Matchcode . 251
Displaying an Equipment Hierarchy …. 254
PMNCR – Creating a Maintenance Notification ………. 255
TPCCR – Creating a Functional Location . 256
Creating a Functional Location Without Classification ………… 257
Creating a Functional Location With Classification …………….. 258
TPCCH – Changing a Functional Location 260
Changing a Functional Location Without Classification ………. 261
Changing a Functional Location With Classification …………… 262
TPCRQ – Displaying a Functional Location ……………. 265
Displaying a Functional Location Without Classification ……… 266
Displaying a Functional Location With Classification ………….. 267
Finding a Functional Location via Matchcode ……. 269
Displaying a Functional Location Hierarchy ………. 272
Displaying a Functional Location with Installed Equipments… 273
Classification System Functions .. 274
SLCLS – Finding Classes – Navigating in a Class Network ………. 275
Finding Classes by Catchwords (Matchcode) ……. 276
Finding Classes by Generic Entry ……. 279
Finding Classes without a Superior Class …………. 281
Displaying Superior and Subordinate Classes for a Class ……….. 283
SLOBJ – Finding Objects in Classes……… 285
Displaying the Characteristics of a Class ………….. 286
Displaying All Objects in a Class ……… 287
Finding Objects via Classes ……………. 290
Setting a New View in Table INDX …… 294
Initializing Class Data …….. 295
Office Functions ……… 296
SMAIL – Office Functions …….. 297
Reading Your Inbox ……….. 298
Reading Your Outbox …….. 299
Reading Your Mail Trash… 300
Reading a Document ………….. 301
Reading the Attachments to a Document . 303
Setting a Document to ………… 304
Setting a Document to ………… 305
Deleting a Document ………….. 306
Displaying the Recipient List for a Document…………. 307
Sending a Document ………….. 308
Finding an SAP User Name Generically… 309
Description of Function Library caddialg…….. 310
General Information on the Function Library ………….. 311
Header Files and Libraries Required …….. 312
Structure of Function Calls…… 313
Transfer Fields. 314
Status Information………….. 315
Syntax…………. 317
Description of Functions ……… 318
General functions…………… 319
Functions for Material Master Records 322
Classification System Functions………. 323
Functions for Document Management  324
Functions for Plant Maintenance ……… 325
Functions for Engineering Change Management.. 326
Functions for BOMs……….. 327
Office Functions…………….. 329
User-Defined Functions ….. 330
General Rules for Data Transfer…………… 331
Functions of the CAD Toolbox Library ……….. 332
Introduction ……….. 333
Installation and Implementation ……………. 334
Functions………….. 335
General Functions …………. 336
Configure Toolbox …….. 337
Init Toolbox . 338
Load Configuration Data…………….. 339
Load Error Message….. 340
Load Version of Toolbox…………….. 341
Save Configuration Parameters ….. 342
Save Configuration Tables …………. 343
Utility Functions …………….. 344
Delete Table Entry…….. 345
Load Attribute Name….. 346
Print Internal Table ……. 347
Find Attribute ……………. 348
Master Record Functions… 349
Count Table Entries (Master Record Functions)……………. 350
Create Internal Table…. 351
Create and Fill Internal Table ……… 352
Create Send String……. 354
Create Send String for BOM Header Data (R/3)……………. 355
Fill Internal Table ………. 356
Load Attribute Value for Record Number ……… 357
Load Attribute Value for Attribute Name……….. 358
Change Table Value….. 360
Save Table Value ……… 361
Classification Functions ….. 362
Count Table Entries (Classification Functions)  363
Count Characteristic Values (R/3).. 364
Create Send String for Allowed Characteristic Values (R/3)……………. 365
Create Send String for Characteristics Data (R/2 and R/3) …………….. 366
Create Send String for Class Data (R/3) ………. 367
Create Send String for Class Scope (R/3) ……. 368
Create Send String for Finding Classes(R/3)… 369
Create Send String for Finding Objects via Classes (R/3) . 370
Create and Fill Class Hierarchy Table(R/3)…… 371
Create and Fill Classification Table (R/3)……… 372
Create and Fill Characteristic Values Table(R/3)…………… 373
Create Characteristics Data Table . 374
Delete Search Result (R/2)…………. 375
Load Classification Data for Characteristic Number (R/2) . 376
Load Classification Data for Characteristic Name (R/2)….. 377
Load Classification Data for Characteristic Number (R/3) . 378
Load Classification Data for Characteristic Name (R/3)….. 379
Load Characteristic Value Data (R/3)…………… 380
Load Object Oata (R/3)  381
Load Class Data (R/3) .. 382
Load Class Hierarchy Data (R/3) … 383
Load Search Result Data (R/3) …… 384
Save Characteristic Value and Description…… 385
Save Search Result…… 388
Matchcode Functions……… 389
Count Matchcode Records…………. 390
Create and Fill Internal Matchcode Table …….. 391
Create Send String for Matchcode………….. 392
Load Matchcode Fields  393
Save Matchcode Field Value………. 394
Online Help Functions ……. 395
Count Table Entries (Help Functions) ………….. 396
Fill Internal Table for Online Help… 397
Create Send String for Online Help 398
Create Send String for Long Text of SAP Message (R/3).. 399
Fill Internal Table for Online Help… 400
Load Online Help Data . 401
Mail Functions (R/3 2.1/2.2)…………….. 402
Count Table Entries (Mail Functions) …………… 403
Create Send String for Mail Data … 404
Create Internal Table for Mail Data  405
Load Mail Data from Table …………. 406
Mail Field Names………. 407
Save Mail Data to Table …………….. 409
User-Defined Functions ….. 410
Create Internal Table for User-Defined Functions …………. 411
Appendix …………… 412
Files …………….. 413
CADTMES.DAT………… 414
CADTTAB.DAT…………. 418
CADTOOLC.H ………….. 420
Structures……… 428
SAPOBJ_R3…………….. 429
SAPSML_R3 ……………. 430
SAPCLAS_R3 ………….. 432
SAPCLAS_S_R3………. 433
SAPCLAS_H_R3………. 434
SAPMES….. 435
SAPATT…… 436
Tables ………….. 437
TCIM……….. 438
TCIT………… 440
TCID ……….. 444
TCIU ……….. 447
Technical Description of the Dialog RFC Interface………. 454
General Information on the Dialog RFC Interface………… 455
How the Dialog RFC Interface Works ………… 456
Applications of the Dialog RFC Interface……. 457
Notes on Installation ….. 458
Customizing the Dialog RFC Interface………… 459
Configuration File cadrfc.ini………. 460
Default Values for BOMs …….. 464
Default Values for Document Management……………. 467
Default Values for Material Master Records …………… 468
Default Values for Plant Maintenance …… 469
General Default Values……….. 470
Description of the Available RFC Function Modules …… 471
Transfer Tables SAP_FIELD_DATA and DMS_CLASS_DATA …….. 472
Functions for Document Management……….. 473
Creating a Document Info Record ………… 474
Changing a Document Info Record ………. 476
Displaying a Document Info Record ……… 478
Finding a Document Info Record ………….. 480
Inserting a Document Info Record ………… 482
Reading a Document Info Record ………… 484
Inserting and Checking Out Documents … 486
Reading Data for the Drawing Header…… 487
Functions for Material Master Records ………. 489
Creating a Material Master Record……….. 490
Changing a Material Master Record ……… 492
Displaying a Material Master Record…….. 494
Reading a Material Master Record ……….. 496
Functions for Engineering Change Management ………… 498
Creating a Change Master Record ……….. 499
Changing a Change Master Record ……… 501
Displaying a Change Master Record …….. 503
Functions for BOMs … 504
Creating a Material BOM …….. 505
Changing a Material BOM……. 507
Displaying a Material BOM ….. 509
Functions for Plant Maintenance.. 512
Creating an Equipment Master Record …. 513
Changing an Equipment Master Record… 515
Displaying an Equipment Master Record . 516
Reading an Equipment Master Record….. 518
Creating a Functional Location …………….. 520
Changing a Functional Location …………… 522
Displaying a Functional Location ………….. 524
Reading a Functional Location …………….. 526
Creating a Maintenance Notification……… 528
Changing a Maintenance Notification ……. 530
Displaying a Maintenance Notification…… 531
Creating a Maintenance Order 532
Changing a Maintenance Order……………. 534
Displaying a Maintenance Order ………….. 535
Mail and Workflow Functions ……. 536
Displaying a Mail Inbox ……….. 537
Displaying a Mail Outbox …….. 538
Displaying a Workflow Inbox… 539
General Functions in the SAP Environment .. 540
Displaying a Product Structure …………….. 541
Displaying a Where-Used List for a Material or Document……….. 543
Finding Objects via Matchcode…………….. 545
Finding Objects in Classes ….. 547
Requesting SAP System Parameters……. 550
Description of Dialog RFC Function Library cadrfc00 …. 551
The Dialog RFC Function Library. 553
Header Files and Libraries Required …………. 554
Header File cadrfc.h… 555
Table Structures……… 557
General Functions. 558
Establishing an RFC Connection (Starting from External System) ……………. 559
Terminating an RFC Connection ………….. 561
Initializing Transfer Structures  562
Querying a Communication Handle………. 563
Defining a Communication Handle ……….. 564
Return of Error Messages……. 565
Functions for Material Master Records ………. 566
Creating a Material Master Record……….. 567
Changing a Material Master Record ……… 568
Displaying a Material Master Record…….. 569
Reading a Material Master Record ……….. 570
Functions for Document Management……….. 571
Creating a Document Info Record ………… 572
Changing a Document Info Record ………. 573
Displaying a Document Info Record ……… 574
Finding a Document Info Record ………….. 575
Inserting a Document Info Record ………… 576
Reading a Document Info Record ………… 577
Functions for BOMs … 578
Creating a Material BOM …….. 579
Changing a Material BOM……. 580
Displaying a Material BOM ….. 581
Filling out the BOM Item Table …………….. 582
Reading the BOM Item Table . 583
Functions for Engineering Change Management ………… 584
Creating a Change Master Record ……….. 585
Changing a Change Master Record ……… 586
Displaying a Change Master Record …….. 587
Functions for Plant Maintenance.. 588
Creating an Equipment Master Record …. 589
Changing an Equipment Master Record… 590
Displaying an Equipment Master Record . 591
Reading an Equipment Master Record….. 592
Creating a Functional Location …………….. 593
Changing a Functional Location …………… 594
Displaying a Functional Location ………….. 595
Reading a Functional Location …………….. 596
Creating a Maintenance Notification……… 597
Changing a Maintenance Notification ……. 598
Displaying a Maintenance Notification…… 599
Creating a Maintenance Order 600
Changing a Maintenance Order……………. 601
Displaying a Maintenance Order ………….. 602
Mail and Workflow Functions ……. 603
Displaying a Mail Inbox ……….. 604
Displaying a Mail Outbox …….. 605
Displaying a Workflow Inbox… 606
General Functions in the SAP Environment .. 607
Displaying a Product Structure …………….. 608
Requesting SAP System Parameters……. 609
Displaying a Where-Used List for a Material or Document……….. 610
Finding Objects via Matchcode…………….. 611
Return of Last RFC Error Message ………. 612
Reading an Entry in Table SAP_FIELD_DATA………. 613
Reading an Entry in Table DMS_CLASS_DATA…….. 614
Making an Entry in Table SAP_FIELD_DATA………… 615
Making an Entry Table DMS_CLASS_DATA …………. 616
Finding Objects in Classes ….. 617
Example of a Call…………… 619
Using Calls in the SAP-CAD Function Library …………….. 620
Using the CAD Desktop  621
Integrating Enterprise-Specific Processes….. 624
Appendix ….. 625
Error messages in function library caddialg .. 626
CPIC Communication Errors and CPIC Error Codes……. 628
Return Codes from the SAP System …………… 630
Return codes of the SAP-CAD function library……………. 631
Return Codes in the cadrfc00 Library …………. 632
File sideinfo. 635
File saprfc.ini …………….. 636
File cadrfc.ini …………….. 643
File caddialg.h……………. 653
File cadrfc.h . 656
File cadtst1.c 670

Read this CAD interface in SAP – Tutorial guide


Related SAP Training Study materials and help guides
  1. SAP Transport Organizer tutorial guide The SAP Transport Organizer provides you with functions for organizing software development projects. It is designed to support projects of all sizes, whether they are carried out centrally or in a distributed environment.This section is intended for the system administrator who sets up the Change and Transport System (CTS). To set up the CTS, you […]...
  2. Bills of material in SAP ( BOM ) Tutorial Bills of material in SAP is a formally structured list of the components that make up a product or assembly. It is shortly known as BOM. The BOM list contains the object number of each component, together with the quantity and unit of measure. BOMs are used in their different forms in various situations where […]...
  3. Classification System to classify all types of object in SAP The classification system allows you to use characteristics to describe all types of objects, and to group similar objects in classes – to classify objects, in other words, so that you can find them more easily later. You then use the classes to help you to find objects more easily, using the characteristics defined in […]...
  4. Transportation in SAP – complete tutorial guide Transportation is an essential element in the logistics chain. It affects both incoming and outgoing goods. Effective transportation planning and processing ensure that shipments are dispatched without delay and arrive on schedule. Transportation costs play an essential role in the calculation of the price of a product. It is important to keep these transportation costs […]...
  5. SAPscript Raw Data Interface Guide Using the SAPscript Raw Data Interface (RDI), you can connect external text management systems to master individual requests, for example, optimizing postage expense. The interface contains all data of the R/3 forms, but no layout information such as font or page size. The external system alone is responsible for layout and administration of the document […]...
  6. Warehouse Management ( SAP WM ) Tutorial Guide Computer support for the organization and management of warehouses has become imperative for timely, effective processing of logistic requirements within a company. The SAP Warehouse Management (WM) application provides flexible, automated support to assist you in processing all goods movements and in maintaining current stock inventories in your warehousing complex. Contents of this Warehouse Management […]...
  7. PDF guide about IDoc Interface / Electronic Data Interchange ( EDI ) in SAP Business data is exchanged with an external system using the IDoc Interface. The IDoc Interface consists of the definition of a data structure and a processing logic for this. The data structure is the IDoc. It is the exchange format that unites the communicating systems. Using IDocs you can define an exception handling within the […]...
  8. SAP Business Workflow processing of document info records – PDF Tutorial Document management is a central function of the R/3 System, which is integrated with many applications, such as Plant Maintenance, the Project System, and engineering change management.SAP Business Workflow lets you optimize processing of document info records in all the departments that use them. Workflow Management ensures that the steps for processing a document info […]...
  9. Extended Table Maintenance in SAP – Tutorial Guide Extended table maintenance is a transaction which allows you to maintain entries in database tables. Part of the Workbench Organizer, it contains all of the necessary table maintenance operations. Extended table maintenance stores the changes made to data in tables or views in an internal memory. These changes are only written to the database itself […]...
  10. Drilldown Reporting in SAP tutorial guide With drilldown reporting, SAP provides you with an interactive information system to let you evaluate the data collected in your application. This information system is capable of analyzing all the data according to any of the characteristics that describe the data. You can also use any key figures you wish to categorize your data. You […]...
Google: Facebook:

Leave a Reply

You must be logged in to post a comment.