2006 Dec 26 9:35 AM
Hi all,
Can any one tell me what is delegation in BAPI.
What is the use of delegation in BAPI.
With thanks,
Chinmay.
Hi all,
Can any one tell me what is delegation in BAPI.
What is the use of delegation in BAPI.
With thanks,
Chinmay.
2006 Dec 26 10:09 AM
have u created a BAPI or checked an existing BAPI.
Create a BAPI in Tcode SWO1 & we can delegate it in SWO6 transaction.
First see wat all BAPIs avaliable in BAPI transaction.
For example class is a BAPI But u have to specify it by business object BUS1003 in SWO1 transaction.
refer this link for delegation in detail.
<a href="http://www.erpgenie.com/abap/bor.htm">http://www.erpgenie.com/abap/bor.htm</a>
u asked in one thread from where we can call a Bapi in that i missed to say tht we can call it in workflow also.
Message was edited by:
Kalpanashri Rajendran
2006 Dec 27 9:45 AM
If customers want to functionally enhance a BAPI supplied by SAP by adding new parameters, changing existing parameters, or changing the coding of the function module upon which the BAPI is based, then this is only possible through modifications.
BAPI modifications cannot be made to business object types delivered in the standard system. Instead, you have to create a subtype of the business object type and then redefine the BAPI method inherited from the superior business object for this subtype.
Only the redefined BAPI is then available for the subtype; the original inherited BAPI can only be called from the supertype.
IBUs, customers and partners who want to create new development objects required in the context of a modification should follow the general guidelines in the documents "Changing the SAP Standard" and "Guidelines for Modifying the SAP Standard", which are available in SAPNet.
You will also have to make sure that the involved development objects are assigned names from the customer namespace.
The process flow for customer modification of BAPIs:
· Create a subtype for the involved business object type
· The procedure for creating a subtype is described under Creating Subtypes.
· Change the definition of the inherited BAPI for the subtype.
· You can add additional parameters, for example, or modify the implementation of the BAPI. The following implementation options are available for modifications:
· Creating a new function module
· Compatible modifications to the superior function module
· Creating the implementing function module as a copy of the superior function module
· If modifications have been made, you must redefine the changed BAPI for the subtype in the BOR. The steps required to redefine a BAPI are described in:
Redefining BAPIs
To redefine a BAPI of a subtype, perform the following steps::
· Choose Tools ® Business Framework ® BAPI Development ® Business Object Builder or enter transaction code SWO1 .
· Display the subtype just created in the change mode.
· Position the cursor on the BAPI you want to modify and choose Edit ® Redefine.
· Double-click on the BAPI and select the ABAP/4 register.
· In the Name field of the modified function module enter and save your information.
From the customer perspective, it makes sense when the superior BAPI can be called as the supertype as well as the subtype. To achieve this, you have to define a delegation relationship between the supertype and the subtype. To define a delegation relationship, perform the steps described under:
Defining Delegation Relationships.
A delegation relationship is only significant for object-oriented BAPI method calls and not if the implementing function module is called directly.
To define the delegation relationship between the supertype and subtype:
·From the SAP menu, choose Tools ® Business Framework ® BAPI Development ® Business Object Builder, or enter the transaction code SWO1 .
· Choose Settings ® Delegate ® System-wide.
· Switch to the change mode and select New entries.
· Enter the name of the original object type (supertype) in the field Object type and the name of the subtype in the field Delegation type.
· Deactivate the check box GUI-specific.
· Save your entries.
2006 Dec 27 9:46 AM
If customers want to functionally enhance a BAPI supplied by SAP by adding new parameters, changing existing parameters, or changing the coding of the function module upon which the BAPI is based, then this is only possible through modifications.
BAPI modifications cannot be made to business object types delivered in the standard system. Instead, you have to create a subtype of the business object type and then redefine the BAPI method inherited from the superior business object for this subtype.
Only the redefined BAPI is then available for the subtype; the original inherited BAPI can only be called from the supertype.
IBUs, customers and partners who want to create new development objects required in the context of a modification should follow the general guidelines in the documents "Changing the SAP Standard" and "Guidelines for Modifying the SAP Standard", which are available in SAPNet.
You will also have to make sure that the involved development objects are assigned names from the customer namespace.
The process flow for customer modification of BAPIs:
· Create a subtype for the involved business object type
· The procedure for creating a subtype is described under Creating Subtypes.
· Change the definition of the inherited BAPI for the subtype.
· You can add additional parameters, for example, or modify the implementation of the BAPI. The following implementation options are available for modifications:
· Creating a new function module
· Compatible modifications to the superior function module
· Creating the implementing function module as a copy of the superior function module
· If modifications have been made, you must redefine the changed BAPI for the subtype in the BOR. The steps required to redefine a BAPI are described in:
Redefining BAPIs
To redefine a BAPI of a subtype, perform the following steps::
· Choose Tools ® Business Framework ® BAPI Development ® Business Object Builder or enter transaction code SWO1 .
· Display the subtype just created in the change mode.
· Position the cursor on the BAPI you want to modify and choose Edit ® Redefine.
· Double-click on the BAPI and select the ABAP/4 register.
· In the Name field of the modified function module enter and save your information.
From the customer perspective, it makes sense when the superior BAPI can be called as the supertype as well as the subtype. To achieve this, you have to define a delegation relationship between the supertype and the subtype. To define a delegation relationship, perform the steps described under:
Defining Delegation Relationships.
A delegation relationship is only significant for object-oriented BAPI method calls and not if the implementing function module is called directly.
To define the delegation relationship between the supertype and subtype:
·From the SAP menu, choose Tools ® Business Framework ® BAPI Development ® Business Object Builder, or enter the transaction code SWO1 .
· Choose Settings ® Delegate ® System-wide.
· Switch to the change mode and select New entries.
· Enter the name of the original object type (supertype) in the field Object type and the name of the subtype in the field Delegation type.
· Deactivate the check box GUI-specific.
· Save your entries.
2006 Dec 27 10:28 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |