Manual Activities Part1

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

SAP Note 2324010

eDocument Framework: AIF Setup II

Manual Steps – Part 1

© 2016 SAP SE or an SAP affiliate company. 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 SE or an SAP affiliate company.
SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE (or an SAP affiliate company) in Germany and other countries. Please
see http://www.sap.com/corporate-en/legal/copyright/index.epx#trademark for additional trademark information and notices. Some software products marketed by SAP SE and its distributors contain proprietary software
components of other software vendors.
National product specifications may vary.
These materials are provided by SAP SE or an SAP affiliate company for informational purposes only, without representation or warranty of any kind, and SAP SE or its affiliated companies shall not be liable for errors
or omissions with respect to the materials. The only warranties for SAP SE or SAP affiliate company products and services are those that are set forth in the express warranty statements accompanying such products
and services, if any. Nothing herein should be construed as constituting an additional warranty.
In particular, SAP SE or its affiliated companies have no obligation to pursue any course of business outlined in this document or any related presentation, or to develop or release any functionality mentioned therein.
This document, or any related presentation, and SAP SE’s or its affiliated companies’ strategy and possible future developments, products, and/or platform directions and functionality are all subject to change and may
be changed by SAP SE or its affiliated companies at any time for any reason without notice. The information in this document is not a commitment, promise, or legal obligation to deliver any material, code, or
functionality. All forward-looking statements are subject to various risks and uncertainties that could cause actual results to differ materially from expectations. Readers are cautioned not to place undue reliance on
these forward-looking statements, which speak only as of their dates, and they should not be relied upon in making purchasing decisions.
Remark: If you implemented a previous version of SAP Notes 2049259 and 2153165 with transaction
SNOTE, the following steps are not required.

Implement the following steps.

1. Database Table ZEDOAIFIDXREQ


1.1. Run transaction SE11.
1.2. Select the Database Table radio button and enter ZEDOAIFIDXREQ.
1.3. Choose the Change push button.
1.4. Check if fields MSGGUID_RES and AIF_LOGICAL_PORT exist.
1.4.1.If yes, continue with step 2.
1.4.2.If no, continue with step 1.5.
1.5. Choose the Fields tab page.
1.6. Select the EDOC_GUID field.
1.7. Choose the Insert Row push-button.
1.8. In the new row, enter the following values:

Field Key Initial Values Data element Group


MSGGUID_RES GUID_32

1.9. In the first free row at the end of the table, enter the following values:

Field Key Initial Values Data element Group


AIF_LOGICAL_PORT PRX_LOGICAL_PORT_NAME

1.10. Save and activate your changes.

2. Index Z03 in Database Table ZEDOAIFIDXREQ


2.1. Run transaction SE11.
2.2. Select the Database Table radio button and enter ZEDOAIFIDXREQ.
2.3. Choose the Indexes push button ( ).
2.4. Choose the Create Index push button ( ).
2.4.1.Enter Z03 as Index Name.

2.4.2.Confirm. (Choose the green push button).

2.5. Enter Message GUID Response as Short Description.


2.6. Select the For selected database systems radio button.
2.7. Choose the Database Systems push button ( ).
2.7.1.Select the Exclusion List radio button.
2.7.2.In the Database Systems table, enter HDB as DBName.

Copyright/Trademark
2.7.3.Confirm. (Choose the green push button).

2.8. In the Index Flds table, enter MANDT and MSGGUID_RES as Field Name.
2.9. Press ENTER.
2.10. Activate your changes choosing the Activate push button ( ).

3. Enhancement Implementation ZEI_EDOC_AIF


3.1. Go to transaction SE19.
3.2. Select the New BAdI radio button in the Create Implementation group box and enter
ES_EDOCUMENT_AIF_BADIS.

3.3. Choose the Create push button.


3.4. Enter ZEI_EDOC_AIF as the Enhancement Implementation.
Enter AIF BAdIs as the Short Text.
Choose the green push button ( ).

When prompted for a package, enter the package created / chosen in step 1.
3.5. Create BAdI implementation:

Copyright/Trademark
Enter ZEDOC_AIF_BADI as the BAdI Implementation.
Enter ZCL_EDOCUMENT_AIF_BADI as the Implementation Class.
Choose in EDOC_AIF as the BAdI definition.
Choose the green push button ( ).

When prompted for a package, enter the package created / chosen in step 1.

3.6. Activate your changes.

4. Class ZCL_EDOCUMENT_AIF_BADI
4.1. Go to transaction SE24.
4.2. Enter Object Type: ZCL_EDOCUMENT_AIF_BADI.
Choose the Change push button
4.3. Choose Attributes tab-strip (only if SAP note 2027186 is not implemented yet).
Create Static Private Attribute MV_EDOC_GUID of type EDOC_GUID
Create Static Private Attribute MV_MSGID of type EDOC_INTERFACE_GUID

4.4. Save and activate your changes.


4.5. Choose Methods tab-strip

4.6. If you have installed a previous version of SAP note 2027186, please replace the existing source
code of the methods as described in the following steps. If you have NOT installed note SAP
2027186, please insert the statements.

4.7. Double-click on method IF_EDOC_AIF~EXPORT_VALUES .


4.8. Insert the following statement between ‘METHOD…’ and ‘ENDMETHOD’:
METHOD if_edoc_aif~export_values.
INCLUDE EDOC_AIF_PROXY_EXPORT_VALUES.
ENDMETHOD.
4.9. Save and activate your changes.
4.10. Choose the Back push button.

4.11. Double-click on method IF_EDOC_AIF~GET_MSGID.


4.12. Insert the following statement between ‘METHOD…’ and ‘ENDMETHOD’:
METHOD if_edoc_aif~get_msgid.

Copyright/Trademark
INCLUDE EDOC_AIF_PROXY_GET_MSGID.
ENDMETHOD.
4.13. Save and activate your changes.
4.14. Choose the Back push button.

4.15. Double-click on method IF_EDOC_AIF~GET_PROCESS_STEP.


4.16. Insert the following statement between ‘METHOD…’ and ‘ENDMETHOD’:
METHOD if_edoc_aif~get_process_step.
INCLUDE EDOC_AIF_PROXY_GET_PROCESS_ST.
ENDMETHOD.
4.17. Save and activate your changes.
4.18. Choose the Back push button.

4.19. Double-click on method IF_EDOC_AIF~GET_EDOCUMENT_DATA.


4.20. Insert the following statement between ‘METHOD…’ and ‘ENDMETHOD’:
METHOD if_edoc_aif~get_edocument_data.
INCLUDE EDOC_AIF_PROXY_GET_EDOCUMENT_D.
ENDMETHOD.
4.21. Save and activate your changes.
4.22. Choose the Back push button.

4.23. Double-click on method IF_EDOC_AIF~GET_EDOC_GUID.


4.24. Insert the following statement between ‘METHOD…’ and ‘ENDMETHOD’:
METHOD if_edoc_aif~get_edoc_guid.
INCLUDE EDOC_AIF_PROXY_GET_EDOC_GUID.
ENDMETHOD.
4.25. Save and activate your changes.
4.26. Choose the Back push button.

4.27. Double-click on method IF_EDOC_AIF~SET_EDOC_GUID.


4.28. Insert the following statement between ‘METHOD…’ and ‘ENDMETHOD’:
METHOD if_edoc_aif~set_edoc_guid.
INCLUDE EDOC_AIF_PROXY_SET_EDOC_GUID.
ENDMETHOD.
4.29. Save and activate your changes.
4.30. Choose the Exit push button.

4.31. Double-click on method IF_EDOC_AIF~GET_INTERFACE_ID.


4.32. Insert the following statement between ‘METHOD…’ and ‘ENDMETHOD’:
METHOD if_edoc_aif~get_interface_id.
INCLUDE EDOC_AIF_PROXY_GET_INTERFACEID.
ENDMETHOD.
4.33. Save and activate your changes.
4.34. Choose the Exit push button.

4.35. Remark: There is no standard delivery for the method


IF_EDOC_INTERFACE_CONNECTOR~GET_PROCESS_DATA.

Copyright/Trademark
5. Enhancement Implementation ZEI_EDOC_AIF_V1_ACT
5.1. Go to transaction SE19.
5.2. Select the New BAdI radio button in the Create Implementation group box and enter
/AIF/ERROR_HANDLING.

5.3. Choose the Create push button.


5.4. Enter ZEI_EDOC_AIF_V1_ACT as the Enhancement Implementation.
Enter AIF for eDocument error handling as the Short Text.
Choose the green push button ( ).

When prompted for a package, enter the package created / chosen in step 1.
5.5. Create BAdI implementation:

Enter Z_EDOC_AIF_V1_ACT as the BAdI Implementation.


Enter ZCL_EDOCUMENT_AIF_V1_ACT as the Implementation Class.
Choose in /AIF/V1_ACT as the BAdI definition.
Choose the green push button ( ).

Copyright/Trademark
If prompted, please chose Empty class

5.6. Activate your changes.

6. Class ZCL_EDOCUMENT_AIF_V1_ACT
6.1. Go to transaction SE24.
6.2. Enter Object Type: ZCL_EDOCUMENT_AIF_V1_ACT
Choose the Change push button

6.3. If you have installed a previous version of SAP note 2027186, please replace the existing source
code of the method as described in the following steps. If you have NOT installed note SAP
2027186, please insert the statements.

6.4. Double-click on method /AIF/IF_V1_ACT~GET_FUNC_LIST.


6.5. Insert the following statement between ‘METHOD…’ and ‘ENDMETHOD’:
METHOD /aif/if_v1_act~get_func_list.
INCLUDE EDOC_AIF_PROXY_GET_FUNC_LIST.
ENDMETHOD.
6.6. Save and activate your changes.
6.7. Choose the Exit push button.

6.8. Remark: there is no standard implementation for the other methods.

7. Enhancement Implementation ZEI_EDOC_AIF_RUNTIME_METHODS

7.1. Run transaction SE19.


7.2. Select the New BAdI radio button in the Create Implementation group box and enter
/AIF/GENERAL.
7.3. Choose the Create push button.
7.4. Create the Enhancement Implementation as follows:
7.4.1. Enter ZEI_EDOC_AIF_RUNTIME_METHODS as the Enhancement Implementation.
7.4.2. Enter AIF Runtime Methods for eDocument Framework as the Short Text.
7.4.3. Choose the green push button ( ).
7.4.4. When prompted for a package, enter a customer package.
7.5. Create the BAdI implementation as follows:
7.5.1. Enter ZEDOC_AIF_RUNTIME_METHODS as the BAdI Implementation.
7.5.2. Enter ZCL_EDOC_AIF_RUNTIME_METHODS as the Implementation Class.
7.5.3. Select /AIF/RUNTIME_METHODS as the BAdI definition.

Copyright/Trademark
7.5.4. Choose the green push button ( ).
7.5.5. When prompted for a package, enter a customer package.
7.6. Activate your changes.

8. Class ZCL_EDOC_AIF_RUNTIME_METHODS

8.1. Go to transaction SE24.


8.2. Enter ZCL_EDOC_AIF_RUNTIME_METHODS as Object Type.
Choose the Change push button
8.3. Choose the Methods tab page.
8.4. Double-click on method /AIF/IF_RUNTIME_METHODS~TRANSFER_RESPONSE_GUID.
8.5. Insert the following statement between ‘METHOD…’ and ‘ENDMETHOD’:
METHOD /aif/if_runtime_methods~transfer_response_guid.
INCLUDE edoc_aif_transfer_resp_guid.
ENDMETHOD.
8.6. Save and activate your changes.
8.7. Choose the Back push button.

8.8. Double-click on method /AIF/IF_RUNTIME_METHODS~TRANSFER_MESSAGE_GUID.


8.9. Insert the following statement between ‘METHOD…’ and ‘ENDMETHOD’:
METHOD /aif/if_runtime_methods~transfer_message_guid.
INCLUDE edoc_aif_transfer_message_guid.
ENDMETHOD.
8.10. Save and activate your changes.

9. Implement Latest Version of Country-Specific BC Sets

Note: This step is only relevant if you have already installed a country-specific eDocument solution based on
the eDocument Framework. If you are currently only installing the Framework itself as explained in SAP Note
2134248, please do not proceed with the following steps.

Please refer to the following SAP Notes and implement the latest version of the BC Sets for the country
versions that you have installed in your system:

9.1. For country version Chile: SAP Note 2030974


9.2. For country version Italy: SAP Note 2118196
9.3. For country version Peru: SAP Note 2031980
9.4. For country version Spain e-Invoicing: SAP Note 2095920

Copyright/Trademark

You might also like