This document describes modifications made to a method that fills a register (I051) for a Brazil SPED ECD report. It was initially updated to populate the register from account data stored in a table. Later changes appended leading zeros to cost centers containing alphanumeric characters, and updated the register to use '1' instead of '10' for the government agency code.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
76 views2 pages
Code Badi
This document describes modifications made to a method that fills a register (I051) for a Brazil SPED ECD report. It was initially updated to populate the register from account data stored in a table. Later changes appended leading zeros to cost centers containing alphanumeric characters, and updated the register to use '1' instead of '10' for the government agency code.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2
method IF_EX_BADI_J_1BECD~FILL_REGISTER_I051.
* Functional Spec - BADI_J_1BECD - Brazil SPED ECD report
* Technical Spec - BADI_J_1BECD - Brazil SPED ECD report * Code Review - BADI_J_1BECD - Brazil SPED ECD report - Code Review **********************************Modification Log ***************************** **************** * Transport Date Developer Description * ******************************************************************************** **************** * GDVK9A0WIK 24-Jun-2009 Geetha Vasudevan CR05759749 - Updat ed the register* * i051 with the acco unts supplied * * by Govt. which is stored in table* * ZTJ_1BECD_ACCTS * * GDVK9A13C6 07-Jun-2010 Tirth Pandya CR06010070: Added logic to append* * leading zeros to c ost center * * even for cost cente rs that contain* * alpha numeric char acters. * * STJK962261 28-Jan-2016 Yusuf K Sattar CHG0058216 -Updated the register * * I051 with ECD Gover nment Agency as* * As 1 before it was 10 * * STJK963485 05-Feb-2016 Ramireddy G CHG0058216 - Change the value of * * CODE_ENT_REF from '01' t o '1'. * ******************************************************************************** **************** DATA: it_reg_i051 TYPE TABLE OF j_1becd_i051_4_s, wa_reg_i051 LIKE LINE OF it_reg_i051, lv_reg_i050_cod_cta TYPE ztj_1becd_accts-zzaccount. DATA: lv_str_ccus TYPE string, "CR06010070 len TYPE i. "CR06010070 CONSTANTS: c_0 TYPE c VALUE '0', "CR06010070 lc_1 TYPE j_1becd_cod_ent_ref VALUE '1'. "CHG0058216 CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = is_reg_i050-cod_cta IMPORTING output = lv_reg_i050_cod_cta. SELECT cod_ccus cod_cta_ref FROM ztj_1becd_accts INTO CORRESPONDING FIELDS OF TABLE it_reg_i051 WHERE zzaccount = lv_reg_i050_cod_cta ."is_reg_i050 -cod_cta. LOOP AT it_reg_i051 INTO wa_reg_i051. wa_reg_i051-cod_ent_ref = lc_1. "CHG0058216 MODIFY it_reg_i051 FROM wa_reg_i051. ENDLOOP. IF sy-subrc EQ 0. APPEND LINES OF it_reg_i051 TO et_reg_i051. CLEAR it_reg_i051. REFRESH it_reg_i051. ENDIF. *Begin of CR06010070 LOOP AT et_reg_i051 INTO wa_reg_i051. lv_str_ccus = wa_reg_i051-cod_ccus. len = strlen( lv_str_ccus ). CHECK len NE 0. WHILE len NE 10. CONCATENATE c_0 lv_str_ccus INTO lv_str_ccus. len = strlen( lv_str_ccus ). ENDWHILE. wa_reg_i051-cod_ccus = lv_str_ccus. MODIFY et_reg_i051 FROM wa_reg_i051. ENDLOOP. *End of CR06010070 ENDMETHOD.