badi manual steps

25
1 1713145 - SPED-EFD: Guia Prático 2.0.7 - Changes valid as of July/2012 Contents Manual Pre-Implementation Steps ................................................................................................................................... 3 Change Domain (J_1BEFD_IND_PGTO) ......................................................................................................................... 3 Change Domain (J_1BEFD_IND_FRT) ............................................................................................................................ 3 Create Domain (J_1BEFD_IND_NAT_FRT) .................................................................................................................... 4 Create Data Element (J_1BEFD_IND_NAT_FRT) ........................................................................................................... 4 Change Structure (J_1BEFDS_D_3_D170)..................................................................................................................... 5 Create Domain (J_1BEFD_IND_FRT_RED) ..................................................................................................................... 5 Create Data Element (J_1BEFD_IND_FRT_RED) ........................................................................................................... 6 Change Structure (J_1BEFDS_D_3_D130)..................................................................................................................... 7 Create Structure (J_1BEFDS_D_5_D197) ...................................................................................................................... 7 Create Table Type (J_1BEFDT_D_5_D197) ................................................................................................................... 8 Create Structure (J_1BEFDS_D_4_D195) ...................................................................................................................... 9 Create Table Type (J_1BEFDT_D_4_D195) ................................................................................................................... 9 Change Structure (J_1BEFDS_D_3_D190)................................................................................................................... 10 Create Structure (J_1BEFDS_H_4_H020) .................................................................................................................... 10 Create Table Type (J_1BEFDT_H_4_H020) ................................................................................................................. 11 Change Structure (J_1BEFDS_H_3_H010)................................................................................................................... 11 Create Domain (J_1BEFD_MOT_INV) ......................................................................................................................... 11 Create Data Element (J_1BEFD_MOT_INV) ................................................................................................................ 12 Change Structure (J_1BEFDS_H_2_H005)................................................................................................................... 13 Create Domain (J_1BEFD_IND_YES_NO) .................................................................................................................... 13 Create Data Element (J_1BEFD_ IND_YES_NO) .......................................................................................................... 13 Create Structure (J_1BEFDS_1_2_1010) ..................................................................................................................... 14 Create Table Type (J_1BEFDT_1_2_1010) .................................................................................................................. 15 Create Structure (J_1BEFDS_1_3_1391) ..................................................................................................................... 15 Create Table Type (J_1BEFDT_1_3_1391) .................................................................................................................. 20 Create Domain (J_1BEFD_COD_PROD) ....................................................................................................................... 20 Create Data Element (J_1BEFD_COD_PROD) ............................................................................................................. 21 Create Structure (J_1BEFDS_1_2_1390) ..................................................................................................................... 21 Create Table Type (J_1BEFDT_1_2_1390) .................................................................................................................. 22 Change Structure (J_1BEFDS_1_1_1001) ................................................................................................................... 22 Change BAdI (BADI_J_1BEFD) – Change method SET_BLOCK_D_REG_D610............................................................. 23 Change BAdI (BADI_J_1BEFD) – Change method SET_BLOCK_D_REG_D690............................................................. 23 Change BAdI (BADI_J_1BEFD) – Change method SET_BLOCK_H_REG_H020............................................................. 24

Upload: antares38599

Post on 09-Dec-2015

92 views

Category:

Documents


5 download

TRANSCRIPT

Page 1: BADI Manual Steps

1

1713145 - SPED-EFD: Guia Prático 2.0.7 - Changes valid as of July/2012

Contents Manual Pre-Implementation Steps ................................................................................................................................... 3

Change Domain (J_1BEFD_IND_PGTO) ......................................................................................................................... 3

Change Domain (J_1BEFD_IND_FRT) ............................................................................................................................ 3

Create Domain (J_1BEFD_IND_NAT_FRT) .................................................................................................................... 4

Create Data Element (J_1BEFD_IND_NAT_FRT) ........................................................................................................... 4

Change Structure (J_1BEFDS_D_3_D170) ..................................................................................................................... 5

Create Domain (J_1BEFD_IND_FRT_RED) ..................................................................................................................... 5

Create Data Element (J_1BEFD_IND_FRT_RED) ........................................................................................................... 6

Change Structure (J_1BEFDS_D_3_D130) ..................................................................................................................... 7

Create Structure (J_1BEFDS_D_5_D197) ...................................................................................................................... 7

Create Table Type (J_1BEFDT_D_5_D197) ................................................................................................................... 8

Create Structure (J_1BEFDS_D_4_D195) ...................................................................................................................... 9

Create Table Type (J_1BEFDT_D_4_D195) ................................................................................................................... 9

Change Structure (J_1BEFDS_D_3_D190) ................................................................................................................... 10

Create Structure (J_1BEFDS_H_4_H020) .................................................................................................................... 10

Create Table Type (J_1BEFDT_H_4_H020) ................................................................................................................. 11

Change Structure (J_1BEFDS_H_3_H010)................................................................................................................... 11

Create Domain (J_1BEFD_MOT_INV) ......................................................................................................................... 11

Create Data Element (J_1BEFD_MOT_INV) ................................................................................................................ 12

Change Structure (J_1BEFDS_H_2_H005)................................................................................................................... 13

Create Domain (J_1BEFD_IND_YES_NO) .................................................................................................................... 13

Create Data Element (J_1BEFD_ IND_YES_NO) .......................................................................................................... 13

Create Structure (J_1BEFDS_1_2_1010) ..................................................................................................................... 14

Create Table Type (J_1BEFDT_1_2_1010) .................................................................................................................. 15

Create Structure (J_1BEFDS_1_3_1391) ..................................................................................................................... 15

Create Table Type (J_1BEFDT_1_3_1391) .................................................................................................................. 20

Create Domain (J_1BEFD_COD_PROD) ....................................................................................................................... 20

Create Data Element (J_1BEFD_COD_PROD) ............................................................................................................. 21

Create Structure (J_1BEFDS_1_2_1390) ..................................................................................................................... 21

Create Table Type (J_1BEFDT_1_2_1390) .................................................................................................................. 22

Change Structure (J_1BEFDS_1_1_1001) ................................................................................................................... 22

Change BAdI (BADI_J_1BEFD) – Change method SET_BLOCK_D_REG_D610 ............................................................. 23

Change BAdI (BADI_J_1BEFD) – Change method SET_BLOCK_D_REG_D690 ............................................................. 23

Change BAdI (BADI_J_1BEFD) – Change method SET_BLOCK_H_REG_H020 ............................................................. 24

Page 2: BADI Manual Steps

2

Change BAdI (BADI_J_1BEFD) – Create method SET_BLOCK_D_REG_D195 .............................................................. 24

Page 3: BADI Manual Steps

3

Manual Pre-Implementation Steps

Change Domain (J_1BEFD_IND_PGTO)

- Execute transaction SE11; - Select the radio button “Domain”; - Enter “J_1BEFD_IND_PGTO” in the proper field; - Choose the “Change” pushbutton; - Select the “Value Range” tab; - Delete the line with the following information: - Fix. Val.: 9 - Short Descript.: No payment - Enter a new line as follows: - Fix. Val.: 2 - Short Descript.: Others - Enter a new line as follows: - Fix. Val.: 9 - Short Descript.: No Payment (only valid for layout 003 and 004) Save and activate. In the end of the process, you should have the following domain:

Change Domain (J_1BEFD_IND_FRT)

- Execute transaction SE11; - Select the radio button “Domain”; - Enter “J_1BEFD_IND_FRT” in the proper field; - Choose the “Change” pushbutton; - Select the “Value Range” tab; - Change the short description of the line with Fix. Val. 0 as follows: - Fix. Val.: 0 - Short Descript.: On Issuer's Account - Change the short description of the line with Fix. Val. 1 as follows: - Fix. Val.: 1 - Short Descript.: On Issuer's/Addressee's Account - Change the short description of the line with Fix. Val. 2 as follows: - Fix. Val.: 2 - Short Descript.: On Third Party's Account Save and activate. In the end of the process, you should have the following domain:

Page 4: BADI Manual Steps

4

Create Domain (J_1BEFD_IND_NAT_FRT)

- Execute transaction SE11; - Select the radio button “Domain”; - Enter “J_1BEFD_IND_NAT_FRT” in the proper field; - Choose the “Create” pushbutton; - Enter “Freight Nature Indicator” in the “Short Description” field; - Enter the information as follows: - Data Type: CHAR; - No. Characters: 1; - Select the “Value Range” tab; - Enter the information as follows: - Fix. Val.: 0 - Short Descript.: Negotiable - Fix. Val.: 1 - Short Descript.: Non negotiable Save and activate. Obs.: Choose package “J1BA” for this new domain. In the end of the process, you should have the following domain:

Create Data Element (J_1BEFD_IND_NAT_FRT)

- Execute transaction SE11;

Page 5: BADI Manual Steps

5 - Select the radio button “Data type”; - Enter “J_1BEFD_IND_NAT_FRT” in the proper field; - Choose the “Create” pushbutton; - Choose the “Data element” radiobutton and then choose “Ok”; - Enter “Freight Nature Indicator” in the “Short Description” field; - Enter “J_1BEFD_IND_NAT_FRT” in the “Domain” field; - Select the “Field Label” tab; - Enter the information as follows: - Short (Length): 10; - Short (Field Label): Freight Na; - Medium (Length): 17; - Medium (Field Label): Freight Nat. Ind.; - Long (Length): 24; - Long (Field Label): Freight Nature Indicator; - Heading (Length): 24; - Heading (Field Label): Freight Nature Indicator; Save and activate. Obs.: Choose package “J1BA” for this new domain. In the end of the process, you should have the following data element:

Change Structure (J_1BEFDS_D_3_D170)

- Execute transaction SE11; - Select the radio button “Data type”; - Enter “J_1BEFDS_D_3_D170” in the proper field; - Choose the “Change” pushbutton; - Change the line with “IND_FRT” component as follows: - Component: IND_FRT; - Data type: J_1BEFD_IND_NAT_FRT; Save and activate.

Create Domain (J_1BEFD_IND_FRT_RED)

- Execute transaction SE11; - Select the radio button “Domain”; - Enter “J_1BEFD_IND_FRT_RED” in the proper field; - Choose the “Create” pushbutton; - Enter “Freight Redispatch Indicator” in the “Short Description” field; - Enter the information as follows: - Data Type: CHAR; - No. Characters: 1; - Select the “Value Range” tab;

Page 6: BADI Manual Steps

6 - Enter the information as follows: - Fix. Val.: 0 - Short Descript.: No redispatch - Fix. Val.: 1 - Short Descript.: On Issuer's Account - Fix. Val.: 2 - Short Descript.: On Addressee's Account - Fix. Val.: 9 - Short Descript.: Others Save and activate. Obs.: Choose package “J1BA” for this new domain. In the end of the process, you should have the following domain:

Create Data Element (J_1BEFD_IND_FRT_RED)

- Execute transaction SE11; - Select the radio button “Data type”; - Enter “J_1BEFD_IND_FRT_RED” in the proper field; - Choose the “Create” pushbutton; - Choose the “Data element” radiobutton and then choose “Ok”; - Enter “Freight Redispatch Indicator” in the “Short Description” field; - Enter “J_1BEFD_IND_FRT_RED” in the “Domain” field; - Select the “Field Label” tab; - Enter the information as follows: - Short (Length): 10; - Short (Field Label): Freight Re; - Medium (Length): 17; - Medium (Field Label): Freight Red. Ind.; - Long (Length): 28; - Long (Field Label): Freight Redispatch Indicator; - Heading (Length): 28; - Heading (Field Label): Freight Redispatch Indicator; Save and activate. Obs.: Choose package “J1BA” for this new domain. In the end of the process, you should have the following data element:

Page 7: BADI Manual Steps

7

Change Structure (J_1BEFDS_D_3_D130)

- Execute transaction SE11; - Select the radio button “Data type”; - Enter “J_1BEFDS_D_3_D130” in the proper field; - Choose the “Change” pushbutton; - Change the line with “IND_FRT_RED” component as follows: - Component: IND_FRT_RED; - Data type: J_1BEFD_IND_FRT_RED; Save and activate.

Create Structure (J_1BEFDS_D_5_D197)

- Execute transaction SE11; - Select the radio button “Data type”; - Enter “J_1BEFDS_D_5_D197” in the proper field; - Choose the “Create” pushbutton; - Choose the “Structure” radiobutton and then choose “Ok”; - Enter “EFD: Other tax liabilities, adjustments and information” in the field “Short Description”; - Create a new line in the tab “Components” for each of the following lines: - Enter the information as follows: - Component: REG; - Typing Method: Types; - Component Type: J_1BEFD_REG; - Component: COD_AJ; - Typing Method: Types; - Typing Method: CHAR10; - Component: DESCR_COMPL_AJ; - Typing Method: Types; - Typing Method: CHAR255; - Component: COD_ITEM; - Typing Method: Types; - Typing Method: MATNR; - Component: VL_BC_ICMS; - Typing Method: Types; - Typing Method: J_1BEFD_VALUE;

Page 8: BADI Manual Steps

8 - Component: ALIQ_ICMS; - Typing Method: Types; - Typing Method: J_1BTXRATE; - Component: VL_ICMS; - Typing Method: Types; - Typing Method: J_1BEFD_VALUE; - Component: VL_OUTROS; - Typing Method: Types; - Typing Method: J_1BEFD_VALUE; - Select the “Currency/quantity fields” tab; - Enter the information as follows: - Component: VL_BC_ICMS; - Reference table: T001; - Ref. field: WAERS; - Component: VL_ICMS; - Reference table: T001; - Ref. field: WAERS; - Component: VL_OUTROS; - Reference table: T001; - Ref. field: WAERS; When asked which “Enhancement Category” should be used, select “Can be enhanced (Deep)”. Save and activate. Obs.: Choose package “J1BA”. In the end of the process, you should have the following structure:

Create Table Type (J_1BEFDT_D_5_D197)

- Execute transaction SE11; - Select the radio button “Data type”; - Enter “J_1BEFDT_D_5_D197” in the proper field; - Choose the “Create” pushbutton; - Choose the “Table Type” radiobutton and then choose “Ok”; - Select the “Line Type” tab;

Page 9: BADI Manual Steps

9 - Enter “J_1BEFDS_D_5_D197” in the field “Line Type”; - Fill the field “Short text” with: “EFD: Other tax liabilities, adjustments and information”; Save and activate. Obs.: Choose package “J1BA”.

Create Structure (J_1BEFDS_D_4_D195)

- Execute transaction SE11; - Select the radio button “Data type”; - Enter “J_1BEFDS_D_4_D195” in the proper field; - Choose the “Create” pushbutton; - Choose the “Structure” radiobutton and then choose “Ok”; - Enter “EFD: Observation of the tax release” in the field “Short Description”; - Create a new line in the tab “Components” for each of the following lines: - Enter the information as follows: - Component: REG; - Typing Method: Types; - Component Type: J_1BEFD_REG; - Component: COD_OBS; - Typing Method: Types; - Typing Method: SEQUNR; - Component: TXT_COMPL; - Typing Method: Types; - Typing Method: CHAR255; - Component: TAB_D197; - Typing Method: Types; - Typing Method: J_1BEFDT_D_5_D197; When asked which “Enhancement Category” should be used, select “Can be enhanced (Deep)”. Save and activate. Obs.: Choose package “J1BA”. In the end of the process, you should have the following structure:

Create Table Type (J_1BEFDT_D_4_D195)

- Execute transaction SE11; - Select the radio button “Data type”; - Enter “J_1BEFDT_D_4_D195” in the proper field; - Choose the “Create” pushbutton; - Choose the “Table Type” radiobutton and then choose “Ok”; - Select the “Line Type” tab; - Enter “J_1BEFDS_D_4_D195” in the field “Line Type”; - Fill the field “Short text” with: “EFD: Observation of the tax release”; Save and activate. Obs.: Choose package “J1BA”.

Page 10: BADI Manual Steps

10

Change Structure (J_1BEFDS_D_3_D190)

- Execute transaction SE11; - Select the radio button “Data type”; - Enter “J_1BEFDS_D_3_D190” in the proper field; - Choose the “Change” pushbutton; - Create a new line in the tab “Components”, enter the information as follows: - Component: TAB_D195; - Typing Method: Types; - Typing Method: J_1BEFDT_D_4_D195; - In the menu, choose Extras -> Enhancement Category: - Select “Can be enhanced (Deep)”. - Choose the “Copy” pushbutton; Save and activate.

Create Structure (J_1BEFDS_H_4_H020)

- Execute transaction SE11; - Select the radio button “Data type”; - Enter “J_1BEFDS_D_H_4_H020” in the proper field; - Choose the “Create” pushbutton; - Choose the “Structure” radiobutton and then choose “Ok”; - Enter “Additional information from the inventory” in the field “Short Description”; - Create a new line in the tab “Components” for each of the following lines: - Enter the information as follows: - Component: REG; - Typing Method: Types; - Component Type: J_1BEFD_REG; - Component: CST_ICMS; - Typing Method: Types; - Typing Method: J_1BEFD_CST_ICMS; - Component: BC_ICMS; - Typing Method: Types; - Typing Method: J_1BEFD_VALUE; - Component: VL_ICMS; - Typing Method: Types; - Typing Method: J_1BEFD_VALUE; - Select the “Value Range” tab; - Enter the information as follows: - Component: VL_BC_ICMS; - Reference table: T001; - Ref. field: WAERS; - Component: VL_ICMS; - Reference table: T001; - Ref. field: WAERS; When asked which “Enhancement Category” should be used, select “Can be enhanced (Deep)”. Save and activate. Obs.: Choose package “J1BA”. In the end of the process, you should have the following structure:

Page 11: BADI Manual Steps

11

Create Table Type (J_1BEFDT_H_4_H020)

- Execute transaction SE11; - Select the radio button “Data type”; - Enter “J_1BEFDT_H_4_H020” in the proper field; - Choose the “Create” pushbutton; - Choose the “Table Type” radiobutton and then choose “Ok”; - Select the “Line Type” tab; - Enter “J_1BEFDS_H_4_H020” in the field “Line Type”; - Fill the field “Short text” with: “Additional information from the inventory”; Save and activate. Obs.: Choose package “J1BA”.

Change Structure (J_1BEFDS_H_3_H010)

- Execute transaction SE11; - Select the radio button “Data type”; - Enter “J_1BEFDS_H_3_H010” in the proper field; - Choose the “Change” pushbutton; - Create a new line in the tab “Components” as the last line. Enter the information as follows: - Component: TAB_H020; - Typing Method: Types; - Typing Method: J_1BEFDT_H_4_H020; Save and activate. In the end of the process, you should have the following structure:

Create Domain (J_1BEFD_MOT_INV)

- Execute transaction SE11; - Select the radio button “Domain”; - Enter “J_1BEFD_MOT_INV” in the proper field;

Page 12: BADI Manual Steps

12 - Choose the “Create” pushbutton; - Enter “EFD: Reason of Inventory” in the “Short Description” field; - Enter the information as follows: - Data Type: CHAR; - No. Characters: 2; - Select the “Value Range” tab; - Enter the information as follows: - Fix. Val.: 01 - Short Descript.: At the period end - Fix. Val.: 02 - Short Descript.: Change in form of taxation of goods - Fix. Val.: 03 - Short Descript.: At the request of write off - Fix. Val.: 04 - Short Descript.: At the change in the payment basis - Fix. Val.: 05 - Short Descript.: By determination of the tax authorities Save and activate. Obs.: Choose package “J1BA” for this new domain.

Create Data Element (J_1BEFD_MOT_INV)

- Execute transaction SE11; - Select the radio button “Data type”; - Enter “J_1BEFD_MOT_INV” in the proper field; - Choose the “Create” pushbutton; - Choose the “Data element” radiobutton and then choose “Ok”; - Enter “EFD: Reason of Inventory” in the “Short Description” field; - Enter “J_1BEFD_MOT_INV” in the “Domain” field; - Select the “Field Label” tab; - Enter the information as follows: - Short (Length): 10; - Short (Field Label): Reason Inv; - Medium (Length): 16; - Medium (Field Label): Reason Inventory - Long (Length): 20; - Long (Field Label): Reason of Inventory; - Heading (Length): 19; - Heading (Field Label): Reason of Inventory; Save and activate. Obs.: Choose package “J1BA” for this new domain. In the end of the process, you should have the following data element:

Page 13: BADI Manual Steps

13

Change Structure (J_1BEFDS_H_2_H005)

- Execute transaction SE11; - Select the radio button “Data type”; - Enter “J_1BEFDS_H_2_H005” in the proper field; - Choose the “Change” pushbutton; - Create a new line in the tab “Components” as the last line. Enter the information as follows: - Component: MOT_INV; - Typing Method: Types; - Typing Method: J_1BEFD_MOT_INV; Save and activate. In the end of the process, you should have the following structure:

Create Domain (J_1BEFD_IND_YES_NO)

- Execute transaction SE11; - Select the radio button “Domain”; - Enter “J_1BEFD_IND_YES_NO” in the proper field; - Choose the “Create” pushbutton; - Enter “EFD: Yes or No Indicator” in the “Short Description” field; - Enter the information as follows: - Data Type: CHAR; - No. Characters: 1; - Select the “Value Range” tab; - Enter the information as follows: - Fix. Val.: S - Short Descript.: Yes (Sim) - Fix. Val.: N - Short Descript.: No (Não) Save and activate. Obs.: Choose package “J1BA” for this new domain.

Create Data Element (J_1BEFD_ IND_YES_NO)

- Execute transaction SE11; - Select the radio button “Data type”; - Enter “J_1BEFD_IND_YES_NO” in the proper field; - Choose the “Create” pushbutton; - Choose the “Data element” radiobutton and then choose “Ok”; - Enter “EFD: Yes or No Indicator” in the “Short Description” field; - Enter “J_1BEFD_IND_YES_NO” in the “Domain” field; - Select the “Field Label” tab; - Enter the information as follows: - Short (Length): 10; - Short (Field Label): Yes/No Ind; - Medium (Length): 19;

Page 14: BADI Manual Steps

14 - Medium (Field Label): Yes or No Indicator - Long (Length): 20; - Long (Field Label): Yes or No Indicator; - Heading (Length): 19; - Heading (Field Label): Yes or No Indicator; Save and activate. Obs.: Choose package “J1BA” for this new domain. In the end of the process, you should have the following data element:

Create Structure (J_1BEFDS_1_2_1010)

- Execute transaction SE11; - Select the radio button “Data type”; - Enter “J_1BEFDS_1_2_1010” in the proper field; - Choose the “Create” pushbutton; - Choose the “Structure” radiobutton and then choose “Ok”; - Enter “EFD: Obligation of the Records of Block 1” in the field “Short Description”; - Create a new line in the tab “Components” for each of the following lines: - Enter the information as follows: - Component: REG; - Typing Method: Types; - Component Type: J_1BEFD_REG; - Component: IND_EXP; - Typing Method: Types; - Component Type: J_1BEFD_IND_YES_NO; - Component: IND_CCRF; - Typing Method: Types; - Component Type: J_1BEFD_IND_YES_NO; - Component: IND_COMB; - Typing Method: Types; - Component Type: J_1BEFD_IND_YES_NO; - Component: IND_USINA; - Typing Method: Types; - Component Type: J_1BEFD_IND_YES_NO;

Page 15: BADI Manual Steps

15 - Component: IND_VA; - Typing Method: Types; - Component Type: J_1BEFD_IND_YES_NO; - Component: IND_EE; - Typing Method: Types; - Component Type: J_1BEFD_IND_YES_NO; - Component: IND_CART; - Typing Method: Types; - Component Type: J_1BEFD_IND_YES_NO; - Component: IND_FORM; - Typing Method: Types; - Component Type: J_1BEFD_IND_YES_NO; - Component: IND_AER; - Typing Method: Types; - Component Type: J_1BEFD_IND_YES_NO; When asked which “Enhancement Category” should be used, select “Can be enhanced (Deep)”. Save and activate. Obs.: Choose package “J1BA”. In the end of the process, you should have the following structure:

Create Table Type (J_1BEFDT_1_2_1010)

- Execute transaction SE11; - Select the radio button “Data type”; - Enter “J_1BEFDT_1_2_1010” in the proper field; - Choose the “Create” pushbutton; - Choose the “Table Type” radiobutton and then choose “Ok”; - Select the “Line Type” tab; - Enter “J_1BEFDS_1_2_1010” in the field “Line Type”; - Fill the field “Short text” with: “EFD: Obligation of the Records of Block 1”; Save and activate.

Create Structure (J_1BEFDS_1_3_1391)

- Execute transaction SE11; - Select the radio button “Data type”;

Page 16: BADI Manual Steps

16 - Enter “J_1BEFDS_1_3_1391” in the proper field; - Choose the “Create” pushbutton; - Choose the “Structure” radiobutton and then choose “Ok”; - Enter “EFD: Daily Production of the Plant” in the field “Short Description”; - Create a new line in the tab “Components” for each of the following lines: - Enter the information as follows: - Component: REG; - Typing Method: Types; - Component Type: J_1BEFD_REG; - Component: DT_REGISTRO; - Typing Method: Types; - Component Type: J_1BEFD_IND_YES_NO; - Choose the “Predefined Type” pushbutton in the tab “Components”; - Component: QTD_MOID; - Typing Method: Types; - Data Type: QUAN - Length: 30 - Decimals: 2 - Short Description: Quantity of cane crushed (tons) - Component: ESTQ_INI; - Typing Method: Types; - Data Type: QUAN - Length: 30 - Decimals: 2 - Short Description: Initial stock (liter/Kg) - Component: QTD_PRODUZ; - Typing Method: Types; - Data Type: QUAN - Length: 30 - Decimals: 2 - Short Description: Quantity produced (liters/Kg) - Component: ENT_ANID_HID; - Typing Method: Types; - Data Type: QUAN - Length: 30 - Decimals: 2 - Short Description: Entry of anhydrous/hydrated alcohol - Component: OUTR_ENTR; - Typing Method: Types; - Data Type: QUAN - Length: 30 - Decimals: 2 - Short Description: Other entries (liters/Kg) - Component: PERDA; - Typing Method: Types; - Data Type: QUAN - Length: 30 - Decimals: 2

Page 17: BADI Manual Steps

17 - Short Description: Evaporation (liters) or break weight (kg) - Component: CONS; - Typing Method: Types; - Data Type: QUAN - Length: 30 - Decimals: 2 - Short Description: Consumption (liters) - Component: SAI_ANI_HID; - Typing Method: Types; - Data Type: QUAN - Length: 30 - Decimals: 2 - Short Description: Output for processing (liters) - Component: SAIDAS; - Typing Method: Types; - Data Type: QUAN - Length: 30 - Decimals: 2 - Short Description: Output (liters/Kg) - Component: ESTQ_FIN; - Typing Method: Types; - Data Type: QUAN - Length: 30 - Decimals: 2 - Short Description: Final stock (liters/Kg) - Component: ESTQ_INI_MEL; - Typing Method: Types; - Data Type: QUAN - Length: 30 - Decimals: 2 - Short Description: Initial stock of residual honey (kg) - Component: PROD_DIA_MEL; - Typing Method: Types; - Data Type: QUAN - Length: 30 - Decimals: 2 - Short Description: Residual honey production (Kg) - Component: UTIL_MEL; - Typing Method: Types; - Data Type: QUAN - Length: 30 - Decimals: 2 - Short Description: Residual honey used (Kg) - Component: PROD_ALC_MEL; - Typing Method: Types; - Data Type: QUAN - Length: 30 - Decimals: 2

Page 18: BADI Manual Steps

18 - Short Description: Production of alcohol (liters) from the residual honey - Choose the “Component Type” pushbutton in the tab “Components”; - Component: OBS; - Typing Method: Types; - Component Type: CHAR255; - Select the “Currency/quantity fields” tab; - Enter the information as follows: - Component: QTD_MOID; - Reference table: J_1BNFDOC; - Ref. field: GEWEI; - Component: ESTQ_INI; - Reference table: J_1BNFDOC; - Ref. field: GEWEI; - Component: QTD_PRODUZ; - Reference table: J_1BNFDOC; - Ref. field: GEWEI; - Component: ENT_ANID_HID; - Reference table: J_1BNFDOC; - Ref. field: GEWEI; - Component: OUTR_ENTR; - Reference table: J_1BNFDOC; - Ref. field: GEWEI; - Component: PERDA; - Reference table: J_1BNFDOC; - Ref. field: GEWEI; - Component: CONS; - Reference table: J_1BNFDOC; - Ref. field: GEWEI; - Component: SAI_ANI_HID; - Reference table: J_1BNFDOC; - Ref. field: GEWEI; - Component: SAIDAS; - Reference table: J_1BNFDOC; - Ref. field: GEWEI; - Component: ESTQ_FIN; - Reference table: J_1BNFDOC; - Ref. field: GEWEI; - Component: ESTQ_INI_MEL; - Reference table: J_1BNFDOC; - Ref. field: GEWEI; - Component: PROD_DIA_MEL;

Page 19: BADI Manual Steps

19 - Reference table: J_1BNFDOC; - Ref. field: GEWEI; - Component: UTIL_MEL; - Reference table: J_1BNFDOC; - Ref. field: GEWEI; - Component: PROD_ALC_MEL; - Reference table: J_1BNFDOC; - Ref. field: GEWEI; When asked which “Enhancement Category” should be used, select “Can be enhanced (Deep)”. Save and activate. Obs.: Choose package “J1BA”. In the end of the process, you should have the following structure:

Page 20: BADI Manual Steps

20

Create Table Type (J_1BEFDT_1_3_1391)

- Execute transaction SE11; - Select the radio button “Data type”; - Enter “J_1BEFDT_1_3_1391” in the proper field; - Choose the “Create” pushbutton; - Choose the “Table Type” radiobutton and then choose “Ok”; - Select the “Line Type” tab; - Enter “J_1BEFDS_1_3_1391” in the field “Line Type”; - Fill the field “Short text” with: “EFD: Daily Production of the Plant”; Save and activate. Obs.: Choose package “J1BA”.

Create Domain (J_1BEFD_COD_PROD)

- Execute transaction SE11; - Select the radio button “Domain”;

Page 21: BADI Manual Steps

21 - Enter “J_1BEFD_COD_PROD” in the proper field; - Choose the “Create” pushbutton; - Enter “EFD: Product Code” in the “Short Description” field; - Enter the information as follows: - Data Type: CHAR; - No. Characters: 2; - Select the “Value Range” tab; - Enter the information as follows: - Fix. Val.: 01 - Short Descript.: Hyd. ethylic alcohol (Álcool etílico hidratante carburante) - Fix. Val.: 02 - Short Descript.: Anhy. ethylic alcohol (Álcool etílico anidro carburante) - Fix. Val.: 03 - Short Descript.: Sugar (Açúcar) Save and activate. Obs.: Choose package “J1BA” for this new domain.

Create Data Element (J_1BEFD_COD_PROD)

- Execute transaction SE11; - Select the radio button “Data type”; - Enter “J_1BEFD_COD_PROD” in the proper field; - Choose the “Create” pushbutton; - Choose the “Data element” radiobutton and then choose “Ok”; - Enter “EFD: Product Code” in the “Short Description” field; - Enter “J_1BEFD_COD_PROD” in the “Domain” field; - Select the “Field Label” tab; - Enter the information as follows: - Short (Length): 10; - Short (Field Label): Prod. Code; - Medium (Length): 15; - Medium (Field Label): Product Code - Long (Length): 20; - Long (Field Label): Product Code; - Heading (Length): 12; - Heading (Field Label): Product Code; Save and activate. Obs.: Choose package “J1BA” for this new domain.

Create Structure (J_1BEFDS_1_2_1390)

- Execute transaction SE11; - Select the radio button “Data type”; - Enter “J_1BEFDS_1_2_1390” in the proper field; - Choose the “Create” pushbutton; - Choose the “Structure” radiobutton and then choose “Ok”; - Enter “EFD: Control of the Production of the Plant” in the field “Short Description”; - Create a new line in the tab “Components” for each of the following lines: - Enter the information as follows: - Component: REG; - Typing Method: Types; - Component Type: J_1BEFD_REG; - Component: COD_PROD; - Typing Method: Types; - Component Type: J_1BEFD_COD_PROD;

Page 22: BADI Manual Steps

22 - Component: TAB_1391; - Typing Method: Types; - Component Type: J_1BEFDT_1_3_1391; When asked which “Enhancement Category” should be used, select “Can be enhanced (Deep)”. Save and activate. Obs.: Choose package “J1BA”. In the end of the process, you should have the following structure:

Create Table Type (J_1BEFDT_1_2_1390)

- Execute transaction SE11; - Select the radio button “Data type”; - Enter “J_1BEFDT_1_2_1390” in the proper field; - Choose the “Create” pushbutton; - Choose the “Table Type” radiobutton and then choose “Ok”; - Select the “Line Type” tab; - Enter “J_1BEFDS_1_2_1390” in the field “Line Type”; - Fill the field “Short text” with: “EFD: Control of the Production of the Plant”; Save and activate.

Change Structure (J_1BEFDS_1_1_1001)

- Execute transaction SE11; - Select the radio button “Data type”; - Enter “J_1BEFDS_1_1_1001” in the proper field; - Choose the “Change” pushbutton; - Create a new line in the tab “Components” for each of the following lines (add it after the previous components): - Component: TAB_1010; - Typing Method: Types; - Component Type: J_1BEFDT_1_2_1010; - Component: TAB_1390 - Typing Method: Types; - Component Type: J_1BEFDT_1_2_1390; Save and activate. In the end of the process, you should have the following structure:

Page 23: BADI Manual Steps

23

Change BAdI (BADI_J_1BEFD) – Change method SET_BLOCK_D_REG_D610

- Execute transaction “SE18”; - Enter “BADI_J_1BEFD” in the “Definition name” field; - Choose the “Change” pushbutton; - In the “Goto” menu, select “Interface”; - Select the “Methods” tab; - Choose the method “SET_BLOCK_D_REG_D610” - Choose the “Parameters” button; - Change the line with parameter “CS_D610”: Associated type: J_1BEFDS_D_3_D610 Save and activate. In the end of the process, you should have the following parameter:

Change BAdI (BADI_J_1BEFD) – Change method SET_BLOCK_D_REG_D690

- Execute transaction “SE18”; - Enter “BADI_J_1BEFD” in the “Definition name” field; - Choose the “Change” pushbutton; - In the “Goto” menu, select “Interface”; - Select the “Methods” tab; - Choose the method “SET_BLOCK_D_REG_D690” - Choose the “Parameters” button; - Delete the line with parameter “IS_D610”; - Add a new parameter (as the first one): Parameter: IS_D600; Type: Importing; Typing: Type; Associated type: J_1BEFDS_D_2_D600; Save and activate.

Page 24: BADI Manual Steps

24 In the end of the process, you should have the following parameter:

Change BAdI (BADI_J_1BEFD) – Change method SET_BLOCK_H_REG_H020

- Execute transaction “SE18”; - Enter “BADI_J_1BEFD” in the “Definition name” field; - Choose the “Change” pushbutton; - In the “Goto” menu, select “Interface”; - Select the “Methods” tab; - Choose the method “SET_BLOCK_H_REG_H020” - Choose the “Parameters” button; - Delete the line with parameter “CS_H020”; - Add a new parameter as follows: Parameter: IS_H005 Type: Importing; Typing: Type; Associated type: J_1BEFDS_H_2_H005 - New line; Parameter: CT_H010 Type: Changing; Typing: Type; Associated type: J_1BEFDT_H_3_H010 Save and activate. In the end of the process, you should have the following parameter:

Change BAdI (BADI_J_1BEFD) – Create method SET_BLOCK_D_REG_D195

- Execute transaction “SE18”; - Enter “BADI_J_1BEFD” in the “Definition name” field; - Choose the “Change” pushbutton; - In the “Goto” menu, select “Interface”; - Select the “Methods” tab;, - Add a new method just after method “SET_BLOCK_D_REG_D190” : Method: SET_BLOCK_D_REG_D195 Level: Instance Method Description: Fill Block D Registers: D195 hierarchy - Choose the “Parameters” button; - Add a new parameter as follows: Parameter: IS_D100

Page 25: BADI Manual Steps

25 Type: Importing; Typing: Type; Associated type: J_1BEFDS_D_2_D100 - New line; Parameter: CT_D190 Type: Changing; Typing: Type; Associated type: J_1BEFDT_D_3_D190 Save and activate. In the end of the process, you should have the following parameters: