SAP Reports / Programs

RPCEADJ0 SAP ABAP Report - Withholding Tax Statement (Japan)







RPCEADJ0 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for In Japan, companies are legally required to prepare tax statements and provide them to both employees and the tax authorities...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RPCEADJ0 into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT RPCEADJ0. "Basic submit
SUBMIT RPCEADJ0 AND RETURN. "Return to original report after report execution complete
SUBMIT RPCEADJ0 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: DATAMED =
Selection Text: FORM = form name
Selection Text: LISTTYP2 =
Selection Text: LISTTYPE =
Selection Text: OBJECT =
Selection Text: OBJECTR =
Selection Text: P_1PAGES = 1 pages per paper
Selection Text: P_230MB = MO(230MB)
Selection Text: P_2EM_1P = 2 Employees per Page
Selection Text: P_4EM_1P = 4 Employees per Page
Selection Text: P_4PAGES = 4 pages per paper
Selection Text: P_640MB = MO(640MB)
Selection Text: P_650MB = CD(650MB)
Selection Text: P_DETAIL = Detail log
Selection Text: YEAR = Applied year
Selection Text: TEMSE_ID =
Selection Text: SCRIPT_Y = Use
Selection Text: SCRIPT_N = Not use
Selection Text: RET_DATE = Retirement date
Selection Text: P_TEMSE =
Selection Text: P_SIMPLE = Simple log
Selection Text: P_LFVAR = Form Variant
Selection Text: P_LFORM = Form Name
Selection Text: P_HIDE2 = Not Display Adjustment Infor.
Selection Text: P_HIDE = Not Display Adjustment Infor.
Selection Text: P_FDSIZE = FD(1.44MB)
Selection Text: P_EXECUT = Executive Personnel Number
Selection Text: P_DVDSIZ = DVD(4.7GB)
Title: Withholding Tax Statement (Japan)
Text Symbol: T48 = OldP
Text Symbol: T49 = OldL
Text Symbol: T50 = OldS
Text Symbol: T51 = OthP
Text Symbol: T52 = OthS
Text Symbol: T53 = NatDisasterCr
Text Symbol: T54 = OtherEmployr
Text Symbol: T55 = Compensation
Text Symbol: T56 = WithheldTax





Text Symbol: T57 = DedSocInsPrm
Text Symbol: T58 = SpeP
Text Symbol: T59 = SpeS
Text Symbol: T60 = Hcap
Text Symbol: T61 = HcaS
Text Symbol: T62 = HcaL
Text Symbol: T63 = HcaO
Text Symbol: T64 = OtherEmplName
Text Symbol: T65 = AdrAbroadInd
Text Symbol: T66 = RetirementDate
Text Symbol: T47 = DepenFam
Text Symbol: T46 = LongCasInsPrem
Text Symbol: T45 = SpouseIncome
Text Symbol: T44 = IndPensPlanPrm
Text Symbol: T43 = NewHouseCr
Text Symbol: T42 = CasInsPrmDed
Text Symbol: T41 = Foreig
Text Symbol: T40 = Disa
Text Symbol: T39 = DtRt
Text Symbol: T38 = Stud
Text Symbol: T37 = Widr
Text Symbol: T36 = Widw
Text Symbol: T35 = Aged
Text Symbol: T34 = LifInsPrmDed
Text Symbol: T33 = SmallBusiness
Text Symbol: T32 = SocInsPrmDed
Text Symbol: T31 = AddSpouseExemp
Text Symbol: T30 = NotWith
Text Symbol: T29 = OtHd
Text Symbol: T67 = Details
Text Symbol: TS5 = Employee Copy
Text Symbol: TS4 = xxyyyyyynn(x=Res.tax modifier y=MunicipalNo. n=Seq.No)
Text Symbol: TS3 = Create output file
Text Symbol: TS2 = Name of work file
Text Symbol: TS1 = ObjectNo.
Text Symbol: TS0 = File output
Text Symbol: T99 = OldPerPensPrem
Text Symbol: T98 = NewPerPensPrem
Text Symbol: T97 = NursInsPrm





Text Symbol: T96 = OldLifeInsPrem
Text Symbol: T95 = NewLifeInsPrem
Text Symbol: T94 = DepenDed
Text Symbol: T93 = Junr SpeLiv
Text Symbol: T92 = Junr Spe
Text Symbol: T91 = Junr Dis
Text Symbol: T90 = Junr
Text Symbol: T89 = OldLongCasInsP
Text Symbol: T88 = PayAmount
Text Symbol: T87 = EarthquakePrmD
Text Symbol: T86 = LoanBal.#2
Text Symbol: T85 = Ded.Type#2
Text Symbol: T84 = Res.StartDate#2
Text Symbol: T83 = LoanBal.#1
Text Symbol: T82 = Ded.Type#1
Text Symbol: T81 = Res.StartDate#1
Text Symbol: T80 = DeductibleAmt.
Text Symbol: T79 = NumHouDed.
Text Symbol: T78 = Tel number
Text Symbol: T77 = Tax Collector no.
Text Symbol: T76 = Municiapl Code
Text Symbol: T75 = Personal Assgnmnt No. for Tax
Text Symbol: T74 = Kana Name
Text Symbol: T73 = Tax Treaty (exempted)
Text Symbol: T72 = AOIRO SENJU
Text Symbol: T71 = Regular collection
Text Symbol: T70 = Ret.Date
Text Symbol: T69 = Total
Text Symbol: T68 = RecordNumber
Text Symbol: T28 = SpHd
Text Symbol: 031 = Went Abroad
Text Symbol: 032 = NI
Text Symbol: 033 = N.Collect.Req.
Text Symbol: F01 = Employee selection
Text Symbol: F02 = Employee with Normal Y.E.A
Text Symbol: F03 = Employee with termination
Text Symbol: F04 = Output selection
Text Symbol: F05 = Withholding tax statement -Printouts
Text Symbol: F06 = Pay slip -Printouts



Text Symbol: F07 = Withholding tax statement -Data Medium
Text Symbol: F08 = Emp. w/ YEA(incl. w/ termination)
Text Symbol: F09 = Parameter for Withholding tax statement for retirement
Text Symbol: F10 = Pay slip -Data Medium
Text Symbol: F11 = Withholding tax statement -Printouts (Distribution to Employees)
Text Symbol: F12 = Withholding tax statement -Printouts (Submission to Tax Offices)
Text Symbol: F13 = Only for Employee with Total Taxable Income Over 20,000,000
Text Symbol: F14 = Executive Selection
Text Symbol: FM0 = File format
Text Symbol: FM1 = Magnetic tape
Text Symbol: FM2 = Disk
Text Symbol: FM3 = Disk/eLTAX
Text Symbol: H00 = Income Tax Statement by Data Medium - Detailed List
Text Symbol: H01 = Income Tax Statement - Summary List
Text Symbol: H02 = Income Tax Statement by Data Medium - Detailed List
Text Symbol: I01 = processed empolyee
Text Symbol: I02 = rejected empolyee(use ESS)
Text Symbol: 030 = Hei Ran
Text Symbol: 004 = Kyu¥Sho
Text Symbol: 005 = *
Text Symbol: 006 = Py
Text Symbol: 007 = Tx
Text Symbol: 008 = SI
Text Symbol: 009 = YEA tax deduction
Text Symbol: 010 = Deducted from summer payroll
Text Symbol: 011 = Yn
Text Symbol: 012 = Tax deduction AMT
Text Symbol: 013 = Under 16
Text Symbol: 014 = Pr
Text Symbol: 015 = Field:
Text Symbol: 016 = Address
Text Symbol: 017 = Name
Text Symbol: 018 = Position
Text Symbol: 019 = Prev.Address
Text Symbol: 020 = Prev.Name
Text Symbol: 021 = Nat.PenIns
Text Symbol: 022 = Hous. Ded. Amt
Text Symbol: 023 = JU
Text Symbol: 024 = ZO
Text Symbol: 025 = SN
Text Symbol: 026 = Loan Balance
Text Symbol: 027 = Hou. Ded. 3rd Type
Text Symbol: 028 = Live
Text Symbol: 029 = LoanBa
Text Symbol: T02 = BranchNo
Text Symbol: T03 = IDnumber1
Text Symbol: T04 = Name
Text Symbol: T05 = Addr
Text Symbol: T06 = Submitter
Text Symbol: T07 = IDnumber2
Text Symbol: T08 = PaymAmou
Text Symbol: T09 = RecEmplNumber
Text Symbol: T10 = WithIncTax
Text Symbol: T11 = PersNo
Text Symbol: T12 = Birth YYMMDD
Text Symbol: T13 = Position
Text Symbol: T14 = Midhire/fire
Text Symbol: T15 = Ind
Text Symbol: T16 = YYMMDD
Text Symbol: T17 = NewHouse
Text Symbol: T18 = NotPayed
Text Symbol: T19 = TaxIncafterDed
Text Symbol: T20 = SumofDeduction
Text Symbol: T21 = WithIncTax
Text Symbol: T22 = NoRe
Text Symbol: T23 = SpEx
Text Symbol: T24 = SpOl
Text Symbol: T25 = Husb
Text Symbol: T26 = Un20
Text Symbol: T27 = Otsu
Text Symbol: T01 = Collector
Text Symbol: L01 = No results for form print
Text Symbol: L09 = Tekiyo overflow
Text Symbol: L10 = Detail
Text Symbol: M01 = 1 2 3 4 5 6 7 8
Text Symbol: M02 = ....+....0....+....0....+....0....+....0....+....0....+....0....+....0....+....0
Text Symbol: MD0 = Place for output
Text Symbol: MD1 = TemSe
Text Symbol: MD2 = Server
Text Symbol: MD3 = Local
Text Symbol: MD4 = Filesize for disk
Text Symbol: MD5 = Log
Text Symbol: MD6 = Object number
Text Symbol: MD7 = Server file
Text Symbol: MD8 = Local file
Text Symbol: S01 = SAPscript
Text Symbol: S02 = Use
Text Symbol: S03 = Form name
Text Symbol: S04 = Not use
Text Symbol: S05 = 4 pages per paper
Text Symbol: S06 = 1 pages per paper
Text Symbol: S07 = Print Layout
Text Symbol: S09 = 4 Employees per Page
Text Symbol: S10 = 2 Employees per Page
Text Symbol: S11 = Format Layout
Text Symbol: S12 = 1 Employees per Page
Text Symbol: S15 = PDF Form


INCLUDES used within this REPORT RPCEADJ0

INCLUDE RPPPXD00.
INCLUDE RPPPXD10.
INCLUDE RPC2RJJ0.
INCLUDE RPC2YJJ1. "JRFK145028
INCLUDE RPC2CD09. "N836765


TABLES used within REPORT and the associated SELECT statement:

No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

RP_SET_NAME_FORMAT call function 'RP_SET_NAME_FORMAT' "JRMOPH0K007143 exporting repid = repid "JRMOPH0K007143 importing format = format. "JRMOPH0K007143

HR_DISPLAY_ERROR_LIST call function 'HR_DISPLAY_ERROR_LIST' "JNKP30K090842 exporting "JNKP30K090842 no_popup = space "JNKP30K090842 no_img = space "JNKP30K090842 tables "JNKP30K090842 error = ert "JNKP30K090842 exceptions "JNKP30K090842 invalid_linesize = 1 "JNKP30K090842 others = 2. "JNKP30K090842

RP_CONVERT_JAPAN_DATE_OUT call function 'RP_CONVERT_JAPAN_DATE_OUT' exporting seireki = p0002-gbdat importing ryaku = lv_era_name_abbrev nen = lv_wareki_year tsuki = lv_wareki_month hi = lv_wareki_date.

HR_GET_ERROR_LIST call function 'HR_GET_ERROR_LIST' tables error = ert errortexts = error_texts exceptions no_errors = 1 others = 2.

HR_READ_FOREIGN_OBJECT_TEXT call function 'HR_READ_FOREIGN_OBJECT_TEXT' exporting otype = 'S ' objid = p0001-plans begda = p0001-begda "JPITAL0K019281 endda = p0001-endda "JPITAL0K019281 importing short_text = plans_short object_text = plans_stext exceptions nothing_found = 1 wrong_objecttype = 2 missing_costcenter_data = 3 missing_object_id = 4 others = 5.

COMPUTE_YEARS_BETWEEN_DATES call function 'COMPUTE_YEARS_BETWEEN_DATES' exporting first_date = p0002-gbdat second_date = gv_begin_date_of_next_year "JPMGSL0K002896 modify_interval = lc_calc_age "JPITL6BK037003 importing years_between_dates = cur_age exceptions sequence_of_dates_not_valid = 1.

RP_CONVERT_JAPAN_DATE_OUT call function 'RP_CONVERT_JAPAN_DATE_OUT' exporting * seireki = p0146-aqudt seireki = ls_sort_housing-hsdat "N1400209 importing nen = lv_wareki_year tsuki = lv_wareki_month hi = lv_wareki_date.

RP_CONVERT_JAPAN_DATE_OUT call function 'RP_CONVERT_JAPAN_DATE_OUT' exporting * seireki = p0146-hsda2 seireki = ls_sort_housing-hsdat importing nen = lv_wareki_year tsuki = lv_wareki_month hi = lv_wareki_date.

RP_CONVERT_JAPAN_DATE_OUT call function 'RP_CONVERT_JAPAN_DATE_OUT' exporting * seireki = p0146-HSDA3 seireki = ls_sort_housing-hsdat importing nen = lv_wareki_year tsuki = lv_wareki_month hi = lv_wareki_date.

HR_DISPLAY_ERROR_LIST call function 'HR_DISPLAY_ERROR_LIST' exporting no_popup = space no_img = space tables error = ert exceptions invalid_linesize = 1 others = 2.

OPEN_FORM call function 'OPEN_FORM' exporting device = 'PRINTER' dialog = 'X' form = form language = sy-langu options = p_option exceptions canceled = 1 device = 2 form = 3 options = 4 unclosed = 5 mail_options = 6 archive_error = 7 others = 8.

CONTROL_FORM call function 'CONTROL_FORM' exporting command = 'NEW-PAGE' exceptions unopened = 1 unstarted = 2 others = 3.

CLOSE_FORM call function 'CLOSE_FORM'.

WRITE_FORM call function 'WRITE_FORM'.

RP_CONVERT_JAPAN_DATE_OUT call function 'RP_CONVERT_JAPAN_DATE_OUT' exporting seireki = lv_date importing nen = cv_year_wareki.

REUSE_ALV_HIERSEQ_LIST_DISPLAY call function 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' exporting is_layout = ls_alv_layout it_fieldcat = lt_alv_field_catalog i_tabname_header = 'LT_OUTTAB_HEADER' i_tabname_item = 'LT_OUTTAB_ITEM' is_keyinfo = ls_alv_key_info tables t_outtab_header = lt_outtab_header t_outtab_item = lt_outtab_item exceptions program_error = 1 others = 2.

WS_QUERY call function 'WS_QUERY' exporting filename = lv_directory query = lc_directory_query importing return = lv_return exceptions inv_query = 1 no_batch = 2 frontend_error = 3 others = 4.

RZL_READ_DIR_LOCAL call function 'RZL_READ_DIR_LOCAL' exporting name = lv_path_server tables file_tbl = lt_file_list exceptions argument_error = 1 not_found = 2 others = 3.

RP_EDIT_NAME call function 'RP_EDIT_NAME' exporting langu = sy-langu molga = t001p-molga format = $format pp0002 = p0002 importing edit_name = $edit-name retcode = $ret-code.

RP_EDIT_NAME call function 'RP_EDIT_NAME' "JPMGSL0K002896 exporting "JPMGSL0K002896 langu = sy-langu "JPMGSL0K002896 molga = t001p-molga "JPMGSL0K002896 format = '00' "JPMGSL0K002896 pp0002 = p0002 "JPMGSL0K002896 importing "JPMGSL0K002896 edit_name = $edit-name "JPMGSL0K002896 retcode = $ret-code. "JPMGSL0K002896

RP_EDIT_NAME call function 'RP_EDIT_NAME' exporting langu = sy-langu molga = t001p-molga format = '03' pp0002 = p0002 importing edit_name = $edit-name retcode = $ret-code.

RP_EDIT_NAME call function 'RP_EDIT_NAME' exporting langu = sy-langu molga = t001p-molga format = '04' pp0002 = p0002 importing edit_name = $edit-name retcode = $ret-code.

HR_LEAVING_DATE call function 'HR_LEAVING_DATE' exporting persnr = iv_pernr importing leavingdate = cv_firedate tables leaving_dates = lt_leaving_dates exceptions leaving_date_not_found = 1.

HR_LEAVING_DATE call function 'HR_LEAVING_DATE' exporting persnr = iv_pernr importing leavingdate = cv_firedate tables leaving_dates = lt_leaving_dates exceptions leaving_date_not_found = 1.

HR_ENTRY_DATE call function 'HR_ENTRY_DATE' exporting persnr = iv_pernr begda = lv_lastleavedate endda = lv_yearend importing entrydate = lv_entrydate exceptions entry_date_not_found = 1 pernr_not_assigned = 2 others = 3.

HR_JP_ADJUST_STRING_LENGTH call function 'HR_JP_ADJUST_STRING_LENGTH' exporting iv_string = chk-filed changing cv_length = chk-len.

HR_GET_BUSINESS_ADD_IN call function 'HR_GET_BUSINESS_ADD_IN' exporting exit_name = lc_badi_def flt_val = iv_municipal_city_code importing is_implemented = lv_isimplemented changing instance = lref_badi_instance.

SJIS_SBC_TO_DBC call function 'SJIS_SBC_TO_DBC' exporting all = 'X' changing text = exceptions overflow = 1 others = 2.

HR_ENTRY_DATE call function 'HR_ENTRY_DATE' exporting persnr = iv_pernr importing entrydate = lv_entry_date tables entry_dates = lt_dates exceptions others = 1.

RP_CONVERT_JAPAN_DATE_OUT call function 'RP_CONVERT_JAPAN_DATE_OUT' exporting seireki = lv_entry_date importing nen = lv_wareki_year tsuki = lv_wareki_month hi = lv_wareki_date.

RP_CONVERT_JAPAN_DATE_OUT call function 'RP_CONVERT_JAPAN_DATE_OUT' exporting seireki = iv_firedate importing nen = lv_wareki_year_fire tsuki = lv_wareki_month_fire hi = lv_wareki_date_fire.

RP_CONVERT_JAPAN_DATE_OUT call function 'RP_CONVERT_JAPAN_DATE_OUT' exporting seireki = iv_date importing nengo = lv_era_name nen = lv_wareki_year nen_text = lv_wareki_year_text tsuki = lv_wareki_month tsuki_text = lv_wareki_month_text hi = lv_wareki_date hi_text = lv_wareki_date_text.

CONVERT_TO_LOCAL_CURRENCY call function 'CONVERT_TO_LOCAL_CURRENCY' exporting date = iv_datum foreign_amount = lv_amount foreign_currency = lv_currency local_currency = 'JPY' importing local_amount = lv_checkamount exceptions no_rate_found = 1 overflow = 2 no_factors_found = 3 no_spread_found = 4 derived_2_times = 5 others = 6.

HR_GET_BUSINESS_ADD_IN call function 'HR_GET_BUSINESS_ADD_IN' exporting exit_name = lc_badi_def flt_val = iv_municipal_city_code importing is_implemented = lv_isimplemented changing instance = lref_badi_instance.

FP_JOB_OPEN call function 'FP_JOB_OPEN' changing ie_outputparams = p_sfpoutputparams exceptions cancel = 1 usage_error = 2 system_error = 3 internal_error = 4 others = 5.

FP_JOB_CLOSE call function 'FP_JOB_CLOSE' importing e_result = l_result exceptions usage_error = 1 system_error = 2 internal_error = 3 others = 4.

FP_FUNCTION_MODULE_NAME call function 'FP_FUNCTION_MODULE_NAME' exporting i_name = lv_form importing e_funcname = lv_funcname.

HR_APPEND_ERROR_LIST call function 'HR_APPEND_ERROR_LIST' exporting pernr = pernr-pernr arbgb = p_msgid "message-id class msgty = p_msgty "message type msgno = p_error_no "number of message-id error msgv1 = p_msgv1 msgv2 = p_msgv2 msgv3 = p_msgv3 msgv4 = p_msgv4 exceptions others = 1.

FUNCTION_IMPORT_INTERFACE call function 'FUNCTION_IMPORT_INTERFACE' exporting funcname = p_fm_name tables exception_list = lt_exception_list[] export_parameter = lt_export_parameter[] import_parameter = lt_import_parameter[] tables_parameter = lt_tables_parameter[] exceptions error_message = 1 function_not_found = 2 invalid_name = 3 others = 4.

RP_CONVERT_JAPAN_DATE_OUT call function 'RP_CONVERT_JAPAN_DATE_OUT' exporting seireki = iv_year importing nengo = lv_nengo nen = lv_nen.

RP_CONVERT_JAPAN_DATE_OUT call function 'RP_CONVERT_JAPAN_DATE_OUT' exporting seireki = lv_nextyear importing nengo = lv_nengo nen = lv_nen. "N1903734

HRCA_COMPANYCODE_GETDETAIL call function 'HRCA_COMPANYCODE_GETDETAIL' exporting companycode = p0001-bukrs importing comp_name = intabl-butxt exceptions not_found = 1 others = 2.

HR_READ_FOREIGN_OBJECT_TEXT call function 'HR_READ_FOREIGN_OBJECT_TEXT' exporting otype = 'K ' costcenter = p0001-kostl controllingarea = p0001-kokrs begda = p0001-begda endda = p0001-endda reference_date = p0001-begda langu = sy-langu importing costcenter_name = lv_cocntr_txt exceptions nothing_found = 1 wrong_objecttype = 2 missing_costcenter_data = 3 missing_object_id = 4 others = 5.

RP_CONVERT_JAPAN_DATE_OUT call function 'RP_CONVERT_JAPAN_DATE_OUT' exporting seireki = p0023-endda importing nen = lv_wareki_year tsuki = lv_wareki_month hi = lv_wareki_date.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name RPCEADJ0 or its description.