AP450 EH014 Infotype Enhancement V1.0

15
Ooredoo HR-PA Technical Design – EH014 Infotype Enhancement Technical Design Infotype Enhancement File Name: document.docx Page 1 of 15 Status: Draft Copyright © 2014 Ooredoo-Accenture. All Rights Reserved

description

HR Infotype enhancement

Transcript of AP450 EH014 Infotype Enhancement V1.0

TD EH014

OoredooHR-PATechnical Design EH014 Infotype Enhancement

Technical DesignInfotype Enhancement

General Information

Document Location

Associated Documentation (FD)AP350 FD E HCM XXX - Infotype Enhancement v.0.2.docx

Sign Off

TeamNameDateSignature

Revision History

DateAuthorStatusDescription / Reason for Change

23 Jan 2014Johannes Mario KristantoDraftInitial Draft

1General Requirements42Related Document43Development Objects44Assumptions45Technical Flow / Program Logic55.1General Program Hierarchy55.2Program Subroutine / Component Inventory55.3Code Reuse55.4Selection-screen Layout55.5Authorization Objects and Checks to be Used55.6Pseudo Codes55.7Output Detail/Layout55.8Interactive Capabilities56Performance Considerations57Set-Up Procedure58Recovery Procedure / Special Considerations69Exceptions610Unit Test611Design Changes / Issue Documentation6

General Requirements Program DescriptionCreation of new custom infotypes to accommodate other enhancements named Tax Data and Social Security

Status (Required)100%

Business PriorityHigh

Related Document

DevLog NoDescriptionTransport RequestCHARM Number

Development Objects[List of all objects being used or modified e.g. program, function module, transaction codes, etc. Refer to content of Transport Request submitted for the change]

Object TypeNameDescription

Custom Infotype(Program, screen, table)9401Tax data

Custom Infotype(Program, screen, table)9402Social Security data

Assumptions[Assumptions that are being used so that program can be run/used properly]

Technical Flow / Program Logic

General Program Hierarchy [Required - Flowchart of program logic and processing to be included here, not the business or functional flowchart]

Program Subroutine / Component Inventory

Program Subroutine/ComponentDescription

Code Reuse[Is there an existing program that can be modified to suit the requirements of this program?]

Selection-screen Layout Infotype 9401 Tax Data

Parameter DescriptionSelection Screen Type

Mandatory Default valueReference FieldScreen FieldRemark & Validation details

Personal Tax IDParameterYesP9401-TAX_ID

Spouse BenefitCheck BoxNoP9401-SPOUSE_BEN

No. of DependentsDropdownNoP9401-NO_DEPEND

Infotype 9402 Social Security Data

Parameter DescriptionSelection Screen Type

Mandatory Default valueReference FieldScreen FieldRemark & Validation details

Social Security TypeParameterYesP9402-INSTY

Insurance levelDropdownYesP9402-CLEVL

Account IDParameterNoP9402-ACC_ID

Currency for amountsParameterNoP9402-WAERSOutput OnlyDefault MMK

Employer PercentageParameterNoP9402-PCTERWill be output only field depend on Selected Employer Calculation Rule

Employer AmountParameterNoP9402-AMTER

Employer Calculation RuleDropdownYes01P9402-RULER

Employee PercentageParameterNoP9402-PCTEEWill be output only field depend on Selected Employere Calculation Rule

Employee AmountParameterNoP9402-AMTEE

Employee Calculation RuleDropdownYes01P9402-RULEE

Authorization Objects and Checks to be Used[Describe any authorization checks the programmer code]

Pseudo Codes[Required - Describe in detail the overall processing flow/logic. Do not copy and paste the program. Use pseudo code instead. E.g.- For dialog modules, describe/display the screen layout, screen flows, PBO, PAI- For exits/BAdI, describe the project/implementation detail, the input and output parameters, processing logic, etc.- Also specify the error handling that in place for logic flow of the program] Process Before Output (IT 9402)Add below logic to Module p9402 Set default value whenever the screen is show for the first timeIf psyst-nselc = "1"If psyst-iinit = "1" AND psyst-ioper = "INS"p9402-ruler = "01"p9402-rulee = "01"p9402-waers = "MMK"EndifEndif

Set Employer and Employee Rule text base on user selectionIf p9402-ruler = "01"v_employer_rule_txt = "Percentage"Elseif p9402-ruler = "02"v_employer_rule_txt = "Amount"Elseif p9402-ruler = "03"v_employer_rule_txt = "Amount + Percentage"Endif

If p9402-rulee = "01"v_employee_rule_txt = "Percentage"Elseif p9402-rulee = "02"v_employee_rule_txt = "Amount"Elseif p9402-rulee = "03"v_employee_rule_txt = "Amount + Percentage"Endif

Get Employee/Employer Amount & Percentage value from table ZHPYT_SOC_MASTERBase on User selection for Insurance levelIf sy-ucomm = A Or sy-ucomm = B Or sy-ucomm = Select Single All FieldFrom:Social Security Master table(ZHPYT_SOC_MASTER)Into:wa_social_masterWith Condition:insty = p9402-instyclevl = p9402-clevlbegda = p9402-begdaIf foundIf p9402-ruler = "01"If p9402-pcter Is Initial Or sy-ucomm = "A" Or sy-ucomm = ""p9402-pcter = wa_social_master-pcterEndifp9402-amter = 0Elseif p9402-ruler = "02"p9402-pcter = 0If p9402-amter Is Initial Or sy-ucomm = "A" Or sy-ucomm = ""p9402-amter = wa_social_master-amterEndifElseif p9402-ruler = "03"If p9402-pcter Is Initial Or sy-ucomm = "A" Or sy-ucomm = ""p9402-pcter = wa_social_master-pcterEndifIf p9402-amter Is Initial Or sy-ucomm = "A" Or sy-ucomm = ""p9402-amter = wa_social_master-amterEndifEndifIf p9402-rulee = "01"If p9402-pctee Is Initial Or sy-ucomm = "A" Or sy-ucomm = ""p9402-pctee = wa_social_master-pcteeEndifp9402-amtee = 0Elseif p9402-rulee = "02"p9402-pctee = 0If p9402-amtee Is Initial Or sy-ucomm = "A" Or sy-ucomm = ""p9402-amtee = wa_social_master-amteeEndifElseif p9402-ruler = "03"If p9402-pctee Is Initial Or sy-ucomm = "A" Or sy-ucomm = ""p9402-pctee = wa_social_master-pctee.EndifIf p9402-amtee Is Initial Or sy-ucomm = "A" Or sy-ucomm = ""p9402-amtee = wa_social_master-amteeEndifEndifEndifEndif

Get Subtype textSelect SingleName(STEXT)From:Subtype Texts(T591S)Into:v_subty_textWith Condition:sprsl = sy-languinfty = P9402subty