9. ENHANCEMENT MODIFICATIONS BAPI ALE, BAPI FM

[ Pobierz całość w formacie PDF ]
Enhancements, Modifications,
… (CA-BFA)
Release 4.6C
Enhancements, Modifications, … (CA-BFA)
SAP AG
Copyright
© Copyright 2001 SAP AG. All rights reserved.
No part of this publication may be reproduced or transmitted in any form or for any purpose
without the express permission of SAP AG. The information contained herein may be changed
without prior notice.
Some software products marketed by SAP AG and its distributors contain proprietary software
components of other software vendors.
Microsoft
®
, WINDOWS
®
, NT
®
, EXCEL
®
, Word
®
, PowerPoint
®
and SQL Server
®
are registered
trademarks of
Microsoft Corporation.
IBM
®
, DB2
®
, OS/2
®
, DB2/6000
®
, Parallel Sysplex
®
, MVS/ESA
®
, RS/6000
®
, AIX
®
, S/390
®
,
AS/400
®
, OS/390
®
, and OS/400
®
are registered trademarks of IBM Corporation.
ORACLE
®
is a registered trademark of ORACLE Corporation.
INFORMIX
®
-OnLine for SAP and Informix
®
Dynamic Server
TM
are registered trademarks of
Informix Software Incorporated.
UNIX
®
, X/Open
®
, OSF/1
®
, and Motif
®
are registered trademarks of the Open Group.
HTML, DHTML, XML, XHTML are trademarks or registered trademarks of W3C
®
, World Wide
Web Consortium,
Massachusetts Institute of Technology.
JAVA
®
is a registered trademark of Sun Microsystems, Inc.
JAVASCRIPT
®
is a registered trademark of Sun Microsystems, Inc., used under license for
technology invented and implemented by Netscape.
SAP, SAP Logo, R/2, RIVA, R/3, ABAP, SAP ArchiveLink, SAP Business Workflow, WebFlow,
SAP EarlyWatch, BAPI, SAPPHIRE, Management Cockpit, mySAP.com Logo and mySAP.com
are trademarks or registered trademarks of SAP AG in Germany and in several other countries
all over the world. All other products mentioned are trademarks or registered trademarks of their
respective companies.
2
April 2001
SAP AG
Enhancements, Modifications, … (CA-BFA)
Icons
Icon
Meaning
Caution
Example
Note
Recommendation
Syntax
Tip
April 2001
3
Enhancements, Modifications, … (CA-BFA)
SAP AG
Contents
Enhancements, Modifications, … (CA-BFA)................................................................ 6
Customer Enhancement and Modification of BAPIs (CA-BFA)...............................................................7
Customer Enhancement of BAPIs ............................................................................................................10
Enhancing the BAPIs Based on Existing SAP Database Tables............................................................13
Appending Customer Fields...............................................................................................................14
Using Additional Existing Database Fields ........................................................................................19
Combination of Appending Customer Fields and Adding Existing Table Fields ...............................21
Enhancing the BAPI by Including Additional Customer Database Tables..............................................22
Enhancing the BAPI with Import Data that Does Not Affect the Database Level ...................................26
Actions by the BAPI Developer ...............................................................................................................28
Actions by the Customer .........................................................................................................................36
Actions for an Enhancement Based on Existing SAP Database Tables ...........................................37
Actions when Including Additional Customer Database Tables ........................................................44
Actions when Including Additional Import Data that Does Not Affect the Database Level................45
Use with the Standardized BAPIs ...........................................................................................................46
BAPI Modifications.....................................................................................................................................50
Example ..................................................................................................................................................54
Creating Subtypes...................................................................................................................................55
Redefining a BAPI...................................................................................................................................56
Defining Delegation Relationships ..........................................................................................................57
Examples.....................................................................................................................................................58
Example for Developing the BAPI Function Module ...............................................................................59
Example for Filling the ExtensionIn Parameter.......................................................................................63
SAP Enhancements to Released BAPIs ..................................................................................................65
Compatible Enhancements .......................................................................................................................67
Incompatible Enhancements.....................................................................................................................69
BAPIs for Mass Data Transfer (CA-BFA) .................................................................................................72
Basics of Mass Data Transfer ...................................................................................................................74
Process Flow of the Mass Data Transfer via BAPI .................................................................................80
Developing BAPIs for Mass Data Transfer ..............................................................................................83
Implementing a BAPI ..............................................................................................................................85
Programming Create() BAPIs ............................................................................................................86
Example of a Create() BAPI .........................................................................................................90
Programming Change() BAPIs ..........................................................................................................91
Example of a Change () BAPI.......................................................................................................96
Programming Delete()/Undelete() BAPIs...........................................................................................97
Example of a Delete() BAPI........................................................................................................101
Programming Cancel() BAPIs..........................................................................................................102
Example of a Cancel() BAPI .......................................................................................................105
Programming Replicate()/SaveReplica() BAPIs ..............................................................................106
Example of a SaveReplica() BAPI..............................................................................................110
Programming Methods for Sub-Objects ..........................................................................................111
Example of an Add<Name of Sub-Object> BAPI .......................................................................115
4
April 2001
SAP AG
Enhancements, Modifications, … (CA-BFA)
Generating the BAPI-ALE Interface ......................................................................................................116
Writing a report......................................................................................................................................117
Registering the BAPI.............................................................................................................................118
Details........................................................................................................................................................119
Using ALE Services (CA-BFA) ................................................................................................................121
Basic Concepts of ALE Technology ......................................................................................................123
Implementing Narrow Coupling with BAPIs ..........................................................................................127
Querying the Distribution Model............................................................................................................128
Calling BAPIs ........................................................................................................................................130
Implementing Loose Coupling with BAPIs............................................................................................131
Querying the Distribution Model............................................................................................................133
ALE Outbound Processing....................................................................................................................135
Dispatching IDocs .................................................................................................................................137
ALE Inbound Processing.......................................................................................................................138
Processing BAPIs .................................................................................................................................139
Developing an ALE Business Process Based on BAPIs .....................................................................141
Implementing the BAPI .........................................................................................................................142
Defining Hierarchies Between BAPI Parameters..................................................................................144
Maintaining the BAPI-ALE Interface .....................................................................................................145
Notes................................................................................................................................................159
Maintaining the Distribution Model ........................................................................................................161
April 2001
5
[ Pobierz całość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • nvs.xlx.pl
  • Podstrony