Sei sulla pagina 1di 5

SAP Note 1995867

eDocument Framework

Manual Post-Implementation Steps

© 2014 by SAP AG. All rights reserved.


SAP and the SAP logo are registered trademarks of SAP AG in Germany and other countries. Business
Objects and the Business Objects logo are trademarks or registered trademarks of Business Objects
Software Ltd. Business Objects is an SAP company.
Sybase and the Sybase logo are registered trademarks of Sybase Inc. Sybase is an
SAP company.
1. Define Business Transaction Events (BTE)

1.1. Execute transaction FIBF.

1.2. Define new BTE Application Indicator as follows:


1.2.1. Select menu item Settings -> Identification -> SAP Applications.
1.2.2. Confirm the popup.
1.2.3. Choose the New Entries push button.
1.2.4. Insert the following line:
Appl. A Text
EDOC  eDocuments

Make sure the indicator A (Application Active) is set

1.2.5. Save.
1.2.6. Go back twice.

1.3. Register BTE function modules as follows:


1.3.1. Select menu item Settings -> P/S Modules -> … of an SAP Application.
1.3.2. Confirm the popup.
1.3.3. Choose the New Entries push button.
1.3.4. Insert the following lines and save:
Event Ctr Appl. Function Module
00001025 EDOC EDOC_BTE_00001025
00001030 EDOC EDOC_BTE_00001030

2. Define the Source Types

2.1. Execute transaction SM30.


2.2. Enter EDOSRCTYPEV in the field Table/View.
2.3. Choose the Maintain/Edit push button.
2.4. Choose the New Entries push button.
2.5. Insert the following entries and save:

Source type eDocument Structure Source Description


FI_INVOICE EDOC_SRC_DATA_FI_INVOICE Accounting documents
GI_POSTING EDOC_SRC_DATA_SD_GI Goods issue posting
SD_INVOICE EDOC_SRC_DATA_SD_INVOICE Billing document

Copyright/Trademark
3. Enhancement Spot ES_EDOCUMENT
Note: These manual activities are only relevant if the following objects were not created automatically in
your system:
 Enhancement Spot ES_EDOCUMENT
o BAdI EDOC_ADAPTOR
o BAdI EDOC_INTERFACE_CONNECTOR
If these objects already exist, you can omit the activities mentioned.

3.1. Go to transaction SE18.


3.2. Select the Enhancement Spot radio button.
3.3. Enter ES_EDOCUMENT as the Enhancement Spot.
3.4. Choose the Create push-button.
3.5. In the Create Enhancement Spot dialog, enter eDocument Enhancements as Short Text.
3.6. Select BADI Definition as the Technology.
3.7. Confirm.
3.8. When prompted, enter GLO-EDO as the Package.
3.9. Create BAdI EDOC_ADAPTOR as follows:
3.9.1. In the Enh. Spot Element Definitions tab page, choose the Create BAdI push button ( ).
3.9.2. In the Create BAdI Definition dialog, enter EDOC_ADAPTOR as the Name.
3.9.3. Enter eDocument Adaptor as the Short Description.
3.9.4. Confirm.
3.9.5. In the Usability group box, select the Multiple Use check box.
3.9.6. In the BAdI Definitions column, expand the EDOC_ADAPTOR tree.
3.9.7. Double click on the Interface sub-tree ( ).
3.9.8. In the Interface group box, enter IF_EDOC_ADAPTOR as the Interface.
Note: Interface IF_EDOC_ADAPTOR has been created with the automatic correction
instruction.
3.9.9. Press ENTER to populate the BAdI Methods.
3.9.10. Choose the Create BAdI subobjects ( ) push button and then choose the Create Filter
option.
3.9.11. In the Create Filter for BAdI dialog, enter COUNTRY as the BAdI Filter in the Filter
Definition group box.
3.9.12. Enter C (Character-like) as the Filter Type.
3.9.13. Enter Country Filter as the Description.
3.9.14. In the Filter Value Check for BAdI Implementations group box, select the Automatic
Through Dictionary radio button.
3.9.15. In the Dictionary Object group box, enter LAND1 as the Object Name.
3.9.16. Select the Object is domain check box.
3.9.17. Confirm the dialog.
3.9.18. Save and activate your changes.

Copyright/Trademark
3.10. Create BAdI EDOC_INTERFACE_CONNECTOR as follows:
3.10.1. In the Enh. Spot Element Definitions tab page, choose the Create BAdI push- button ( ).
3.10.2. In the Create BAdI Definition dialog, enter EDOC_INTERFACE_CONNECTOR as the
Name.
3.10.3. Enter eDocument Interface Connector as the Short Description.
3.10.4. Confirm.
3.10.5. In the Usability group box, select the Multiple Use check box.
3.10.6. In the BAdI Definitions column, expand the EDOC_INTERFACE_CONNECTOR tree.
3.10.7. Double click on the Interface sub-tree ( ).
3.10.8. In the Interface group box, enter IF_EDOC_INTERFACE_CONNECTOR as the Interface.
Note: Interface IF_EDOC_INTERFACE_CONNECTOR has been created with the
automatic correction instruction.
3.10.9. Press ENTER to populate the BAdI Methods.
3.10.10. Choose the Create BAdI subobjects ( ) push button and then choose the Create Filter
option.
3.10.11. In the Create Filter for BAdI dialog, enter COUNTRY as the BAdI Filter in the Filter
Definition group box.
3.10.12. Enter C (Character-like) as the Filter Type.
3.10.13. Enter Country Filter as the Description.
3.10.14. In the Filter Value Check for BAdI Implementations group box, select the Automatic
Through Dictionary radio button.
3.10.15. In the Dictionary Object group box, enter LAND1 as the Object Name.
3.10.16. Select the Object is domain check box.
3.10.17. Confirm the dialog.
3.10.18. Choose the Create BAdI subobjects ( ) push button and then choose the Create Filter
option.
3.10.19. In the Create Filter for BAdI dialog, enter INTERFACE_TYPE as the BAdI Filter in the
Filter Definition group box.
3.10.20. Enter C (Character-like) as the Filter Type.
3.10.21. Enter Interface Connector Type as the Description.
3.10.22. In the Filter Value Check for BAdI Implementations group box, select the Automatic
Through Dictionary radio button.
3.10.23. In the Dictionary Object group box, enter EDOC_INTERFACE_TYPE as the Object Name.
3.10.24. Confirm the dialog.
3.10.25. Save and activate your changes.

Copyright/Trademark
4. Create Implementation for BAdI EDOC_ADAPTOR
4.1. Execute transaction SE19.
4.2. In the Create Implementation group box, select the New BAdI radio button and enter
ES_EDOCUMENT in the Enhancement spot field.
4.3. Choose push button Create.
4.4. Enter a name for the Enhancement implementation (Z...) and a description.
4.5. Confirm your entries.
4.6. Select the BAdI Definition EDOC_ADAPTOR and enter a name for the BAdI Implementation (Z...)
and the Implementation Class (Z...).
4.7. Double-click on the Filter Val. option and create a filter with the value COUNTRY = XX. Instead of
XX, select the country from the value help that you are going to implement.
4.8. Save and activate your changes.
4.9. Go to the implementation class that you have indicated in the previous step.
4.10. Double-click on the method IF_EDOC_ADAPTOR~IS_RELEVANT to implement it. You can leave
the code empty. This method is used in case you have a special functionality for which the
eDocument should be or should not be created.
4.11. Double click on the method IF_EDOC_ADAPTOR~SET_OUTPUT_DATA to implement it. You can
leave the code empty. This method is used in case you need to change the eDocument data after
the mapping and before sending.
4.12. Save and activate your changes.

Copyright/Trademark

Potrebbero piacerti anche