SAP Note 2952199 SAP Document Compliance Greece: Mapping Enablement and Code Correction III: Manual PostImplementation Steps Manual Activity © 2020 by SAP AG. All rights reserved. SAP and the SAP logo are registered trademarks of SAP AG in Germany and other countries. Contents 1. eDocument Customizations .................................................................................................................. 3 1.1. 2. 3. General Settings ............................................................................................................................ 3 1.1.1. Define Interface Type for eDocument .................................................................................. 3 1.1.2. Assign SOA Services to eDocument Interfaces ..................................................................... 3 1.1.3. Maintain eDocument Interfaces Version .............................................................................. 4 1.1.4. Assign AIF Interface and Version to ERP Interface................................................................ 4 1.1.5. Assignment of eDocument Status to Process Status ............................................................ 4 1.1.6. Process Step Determ.: Interface shall execute this step....................................................... 5 1.1.7. Process Step Interface determination .................................................................................. 6 1.1.8. Mapping Class Determination............................................................................................... 7 AIF Customizations................................................................................................................................ 8 2.1. Activate BC Set for AIF customizations ......................................................................................... 8 2.2. Maintain AIF Value Mappings ....................................................................................................... 8 Changes in the BAdI EDOCUMENT_GR ................................................................................................. 9 3.1. ’MATCH_WITH_VENDOR_INVOICE’ method changes .................................................................. 9 3.2. ‘GET_LEGAL_DOC_NUMBER’ method added ............................................................................... 9 3.3. Determination of Domestic Vendors as NON-LIABLE ................................................................. 11 © 2020 by SAP AG. All rights reserved. SAP and the SAP logo are registered trademarks of SAP AG in Germany and other countries. 1. eDocument Customizations To enable the new functionality for the eDocument for Greece, you need to modify the generic customizing settings described below. 1.1. General Settings You make the following settings in Customizing for Cross-Application Components under Application Functions eDocument General Settings General 1.1.1. Define Interface Type for eDocument You select the interface type that you want to use for the generation of eDocuments in the Define Interface Type for eDocument (EDOINTTYPEV) Customizing activity. You can configurate this Customizing activity as the table shown below. Note: For S/4 HANA maintain interface type as “Standard”, instead of “AIF Proxy”. Company Code eDocument Type eDocument Type Description Interface Type <Customer-specific> GR_INVI_NL AIF Proxy <Customer-specific> GR_INVI_RE Greece Inc. eBooks(Non-Liable) Greece Incoming eBooks Retail <Customer-specific> GR_INVI_SU Greece Incoming eBooks Summary AIF Proxy AIF Proxy 1.1.2. Assign SOA Services to eDocument Interfaces You assign SOA Services to eDocument Interfaces in the Assign SOA Services to eDocument Interfaces (EDOINTV) Customizing activity. You can configurate this Customizing activity as the table shown below. Interface ID SOA Service Name Direction Interface Description GR_INV_REJ_REQUEST GR_EXCLASSIF_INVOICE Outbound myDATA Rejection Request © 2020 by SAP AG. All rights reserved. SAP and the SAP logo are registered trademarks of SAP AG in Germany and other countries. 1.1.3. Maintain eDocument Interfaces Version You assign Interface version in the eDocument Interfaces Version (EDOINTVERSIONV) view through transaction SM30. You can configurate this view as the table below. 1) 2) 3) 4) 5) Execute transaction SM30. Enter EDOINTVERSIONV in the Table/View field. Choose the Edit/Maintain push button. Choose the New Entries push button. Insert the below entries. Interface ID Version Version Description GR_INV_REJ_REQUEST 1 Version 1.0 Active From Direction Interface Desc Outbound myDATA Rejection Request DD.MM.YYYY 1.1.4. Assign AIF Interface and Version to ERP Interface You assign AIF interface and version to the ERP interface in the Assign AIF Interface and Version to ERP Interface (EDOINTAIFV) view through transaction SM30. You can configurate this view as the table below. 1) 2) 3) 4) 5) Execute transaction SM30. Enter EDOINTAIFV in the Table/View field. Choose the Edit/Maintain push button. Choose the New Entries push button. Insert the below entries. Prerequisite: Activate BC Set as provided in step 2.1 ‘Activate BC Set for AIF customizations’ Interface ID V er s Version Descrip tion AIF Names pace AIF Interface AIF Version Direction Interface Description GR_INV_REJ_REQU EST 1 Version 1.0 /EDOG R INVMDRE J 1 Outbound myDATA Rejection Request 1.1.5. Assignment of eDocument Status to Process Status You assign eDocument Status to the Process Status in the Assignment of eDocument Status to Process Status (EDOMETASTATUSV) by activating provided BC SET. You can configurate this view below. 1) 2) 3) 4) Execute transaction SCPR20 Enter ‘EDO_GR_METASTATUS_2’ in field BC set Click on Activate button Enter transport request to save the changes © 2020 by SAP AG. All rights reserved. SAP and the SAP logo are registered trademarks of SAP AG in Germany and other countries. 1.1.6. Process Step Determ.: Interface shall execute this step You assign the Process Step to the Interface Id in the Process Step Determ.: Interface shall execute this step (EDOPROCSTEPDETV) view through transaction SM30. You can configurate this view as the table below. 1) 2) 3) 4) 5) eDoc. Process Execute transaction SM30. Enter EDOPROCSTEPDETV in the Table/View field. Choose the Edit/Maintain push button. Choose the New Entries push button. Insert the below entries. Ver s Interface ID GRINVRE GIN GRINVRE GIN GRINVRE GIN GRINVRE GIN GRINVRE GIN GRINVRE GIN GRINVRE GIN GRINVRE GIN GRINVRE GIN GRINVRE GIN GRINVRE GIN GRINVRE GIN GRINVSU M GRINVSU M GRINVMD 1 GR_CANCEL_REQUEST GRINVMD 1 GR_INV_REJ_REQUEST 1 GR_CANCEL_REQUEST 1 GR_CANCEL_RESPONSE 1 GR_CANCEL_RESPONSE 1 GR_INCOMING_REQUEST 1 GR_INCOMING_REQUEST 1 GR_INCOMING_REQUEST 1 GR_INCOMING_REQUEST 1 GR_SEND_RESPONSE 1 GR_SEND_RESPONSE 1 GR_SEND_RESPONSE 1 GR_SEND_RESPONSE 1 GR_SEND_RESPONSE 1 GR_SUMMARY_REQUEST 1 GR_EXCLASSIFICATION_R ESPONSE eDoc. Type GR_INVI _NL GR_INVI _RE GR_INVI _NL GR_INVI _RE GR_INVI _NL GR_INVI _NL GR_INVI _RE GR_INVI _RE GR_INVI _NL GR_INVI _NL GR_INVI _RE GR_INVI _RE GR_INVI _SU GR_INVI _SU GR_INV_ MD GR_INV_ MD Source Type FI_INVOI CE INV_VE RIF FI_INVOI CE INV_VE RIF FI_INVOI CE INV_VE RIF FI_INVOI CE INV_VE RIF EDOC_L IST EDOC_L IST Process Step Interface Directi Descriptio on n CANA_RE SP CANA_RE SP SENDED OC SENDED OC SENDED OC SENDED OC PROC_RE SP PROC_RE SP PROC_RE SP PROC_RE SP PROC_RE SP SENDED OC REJECT_ RES Outbou nd Outbou nd Inboun d Inboun d Outbou nd Outbou nd Outbou nd Outbou nd Inboun d Inboun d Inboun d Inboun d Inboun d Outbou nd Inboun d Cancel Request Cancel Request Cancel Response Cancel Response Incoming Request Incoming Request Incoming Request Incoming Request Send Response Send Response Send Response Send Response Send Response Summary Request ExClassific ation Response Outbou myDATA nd Rejection Request © 2020 by SAP AG. All rights reserved. SAP and the SAP logo are registered trademarks of SAP AG in Germany and other countries. 1.1.7. Process Step Interface determination You assign the Interface Id to the Process Step in the Process Step Interface determination (EDOPROCSPINTDETV) view through transaction SM30. You can configurate this view as the table below. 1) 2) 3) 4) 5) Execute transaction SM30. Enter EDOPROCSPINTDETV in the Table/View field. Choose the Edit/Maintain push button. Choose the New Entries push button. Insert the below entries. eDoc. Process Ve Process rs Step GRINVR EGIN GRINVR EGIN GRINVR EGIN GRINVR EGIN GRINVR EGIN GRINVR EGIN GRINVR EGIN GRINVR EGIN GRINVR EGIN GRINVR EGIN GRINVR EGIN GRINVR EGIN GRINVR EGIN GRINVR EGIN GRINVS UM GRINVS UM 1 CANCEL 1 CANCEL 1 PROC_R ESP 1 PROC_R ESP 1 PROC_R ESP 1 PROC_R ESP 1 REQ_SE ND 1 REQ_SE ND 1 REQ_SE ND 1 REQ_SE ND 1 SENDED OC 1 SENDED OC 1 SENDED OC 1 SENDED OC 1 PROC_R ESP 1 REQ_SE ND eDoc Type GR_INVI _NL GR_INVI _RE GR_INVI _NL GR_INVI _NL GR_INVI _RE GR_INVI _RE GR_INVI _NL GR_INVI _NL GR_INVI _RE GR_INVI _RE GR_INVI _NL GR_INVI _NL GR_INVI _RE GR_INVI _RE GR_INVI _SU GR_INVI _SU Source Type Proc . Step Vari ant Interface ID GR_CANCEL_REQUEST GR_CANCEL_REQUEST FI_INV OICE INV_VE RIF FI_INV OICE INV_VE RIF FI_INV OICE INV_VE RIF FI_INV OICE INV_VE RIF FI_INV OICE INV_VE RIF FI_INV OICE INV_VE RIF EDOC_ LIST EDOC_ LIST GR_SEND_RESPONSE GR_SEND_RESPONSE GR_SEND_RESPONSE GR_SEND_RESPONSE GR_INCOMING_REQUES T GR_INCOMING_REQUES T GR_INCOMING_REQUES T GR_INCOMING_REQUES T GR_INCOMING_REQUES T GR_INCOMING_REQUES T GR_INCOMING_REQUES T GR_INCOMING_REQUES T GR_SEND_RESPONSE GR_SUMMARY_REQUES T Interface Direct Descriptio ion n Outbo und Outbo und Inboun d Inboun d Inboun d Inboun d Outbo und Outbo und Outbo und Outbo und Outbo und Outbo und Outbo und Outbo und Inboun d Outbo und © 2020 by SAP AG. All rights reserved. SAP and the SAP logo are registered trademarks of SAP AG in Germany and other countries. Cancel Request Cancel Request Send Response Send Response Send Response Send Response Incoming Request Incoming Request Incoming Request Incoming Request Incoming Request Incoming Request Incoming Request Incoming Request Send Response Summary Request GRINVS UM GRINVM D 1 SENDED OC 1 REJECT_ REQ GR_INVI EDOC_ _SU LIST GR_INV _MD GRINVM D 1 REJECT_ GR_INV RES _MD GR_SUMMARY_REQUES T GR_INV_REJ_REQUEST Outbo und Outbo und Summary Request myDATA Rejection Request GR_EXCLASSIFICATION_ Inboun ExClassific RESPONSE d ation Response 1.1.8. Mapping Class Determination You assign the Mapping Class to the Interface Id in the Mapping Class Determination (EDOMAPCLASSDETV) view through transaction SM30. You can configurate this view as the table below. 1) 2) 3) 4) 5) eDoc. Process GRINVR EGIN GRINVR EGIN GRINVR EGIN GRINVR EGIN GRINVR EGIN GRINVR EGIN GRINVR EGIN GRINVR EGIN GRINVR EGIN GRINVR EGIN GRINVS UM GRINVS UM Execute transaction SM30. Enter EDOMAPCLASSDETV in the Table/View field. Choose the Edit/Maintain push button. Choose the New Entries push button. Insert the below entries. Ve rs Interface ID eDoc. Type 1 GR_CANCEL_REQUEST GR_INV I_NL 1 GR_CANCEL_REQUEST GR_INV I_RE 1 GR_CANCEL_RESPONS GR_INV E I_NL 1 GR_CANCEL_RESPONS GR_INV E I_RE 1 GR_INCOMING_REQUE GR_INV ST I_NL 1 GR_INCOMING_REQUE GR_INV ST I_NL 1 GR_INCOMING_REQUE GR_INV ST I_RE 1 GR_INCOMING_REQUE GR_INV ST I_RE 1 GR_SEND_RESPONSE GR_INV I_NL 1 GR_SEND_RESPONSE GR_INV I_RE 1 GR_SEND_RESPONSE GR_INV I_SU 1 GR_SUMMARY_REQUE GR_INV ST I_SU Source Type FI_INV OICE INV_VE RIF FI_INV OICE INV_VE RIF EDOC_ LIST EDOC_ LIST Mapping Class Direct Interface ion Direction CL_EDOC_MAP_GR Outbo und CL_EDOC_MAP_GR Outbo und CL_EDOC_MAP_GR Inbou nd CL_EDOC_MAP_GR Inbou nd CL_EDOC_MAP_GR Outbo _FI und CL_EDOC_MAP_GR Outbo _INVVERF und CL_EDOC_MAP_GR Outbo _FI und CL_EDOC_MAP_GR Outbo _INVVERF und CL_EDOC_MAP_GR Inbou nd CL_EDOC_MAP_GR Inbou nd CL_EDOC_MAP_GR Inbou _LIST nd CL_EDOC_MAP_GR Outbo _LIST und © 2020 by SAP AG. All rights reserved. SAP and the SAP logo are registered trademarks of SAP AG in Germany and other countries. Cancel Request Cancel Request Cancel Response Cancel Response Incoming Request Incoming Request Incoming Request Incoming Request Send Response Send Response Send Response Summary Request GRINVM D 1 GR_EXCLASSIFICATION GR_INV SRC_FI CL_EDOC_MAP_GR Inbou _RESPONSE _MD LE nd ExClassifi cation Response 1 GR_INV_REJ_REQUEST GR_INV SRC_FI CL_EDOC_MAP_GR Outbo myDATA _MD LE und Rejection Request GRINVM D 2. AIF Customizations 2.1. Activate BC Set for AIF customizations AIF customizations can be activated by activating BC Set. Follow below steps to activate BC Set, 1) 2) 3) 4) 2.2. Execute transaction SCPR20 Enter BC set - ‘EDO_GR_AIF_3’ for ECC or ‘EDO_GR_AIF_S4_3’ for S/4 HANA Click on Activate button Enter transport request to save the changes Maintain AIF Value Mappings 2.2.1. Maintain Values for VAT Classification Category and VAT Classification Type for a VAT Tax Code Follow below steps to maintain values for VAT Classification Category and VAT Classification Type for a VAT Tax Code in the AIF Value Mappings. 1) Execute transaction /n/AIF/VMAP Enter Namespace as ‘/EDOGR’ Enter Value Mapping as ‘INV_VAT_CLASS_TYPE’ Enter Database Table Type as ‘M’ Enter Value Mapping Type as ‘M’ Click on Execute button Click on Edit button Click on Append/Create button and select no of lines to be added Enter required values for VAT Classification Category and Type for a VAT Tax Code 10) Click on Save button to save the entries. 2) 3) 4) 5) 6) 7) 8) 9) © 2020 by SAP AG. All rights reserved. SAP and the SAP logo are registered trademarks of SAP AG in Germany and other countries. Note: VAT classification data is first retrieved from table ‘EDOGRCLASSTYPEGL’ based on G/L account number of the VAT item. If entry is not found, then it is retrieved from value mapping ‘INV_VAT_CLASS_TYPE’ based on Tax Code of the VAT item. 3. Changes in the BAdI EDOCUMENT_GR 3.1. ’MATCH_WITH_VENDOR_INVOICE’ method changes Added new changing parameter ‘CT_MULTIPLE_EDOCS’ in the BAdI method. • 3.2. During pulling invoices from myDATA, set flag ‘CV_MULTIPLE_MATCH_ERROR’ as ‘X’ and fill ‘CT_MULTIPLE_EDOCS’ to handle multiple matching documents in the ‘Greece incoming eBooks’. ‘GET_LEGAL_DOC_NUMBER’ method added This method can be used to update the legal document information in the eDocument if standard print programs are not used to generate the legal document information. This method is triggered during eDocument creation for seller outgoing invoices. Below data can be updated using this method, • • • • • LEGALDOC PRNTSK STEXT SERIES NUMBR - Reference Document Number - Print Task Code - Series Prefix - Series - Document Counter This legal document information will be updated in database table EDOGRINV and will be used to prepare the xml during transmission to myDATA. © 2020 by SAP AG. All rights reserved. SAP and the SAP logo are registered trademarks of SAP AG in Germany and other countries. Sample Code: METHOD IF_EDOCUMENT_GR~GET_LEGAL_DOC_NUMBER. DATA: ls_fi_invoice TYPE edoc_src_data_fi_invoice, ls_sd_invoice TYPE edoc_src_data_sd_invoice, ls_mm_invoice TYPE edoc_src_data_invoice_verif, ls_src_data_file TYPE edoc_src_data_file. FIELD-SYMBOLS: <ls_source_data> TYPE any. CASE io_source->mv_source_type. WHEN 'FI_INVOICE'. ASSIGN ls_fi_invoice TO <ls_source_data>. * get data of source document io_source->get_data( IMPORTING es_data = <ls_source_data> ). es_legal_data-legaldoc = ls_fi_invoice-document_header-xblnr. es_legal_data-series = '0'. ******* implement your business logic here to get value from the source data OR ANY CUSTOMER TABLE in your SYSTEM WHEN 'SD_INVOICE'. ASSIGN ls_sd_invoice TO <ls_source_data>. * get data of source document io_source->get_data( IMPORTING es_data = <ls_source_data> ). es_legal_data-legaldoc = ls_sd_invoice-document_header-xblnr. es_legal_data-series = '0'. ******* implement your business logic here to get value from the source data OR ANY CUSTOMER TABLE in your SYSTEM ENDCASE. ENDMETHOD. © 2020 by SAP AG. All rights reserved. SAP and the SAP logo are registered trademarks of SAP AG in Germany and other countries. 3.3. Determination of Domestic Vendors as NON-LIABLE • Standard logic uses the Natural Person flag from the Vendor Master (LFA1-STKZN = X) to determine an eDocument type as NON-LIABLE. • To include additional determination criteria for Domestic Vendors as NON-LIABLE, implement method "CHANGE_EDOCUMENT_TYPE" of the BAdI "EDOC_ADAPTOR". Sample code METHOD IF_EDOC_ADAPTOR~CHANGE_EDOCUMENT_TYPE. DATA: ls_fi_invoice ls_mm_invoice TYPE edoc_src_data_fi_invoice, TYPE edoc_src_data_invoice_verif. FIELD-SYMBOLS: <ls_source_data> TYPE any. CASE io_source->mv_source_type. WHEN 'FI_INVOICE'. ASSIGN ls_fi_invoice TO <ls_source_data>. * get data of source document io_source->get_data( IMPORTING es_data = <ls_source_data> ). * Implement your business logic here to get value from the source data OR ANY CUSTOMER TABLE in your System and Set the eDocument type as ‘GR_INVI_NL’ cv_edoc_type = cl_edocument_gr=>gc_edoc_type-invoice_regin_nl WHEN 'INV_VERIF'. ASSIGN ls_sd_invoice TO <ls_source_data>. * get data of source document io_source->get_data( IMPORTING es_data = <ls_source_data> ). * Implement your business logic here to get value from the source data OR ANY CUSTOMER TABLE in your System and Set the eDocument type as ‘GR_INVI_NL’ cv_edoc_type = cl_edocument_gr=>gc_edoc_type-invoice_regin_nl ENDCASE. ENDMETHOD. © 2020 by SAP AG. All rights reserved. SAP and the SAP logo are registered trademarks of SAP AG in Germany and other countries. Disclaimer: © 2020 SAP 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://global12.sap.com/corporate-en/legal/copyright/index.epx 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. 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. © 2020 by SAP AG. All rights reserved. SAP and the SAP logo are registered trademarks of SAP AG in Germany and other countries.
0
You can add this document to your study collection(s)
Sign in Available only to authorized usersYou can add this document to your saved list
Sign in Available only to authorized users(For complaints, use another form )