Professional Documents
Culture Documents
Manual Steps v1.7
Manual Steps v1.7
Manual Activities
The next steps explain the implementation of AIF Connector; in more detail BAdI
EDOC_INTERFACE_CONNECTOR is used to connect to AIF:
Copyright/Trademark
4. Creation of BAdI Implementation ZEDOC_IT_AIF_PARTNER
The following steps are only relevant if the BAdI Implementation ZEDOC_IT_AIF_PARTNER doesn’t
exist in your system yet.
4.1. Choose the Create BAdI Implementation push button.
4.2. Enter as
4.2.1. BAdI Definition: EDOC_INTERFACE_CONNECTOR
4.2.2. BAdI Implementation: ZEDOC_IT_AIF_PARTNER
4.2.3. Implementation Class: ZCL_EDOC_IT_PART_AIF_CONNECTOR
4.2.4. Short Text: AIF interface connector - Italy (Partner Integration and E2E)
4.3. Save and activate your changes.
4.4. When prompted for a package, enter the package created / chosen in step 1.
4.5. Expand the tree of the BAdI Implementation you have just created.
4.6. Double-click on the Filter Values sub-tree.
4.7. In the Filter Values section on the right-hand side, choose the Combination push-button.
4.8. In the Choose Filter dialog, select all three filters:
INTERFACE_TYPE, COUNTRY, and GENERIC_FILTER.
4.9. Choose the Continue push button.
4.10. Double-click on the COUNTRY filter.
4.11. In the Change Filter Value dialog, enter IT as Value 1 and select = as Comparator 1.
4.12. Choose the Continue push button.
4.13. Double-click on the INTERFACE_TYPE filter.
4.14. In the Change Filter Value dialog, enter AIF_PROXY as Value 1 and select = as Comparator 1.
4.15. Choose the Continue push button.
4.16. Double-click on the GENERIC_FILTER filter.
4.17. In the Change Filter Value dialog, leave Value 1 empty and select = as Comparator 1.
4.18. Choose the Continue push button.
4.19. The filter combination you have just created will look like this (the order might be different):
Copyright/Trademark
4.28. Upload file ZCL_EDOC_IT_PART_AIF_CONNECTOR - Protected.txt (included in attachment
2683318_Sources.zip to this SAP Note)
4.29. Save and activate your changes.
5. Class ZCL_EDOC_IT_PART_AIF_CONNECTOR
5.1. Go to transaction SE24.
5.2. Enter Object Type: ZCL_EDOC_IT_PART_AIF_CONNECTOR
5.3. Choose the Change push button.
5.8. For the following methods, continue in the same way as above.
If the method exists with different coding, adjust it to the one given.
If the method is not implemented yet, create the method implementation as given.
5.8.1. IF_EDOC_INTERFACE_CONNECTOR~CLEAN_UP_MESSAGES:
INCLUDE edoc_aif_partner_it_cleanup_ms.
5.8.2. IF_EDOC_INTERFACE_CONNECTOR~ COMMUNICATE_ACTION:
INCLUDE edoc_aif_proxy_communicate.
5.8.3. IF_EDOC_INTERFACE_CONNECTOR~DISPLAY_EDOCUMENT:
INCLUDE edoc_aif_partner_it_display.
5.8.4. IF_EDOC_INTERFACE_CONNECTOR~NAVIGATE_TO_MONITOR:
INCLUDE edoc_aif_xml_it_navigate. "same as for AIF_XML
5.8.5. IF_EDOC_INTERFACE_CONNECTOR~ PULL_MESSAGES:
INCLUDE edoc_aif_partner_it_pull_msg.
5.8.6. IF_EDOC_INTERFACE_CONNECTOR~TRIGGER:
INCLUDE edoc_aif_partner_it_trigger.
5.8.7. GET_PREVIEW_GOVERNMENT_XML:
INCLUDE edoc_aif_partner_it_get_prevw.
5.8.8. MAP_DATA:
INCLUDE edoc_aif_partner_it_map_data.
5.8.9. IF_EDOC_INTERFACE_CONNECTOR~GET_EDOCUMENT:
INCLUDE edoc_aif_partner_it_get_edoc.
Copyright/Trademark
then execute the following steps:
6.5.1. Press the Display <-> Change push button.
6.5.2. Delete these filter values: mark the Combination 1 entry and press the Delete Filter
Combination push button.
6.5.3. In the Filter Values section on the right-hand side, choose the Combination push-button.
6.5.4. In the Choose Filter dialog, select all three filters:
INTERFACE_TYPE, COUNTRY, and GENERIC_FILTER.
6.5.5. Choose the Continue push button.
6.5.6. Double-click on the COUNTRY filter.
6.5.7. In the Change Filter Value dialog, enter IT as Value 1 and select = as Comparator 1.
6.5.8. Choose the Continue push button.
6.5.9. Double-click on the INTERFACE_TYPE filter.
6.5.10. In the Change Filter Value dialog, enter AIF_XML as Value 1 and select = as Comparator 1.
6.5.11. Choose the Continue push button.
6.5.12. Double-click on the GENERIC_FILTER filter.
6.5.13. In the Change Filter Value dialog, leave Value 1 empty and select = as Comparator 1.
6.5.14. Choose the Continue push button.
6.5.15. The filter combination you have just created will look like this (the order might be different):
Copyright/Trademark
IT_INV_OUT_SEND_RESPONSE 1 Proxy Version 1.0 <ditto>
Copyright/Trademark
SOA Service Name Logical Port
IT_INVOICE_DELETE EDO_IT_RECEIVE_INVOICE_DELETE
IT_INVOICE_PULL EDO_IT_RECEIVE_INVOICE_PULL
IT_INVOICE_SEND EDO_IT_SEND_INVOICE
IT_NOTIF_DELETE EDO_IT_RECEIVE_NOTIF_DELETE
IT_NOTIF_PULL EDO_IT_RECEIVE_NOTIF_PULL
IT_NOTIF_SEND EDO_IT_SEND_NOTIF
Copyright/Trademark
11. Implement BAdI methods to send an email with attached XML and PDF files to customers
and send an email with attached XML file to vendors in case of rejection
11.1. Implement the BAdI EDOC_PARTNER_CONNECTOR method TRIGGER to create and send an
email for the rejection.
If you want to use the SAP Business Communication Service for sending the email you can use
11.1.1. in the BAdI method TRIGGER:
For process 'ITINVOUT', add the call to method
IO_EDOCUMENT-> SEND_EMAIL_TO_CUST.
For process 'ITINVIN', add the call to method
DATA: LO_EDOCUMENT_IT TYPE CL_EDOCUMENT_IT.
LO_EDOCUMENT_IT ?= IO_EDOCUMENT.
LO_EDOCUMENT_IT ->SEND_EMAIL_TO_VENDOR.
If you want to connect to your own email system, you can find the information on the supplier’s
email address and the rejection reason, in parameter IO_EDOCUMENT->ms_edoitinvin.
Copyright/Trademark