Top Banner
SAP Note 1860433 NF-e: Storing Additional Data for DANFE & SPED EFD Reporting Manual Steps
13

(1)_1860433_Manual_Steps

Jan 18, 2016

Download

Documents

tarun_menezes

1860433_Manual_Steps
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: (1)_1860433_Manual_Steps

SAP Note 1860433

NF-e: Storing Additional Data for DANFE & SPED EFD Reporting

Manual Steps

Page 2: (1)_1860433_Manual_Steps

Copyright/Trademark

© 2013 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.

Page 3: (1)_1860433_Manual_Steps

Copyright/Trademark

Pre-requisites

Implement the following SAP Notes:

1853104 - NFS-e municipal document, processing date and time

1818586 - Pauta Base: DDIC Changes

1817072 - Nota Fiscal: Delivery of NBS

1803009 - Renewal of Screen Controls in NF Writer

1638543 / 1703810 - CT-e Legal Change

1598222 - Integrate Import Tags DI and ADI in NF Writer

SAP Note 1860433 (this note) - implement the transport files with new DDIC Objects

I. Data Dictionary Changes

1. Change Database Table J_1BNFDOC

At the end of the field list, after the field MUNICIPAL, add two new include structures:

Field Data element

.INCLUDE J_1BNFDOC_ADD

.INCLUDE J_1BNFDOC_SUGAR

Save and activate the table.

2. Change Database Table J_1BNFLIN At the end of the field list, after the field NBS, add a new include structure:

Field Data element

.INCLUDE J_1BNFLIN_ADD

Save and activate the table.

3. Change Database Table J_1BNFSTX At the end of the field list, after the field PAUTA_BASE, add two new fields:

Field Data element

TAXGRP J_1BTAXGRP

TAXOFF J_1BTAXOFFSET

Save and activate the table.

4. Change Database Table J_1BNFIMPORT_DI

At the end of the field list, after the field CEXPORTADOR, add two new fields:

Field Data element

COD_DOC_IMP J_1B_IMP_DECLAR_TYPE

NUM_ACDRAW J_1B_IMP_DRAWBACK_NUMBER

Page 4: (1)_1860433_Manual_Steps

Copyright/Trademark

Save and activate the table.

5. Change Structure BAPI_J_1BNFDOC

At the end of the field list, after the field CTE_TYPE, add the following new fields:

Component Component Type Reference Table Reference Field

INDPAG J_1B_PAY_FORM_IND

DSAIENT J_1B_DEP_ARR_DATE

HSAIENT J_1B_DEP_ARR_TIME

ISUF J_1B_SUFRAMA_CODE

MODFRETE J_1B_FREIGHT_MODE

PLACA J_1B_VEHICLE_LIC_PL

UF1 J_1B_VEHICLE_UF

RNTC J_1B_NAT_CARGO_CARRIER

VAGAO J_1B_WAGON_ID

BALSA J_1B_FERRYBOAD_ID

NFAT J_1B_BILLING_NUMBER

VORIG J_1B_BILLING_ORG_VALUE J_1BNFDOC WAERK

VDESC J_1B_DISCOUNT_VALUE J_1BNFDOC WAERK

VLIQ J_1B_BILLING_NET_VALUE J_1BNFDOC WAERK

UFEMBARQ J_1B_SHIPMENT_PLACE_UF

XLOCEMBARQ J_1B_SHIPMENT_PLACE

XNEMP J_1B_COMMITMENT_NOTE

SAFRA J_1B_HARVEST_ID

REF_MONTH_YEAR J_1B_REF_MONTH_YEAR

QTOTMES J_1B_SUGAR_QUAN_MONTH

QTOTANT J_1B_SUGAR_QUAN_PREV

QTOTGER J_1B_SUGAR_QUAN_TOT

VFOR J_1B_SUPPLIES_VALUE J_1BNFDOC WAERK

VTOTDED J_1B_TOTAL_DEDUCT_VALUE J_1BNFDOC WAERK

VLIQFOR J_1B_SUPPLIES_NET_VALUE J_1BNFDOC WAERK

Save and activate the structure.

6. Change Structure BAPI_J_1BNFLIN

At the end of the field list, after the field NBS, add the following new fields:

Component Component Type

XPED J_1B_PURCH_ORDER_EXT

NITEMPED J_1B_PURCH_ORD_ITEM_EXT

CLENQ J_1B_IPI_CLASS_TBC_BEV

CSELO J_1B_IPI_CONTR_SEAL_CODE

QSELO J_1B_IPI_CONTR_SEAL_QUAN

NUM_ITEM J_1B_EXT_ITEM_NUM

COD_CTA J_1B_GL_ACCOUNT

Save and activate the structure.

Page 5: (1)_1860433_Manual_Steps

Copyright/Trademark

7. Change Structure BAPI_J_1BNFIMPORT_DI At the end of the field list, after the field CEXPORTADOR, add two new fields:

Component Component Type

COD_DOC_IMP J_1B_IMP_DECLAR_TYPE

NUM_ACDRAW J_1B_IMP_DRAWBACK_NUMBER Save and activate the structure.

8. Change Structure J_1BDYDOC

At the end of the field list, after the field PARBRANCH, add a new include structure:

Component Component Type

.INCLUDE J_1BDYDOC_ADD

Save and activate the structure.

9. Change Structure J_1BDYIMPORT_DI

At the end of the field list, after the field CEXPORTADOR, add two new fields:

Component Component Type

COD_DOC_IMP J_1B_IMP_DECLAR_TYPE

NUM_ACDRAW J_1B_IMP_DRAWBACK_NUMBER Save and activate the structure.

10. Change Structure J_1BDYNAD

At the end of the field list, after the field CTE_PARTNER, add four new fields:

Component Component Type

IEST_PARTNER J_1B_STAIST_PARTNER

CNAE_PARTNER J_1B_CNAE_PARTNER

CRT_PARTNER J_1B_CRT_PARTNER

ISUF J_1B_SUFRAMA_CODE

Save and activate the structure.

11. Change Structure J_1BDYSTX Delete the field TAXGRP.

Save and activate the structure.

12. Change Structure J_1BPRNFESTX Delete the field TAXGRP.

Save and activate the structure.

Page 6: (1)_1860433_Manual_Steps

Copyright/Trademark

II. Function groups

Call transaction SE80 and create new function groups: 1. Function group J_1B_NF_ADD

Short text Additional Fields for DANFE & SPED EFD Package J1BA Save.

2. Function group J_1B_NF_LONGTEXT Short text NF Long text GUI components Package J1BA Save.

III. Report Texts

Call transaction SE38.

Enter SAPLJ1BB2 as the Program.

Select the Text Elements radio button.

Choose the Change push button.

On the Text Symbols tab page, enter the following values:

Symbol Text Length Max 116 Delete Transported Volumes 26 26

117 Do you really want to delete this row? 38 61

118 Delete Trailer Information 26 26

Save and activate your changes.

IV. Messages

Call transaction SE91 and create new messages:

Message Class Number Text

8B 015 Item number must be unique

8B 388 Text with OBJECT &1 ID &2 cannot be created

8B 390 Item &1 in the table &2 is incorrect

ICC_NF_WRITER 030 Counter number for Transported Volumes already exists

ICC_NF_WRITER 031 Counter number for Trailer Information already exists

J1B_NFE 224 Error in BAdI implementation; table &1 has entries with duplicate keys

J1B_NFE 225 Error in BAdI implementation; table &1 references non-existing item

Page 7: (1)_1860433_Manual_Steps

Copyright/Trademark

V. Text objects and text ids

Call transaction SE75.

Choose Text Objects and IDs, press Change

1. create two new entries:

Text Object: J_1BNFDOC

Meaning: BR: Nota Fiscal Header

Save Mode: update

Editor: Editor application TN,

Line width 72

Save.

2. Text Object: J_1BNFLIN

Meaning: BR: Nota Fiscal Item

Save Mode: update

Editor: Editor application TN,

Line width 72

Save.

3. Mark Text Object J_1BNFDOC and create new Text-IDs

Text ID: 0001

Meaning: Add. Information (Authorities)

Text ID: 0002

Meaning: Compl. Information (Company)

Save.

4. Mark Text Object J_1BNFLIN and create a new Text-ID

Text ID: 0001

Meaning: Add. Information on Product

Save.

VI. Screen Control

Call transaction SM30 and maintain the following views:

1. View J_1BAEHV:

Item field group Description

44 Payment Form Indicator

45 SUFRAMA Subscription

57 Transported Volumes

58 Means of Transport

59 Freight information

60 Departure / Arrival

61 Export information

Page 8: (1)_1860433_Manual_Steps

Copyright/Trademark

2. View J_1BAEITV:

Item field group Description

65 External Item Number

66 IPI Legal Classification Code

67 Purchase Order

68 IPI Class. Tobacco & Beverages

69 IPI Control Seal

70 GL Acc. revenue / exp. / stock

3. View J_1BAKHV:

Table name Field name Header field group

J_1BDYDOC BALSA 58

J_1BDYDOC DSAIENT 60

J_1BDYDOC HSAIENT 60

J_1BDYDOC INDPAG 44

J_1BDYDOC MODFRETE 59

J_1BDYDOC MODFRETE_TXT 59

J_1BDYDOC PLACA 58

J_1BDYDOC RNTC 58

J_1BDYDOC UF1 58

J_1BDYDOC UF1_TXT 58

J_1BDYDOC UFEMBARQ 61

J_1BDYDOC UFEMBARQ_TXT 61

J_1BDYDOC VAGAO 58

J_1BDYDOC XLOCEMBARQ 61

J_1BDYTRAILER PLACA 58

J_1BDYTRAILER RNTC 58

J_1BDYTRAILER VEH_UF 58

J_1BDYTRANSVOL ESP 57

J_1BDYTRANSVOL MARCA 57

J_1BDYTRANSVOL NLACRE 57

J_1BDYTRANSVOL NVOL 57

J_1BDYTRANSVOL PESOB 57

J_1BDYTRANSVOL PESOL 57

J_1BDYTRANSVOL QVOL 57

J_1BDYIMPORT_DI COD_DOC_IMP 41

J_1BDYIMPORT_DI NUM_ACDRAW 41

J_1BDYNAD ISUF 45

4. View J_1BAKITV:

Table name Field name Item field group J_1BDYLIN CENQ 66

J_1BDYLIN CLENQ 68

J_1BDYLIN COD_CTA 70

J_1BDYLIN CSELO 69

J_1BDYLIN NITEMPED 67

J_1BDYLIN NUM_ITEM 65

J_1BDYLIN QSELO 69

J_1BDYLIN XPED 67

Page 9: (1)_1860433_Manual_Steps

Copyright/Trademark

5. Define Item field screen controls

The screen controls for the additional fields must be implemented. Below the settings for the example

entries that SAP delivers are described. This has been done using the following rules:

- For CT-e the groups are set to hide (H) with exception of group 70

Group 70 is set to Optional (O) with exception of the display screen controls: it is set to display (D)

- For Display NF-e the groups are set to display (default)

- For Change and Create NF-e group 70 is set to optional

the groups 65, 66, 68, and 69 are set to optional for incoming

the groups 65, 66, 68, and 69 are set to hide for outgoing

the group 67 is set to optional for outgoing

the group 67 is set to hide for outgoing

- For Change and Create NF-e Service (Flag Service Tax is set) the groups are set to hide with

exception of group 70. Group 70 is set to Optional with exception of the display screen controls: it is

set to display (D).

5.1. Go to Transaction SPRO

5.2. In the SAP reference IMG Select Cross-Application Components General Application functions

Nota Fiscal Nota Fiscal Document Maintenance Define Item Screen Controls

5.3. Choose the IMG activity push button

5.4. Select the SAP entries (1-32)

Page 10: (1)_1860433_Manual_Steps

Copyright/Trademark

5.5. Maintain the new Item field groups 65, 66, 67, 68, 69 and 70 in accordance to the rules described

above. The item field screen controls are changed as follows. The numbers refer to the Item screen

controls (see above).

Control Service 65 66 67 68 69 70

0001 D D D D D D

0002 D D D D D D

0003 O O H O O O

0003 X H H H H H O

0004 H H O H H O

0004 X H H H H H O

0005 O O H O O O

0005 X H H H H H O

0006 H H O H H O

0006 X H H H H H O

0007 O O H O O O

0007 X H H H H H O

0008 H H O H H O

0008 X H H H H H O

O 0009 O O H O O O

0009 X H H H H H O

0010 O O H O O O

0010 X H H H H H O

0011 O O H O O O

0011 X H H H H H O

0012 O O H O O O

0012 X H H H H H O

0013 H H O H H O

0013 X H H H H H O

0014 O O H O O O

0014 X H H H H H O

0021 H H H H H D

0022 H H H H H D

0023 H H H H H O

0024 H H H H H O

0025 H H H H H O

0028 H H H H H O

0029 H H H H H O

0031 H H H H H O

0032 H H H H H O

Page 11: (1)_1860433_Manual_Steps

Copyright/Trademark

5.6. Save your changes.

6. Define header field screen controls

The field screen controls for the additional fields must be implemented. Below the settings for the

example entries that SAP delivers are described. This has been done using the following rules:

- For CT-e the groups 44, 45 and 57-61 are set to hide

- For Display NF-e the groups are set to display (default)

- For Change and Create NF-e the groups are set to optional

6.1. Go to Transaction SPRO

6.2. In the SAP reference IMG Select Cross-Application Components General Application functions

Nota Fiscal Nota Fiscal Document Maintenance Define Header Screen Controls

6.3. Choose the IMG activity push button

Page 12: (1)_1860433_Manual_Steps

Copyright/Trademark

6.4. Select the SAP entries (1-32)

6.5. Maintain the new header field groups 44, 45, 57-61 in accordance to the rules described above:

The header field screen controls are changed as follows. The numbers refer to the header screen

controls.

Screen 44 45 57 58 59 60 61

0001 D D D D D D D

0002 D D D D D D D

0003 O O O O O O O

0004 O O O O O O O

0005 O O O O O O O

0006 O O O O O O O

0007 O O O O O O O

0008 O O O O O O O

0009 O O O O O O O

0010 O O O O O O O

0011 O O O O O O O

0012 O O O O O O O

0013 O O O O O O O

0014 O O O O O O O

0021 H H H H H H H

0022 H H H H H H H

0023 H H H H H H H

0024 H H H H H H H

0025 H H H H H H H

0028 H H H H H H H

0029 H H H H H H H

0031 H H H H H H H

0032 H H H H H H H

Page 13: (1)_1860433_Manual_Steps

Copyright/Trademark

Save and activate your changes.