Payroll Internal Tables

Can anyone guide me any material  to have an idea on Payroll Internal Tables in ABAP-HR.

SAP HR Tables
CATSCO Cross-Application Time Sheet (CATS)- Transfer to CO
CATSDB CATS- Database Table for Time Sheet
CATSHR Cross-Application Time Sheet (CATS)- Transfer to HR
CATSMM Cross-Application Time Sheet (CATS)- Transfer to MM
CATSPM Cross-Application Time Sheet (CATS)- Transfer to PM/CS
CATSPS Cross-Application Time Sheet (CATS)- Transfer to PS
CSKS Cost Center Master Data
CSKT Cost Center Texts
PCL1 HR Cluster 1
PCL2 HR Cluster 2
T001P Personnel Area/Subarea
T001T Company code-dependent texts
T500L Personnel Country Grouping
T500P Personnel Areas
T502T Marital Status Designators
T503 Employee Group/Subgroup
T503T Employee Subgroup Names
T508A Work Schedule Rules
T510 Pay Scale Groups
T510A Pay Scale Types
T510F Assign Pay Scale --- Currency
T510W Pay Scale - Period Parameter Assignment
T511 Wage Types
T512T Wage Type Texts
T512W Wage Type Valuation
T512Z Permissibility of Wage Types per Infotype
T527X Organizational Units
T528T Position Texts
T7XSSPERSUBTYP Specify Use Case and Active Subtypes (timeconstraints)
T582A Infotype attributes
T529T Personnel Action Texts
T529U Status Values
T530 Reasons for Actions
T530T Reason for Action Texts
T549A Payroll Accounting Areas
T549Q Payroll Periods
T550A Daily Work Schedule
T550S Daily Work Schedule Texts
T551S Period Work Schedule Texts
T552A Monthly Work Schedule
T554C Absence Valuation
T554S Attendance and Absence Types
T554T Attendance and Absence Texts
T77PR Creating authorization profile
T558B Payroll Account Transfer- Payroll Periods
T569V Control Records
T77UA Setting user in a authorization profile
T77S0 System table
T5K8C Transfer ext. payroll results into Canadian specific tables
T74FA Benefit insurance plan
T74FC Benefits Insurance Coverage Rule
HRP1000 Infotype 1000 DB Table (Objects)
HRP1001 Infotype 1001 DB Table (Relationships)
HRP1002 Infotype 1002 DB Table
HRP1003 Infotype 1003 DB Table
HRP1004 Infotype 1004 DB table
HRP1005 DB Table for Infotype 1005 (Planned Compensation)
HRP1006 Infotype 1006 DB table
HRP1007 Infotype 1007 DB Table
HRP1008 Infotype 1008 DB Table
HRP1009 Infotype 1009 DB table
HRP1010 Infotype 1010 DB table
HRP1011 Infotype 1011 DB Table
HRP1013 Infotype 1013 DB Table
HRP1014 Infotype 1014 DB Table
HRP1015 Infotype 1015 DB table
HRP1016 Infotype 1016 DB Table
HRP1017 Infotype 1016 DB Table
HRP1018 DB Table for Infotype 1018 Cost Distribution
HRP1019 DB Table for Infotype 1019 Required Positions
HRP1020 Infotype 1020 DB table
HRP1021 INFOTYPE 1021 DB TABLE
HRP1023 Infotype 1023 DB table
HRP1024 INFOTYPE 1024 DB TABLE
HRP1025 INFOTYPE 1025 DB TABLE
HRP1026 Infotype 1026 DB table
HRP1027 Infotype 1027 DB table
HRP1028 Infotype 1028 DB Table
HRP1029 Infotype 1029 DB table
HRP1030 Infotype 1030 DB table
HRP1031 Infotype 1031 DB table
HRP1032 Infotype 1032 DB Table
HRP1033 DB table for infotype 1033
HRP1034 Infotype 1034 DB table
HRP1035 Infotype 1035 DB Table
HRP1036 Infotype 1036 DB table
HRP1037 Infotype 1037 DB Table
HRP1038 Infotype 1038 DB table
HRP1039 Database Table for Infotype 1039
HRP1040 Database Table for Infotype 1040
HRP1041 DB Table for Infotype 1041
HRP1042 Infotype 1042 DB Table
HRP1043 DB Table for Infotype 1043
HRP1044 DB Table for Infotype 1044
HRP1045 DB Table for Infotype 1045
HRP1046 Database Table for Infotype 1046
HRP1047 DB Table for Infotype 1047
HRP1048 DB Table for Infotype 1048
HRP1049 Database Tables for Infotype 1049
HRP1050 DB Table for Infotype 1050 (Job Evaluation Results)
HRP1051 DB Table for Infotype 1051 (Survey Results)
HRP1060 DB Table for Infotype 1060
HRP1061 DB Table for Infotype 1061
HRP1062 DB Table for Infotype 1062
HRP1063 DB Table for Infotype 1063
HRP1201 Infotype 1201 DB Table
HRP1205 Infotype 1205 DB Table
HRP1206 Infotype 1206 DB Table
HRP1208 Infotype 1208 DB Table
HRP1209 Infotype 1209 DB Table
HRP1210 Infotype 1210 DB Table
HRP1211 Infotype 1211 DB Table
HRP1212 Infotype 1212 DB Table
HRP1213 Infotype 1213 DB Table
HRP1214 Infotype 1214 DB Table
HRP1215 Infotype 1215 DB Table
HRP1216 Infotype 1216 DB Table
HRP1217 Infotype 1217 DB Table
HRP1218 DB Table for Infotype 1218
HRP1220 DB Table for Infotype 1220 Activity Profile
HRP1221 DB Table for Infotype 1221 Excluded Activities
HRP1222 Infotype 1222- General attribute maintenance
HRP1230 DB Table for Infotype 1230
HRP1240 DB Table for Infotype 1240
HRP1250 DB table for infotype 1250
HRP1251 DB table for infotype 1251
HRP1252 DB table for infotype 1252
HRP1253 DB table for infotype 1253
HRP1254 DB Table for Infotype 1254
HRP1260 DB Table for Infotype 1260
HRP1270 DB Table for Info Type 1270
HRP1403 DB table for infotype 1403
HRP1404 DB table for infotype 1404
HRP1500 DB Table for Infotype 1500
HRP1501 DB Table for Infotype 1501
HRP1502 DB Table for Infotype 1502
HRP1503 DB Table for Infotype 1503
HRP1504 DB Table for Infotype 1504
HRP1505 DB Table for Infotype 1505
HRP1506 DB Table for Infotype 1506
HRP1507 DB Table for Infotype 1507
HRP1518 DB Table for Infotype 1518
HRP1519 DB Table for Infotype 1519
HRP1520 DB Table for Infotype 1520
HRP1600 Database Table for Infotype 1600
HRP1601 Database Table for Infotype 1601
HRPAD21 Additional data PAD21
HRPAD22 Additional data PAD22
HRPAD23 Additional data PAD23
HRPAD25 Additional data PAD25
HRPAD27 Additional data PAD27
HRPAD31 Additional data PAD31
HRPAD34 Additional Data for Relationship 'has attended'
HRPAD44 PAD44 Additional Data
HRPAD47 PAD47 Additional Data
HRPAD48 Additional Data PAD48
HRPAD50 Additional Data PAD50
HRPAD51 Additional data PAD51
HRPAD53 Additional Data PAD53
HRPAD63 PAD63 Additional Data
HRPAD77 Additional data for PAD77
HRPADBLIST Additional Data Databases
HRPADD2 Additional Data PADD2
HRPADD3 Additional Data PADD3
HRPADIC Additional Data PADD2
HRPADNLIST Additional Data Number List
HRPADNN General Additional Data Table
HRPADP1 Additional Data PADP1
HRPADP2 Additional Data PADP2
HRPADPM Additional Data PADPM
HRPADTI PADTI Additional Data
HRPADUZ PADUZ Additional Data- Requirements Assignment of Persons
HRPADXN Additional Data PADXN
HRPS_T012K For Decoupled Access to T012K (House Bank and Account)
HRPVAC List of vacant positions
HRPXXXX DB Table for Infotype XXXX
HRPYYYY DB Table for Infotype YYYY
PA2001 HR Time Record- Infotype 2001 (Absences)
PA2001_UGR Generated Table for View PA2001_UGR
PA2002 HR Time Record- Infotype 2002 (Attendances)
PA2002_UGR Generated Table for View PA2002_UGR
PA2003 HR Time Record- Infotype 2003 (Substitutions)
PA2004 HR Time Record- Infotype 2004 (Availability)
PA2005 HR Time Record- Infotype 2005 (Overtime)
PA2006 HR Time Record- Infotype 2006 (Absence Quotas)
PA2006_UGR Generated Table for View PA2006_UGR
PA2007 HR Time Record- Infotype 2007 (Attendance Quotas)
PA2007_UGR Generated Table for View PA2007_UGR
PA2010 HR Time Record- Infotype 2010 (Employee Remuneration Info.)
PA2012 HR Time Record- Infotype 2012 (Time Transfer Specifications)
PA2013 HR Time Record- Infotype 2013 (Quota Corrections)
PA2500 HR Master Record for Infotype 2500
PA2501 HR Master Record for Infotype 2501
PA2502 HR Master Record for Infotype 2502
PA0000 HR Master Record- Infotype 0000 (Actions)
PA0001 HR Master Record- Infotype 0001 (Org. Assignment)
PA0002 HR Master Record- Infotype 0002 (Personal Data)
PA0003 HR Master Record- Infotype 0003 (Payroll Status)
PA0004 HR Master Record- Infotype 0004 (Challenge)
PA0005 HR Master Record- Infotype 0005 (Leave Entitlement)
PA0006 HR Master Record- Infotype 0006 (Addresses)
PA0007 HR Master Record- Infotype 0007 (Planned Working Time)
PA0008 HR Master Record- Infotype 0008 (Basic Pay)
PA0009 HR Master Record- Infotype 0009 (Bank Details)
PA0010 HR Master Record- Infotype 0010 (Capital Formation)
PA0011 HR Master Record- Infotype 0011 (Ext.Bank Transfers)
PA0012 HR Master Record- Infotype 0012 (Fiscal Data - Germany)
PA0013 Infotype Social Insurance - Germany
PA0014 HR Master Record- Infotype 0014 (Recur. Payments/Deds.)
PA0015 HR Master Record- Infotype 0015 (Additional Payments)
PA0016 HR Master Record- Infotype 0016 (Contract Elements)
PA0017 HR master record- Infotype 0017 (Travel Privileges)
PA0019 HR Master Record- Infotype 0019 (Monitoring of Dates)
PA0020 HR Master Record- Infotype 0020 (DUEVO)
PA0021 HR Master Record- Infotype 0021 (Family)
PA0022 HR Master Record- Infotype 0022 (Education)
PA0023 HR Master Record- Infotype 0023 (Other/Previous Employers)
PA0024 HR Master Record- Infotype 0024 (Qualifications)
PA0025 HR Master Record- Infotype 0025 (Appraisals)
PA0026 HR Master Record- Infotype 0026 (Company Insurance)
PA0027 HR Master Record- Infotype 0027 (Cost Distribution)
PA0028 HR Master Record- Infotype 0028 (Int. Medical Service)
PA0029 HR Master Record- Infotype 0029 (Workers' Compensation)
PA0030 HR Master Record- Infotype 0030 (Powers of Attorney)
PA0031 HR Master Record- Infotype 0031 (Reference Pers.Nos.)
PA0032 HR Master Record- Infotype 0032 (Internal Data)
PA0033 International Infotype 0033- Statistics Exceptions
PA0034 HR Master Record- Infotype 0034 (Corporate Functions)
PA0035 HR Master Record- Infotype 0035 (Comp.Instr.)
PA0036 HR Master Record- Infotype 0036 (Social Insurance CH)
PA0037 HR Master Record- Infotype 0037 (Insurance)
PA0038 HR Master Record- Infotype 0038 (Fiscal Data CH)
PA0039 HR Master Record- Infotype 0039 (Add. Org. Assignment CH)
PA0040 HR Master Record- Infotype 0040 (Objects on Loan)
PA0041 HR Master Record- Infotype 0041 (Date Specifications)
PA0042 HR Master Record- Infotype 0042 (Fiscal Data - Austria)
PA0043 HR Master Record- Infotype 0043 (Family Allowance - A)
PA0044 HR Master Record- Infotype 0044 (Social Insurance - A)
PA0045 HR Master Record- Infotype 0045 (Company Loans)
PA0046 HR Master Record- Infotype 0046 (Company Pension Fund CH)
PA0048 HR Master Record- Infotype 0048 (Residence Status - CH)
PA0049 HR Master Record- Infotype 0049 (Red.Hrs./Bad Weather)
PA0050 HR Master Record- Infotype 0050 (Time Recording)
PA0051 HR Master Record- Infotype 0051 (ASB/SPI Data)
PA0052 HR Master Record- Infotype 0052 (Wage Maintenance)
PA0053 HR Master Record- Infotype 0053 (Company Pension)
PA0054 HR Master Record- Infotype 0054 (Works Council Pay)
PA0055 HR Master Record- Infotype 0055 (Previous Employer - A)
PA0056 HR Master Record- Infotype 0056 (Sick Certificates-A)
PA0057 HR Master Record- Infotype 0057 (Membership Fees)
PA0058 HR Master Record- Infotype 0058 (Commuter Rate - Austria)
PA0059 HR Master Record- Infotype 0059 (Social Insurances - NL)
PA0060 HR Master Record- Infotype 0060 (Fiscal Data - NL)
PA0061 HR Master Record- Infotype 0061 (Social Insurance - ES)
PA0062 HR master record- Infotype 0062 Fiscal data (ES)
PA0063 HR Master Record- Infotype 0063 (Social Fund - NL)
PA0064 HR Master Record- Infotype 0064 (Social Insurance - F)
PA0065 HR Master Record- Infotype 0065 (Tax - GB)
PA0066 HR Master data infotype 0066 - Canadian garnishment- order
PA0067 HR master data infotype 0067 - Canadian garnishment- debt
PA0068 HR master data infotype 0068 - Canadian garnishment- adjust
PA0069 HR Master Record- Infotype 0069 (Nat. Insurance - GB)
PA0070 HR Master Record- Infotype 0070 (Court Orders - GB)
PA0071 HR Master Record- Infotype 0071 (Pension Funds - GB)
PA0072 HR Master Record- Infotype 0072 (Fiscal Data - DK)
PA0073 HR Master Record- Infotype 0073 (Private Pensions - DK)
PA0074 HR Master Record- Infotype 0074 (Leave Processing - DK)
PA0075 HR Master Record- Infotype 0075 (ATP Pension - DK)
PA0076 HR Master Record- Infotype 0076 (Workers Compensation NA)
PA0077 HR Master Record- Infotype 0077 (Additional Personal Data)
PA0078 HR Master Record- Infotype 0078 (Loan Payments)
PA0079 Infotype SI Additional Insurance - D
PA0080 HR Master Record- Infotype 0080 (Maternity Protection)
PA0081 HR Master Record- Infotype 0081 (Military Service)
PA0082 HR Master Record- Infotype 0082 (Additional Absence Data)
PA0083 HR Master Record- Infotype 0083 (Leave Compensation)
PA0084 HR Master Record- Infotype 0084 (Sickness Pay Control - GB)
PA0085 HR Master Record- Infotype 0085 (Work Incapacity Periods GB)
PA0086 HR Master Record- Infotype 0086 (SSP/SMP Exclusions GB)
PA0087 HR Master Record- Infotype 0087 (WFTC/DPTC GB)
PA0088 HR Master Record- Infotype 0088 (SMP Record - GB)
PA0090 HR Master Record- Infotype 0090 (Additional Income)
PA0092 HR master record- Infotype 0092 Seniority (ES)
PA0093 HR Master Record- Infotype 0093 (Previous Employers - D)
PA0094 HR Master Record- Infotype 0094 (Residence Status - NA)
PA0095 HR Master Record- Infotype 0095 (Tax Canada)
PA0096 HR Master Record- Infotype 0096 (Tax - USA)
PA0098 HR Master Record- Infotype 0098 (Profit Sharing - F)
PA0100 HR Master Record- Infotype 0100 (SI B)
PA0101 HR Master Record- Infotype 0101 (Tax B)
PA0102 HR Master Record- Infotype 0102 (Grievances NA)
PA0103 HR Master Record- Infotype 0103 (Bond Purchases NA)
PA0104 HR Master Record- Infotype 0104 (Bond Denominations NA)
PA0105 HR Master Record- Infotype 0105 (Communications)
PA0106 HR Master Record- Infotype 0106 (Related Persons NA)
PA0107 HR Master Record- Infotype 0107 (Work Schedule B)
PA0108 HR Master Record- Infotype 0108 (Personal Data B)
PA0109 HR Master Record- Infotype 0109 (Contract Elements B)
PA0110 HR Master Record- Infotype 0110 (Pensions NL)
PA0111 HR Master Record- Infotype 0111 (Garnishment/Cession - D)
PA0112 HR Master Record- Infotype 0112 (Garnishment Claim - D)
PA0113 HR Master Record- Infotype 0113 (Garnish. Interest - D)
PA0114 HR Master Record- Infotype 0114 (Garnishment Amount D)
PA0115 HR Master Record- Infotype 0115 (Garnishment Wages D )
PA0116 HR Master Record- Infotype 0116 (Garn. Transfer D)
PA0117 HR Master Record- Infotype 0117 (Garn. Compensation D)
PA0118 HR Master Record- Infotype 0118 (Child Allowance D)
PA0119 HR Master Record- Infotype 0119 (Annual Income CA D)
PA0120 HR Master Record- Infotype 0120 (Pension Fund Trans. CH)
PA0121 HR Master Record- Infotype 0121 (RefPerNo Priority)
PA0122 HR Master Record- Infotype 0122 (Child Allowance Bonus D)
PA0125 HR Master Record- Infotype 0125 (Garnishment B)
PA0126 Infotype- Supplementary Pension Germany
PA0127 HR Master Record- Infotype 0127 (Commuter Traffic NL)
PA0128 HR Master Record- Infotype 0128 (Notifications)
PA0129 HR Master Record- Infotype 0129 (Text Number Assign.)
PA0130 HR Master Record- Infotpye 0130 (Checking Procedures)
PA0131 HR Master Record- Infotype 0131 (Garnishment/Cession A)
PA0132 HR Master Record- Infotype 0132 (Garnishment Claim A)
PA0133 HR Master Record- Infotype 0133 (Garn. Interest A)
PA0134 HR Master Record- Infotype 0134 (Garnishment Amount A)
PA0135 HR Master Record- Infotype 0135 (Spec. Garn. Cond. A)
PA0136 HR Master Record- Infotype 0136 (Garn. Transfer A)
PA0137 HR Master Record- Infotype 0137 (Garn. Compensation A)
PA0138 HR Master Record- Infotype 0138 (Family/Ref.Pers B)
PA0139 HR Master Record- Infotype 0139 (Employees Appl.No)
PA0140 HR Master Record- Infotype 0140 (SI Basic Data JP)
PA0141 HR Master Record- Infotype 0141 (SI Premium Data JP)
PA0142 HR Master Record- Infotype 0142 (Residence Tax JP)
PA0143 HR Master Record- Infotype 0143 (Life Insurance JP)
PA0144 HR Master Record- Infotype 0144 (Property Accum. JP)
PA0145 HR Master Record- Infotype 0145 (Personnel Tax Status JP)
PA0146 HR Master Record- Infotype 0146 (Y.E.A. Data JP)
PA0147 HR Master Record- Infotype 0147
PA0148 HR Master Record- Infotype 0148 (Family JP)
PA0149 HR Master Record Infotype 0149 (Tax Data South Africa)
PA0150 HR Master Record Infotype 0150 (Social Insurance SA)
PA0151 HR Master Record Infotype 0151 (Ext.Insurance South Africa)
PA0154 HR master record, infotype 0154 (social security data)
PA0155 HR master record, infotype 0155 (Suppl.admin.data)
PA0156 HR master data, infotype 0156 (Tax deduction)
PA0157 HR master record, infotype 0157 (User admin.data)
PA0158 HR mater record, infotype 0158 (Amounts paid by 3rd party)
PA0159 HR master record, infotype 0159 (Seniority)
PA0160 HR master record, infotype 0160 (Family allowance)
PA0161 HR Master Record- Infotype 0161 (Limits IRS)
PA0162 HR Master Record- Infotype 0162 (Ins. Y.E.T.A Data JP)
PA0165 HR Master Record- Infotype 0165 (Limits Deductions)
PA0167 HR Master Record- Infotype 0167 (Health Plans)
PA0168 HR Master Record- Infotype 0168 (Insurance Plans)
PA0169 HR Master Record- Infotype 0169 (Savings Plan)
PA0170 HR Master Record- Infotype 0170 (Flexible Spending Accounts)
PA0171 HR Master Record- Infotype 0171 (Gen. Benefits Information)
PA0172 HR Master Record- Infotype 0172 (FSA Claims)
PA0173 Tax card information
PA0177 HR Master Record- Infotype 0177 (Reg. Country of Birth NL)
PA0179 HR Master Record- Infotype 0179 (Tax SG)
PA0180 Alternative Address Data (Thailand)
PA0181 HR Master Record- Infotype 0181 http://Add. Funds (SG)
PA0182 HR Master Record- Infotype 0182 Alternative Names (SG)
PA0183 HR Master Record- Infotype 0183 Awards (SG)
PA0184 HR Master Record- Infotype 0184 Resume text (SG)
PA0185 HR Master Record- Infotype 0185 Identification (SG)
PA0186 HR Master Record- Infotype 0186 Social Insurance (SG)
PA0187 Additional family data
PA0188 Tax (Australia)
PA0189 HR Master Record- Infotype 0189 (Construction Pay- Funds)
PA0190 HR Master Data Record Infotype 0190 (BuildingTradePrevERDat)
PA0191 HR Master Record Infotype 0191 (BuildingTradeReimbursExpens)
PA0192 Personnel Master Record Infotype 0192 (BuildingTrade Attrib)
PA0194 HR Master Record Infotype 0194 (Garnishment Document)
PA0195 HR Master Record Infotype 0195 (Garnishment Order)
PA0196 HR Master Record-Infotype 0196 (Employee Provident Fund MY)
PA0197 HR Master Record-Infotype 0197 (SOCSO Contributions MY)
PA0198 Sheduled Tax Deductuion Malaysia
PA0199 Tax deduction CP38 / Additional amt / Bonus - Malaysia
PA0200 HR Master Record, Infotype 0200 (Garnishments DK)
PA0201 Personnel master record infotype 0201 (basic pension amnts)
PA0202 HR master data infotype 0202 (Entitlements)
PA0203 HR master record infotype 0203 (Pension/Reserve Status)
PA0204 HR Master Record, Infotype 0204 (DA/DS Statistics DK)
PA0205 HR Master Record- Infotype 0205
PA0206 HR Master Record- Infotype 0206, SI Finland
PA0207 HR Master Record- Infotype 0207 (Residence Tax Area)
PA0208 HR Master Record- Infotype 0208 (Work Tax Area - USA)
PA0209 HR Master Record- Infotype 0209 (Unemployment Insurance USA)
PA0210 HR Master Record- Infotype 0210 (W4 USA)
PA0211 HR Master Record- Infotype 0211 (COBRA Beneficiaries)
PA0212 HR Master Record- Infotpye 0212 (COBRA Health Plan)
PA0213 Additional family information - Malaysia
PA0214 HR Master Record Infotype 0214
PA0215 Building Trade Transaction Data
PA0216 Garnishment Adjustment
PA0217 HR Master Record Infotype 0217 (INSEE code)
PA0218 HR Master Record- Infotype 0218 (Pensioner Fund No. - F)
PA0219 HR Master Record- Infotype 0219 (External Organizations)
PA0220 Superannuation (Australia)
PA0221 HR Master Record- Infotype 0221 (Manual Checks)
PA0222 HR Master Record for Infotype 0222 (Company Cars GB)
PA0224 Tax information - infotype 0224 - Canada
PA0225 HR Master Record for Infotype 0225 (Company Cars GB 2)
PA0227 Tax file number (Australia)
PA0228 HR Master Record- Infotype 0228
PA0230 HR Master Record- Infotype 0230 / View 0008 (PSG)
PA0231 HR Master Record- Infotype 0231 / View 0001 (PSG)
PA0232 Personal-master record infotype 0232 (Child Allowance) (D)
PA0233 HR Master Record Infotype 0233 ('Bilan Social' FR)
PA0234 HR Master Record Infotype 0234 (Add. Withh. Inform. - USA)
PA0235 HR Master Record- Infotype 0235 (Other Taxes - USA)
PA0236 HR Master Record- Infotype 0236 (Credit Plans)
PA0237 HR Master Record- Infotype 0237 / View for 0052 (PSG)
PA0241 Indonesian Tax Data
PA0242 JAMSOSTEK Details, Indonesia
PA0261 Leave Accrual Australia
PA0263 HR Master Record for Infotype 0263
PA0264 HR Master Record- Infotype 0264/view for Infotype 0021
PA0265 HR Master Record- Infotype 0265 / Special Regulations (PSG)
PA0266 HR Master Record- Infotype 0266 / View 0027 (PSG)
PA0267 HR Master Record- Infotype 0267 (One time Payment off-cycle)
PA0268 HR Master Record Infortype view 0045 and 0268 (Loan JPN)
PA0269 HR Master Record- Infotype 0269 (ADP Information USA)
PA0270 HR Master Data Record- Infotype 0270 (COBRA Payments)
PA0271 HR master data infotype 0271 (Public Sector statistics)
PA0272 HR Master Record Infotype 0272 (Garnishment FR)
PA0273 HR Master Record- Infotype 0273 (Tax - SE)
PA0274 HR Master Record- Infotype 0274 (Insurance - SE)
PA0275 HR Master Record- Infotype 0275 (Garnishment - SE)
PA0276 HR Master Record- Infotype 0276 (OPIS - SE)
PA0277 HR Master Record- Infotype 0277 (Exceptions - SE)
PA0278 HR Master Record- Infotype 0278 (Basic Data PF CH)
PA0279 HR Master Record- Infotype 0279 (Individual Values PF CH)
PA0280 HR Master Record Infotype 0280/View for 0016
PA0281 HR Master Record Infotype 0281/View for 0045
PA0283 HR Master Record for Infotype 0283 (Archiving)
PA0288 HR CH- HR Master Record Infotype 0021 (Suppl. Switzerland)
PA0302 HR Master Record- Infotype 0302 (Additional Actions)
PA0303 HR Master Record- Infotype 303 (reductn tax/soc.ins.contrNL)
PA0304 Basic pay - additional information
PA0305 HR master record, infotype 0305 (previous employer)
PA0306 HR master record, infotype 0306 (Family data)
PA0309 IRD Number Infotype NZ
PA0310 Superannuation NZ
PA0311 Leave Adjustments - NZ
PA0312 Leave History Adjustments NZ
PA0313 Employee Taxation Detail Infotype NZ
PA0314 I0314- Days for Vacation Bonus and Sal. Deducs (DK/N)
PA0315 CATS- Sender Information
PA0317 HR Master Record- Infotype 0317 (special arrangements)
PA0318 HR Master Record- Infotype Family data for Indonesia (0318)
PA0319 Indonesia Private Insurances
PA0320 Official housing
PA0321 Employee accommodations
PA0322 HR Master Data Record Infotype 0322 (Pensions and Rel. Ben.)
PA0323 HR Master Record Infotype 0323 (Pension Plan)
PA0326 HR Master Record IT 0326 (Imputation to Pension Payments)
PA0329 HR master record infotype 0329 ( Sideline Job)
PA0330 Infotype 0330 (Non-monetary remuneration)
PA0331 HR Master Record- Infotype 0331 (Tax - PT)
PA0332 HR Master Record- Infotype 0332 (Social Security - PT)
PA0333 HR Master Record- Infotype 0333 (Disability - P)
PA0334 HR Master Record- Infotype 0334
PA0335 HR Master Data- Infotype 0335 (view of infotype 21 - PT)
PA0336 HR Master Data- Infotype 0336 (view of infotype 2 - PT)
PA0337 HR Master Record- Infotype 0337 (Prof. Classifications - PT)
PA0338 HR Master record- Infotype 0338 (Absence pay. clearing - PT)
PA0341 HR - master record infotype 341 (DUEVO start)
PA0342 HR Master Record- Infotype 0342 (HK Extension to I0002)
PA0344 HR Master Record- Infotype 0344 (Familiy members HK)
PA0345 HR Master Record- Infotype 0345 (Hong Kong Tax)
PA0346 HR Master Record- Infotype 0346 (Contribution plan)
PA0347 HR Master Record- Infotype 0347 (Entitlement plan)
PA0348 HR Master Record- Infotype 0348 (HK Appraisal and bonus)
PA0349 HR Master Record- Infotype 0349 (Eligibility grouping)
PA0351 HR Master Record- Infotype 0351 (Country Information)
PA0352 NHI for Family member (TW)
PA0353 Income Tax Taiwan
PA0354 Labor Insurance Taiwan
PA0355 National Health Insurance Taiwan
PA0356 Employment Stabilization Fund (TW)
PA0357 Saving Plan (TW)
PA0358 Employee Welfare Fund (TW)
PA0359 HR Master Record - Infotype 0359 (PRSI Ireland)
PA0360 HR Master Record - Infotype 0360 (PRSI Ireland)
PA0361 HR Master Record - Infotype 0361 (Pensions Admin. - IE)
PA0362 HR Master Record- Infotype Membership for Indonesia (0362)
PA0363 Previous employment period
PA0364 Infotype Tax TH
PA0365 Social Security TH
PA0366 Provident Fund THAILAND
PA0367 HR Master Record- Infotype 0367 (SI Notification Suppl. A)
PA0368 Rehabilitants
PA0369 Master data- Infotype 0369 (IMSS data)
PA0370 Master data- Infotype 0370 (INFONAVIT credit data)
PA0371 Master Data- Infotype 0371 (Tax on previous employment)
PA0372 Master data- Infotype 0372 (Integrated daily wage)
PA0373 HR loan repayment plan JP (for P0268)
PA0374 Infortype 0374- General Eligibility
PA0375 HR Master Data Record- Infotype 0375 (Add. Benefits Inform.)
PA0376 HR Master Data Record- Infotype 0376 (Medical Benefits Info)
PA0377 HR Master Record- Infotype 0377 (Miscellaneous Plans)
PA0378 HR Master Data Record- Infotype 0378 (Benefit Adj. Reason)
PA0379 HR Master Record- Infotype 0379 (Stock Purchase Plans)
PA0380 HR Master Data Record Infotype 0380 (Comp. Adjustment)
PA0381 HR Master Record Infotype 0381 (Comp. Plan Eligibility)
PA0382 HR Master Data Record Infotype 0382 (Stock)
PA0383 HR Master Data Record Infotype 0383 (Compensation Package)
PA0384 HR Master Data Record Infotype 0384
PA0386 HR Master Record- Infotype 0386 (VHI Scheme)
PA0387 HR Master Record - Infotype 0387 (Starter's Details)
PA0388 HR Master Record- Infotype 0388 (Union JP)
PA0389 Income Tax- General indicators
PA0390 Income Tax- Deductions
PA0391 Income Tax- Information on other employers
PA0392 Social Security- General data
PA0393 Family data- Calendar year schooling assistance
PA0394 Family data- Additional information
PA0395 HR Master Record- Infotype 0395 (External Org.Assignment)
PA0396 HR Master Record- Infotype 0396 (Expatriate Attributes)
PA0397 Infotype 0021 Family
PA0398 Infotype 0016 - Corporation and contract agreements
PA0399 HRMS-VE- Table for Income Tax Infotype (IT0399)
PA0400 HRMS-VE- Table for SSO Infotype (IT0400)
PA0401 HRMS-VE- Table for Benefits Infotype (IT401)
PA0402 HR Master Data Infotype 0402
PA0403 HR Master Record for Infotype 0403
PA0404 HR Master Record- Infotype 0404 (Military Service Taiwan)
PA0405 HR Master Record- Infotype 0405 (Absence Event)
PA0406 HR-PSG- Infotype 0406 (Pension information)
PA0407 HR master record, infotype 0407 (Abs.addit.inf.)
PA0408 HR Master Record- Infotype 0408 (CBS NL)
PA0409 HR Master Record- Infotype 0409 (External Agencies NL)
PA0410 Infotype 0410 - Transportation ticket
PA0411 Taxation Philippines - infotype
PA0412 HR Master Record- Infotype 0412 View to I0021 (SG)
PA0415 HR Master Record- Infotype 0415
PA0416 Time Quota Compensation Infotype- Database Table
PA0419 HR Master record- Manual tax reporting information - Norway
PA0421 HR master record, infotype 0421 (spec.remuner.)
PA0422 SSS Philippines infotype
PA0423 HR Master Record- Infotype 0423
PA0424 Industrial Accident / Maternity / Sickness Statement (FR)
PA0425 Data Entry of Per Diem Sick Pay Summary
PA0426 Garnishment
PA0427 Debts by garnishment
PA0428 Beneficiary data (Additional information)
PA0433 HR Master Record Infotype 0433/View for 0009
PA0434 HR Master Record Infotype 0434/View for 0011 (GB Version)
PA0435 HR Master Record for Infotype 0435
PA0436 HR Master Record for Infotype 0436
PA0437 Multiple employment (BR)
PA0438 HR Master Record- Infotype 0438
PA0439 HR Master Record for Infotype 0439 (Data Transfer)
PA0440 HR Master Record- Infotype 0440 (Receipts)
PA0442 HR Master Record- Infotype 0442
PA0447 US Federal Tax MTD
PA0448 US Federal Tax QTD
PA0449 HR Master Record- Infotype 0449
PA0450 HR Master Record- Infotype 0450
PA0451 HR Master Record- Infotype 0451
PA0452 HR Master Record- Infotype 0452
PA0453 HR Master Record- Infotype 0453
PA0454 HR Master Record- Infotype 0454
PA0455 HR Master Record- Infotype 0455
PA0456 HR Master Record- Infotype 0456
PA0457 HR Master Record- Infotype 0457
PA0458 HR Master Record for Infotype 0458
PA0459 HR Master Record for Infotype 0459
PA0460 HR Master Record for Infotype 0460
PA0467 Personnel master data Infotype 0467 (SI addit.notif. pl.c.A)
PA0468 HR master record for infotype 0468
PA0469 HR master record for infotype 0469
PA0470 HR master record infotype 0470 (travel profiles)
PA0471 HR master record infotype 0471 (flight preferences)
PA0472 HR master record infotype 0472 (hotel preferences)
PA0473 HR master record infotype 0473 (rental car preferences)
PA0474 HR master record infotype 0474 (train preferences)
PA0475 HR master record infotype 0475 (customer programs)
PA0476 Personnel Master Record for Infotype 0476 (Garnishments)
PA0477 Personnel Master Record Infotype 0477- Debt (Garnishments)
PA0478 Personnel Master Record Infotype 0478- Adjustment (Garnish)
PA0480 HR master record for infotype 0480
PA0482 HRMS-VE- Additional Data from Family/N. of Kin Inftp(IT0021)
PA0483 Infotype 0483 - Data entry by CAAF - Italy only
PA0486 HR-SG-PS- Master Data (National Service)
PA0487 HR-SG-PS- Security / medical Clearance
PA0488 HR-SG-PS- Leave scheme
PA0489 HR-SG-PS- Voluntary Service / ECA
PA0490 HR-PS-SG- Employee Suggestion Scheme
PA0491 HR Master Record- Infotype 491
PA0493 HR-SG-PS- Extension of infotype 0022
PA0494 HR-PS-SG- Employee Suggestion Scheme - Evaluation Results
PA0495 HR-PS-SG- Pensions Scheme
PA0502 Letter of appointment
PA0503 Pensioner's Definition
PA0504 Pensioner's Advantage B
PA0505 HR Master Record- Infotype 0505
PA0506 Tip Indicators
PA0510 HR Master Record- Infotype 0510 (Tax-sheltered annuity)
PA0511 Infotype Cost-of-Living Allowance/Office (0511)
PA0512 Personnel Master Record Infotype 0512
PA0521 HR Master Record- Infotype 0521 (Semiretirement D)
PA0525 Child Care
PA0526 HR Master Data Record Infotype 0526
PA0527 HR Master Data Record Infotype 0527
PA0546 HR-SG- Master Record- Infotype 0546 [Termination Data)
PA0547 BIK Infotype for Malaysia
PA0548 Infotype 0548 - Suppl.social security funds - Italy only
PA0551 Termination of contract- General data
PA0552 HR Master Data Record for Infotype 0552
PA0553 HR Master Data Record for Infotype 0553
PA0554 HR Master Record- Infotype 0554
PA0559 HR Master Record- Infotype 0559 (Commuting allowance Info.)
PA0560 HR Master Record- Infotype 0560
PA0561 Data for tax
PA0565 HR Master Record- Infotype 0565 (Retirement Plan Val. Res.)
PA0566 HR Master Record- Infotype 0566
PA0569 HR Master Record- Infotype 0569
PA0570 HR Master Record- Infotype 0570
PA0571 HR Master Record- Infotype 0571
PA0572 HR Master Record- Infotype 0572
PA0578 HR Master Record- Infotype 0578
PA0579 HR Master Record Infotype 0579 (Ext. Salary Elements)
PA0592 HR Master Data Record Infotype 0592 (Foreign Public Sector)
PA0593 Rehabilitants
PA0595 HR Master Data Record for Infotype 0595
PA0596 PhilHealth Philippines Infotype
PA0602 HR Master Record- Infotype 0602 (Retirement Plan Cumulation)
PA0611 HR Master Record- Infotype 0611
PA0612 HR Master Record- Infotype 0612
PA0625 Infotype 0002 - Race/complexion
PA0628 HR Master Record for Infotype 0628
PA0629 HR Master Record for Infotype 0629
PA0630 HR Master Record for Infotype 0630
PA0631 HR Master Record for Infotype 0631
PA0634 Philippines Previous Employer Information Info-type
PA0645 Contract termination- General data
PA0900 HR Master Record- Infotype 0900 (Sales Data)
PA0901 HR Master Record- Infotype 0901 (Purchasing Data)
HRHAP Appraisal Document
HRHAP_ACT_LOG Appraisal Document: Action Log - Additional Date
HRHAP_ANON Appraisal Document: Anonymous Appraiser Assignments
HRHAP_APPEE Appraisal Document: Appraisee Assignment
HRHAP_APPER Appraisal Document: Appraiser Assignment
HRHAP_BASIC Appraisal Document: Basic Element Data
HRHAP_FINAL Appraisal Document: Cell Values of Final Appraisal Column
HRHAP_FURTHER App. Document: Cell Values of Additional Participants' Column
HRHAP_OBJECT Appraisal Document: Cell Values of Objective Columns
HRHAP_OTHERS Appraisal Document: Additional Participant Assignment
HRHAP_P Appraisal Document: Reference Appraisal
HRHAP_PART Appraisal Document: Cell Values of Part Appraisal Columns
HRHAP_PROCESS Appraisal Document: Processed Appraisal Functions
HRHAP_P_APPER Appraisal Document: Part Appraiser Assignment
HRHAP_P_D Appraisal Document: Reference Appraisal (Structure)
HRHAP_P_E Appraisal Document: Reference Appraisal (Data)
HRHAP_P_T Reference Appraisal Names
HRHAP_SEM_OBJ Strategic Objectives from SEM System
HRHAP_T Appraisal Document Name
https://forums.sdn.sap.com/click.jspa?searchID=9468701&messageID=4955985
Reward points..

Similar Messages

  • Fetch the values from internal table inside an internal table (urgent!!)

    data : BEGIN OF PITB2_ZLINFO occurs 0,
             BEGDA LIKE SY-DATUM,
             ENDDA LIKE SY-DATUM,
             PABRJ(4) TYPE N,                       "Payroll Year
             PABRP(2) TYPE N,                       "Pay. Period
             ZL LIKE PC2BF OCCURS 0,
           END OF PITB2_ZLINFO.
    I have a internal table like this,
    How to Fetch the values from internal table inside an internal table.
    Kindly Help me on this..
    Regards,
    Ram.

    Hi,
    Try this....
    Loop at PITB2_ZLINF0.
    Loop at PITB2_ZLINF0-ZL.
    endloop.
    Endloop.
    Thanks...
    Preetham S

  • How to Send Internal table to SAP Spool using Function Modules or Methods?

    Hi Experts,
    How to Send Internal table to SAP Spool using Function Modules or Methods?
    Thanks ,
    Kiran

    This is my code.
    I still get the no ABAP list data for the spool, even tho I can see it sp01?
    REPORT  Z_MAIL_PAYSLIP.
    * Declaration Part *
    tables: PERNR, PV000, T549Q, V_T514D, HRPY_RGDIR.
    infotypes: 0000, 0001, 0105, 0655.
    data: begin of ITAB occurs 0,
      MTEXT(25) type C,
      PERNR like PA0001-PERNR,
      ABKRS like PA0001-ABKRS,
      ENAME like PA0001-ENAME,
      USRID_LONG like PA0105-USRID_LONG,
    end of ITAB.
    data: W_BEGDA like HRPY_RGDIR-FPBEG,
          W_ENDDA like HRPY_RGDIR-FPEND.
    data: RETURN like BAPIRETURN1 occurs 0 with header line.
    data: P_INFO like PC407,
          P_FORM like PC408 occurs 0 with header line.
    data: P_IDX type I,
          MY_MONTH type T549Q-PABRP,
          STR_MY_MONTH(2) type C,
          MY_YEAR type T549Q-PABRJ,
          STR_MY_YEAR(4) type C,
          CRLF(2) type x value '0D0A'.
    data: W_CMONTH(10) type C.
    data: TAB_LINES type I,
          ATT_TYPE like SOODK-OBJTP.
    data: begin of P_INDEX occurs 0,
            INDEX type I,
    end of P_INDEX.
    constants: begin of F__LTYPE, "type of line
       CMD like PC408-LTYPE value '/:',  "command
       TXT like PC408-LTYPE value 's',   "textline
    end of F__LTYPE.
    constants: begin of F__CMD, "commands
      NEWPAGE like PC408-LINDA value '',
    end of F__CMD.
    data: P_LIST like ABAPLIST occurs 1 with header line.
    *data: OBJBIN like SOLISTI1 occurs 10 with header line,
    data: OBJBIN like  LVC_S_1022 occurs 10 with header line,
          DOCDATA like SODOCCHGI1,
          OBJTXT like SOLISTI1 occurs 10 with header line,
          OBJPACK like SOPCKLSTI1 occurs 1 with header line,
          RECLIST like SOMLRECI1 occurs 1 with header line,
          OBJHEAD like SOLISTI1 occurs 1 with header line,
          it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          gd_buffer type string,
          l_no_of_bytes TYPE i,
          l_pdf_spoolid LIKE tsp01-rqident,
          l_jobname     LIKE tbtcjob-jobname.
    data: file_length  type int4,
          spool_id     type rspoid,
          line_cnt     type i.
    *-------------------------------------------------------------------* * INITIALIZATION *
    OBJBIN = ' | '.
    append OBJBIN.
    OBJPACK-HEAD_START = 1.
    data: S_ABKRS like PV000-ABKRS.
    data: S_PABRP like T549Q-PABRP.
    data: S_PABRJ like T549Q-PABRJ.
    * SELECTION SCREEN                                                  *
    selection-screen begin of block BL1.
    parameters: PAY_VAR like BAPI7004-PAYSLIP_VARIANT default 'ESS_PAYSLIPS' obligatory.
    selection-screen end of block BL1.
    START-OF-SELECTION.
      s_ABKRS = PNPXABKR.
      S_PABRP = PNPPABRP.
      s_pabrj = PNPPABRJ.
      w_begda = PN-BEGDA.
      w_endda = PN-ENDDA.
    get pernr.
    *                                 "Check active employees
      rp-provide-from-last p0000 space pn-begda  pn-endda.
      CHECK P0000-STAT2 IN PNPSTAT2.
    *                                 "Check Payslip Mail flag
      rp-provide-from-last p0655 space pn-begda  pn-endda.
      CHECK P0655-ESSONLY = 'X'.
      rp-provide-from-last p0001 space pn-begda  pn-endda.
    *                                 "Find email address
      RP-PROVIDE-FROM-LAST P0105 '0030' PN-BEGDA PN-ENDDA.
      if p0105-usrid_LONG ne ''.
        ITAB-PERNR      = P0001-PERNR.
        ITAB-ABKRS      = P0001-ABKRS.
        ITAB-ENAME      = P0001-ENAME.
        ITAB-USRID_LONG = P0105-USRID_LONG.
        append itab.
        clear itab.
      endif.
      "SY-UCOMM ='ONLI'
    END-OF-SELECTION.
    *------------------------------------------------------------------* start-of-selection.
      write : / 'Payroll Area        : ', S_ABKRS.
      write : / 'Payroll Period/Year : ',STR_MY_MONTH,'-',STR_MY_YEAR. write : / 'System Date : ', SY-DATUM.
      write : / 'System Time         : ', SY-UZEIT.
      write : / 'User Name           : ', SY-UNAME.
      write : / SY-ULINE.
      sort ITAB by PERNR.
      loop at ITAB.
        clear : P_INFO, P_FORM, P_INDEX, P_LIST, OBJBIN, DOCDATA, OBJTXT, OBJPACK, RECLIST, TAB_LINES.
        refresh : P_FORM, P_INDEX, P_LIST, OBJBIN, OBJTXT, OBJPACK, RECLIST.
    *                                                  Retrieve Payroll results sequence number for this run
        select single * from HRPY_RGDIR where PERNR eq ITAB-PERNR
                                        and FPBEG ge W_BEGDA
                                        and FPEND le W_ENDDA
                                        and SRTZA eq 'A'.
    *                                                  Produce payslip for those payroll results
        if SY-SUBRC = 0.
          call function 'GET_PAYSLIP'
            EXPORTING
              EMPLOYEE_NUMBER = ITAB-PERNR
              SEQUENCE_NUMBER = HRPY_RGDIR-SEQNR
              PAYSLIP_VARIANT = PAY_VAR
            IMPORTING
              RETURN          = RETURN
              P_INFO          = P_INFO
            TABLES
              P_FORM          = P_FORM.
          check RETURN is initial.
    *                                                 remove linetype from generated payslip
          loop at p_form.
            objbin = p_form-linda.
            append objbin.
            line_cnt = line_cnt + 1.
          endloop.
          file_length = line_cnt * 1022.
    *                                                 create spool file of paylsip
          CALL FUNCTION 'SLVC_TABLE_PS_TO_SPOOL'
            EXPORTING
              i_file_length = file_length
            IMPORTING
              e_spoolid     = spool_id
            TABLES
              it_textdata   = objbin.
          IF sy-subrc EQ 0.
            WRITE spool_id.
          ENDIF.
          DESCRIBE table objbin.
          DATA PDF LIKE TLINE OCCURS 100 WITH HEADER LINE.
          CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
            EXPORTING
              SRC_SPOOLID                    = spool_id
              NO_DIALOG                      = ' '
              DST_DEVICE                     = 'MAIL'
    *      PDF_DESTINATION                =
    *    IMPORTING
    *      PDF_BYTECOUNT                  = l_no_of_bytes
    *      PDF_SPOOLID                    = l_pdf_spoolid
    *      LIST_PAGECOUNT                 =
    *      BTC_JOBNAME                    =
    *      BTC_JOBCOUNT                   =
            TABLES
              PDF                            = pdf
            EXCEPTIONS
              ERR_NO_ABAP_SPOOLJOB           = 1
              ERR_NO_SPOOLJOB                = 2
              ERR_NO_PERMISSION              = 3
              ERR_CONV_NOT_POSSIBLE          = 4
              ERR_BAD_DESTDEVICE             = 5
              USER_CANCELLED                 = 6
              ERR_SPOOLERROR                 = 7
              ERR_TEMSEERROR                 = 8
              ERR_BTCJOB_OPEN_FAILED         = 9
              ERR_BTCJOB_SUBMIT_FAILED       = 10
              ERR_BTCJOB_CLOSE_FAILED        = 11
              OTHERS                         = 12
          IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
    *Download PDF file C Drive
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename = 'C:\itab_to_pdf.pdf'
          filetype = 'BIN'
        TABLES
          data_tab = pdf.
    * Transfer the 132-long strings to 255-long strings
    *  LOOP AT pdf.
    *    TRANSLATE pdf USING ' ~'.
    *    CONCATENATE gd_buffer pdf INTO gd_buffer.
    *  ENDLOOP.
    *  TRANSLATE gd_buffer USING '~ '.
    *  DO.
    *    it_mess_att = gd_buffer.
    *    APPEND it_mess_att.
    *    SHIFT gd_buffer LEFT BY 255 PLACES.
    *    IF gd_buffer IS INITIAL.
    *      EXIT.
    *    ENDIF.
    *  ENDDO.
          OBJHEAD = 'Objhead'.
          append OBJHEAD.
    * preparing email subject
          concatenate W_ENDDA(6)
                    ' Payslip-'
                    ITAB-ENAME+0(28)
                    ITAB-PERNR+4(4) ')'
                 into DOCDATA-OBJ_DESCR.
          DOCDATA-OBJ_NAME = 'Pay Slip'.
          DOCDATA-OBJ_LANGU = SY-LANGU.
          OBJTXT = 'Pay Slip.'.
          append OBJTXT.
    *prepare email lines
          OBJTXT = DOCDATA-OBJ_DESCR.
          append OBJTXT.
          OBJTXT = 'Please find enclosed your current payslip.'.
          append OBJTXT.
    * Write Attachment(Main)
    * 3 has been fixed because OBJTXT has fix three lines
          read table OBJTXT index 3.
    *    DOCDATA-DOC_SIZE = ( 3 - 1 ) * 255 + strlen( OBJTXT ).
          clear OBJPACK-TRANSF_BIN.
          OBJPACK-HEAD_START = 1.
          OBJPACK-HEAD_NUM = 0.
          OBJPACK-BODY_START = 1.
          OBJPACK-BODY_NUM = 3.
          OBJPACK-DOC_TYPE = 'RAW'.
          append OBJPACK.
    * Create Message Attachment
          ATT_TYPE = 'PDF'.
          describe table OBJBIN lines TAB_LINES.
          read table OBJBIN index TAB_LINES.
    *    OBJPACK-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + strlen( OBJBIN ).
          OBJPACK-TRANSF_BIN = 'X'.
          OBJPACK-HEAD_START = 1.
          OBJPACK-HEAD_NUM = 0.
          OBJPACK-BODY_START = 1.
          OBJPACK-BODY_NUM = TAB_LINES.
          OBJPACK-DOC_TYPE = ATT_TYPE.
          OBJPACK-OBJ_NAME = 'ATTACHMENT'.
          OBJPACK-OBJ_DESCR = 'Payslip'.
          append OBJPACK.
    * Create receiver list refresh RECLIST.
          clear RECLIST.
          RECLIST-RECEIVER = itab-USRID_long.
          translate RECLIST-RECEIVER to lower case.
          RECLIST-REC_TYPE = 'U'.
          append RECLIST.
    * Send the document
    *SO_NEW_DOCUMENT_ATT_SEND_API1
          call function 'SO_DOCUMENT_SEND_API1'
            exporting
              DOCUMENT_DATA = DOCDATA
              PUT_IN_OUTBOX = 'X'
              COMMIT_WORK = 'X'
    * IMPORTING
    *   SENT_TO_ALL =
    *   NEW_OBJECT_ID =
            tables
              PACKING_LIST  = OBJPACK
              OBJECT_HEADER = OBJHEAD
              CONTENTS_BIN  = pdf
              CONTENTS_TXT  = OBJTXT
    *   CONTENTS_HEX =
    *   OBJECT_PARA =
    *   OBJECT_PARB =
              RECEIVERS = RECLIST
            exceptions
              TOO_MANY_RECEIVERS = 1
              DOCUMENT_NOT_SENT = 2
              DOCUMENT_TYPE_NOT_EXIST = 3
              OPERATION_NO_AUTHORIZATION = 4
              PARAMETER_ERROR = 5
              X_ERROR = 6
              ENQUEUE_ERROR = 7
              others = 8.
          if SY-SUBRC NE 0.
            ITAB-MTEXT = 'Message Not Sent to : '.
          else.
            ITAB-MTEXT = 'Message Sent to : '.
          endif.
    *    else.
    *      ITAB-MTEXT = 'Message Not Sent to : '.
    *    endif.
        else.
          "SY-SUBRC Not = 0
          ITAB-MTEXT = 'Payroll data not found : '.
        endif.
        "end of SY-SUBRC = 0.
        modify ITAB.
      endloop. "end loop at ITAB
      sort ITAB by MTEXT PERNR.
      loop at ITAB.
        at new MTEXT.
          uline.
          write : / ITAB-MTEXT color 4 intensified on.
          write : / 'Emp. Code' color 2 intensified on,
                 12 'Emp. Name' color 2 intensified on,
                 54 'Email ID' color 2 intensified on.
        endat.
        write : / ITAB-PERNR, 12 ITAB-ENAME, 54 ITAB-USRID_LONG.
      endloop.

  • Problem in changing the internal table contents of a standard program

    Dear All,
    I am making changes to internal table LT_PPDIT of standard program SAPLHRPT in the user exit EXIT_SAPLACC4_001 while payroll posting to accounting with tcode PC00_M99_CIPE. But though the changed value of LT_PPDIT is visible within the exit still the value of LT_PPDIT when we come outside exit is the same as what was before entering exit.
    Please suggest is there any way of modifying internal table of a standard program in the user exit.
    Regards,
    Kanupriya

    Hi,
    I think the internal table is getting refreshed or something like that after the user exit.
    Try debugging after the user exit and put breakpoints at clear and modify statements.
    Then you ll find out where its regaining the oringinal value after getting changes.
    After locating that point try finding some enhancmenent point there and including your code so that your value of internal able gets modified.
    Regards,
    Subhashini

  • How to Query Internal tables in PCR

    Hi Experts,
    When I tried by using operation u201CVAKEYu201D to query the Internal tables, but it was not working
    I would like to write one PCR in the Indian Payroll
    Please can anyone help me on the same?
    The requirement as below;
    u201CIf the DDNTK table filled with amount (Assume that DDNTK table may contains more than one WT)u201D
    u201CAdd this total amount (with same sign) to WT /110 net deductionsu201D
    Thanks in Advance!
    Thanks and Regards
    Cheera

    I have never worked with Indian Payroll and I am not aware of a function or operation that allows to check on table DDNTK,
    but you could check PCR XDPR and function PRDNT.

  • RPTIME00 - Custom Internal Table , Custom Clsuter in Custom Function.

    Hello Guru,
    I have a requirement to create custom scheme with totally new custom function , rules .
    my question is it is possible to declare custom internal tables like TIP, TOP and cutom cluster to store results.
    if yes then how ?
    Thanks in adance

    My requirement is based on a project to develop new sap product which can handle complex crew management for industries like railways and airlines,product is still in protoype phase and will basicaly cover right from dispatching crew to various sites to generating there payroll. standard sap works on basis of day and time. but crew industory work on trip. a crew for example pilot fly form point A to B get paid/claims based on on that single trip and whatever activities he has done in that trip. so purely this is based on trip and not day or hours, now we are thinking about using RPTIMEOO as a tool to calculate and create wage type beacuse at the end of the day payroll is getting generated in SAP and also all the crew employee will be setup as master data. this whole product will have its own screeen to capture activties and opereations . will be build on top of sap hcm.
    so was thinking any ways sap says that you can create custom schema and rules but those standard internal tables and cluster are of no use because of the structure is based in trip, wage type will be based in miles that crew travel.
    so trying to find how far this RPTIME00 is flexible .. and is possible to create custom function. becoz at end we are going to update payroll 2010 which can be mapped some how.  RPTIME00 can also give clients to add there own custom functions in future if any new req comes.
    if this is not possible i.e RPTIMEOO can not use custom cluster , then we might have to write abap programs ti do calculation but only problem any new features to be added will lead to code change.
    thanks for your patience ..

  • Sy-tabix for internal table in smartform

    Hi friends,
    How to capture the sy-tabix value for the entries in an internal table which has been looped into the loop of table node of a smartform?? I need to print something immedaitely after the end of the table
    For every record the value of sy-tabix is showing 1 !!
    Advance Thanks
    Aadarsh

    Hi Aadarsh,
    Give ur sy-tabix at the end of the loop.
    loop at itab.
    //table node populations.
    endloop.
    give a seperate loop for this.
    loop at itab.
    sy-tabix.
    endloop
    get the total no and print it after the table.
    If u r using do loop then give sy-index.
    Hope tihs helps u,
    Regards,
    Nagarajan.
    Message was edited by: Nagarajan Kumarappan

  • Regarding Exporting and Importing internal table

    Hello Experts,
    I have two programs:
    1) Main program: It create batch jobs through open_job,submit and close job.Giving sub program as SUBMIT.
    I am using Export IT to memory id 'MID' to export internal table data to sap memory in the subprogram.
    The data will be processed in the subprogram and exporting data to sap memory.I need this data in the main program(And using import to get the data,but it is not working).
    Importing IT1 from memory id 'MID' to import the table data in the main program after completing the job(SUBMIT SUBPROGRAM AND RETURN).
    Importing is not getting data to internal table.
    Can you please suggest something to solve this issue.
    Thank you.
    Regards,
    Anand.

    Hi,
    This is the code i am using.
    DO g_f_packets TIMES.
    * Start Immediately
           IF NOT p_imm IS INITIAL .
             g_flg_start = 'X'.
           ENDIF.
           g_f_jobname = 'KZDO_INHERIT'.
           g_f_jobno = g_f_jobno + '001'.
           CONCATENATE g_f_jobname g_f_strtdate g_f_jobno INTO g_f_jobname
                                                  SEPARATED BY '_'.
           CONDENSE g_f_jobname NO-GAPS.
           p_psize1 = p_psize1 + p_psize.
           p_psize2 = p_psize1 - p_psize + 1.
           IF p_psize2 IS INITIAL.
             p_psize2  = 1.
           ENDIF.
           g_f_spname = 'MID'.
           g_f_spid = g_f_spid + '001'.
           CONDENSE g_f_spid NO-GAPS.
           CONCATENATE g_f_spname  g_f_spid INTO g_f_spname.
           CONDENSE g_f_spname NO-GAPS.
    * ... (1) Job creating...
           CALL FUNCTION 'JOB_OPEN'
             EXPORTING
               jobname          = g_f_jobname
             IMPORTING
               jobcount         = g_f_jobcount
             EXCEPTIONS
               cant_create_job  = 1
               invalid_job_data = 2
               jobname_missing  = 3
               OTHERS           = 4.
           IF sy-subrc <> 0.
             MESSAGE e469(9j) WITH g_f_jobname.
           ENDIF.
    * (2)Report start under job name
           SUBMIT (g_c_prog_kzdo)
                  WITH p_lgreg EQ p_lgreg
                  WITH s_grvsy IN s_grvsy
                  WITH s_prvsy IN s_prvsy
                  WITH s_prdat IN s_prdat
                  WITH s_datab IN s_datab
                  WITH p1      EQ p1
                  WITH p3      EQ p3
                  WITH p4      EQ p4
                  WITH p_mailid EQ g_f_mailid
                  WITH p_psize EQ p_psize
                  WITH p_psize1 EQ p_psize1
                  WITH p_psize2 EQ p_psize2
                  WITH spid     EQ g_f_spid
                  TO SAP-SPOOL WITHOUT SPOOL DYNPRO
                  VIA JOB g_f_jobname NUMBER g_f_jobcount AND RETURN.
    *(3)Job closed when starts Immediately
           IF NOT p_imm IS INITIAL.
             IF sy-index LE g_f_nojob.
               CALL FUNCTION 'JOB_CLOSE'
                 EXPORTING
                   jobcount             = g_f_jobcount
                   jobname              = g_f_jobname
                   strtimmed            = g_flg_start
                 EXCEPTIONS
                   cant_start_immediate = 1
                   invalid_startdate    = 2
                   jobname_missing      = 3
                   job_close_failed     = 4
                   job_nosteps          = 5
                   job_notex            = 6
                   lock_failed          = 7
                   OTHERS               = 8.
               gs_jobsts-jobcount = g_f_jobcount.
               gs_jobsts-jobname  = g_f_jobname.
               gs_jobsts-spname   = g_f_spname.
               APPEND gs_jobsts to gt_jobsts.
             ELSEIF sy-index GT g_f_nojob.
               CLEAR g_f_flg.
               DO.                         " Wiating untill any job completion
                 LOOP AT gt_jobsts into gs_jobsts.
                   CLEAR g_f_status.
                   CALL FUNCTION 'BP_JOB_STATUS_GET'
                     EXPORTING
                       JOBCOUNT                         = gs_jobsts-jobcount
                       JOBNAME                          = gs_jobsts-jobname
                    IMPORTING
                       STATUS                           = g_f_status
    *            HAS_CHILD                        =
    *          EXCEPTIONS
    *            JOB_DOESNT_EXIST                 = 1
    *            UNKNOWN_ERROR                    = 2
    *            PARENT_CHILD_INCONSISTENCY       = 3
    *            OTHERS                           = 4
                   g_f_mid = gs_jobsts-spname.
                   IF g_f_status = 'F'.
                     IMPORT gt_final FROM MEMORY ID g_f_mid .
                     FREE MEMORY ID gs_jobsts-spname.
                     APPEND LINES OF gt_final to gt_final1.
                     REFRESH gt_prlist.
                     CALL FUNCTION 'JOB_CLOSE'
                       EXPORTING
                         jobcount             = g_f_jobcount
                         jobname              = g_f_jobname
                         strtimmed            = g_flg_start
                       EXCEPTIONS
                         cant_start_immediate = 1
                         invalid_startdate    = 2
                         jobname_missing      = 3
                         job_close_failed     = 4
                         job_nosteps          = 5
                         job_notex            = 6
                         lock_failed          = 7
                         OTHERS               = 8.
                     IF sy-subrc = 0.
                       g_f_flg = 'X'.
                       gs_jobsts1-jobcount = g_f_jobcount.
                       gs_jobsts1-jobname  = g_f_jobname.
                       gs_jobsts1-spname   = g_f_spname.
                       APPEND gs_jobsts1 TO gt_jobsts.
                       DELETE TABLE gt_jobsts FROM gs_jobsts.
                       EXIT.
                     ENDIF.
                   ENDIF.
                 ENDLOOP.
                 IF g_f_flg = 'X'.
                   CLEAR g_f_flg.
                   EXIT.
                 ENDIF.
               ENDDO.
             ENDIF.
           ENDIF.
           IF sy-subrc <> 0.
             MESSAGE e539(scpr) WITH g_f_jobname.
           ENDIF.
           COMMIT WORK .
         ENDDO.

  • How to select the data from a Maintainance View into an internal table

    Hi All,
    Can anybody tell me how to select the data from a Maintainance View into an internal table.
    Thanks,
    srinivas.

    HI,
    You can not retrieve data from A mentenance view.
    For detail check this link,
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ed2d446011d189700000e8322d00/content.htm
    Regards,
    Anirban

  • Creating XML file from ABAP internal table data....

    Hello,
    I am fethcing data froma  custom table and I have to write data in XMl format. Following is the XML format in which I want data. Is there any function module iN SAP which will help me in writing data from internal table to XML file ?
    <batch>
      <invoice>
        <StatusCode>10</StatusCode>
        <paymentamount>122.00</paymentamount>
         <ReferenceNumber>70980934</ReferenceNumber>
      </invoice>
      <invoice>
         <StatusCode>90</StatusCode>
        <paymentamount>122.00</paymentamount>
         <ReferenceNumber>70980934</ReferenceNumber>
      </invoice>
      <control>
        <InvoiceCount>2</InvoiceCount>
      </control>
    </batch>
    Please help.
    Regards,
    Jainam.

    I suggest you look into "simple transformations". That's SAP's most recent technology for such purposes, as far as I know.
    http://help.sap.com/abapdocu_70/en/ABENABAP_ST.htm
    Thomas

  • Need suggestion in uploading dynamic excel file to corresponding columns of internal table

    Hi Friends,
    I have an excel file which doesn't have standard template. Just the users will key in their header (in row1 ) and followed by item details in excel and upload to internal table. Now by doing some internal developments in program I need to place the values in corresponding fields.
    Let me explain with some examples.
    1. I have an internal table
    data : begin of itab occurs 0,
                       f1,
                       f2,
                       f3,
                       f4,
                       f5,
              end of itab.
    2. I have excel file as below
    3 . Now i need to fill my internal table itab as below
    Need to be placed in corresponding fields.
    4. When I used GUI_UPLOAD FM it updates internal table as
    Please give me suggestion on how to achieve it.
    Thanks in advance.

    Hi Kumar,
    use a temporary table to get excel values and then parse them to a second table with the format you want.
    This is pretty basic.
    regards,
    Edgar

  • How to populate data in dynamic internal table

    Hi Expert,
    fyi. My dynamic internal table field is created base on data selected. Eg. select table qpcd has 5 records.  These 5 recods will become fieldname to my dynamic internal table. My dynamic internal table will be
    ...itab
          01
          02
          03
          04
          05
    The 5 records from qpcd is populated in another table call viqmel.  I need to find the occurance of each code in viqmel and populate the number of occurance in itab in each of column.  The final dynamic itab will be like this
    table itab
    01       02     03    04     05   -
    > field name
    2         0        1     0       1    -
    > data
    my source code like below
    Report ZPLYGRND2.
    TABLES: mara, makt.
    TYPE-POOLS: slis, sydes.
    DATA:it_fcat TYPE slis_t_fieldcat_alv,
         is_fcat LIKE LINE OF it_fcat,
         ls_layout TYPE slis_layout_alv.
    DATA: it_fieldcat TYPE lvc_t_fcat,
          is_fieldcat LIKE LINE OF it_fieldcat.
    DATA: new_table TYPE REF TO data,
          new_line TYPE REF TO data,
          ob_cont_alv TYPE REF TO cl_gui_custom_container,
          ob_alv TYPE REF TO cl_gui_alv_grid,
          vg_campos(255) TYPE c,
          i_campos LIKE TABLE OF vg_campos,
          vg_campo(30) TYPE c,
          vg_tables(60) TYPE c.
    types : begin of t_qpcd,
             codegruppe like qpcd-codegruppe,
             code like qpcd-code,
            end of t_qpcd.
    data:wa_qpcd type t_qpcd,
         i_qpcd type standard table of t_qpcd initial size 0.
    FIELD-SYMBOLS: <l_table> TYPE table,
                   <l_line> TYPE ANY,
                   <l_field> TYPE ANY.
    select * into corresponding fields of wa_qpcd from qpcd
    where katalogart = 'D'
    and   codegruppe = 'OOT01'.
    append wa_qpcd to i_qpcd.
    endselect.
    loop at i_qpcd into wa_qpcd.
      is_fcat-fieldname = wa_qpcd-code.
      APPEND is_fcat TO it_fcat.
    endloop.
    LOOP AT it_fcat INTO is_fcat.
        is_fieldcat-fieldname = is_fcat-fieldname.
        is_fieldcat-ref_field = is_fcat-ref_fieldname.
        is_fieldcat-ref_table = is_fcat-ref_tabname.
        APPEND is_fieldcat TO it_fieldcat.
    ENDLOOP.
    *... Create the dynamic internal table
    CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
            it_fieldcatalog = it_fieldcat
        IMPORTING
            ep_table = new_table.
    if sy-subrc = 0.
    endif.
    *... Create a new line
    ASSIGN new_table->* TO <l_table>.
    CREATE DATA new_line LIKE LINE OF <l_table>.
    ASSIGN new_line->* TO <l_line>.
    LOOP AT <l_table> INTO <l_line>.
    ENDLOOP.

    hello dear i m giving u a code in this a dynamic table is made on the basis of table in database , and u can download this data correct it , see it, or even change it....and upload in tht table help full if u dont know the table name...in advance.
    also the code to populate data in dynamic table is in this code like:
    SELECT * FROM (MTABLE_N)
    INTO CORRESPONDING FIELDS OF TABLE <FS_ITAB> .
    look at the whole program .hope this solve ur problem thanks.
    REPORT ZTESTA  MESSAGE-ID ZIMM    .
    TYPES : DATA_OBJECT TYPE REF TO DATA.
    DATA : MITAB TYPE REF TO DATA .
    TYPE-POOLS : SLIS .
    DATA : IT_FIELDCAT TYPE STANDARD TABLE OF SLIS_FIELDCAT_ALV
    WITH HEADER LINE .
    DATA : IT_FIELDCATALOG TYPE LVC_T_FCAT .
    DATA : WA_FIELDCATALOG TYPE LVC_S_FCAT .
    DATA : I_STRUCTURE_NAME LIKE DD02L-TABNAME .
    DATA : I_CALLBACK_PROGRAM LIKE SY-REPID .
    DATA : DYN_LINE TYPE DATA_OBJECT .
    FIELD-SYMBOLS : <FS_ITAB> TYPE STANDARD TABLE .
    DATA : TABLE_NAME_IS_VALID TYPE C .
    DATA : DYNAMIC_IT_INSTANTIATED TYPE C .
    CONSTANTS BUTTONSELECTED TYPE C VALUE 'X' .
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 5(29) T_TABL.
    PARAMETERS : MTABLE_N LIKE RSRD1-TBMA_VAL
    MATCHCODE OBJECT DD_DBTB_16 OBLIGATORY .
    DATA CHECKTABLED.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 5(29) T_FILE.
    PARAMETERS : MFILENAM LIKE RLGRAP-FILENAME .
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 5(29) T_DOWN.
    PARAMETERS : P_DOWNLD RADIOBUTTON GROUP GRP1
    USER-COMMAND M_UCOMM .
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 5(29) T_CHKF.
    PARAMETERS : P_CHKFIL RADIOBUTTON GROUP GRP1 .
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 5(29) T_UPLD.
    PARAMETERS : P_UPLOAD RADIOBUTTON GROUP GRP1 .
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 5(29) T_SHOW.
    PARAMETERS : P_SHOW_T RADIOBUTTON GROUP GRP1 .
    SELECTION-SCREEN END OF LINE.
    AT SELECTION-SCREEN OUTPUT .
      PERFORM CHECK_FILENAME .
    AT SELECTION-SCREEN.
      IF SY-UCOMM = 'ONLI'.
        CHECKTABLED = MTABLE_N+0(1).
        IF CHECKTABLED NE 'Z'.
          MESSAGE I017.
          LEAVE TO SCREEN 1000.
        ENDIF.
        IF SY-UNAME NE 'KAMESH.K'.
          MESSAGE I023 WITH SY-UNAME.
          LEAVE TO SCREEN 1000.
        ENDIF.
      ENDIF.
      IF SY-UCOMM = 'PRIN'.
        CHECKTABLED = MTABLE_N+0(1).
        IF CHECKTABLED NE 'Z'.
          MESSAGE I017.
          LEAVE TO SCREEN 1000.
        ENDIF.
        IF SY-UNAME NE 'KAMESH.K'.
          MESSAGE I023 WITH SY-UNAME.
          LEAVE TO SCREEN 1000.
        ENDIF.
      ENDIF.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR MFILENAM .
      PERFORM F4_FOR_FILENAME .
    INITIALIZATION .
      T_TABL = 'Table Name' .
      T_FILE = 'File Name' .
      T_DOWN = 'Download Table' .
      T_CHKF = 'Check File to Upload' .
      T_UPLD = 'Upload File' .
      T_SHOW = 'Show Table Contents' .
    START-OF-SELECTION .
      PERFORM CHECK_TABLE_NAME_IS_VALID .
    END-OF-SELECTION .
      IF TABLE_NAME_IS_VALID EQ ' ' .
        MESSAGE I398(00) WITH 'INVALID TABLE NAME' .
      ELSE .
        PERFORM INSTANTIATE_DYNAMIC_INTERNAL_T .
        CHECK DYNAMIC_IT_INSTANTIATED = 'X' .
        CASE BUTTONSELECTED .
          WHEN P_DOWNLD .
            PERFORM SELECT_AND_DOWNLOAD .
          WHEN P_CHKFIL .
            PERFORM CHECK_FILE_TO_UPLOAD .
          WHEN P_UPLOAD .
            PERFORM UPLOAD_FROM_FILE .
          WHEN P_SHOW_T .
            PERFORM SHOW_CONTENTS .
        ENDCASE .
      ENDIF .
    FORM CHECK_TABLE_NAME_IS_VALID.
      DATA MCOUNT TYPE I .
      TABLES DD02L .
      CLEAR TABLE_NAME_IS_VALID .
      SELECT COUNT(*) INTO MCOUNT FROM TADIR
      WHERE PGMID = 'R3TR'
      AND OBJECT = 'TABL'
      AND OBJ_NAME = MTABLE_N .
      IF MCOUNT EQ 1 .
        CLEAR DD02L .
        SELECT SINGLE * FROM DD02L WHERE TABNAME = MTABLE_N .
        IF SY-SUBRC EQ 0.
          IF DD02L-TABCLASS = 'TRANSP' .
            TABLE_NAME_IS_VALID = 'X' .
          ENDIF .
        ENDIF.
      ENDIF .
    ENDFORM. " CHECK_TABLE_NAME_IS_VALID
    FORM SELECT_AND_DOWNLOAD.
      CLEAR : <FS_ITAB> .
      SELECT * FROM (MTABLE_N)
      INTO CORRESPONDING FIELDS OF TABLE <FS_ITAB> .
      PERFORM CHECK_FILENAME.
      CALL FUNCTION 'WS_DOWNLOAD'
           EXPORTING
                FILENAME                = MFILENAM
                FILETYPE                = 'DAT'
           TABLES
                DATA_TAB                = <FS_ITAB>
           EXCEPTIONS
                FILE_OPEN_ERROR         = 1
                FILE_WRITE_ERROR        = 2
                INVALID_FILESIZE        = 3
                INVALID_TYPE            = 4
                NO_BATCH                = 5
                UNKNOWN_ERROR           = 6
                INVALID_TABLE_WIDTH     = 7
                GUI_REFUSE_FILETRANSFER = 8
                CUSTOMER_ERROR          = 9
                OTHERS                  = 10.
      IF SY-SUBRC EQ 0.
        MESSAGE I398(00) WITH 'Table' MTABLE_N
        'successfully downloaded to '
        MFILENAM .
      ENDIF.
    ENDFORM. " SELECT_AND_DOWNLOAD
    FORM UPLOAD_FROM_FILE.
      DATA : ANS TYPE C .
      DATA : LINES_OF_ITAB TYPE I .
      DATA : MSY_SUBRC TYPE I .
      CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
           EXPORTING
                TEXTLINE1 = 'Are you sure you wish to upload'
                TEXTLINE2 = 'data from ASCII File to DB table '
                TITEL     = 'Confirmation of Data Upload'
           IMPORTING
                ANSWER    = ANS.
      IF ANS = 'J' .
        PERFORM CHECK_FILENAME.
        CLEAR MSY_SUBRC .
        CALL FUNCTION 'WS_UPLOAD'
             EXPORTING
                  FILENAME                = MFILENAM
                  FILETYPE                = 'DAT'
             TABLES
                  DATA_TAB                = <FS_ITAB>
             EXCEPTIONS
                  CONVERSION_ERROR        = 1
                  FILE_OPEN_ERROR         = 2
                  FILE_READ_ERROR         = 3
                  INVALID_TYPE            = 4
                  NO_BATCH                = 5
                  UNKNOWN_ERROR           = 6
                  INVALID_TABLE_WIDTH     = 7
                  GUI_REFUSE_FILETRANSFER = 8
                  CUSTOMER_ERROR          = 9
                  OTHERS                  = 10.
        MSY_SUBRC = MSY_SUBRC + SY-SUBRC .
        IF SY-SUBRC EQ 0.
          DESCRIBE TABLE <FS_ITAB> LINES LINES_OF_ITAB .
          IF LINES_OF_ITAB GT 0 .
            MODIFY (MTABLE_N) FROM TABLE <FS_ITAB> .
            MSY_SUBRC = MSY_SUBRC + SY-SUBRC .
          ENDIF .
        ENDIF.
        IF MSY_SUBRC EQ 0 .
          MESSAGE I398(00) WITH LINES_OF_ITAB
          'Record(s) inserted in table'
          MTABLE_N .
        ELSE .
          MESSAGE I398(00) WITH
          'Errors occurred No Records inserted in table'
          MTABLE_N .
        ENDIF .
      ENDIF .
    ENDFORM. " UPLOAD_FROM_FILE
    FORM F4_FOR_FILENAME.
      CALL FUNCTION 'WS_FILENAME_GET'
           EXPORTING
                DEF_PATH         = 'C:\'
                MASK             = ',.,..'
                MODE             = '0'
           IMPORTING
                FILENAME         = MFILENAM
           EXCEPTIONS
                INV_WINSYS       = 1
                NO_BATCH         = 2
                SELECTION_CANCEL = 3
                SELECTION_ERROR  = 4
                OTHERS           = 5.
    ENDFORM. " F4_FOR_FILENAME
    FORM CHECK_FILENAME.
      IF MFILENAM IS INITIAL
      AND NOT ( MTABLE_N IS INITIAL )
      AND P_SHOW_T NE BUTTONSELECTED.
        CONCATENATE 'C:\'
        MTABLE_N '.TXT' INTO MFILENAM.
      ENDIF .
    ENDFORM. " CHECK_FILENAME
    FORM INSTANTIATE_DYNAMIC_INTERNAL_T.
      CLEAR DYNAMIC_IT_INSTANTIATED .
      I_STRUCTURE_NAME = MTABLE_N .
      CLEAR IT_FIELDCAT[] .
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
           EXPORTING
                I_STRUCTURE_NAME       = I_STRUCTURE_NAME
           CHANGING
                CT_FIELDCAT            = IT_FIELDCAT[]
           EXCEPTIONS
                INCONSISTENT_INTERFACE = 1
                PROGRAM_ERROR          = 2
                OTHERS                 = 3.
      IF SY-SUBRC EQ 0.
        LOOP AT IT_FIELDCAT .
          CLEAR WA_FIELDCATALOG .
          MOVE-CORRESPONDING IT_FIELDCAT TO WA_FIELDCATALOG .
          WA_FIELDCATALOG-REF_FIELD = IT_FIELDCAT-FIELDNAME .
          WA_FIELDCATALOG-REF_TABLE = MTABLE_N .
          APPEND WA_FIELDCATALOG TO IT_FIELDCATALOG .
        ENDLOOP .
        CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
        EXPORTING
        IT_FIELDCATALOG = IT_FIELDCATALOG
        IMPORTING
        EP_TABLE = MITAB .
        ASSIGN MITAB->* TO <FS_ITAB> .
        DYNAMIC_IT_INSTANTIATED = 'X' .
      ENDIF.
    ENDFORM. " INSTANTIATE_DYNAMIC_INTERNAL_T
    FORM SHOW_CONTENTS.
      CLEAR : <FS_ITAB> .
      SELECT * FROM (MTABLE_N)
      INTO CORRESPONDING FIELDS OF TABLE <FS_ITAB> .
      I_CALLBACK_PROGRAM = SY-REPID .
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
           EXPORTING
                I_CALLBACK_PROGRAM = I_CALLBACK_PROGRAM
                IT_FIELDCAT        = IT_FIELDCAT[]
           TABLES
                T_OUTTAB           = <FS_ITAB>
           EXCEPTIONS
                PROGRAM_ERROR      = 1
                OTHERS             = 2.
    ENDFORM. " SHOW_CONTENTS
    FORM CHECK_FILE_TO_UPLOAD.
      PERFORM CHECK_FILENAME.
      CALL FUNCTION 'WS_UPLOAD'
           EXPORTING
                FILENAME                = MFILENAM
                FILETYPE                = 'DAT'
           TABLES
                DATA_TAB                = <FS_ITAB>
           EXCEPTIONS
                CONVERSION_ERROR        = 1
                FILE_OPEN_ERROR         = 2
                FILE_READ_ERROR         = 3
                INVALID_TYPE            = 4
                NO_BATCH                = 5
                UNKNOWN_ERROR           = 6
                INVALID_TABLE_WIDTH     = 7
                GUI_REFUSE_FILETRANSFER = 8
                CUSTOMER_ERROR          = 9
                OTHERS                  = 10.
      IF SY-SUBRC EQ 0.
        I_CALLBACK_PROGRAM = SY-REPID .
        CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
             EXPORTING
                  I_CALLBACK_PROGRAM = I_CALLBACK_PROGRAM
                  IT_FIELDCAT        = IT_FIELDCAT[]
             TABLES
                  T_OUTTAB           = <FS_ITAB>
             EXCEPTIONS
                  PROGRAM_ERROR      = 1
                  OTHERS             = 2.
      ENDIF .
    ENDFORM. " CHECK_FILE_TO_UPLOAD
    Message was edited by:
            SAURABH SINGH
            SENIOR EXECUTIVE
            SAMSUNG INDIA ELECTRONICS LTD.,NOIDA

  • How to upload a file in application server to an internal table

    Hi,
          I am asked to upload a file from application server to internal table. Can you please suggest me the ways to do it or the function module which helps to browse the application server file names.
      I have done a program. But its giving problem in searching the files from application server. I am pasting my code for ur review. Please tell me which part i have to correct or suggest me some other ways to do it.
    *& Report  ZUPLOAD1
    REPORT  ZUPLOAD1.
    type-pools: truxs.
    parameters: p_upl_ps radiobutton group g1 default 'X', "upload from pres. server
                 p_path type rlgrap-filename, 
                 p_upl_as radiobutton group g1,   "upload from appln server
                 <b>p_dir LIKE filepath-pathintern DEFAULT 'Y_ABAP', 
                 p_file LIKE filepath-pathintern lower case,</b>      
                 p_test as checkbox.
    constants: c_x value 'X',
               c_tab type c value cl_abap_char_utilities=>horizontal_tab.
    types: ty_data(1000) type c.    "structure to hold legacy data
    data: i_data type standard table of ty_data. "internal table of ty_data
    types: begin of stritab,
          land1 type v_t604-land1,  "structure of legacy file.
          stawn type v_t604-stawn,
          bemeh type v_t604-bemeh,
          impma type v_t604-impma,
          minol type v_t604-minol,
          end of stritab.
    data: gi_itab type standard table of stritab, "internal table of legacy file
          gw_itab type stritab.  "work area
    data: i_raw type truxs_t_text_data,
          v_fullpath type string.
    at selection-screen on value-request for p_path.
    if p_upl_ps = c_x. "if presentation server is selected
    perform get_file.
    else.            "if application server is selected
    perform set_file_path.      
    perform upload_from_server.
    perform split_data.
    endif.
    form get_file.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
      PROGRAM_NAME        = SYST-CPROG
      DYNPRO_NUMBER       = SYST-DYNNR
      FIELD_NAME          = ' '
    IMPORTING
       FILE_NAME           = p_path.     "getting the file name of pres server
    CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
      EXPORTING
      I_FIELD_SEPERATOR          =
        I_LINE_HEADER              = 'X'              "converting excel to sap and filling in
        I_TAB_RAW_DATA             = i_raw      "internal table
        I_FILENAME                 = p_path
      TABLES
        I_TAB_CONVERTED_DATA       = gi_itab
    EXCEPTIONS
       CONVERSION_FAILED          = 1
       OTHERS                     = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endform.
    form set_file_path.                 "Getting the file path of application server
    data: lv_file type p_file.
          lv_file = p_file.
          CALL FUNCTION 'FILE_GET_NAME_USING_PATH'
            EXPORTING
            CLIENT                           = SY-MANDT
              LOGICAL_PATH                     = p_dir
            OPERATING_SYSTEM                 = SY-OPSYS
            PARAMETER_1                      = ' '
            PARAMETER_2                      = ' '
            PARAMETER_3                      = ' '
            USE_BUFFER                       = ' '
              FILE_NAME                        = lv_file
            USE_PRESENTATION_SERVER          = ' '
            ELEMINATE_BLANKS                 = 'X'
           IMPORTING
             FILE_NAME_WITH_PATH              = v_fullpath
           EXCEPTIONS
             PATH_NOT_FOUND                   = 1
             MISSING_PARAMETER                = 2
             OPERATING_SYSTEM_NOT_FOUND       = 3
             FILE_SYSTEM_NOT_FOUND            = 4
             OTHERS                           = 5
          IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
    endform.
    form upload_from_server.
    data: lv_msg type string,
          lw_data type ty_data.
    open dataset v_fullpath for input message lv_msg in text mode encoding default.
    if sy-subrc <> 0.
    message lv_msg type 'i'.
    stop.
    endif.
    do.
    read dataset v_fullpath into lw_data.
    if sy-subrc <> 0.
    write:/5 'Error in processign data set'.
    exit.
    endif.
    append lw_data to i_data.
    enddo.
    close dataset v_fullpath.
    if sy-subrc <> 0.
    write: /5 'Error closing dataset'.
    endif.
    endform.
    form split_data.
    data: lw_data type ty_data.
    data: lw_itab type stritab.
    data: begin of ty_itab,
          land1 type v_t604-land1,
          stawn type v_t604-stawn,
          bemeh type v_t604-bemeh,
          impma type v_t604-impma,
          minol type v_t604-minol,
          end of ty_itab.
    loop at i_data into lw_data.
    split lw_data at c_tab into
          ty_itab-land1
          ty_itab-stawn
          ty_itab-bemeh
          ty_itab-impma
          ty_itab-minol.
    lw_itab-land1 = ty_itab-land1.
    lw_itab-stawn = ty_itab-stawn.
    lw_itab-bemeh = ty_itab-bemeh.
    lw_itab-impma = ty_itab-impma.
    lw_itab-minol = ty_itab-minol.
    append lw_itab to gi_itab.
    endloop.
    endform.
    start-of-selection.
    loop at gi_itab into gw_itab.
    write: /5 'COUNTRY', 'IMPORT CODE', 'SUP UNIT', 'FIRST UOM', 'SECOND UOM',
           /5 gw_itab-land1, gw_itab-stawn,gw_itab-bemeh,gw_itab-impma,gw_itab-minol.
    endloop.
    end-of-selection.
    I hope problem must be in p_dir and p_file which are in bold.. Kindly help me out. Thanks in advance.

    see the following ex:
    *&      Form  SUB_GET_FILEPATH
          text
    -->  p1        text
    <--  p2        text
    FORM SUB_GET_FILEPATH .
        GFILE = 'D:\SAP_INT\INBOUND\INBOX'.  "Path
    ENDFORM.                    " SUB_GET_FILEPATH
    *&      Form  SUB_GET_FILE
          text
    -->  p1        text
    <--  p2        text
    FORM SUB_GET_FILE .
      DATA: P_FDIR(200) TYPE C.
      DATA: IT_FILEDIR1 TYPE STANDARD TABLE OF TY_FILEDIR WITH HEADER LINE.
      P_FDIR = GFILE.
      CALL FUNCTION 'RZL_READ_DIR_LOCAL'
        EXPORTING
          NAME     = P_FDIR
        TABLES
          FILE_TBL = IT_FILEDIR.
      REFRESH : IT_FILEDIR1.
      LOOP AT IT_FILEDIR.
        IF IT_FILEDIR-NAME(4) = 'ZINC' OR IT_FILEDIR-NAME(4) = 'zinc'.
          MOVE IT_FILEDIR-NAME TO IT_FILEDIR1-NAME.
          APPEND IT_FILEDIR1.
        ENDIF.
      ENDLOOP.
      IF IT_FILEDIR1[] IS INITIAL.
        STOP.
      ENDIF.
      LOOP AT IT_FILEDIR1.
        REFRESH: I_TAB.
        CLEAR: I_TAB.
        NAME = IT_FILEDIR1-NAME.
        CONCATENATE: GFILE '\' NAME INTO G_FILE.
        OPEN DATASET G_FILE FOR INPUT IN TEXT MODE
                                         ENCODING DEFAULT
                                         IGNORING CONVERSION ERRORS.
        IF SY-SUBRC EQ 0.
          CONCATENATE 'FILENAME  : ' G_FILE INTO I_MSG1.
          APPEND I_MSG1.
          DO.
            READ DATASET G_FILE INTO RECORD.
            IF SY-SUBRC = 0.
              SPLIT RECORD AT ',' INTO I_TAB-BUKRS  I_TAB-EBELN
                  I_TAB-BLDAT  I_TAB-XBLNR I_TAB-LIFNR I_TAB-AMOUNT
                  I_TAB-CURR  I_TAB-BUSAREA
                  I_TAB-BKTXT I_TAB-DMBTR I_TAB-MENGE I_TAB-SRNO.
              MOVE-CORRESPONDING I_TAB TO I_TAB1.
            ELSE.
              EXIT.
            ENDIF.
            APPEND I_TAB1.
            CLEAR: I_TAB, I_TAB1.
          ENDDO.
        ENDIF.
        CLOSE DATASET G_FILE.

  • Use 3 internal table in GUI_Download

    Hello expert,
    i have 3 internal table: gt_header, gt_body and gt_footer. how can i used all 3 in gui_download fm. here is my sample code:
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename              = gv_file_name
          filetype              = 'ASC'
        TABLES
          data_tab              = gt_header.
    here i can only pass one internal table.
    Help please?

    Hi Hassim,
    Maybe you can declare another internal table, with all fields is type C and length as you wanted.
    Loop those three itabs, append to this new itab. then call this FM download.
    regards,
    Archer

  • IMPORT Statement Issue (Internal Table)

    Hi All,
    I am using an IMPORT statement to get all the data from other report's internal table. Now whenever this (the other report's internal table) is changed (for field addition, etc), my report throws a dump. Hence, everytime I have to add these fields in my program as well.
    Is there any way by which I can include the whole internal table of that report in my program just like
    'INCLUDE STRUCTURE VBRK'.
    Thanks in advance

    Hi, CHeck this code related to your problem..This will helpful to you...
    I have done this program earlier..I hope it will helpful to u..
    This programa calling the other program to import the data..
    Check it out...
    *" Tables declarations.................................................
    TABLES:
      spfli.
    *" Type declarations...................................................
    Type declaration of the structure to hold data from table SPFLI     *
    TYPES:
      BEGIN OF type_s_spfli,
        carrid LIKE spfli-carrid,          " Carrier Id
        connid LIKE spfli-connid,          " Connection Number
        cityfrom LIKE spfli-cityfrom,      " City from
        cityto LIKE spfli-cityto,          " City to
        airpfrom LIKE spfli-airpfrom,      " Airport from
        airpto LIKE spfli-airpto,          " Airport to
        countryfr LIKE spfli-countryfr,    " Country from
        countryto LIKE spfli-countryto,    " Country to
      END OF type_s_spfli.
    Data Declaration...................................................*
         Field String To Hold Flight Details Record from SPFLI          *
    DATA
      fs_spfli TYPE type_s_spfli.
    Data Declaration...................................................*
         Internal Table To Hold Flight Details Records from SPFLI       *
    DATA
      t_spfli LIKE STANDARD TABLE OF fs_spfli.
    TYPES:
      BEGIN OF types_s_itab,
        carrid LIKE sflight-carrid,        " Carrier id
        connid LIKE sflight-connid,        " Connection number
        fldate LIKE sflight-fldate,        " Flight date
      END OF types_s_itab.
    Data Declaration...................................................*
         Field String To Hold Flight Details Record from SFLIGHT        *
    DATA
      fs_itab TYPE types_s_itab.
    Data Declaration...................................................*
         Internal Table To Hold Flight Details Records from SFLIGHT     *
    DATA
      t_itab LIKE STANDARD TABLE OF fs_itab.
    *" Type declarations...................................................
    Type declaration of the structure to hold data from table SBOOK     *
    TYPES:
    BEGIN OF type_s_sbook,
       carrid LIKE sbook-carrid,           " Carrier Id
       connid LIKE sbook-connid,           " Connection Number
       fldate LIKE sbook-fldate,           " Flight date
       bookid LIKE sbook-bookid,           " Booking number
       loccuram LIKE sbook-loccuram,       " Local currency
       loccurkey LIKE sbook-loccurkey,
       order_date LIKE sbook-order_date,   " Booking date
    END OF type_s_sbook.
    Data Declaration...................................................*
         Field String To Hold Flight Details Record from BOOK           *
    DATA
      fs_sbook TYPE type_s_sbook.
    Data Declaration...................................................*
         Internal Table To Hold Flight Details Records from SBOOK       *
    DATA
      t_sbook LIKE STANDARD TABLE OF fs_sbook.
    DATA
      w_checkbox.                          " Checkbox
    SELECT-OPTIONS:
      s_carr FOR spfli-carrid.             " Carrier id range
                          START-OF-SELECTION EVENT                      *
    START-OF-SELECTION.
      PERFORM selectq.
                          END-OF-SELECTION EVENT                        *
    END-OF-SELECTION.
      SET PF-STATUS 'YH1314_030502'.
      PERFORM display_basic.
    AT USER-COMMAND.
      PERFORM ucomm.
    *&    Form  selectq
        This subroutine retreive data from SPFLI table
      There are no interface parameters to be passed to this subroutine.
    FORM selectq .
      SELECT carrid                        " Carrier id
             connid                        " Connection number
             cityfrom                      " City from
             cityto                        " City to
             airpfrom                      " Airport from
             airpto                        " Airport to
             countryfr                     " Country from
             countryto                     " Country to
             INTO CORRESPONDING FIELDS OF TABLE t_spfli
             FROM spfli
             WHERE carrid IN s_carr.
    ENDFORM.                               " Selectq
    *&      Form  display_basic
        This subroutine displays data from internal table
      There are no interface parameters to be passed to this subroutine.
    FORM display_basic .
      LOOP AT t_spfli INTO fs_spfli.
        WRITE:
          / w_checkbox AS CHECKBOX,
            fs_spfli-carrid,
            fs_spfli-connid,
            fs_spfli-cityfrom,
            fs_spfli-cityto,
            fs_spfli-airpfrom,
            fs_spfli-airpto,
            fs_spfli-countryfr,
            fs_spfli-countryto.
      ENDLOOP.                             " LOOP AT T-SPFLI INTO...
    ENDFORM.                               " Display_basic
    *&      Form  UCOMM
      This subroutine for at user-command event
      There are no interface parameters to be passed to this subroutine.
    FORM ucomm .
      RANGES :
        r_carr FOR spfli-carrid,
        r_conn FOR spfli-connid,
        r_carrid FOR sflight-carrid,
        r_connid FOR sflight-connid,
        r_fldate FOR sflight-fldate.
      CASE sy-ucomm.
        WHEN 'DISPLAY'.
          DATA:
            lw_lines TYPE i,
            lw_lineno TYPE i VALUE 3.
          DESCRIBE TABLE t_spfli LINES lw_lines.
          DO lw_lines TIMES.
            READ LINE lw_lineno FIELD
                 VALUE w_checkbox   INTO w_checkbox
                       fs_spfli-carrid INTO  fs_spfli-carrid
                       fs_spfli-connid INTO  fs_spfli-connid.
            IF sy-subrc = 0.
              IF w_checkbox = 'X'.
                r_carr-sign = 'I'.
                r_carr-option = 'EQ'.
                r_carr-low = fs_spfli-carrid.
                APPEND r_carr.
                r_conn-sign = 'I'.
                r_conn-option = 'EQ'.
                r_conn-low = fs_spfli-connid.
                APPEND r_conn.
              ENDIF.                       " IF W_CHECKBOX = 'X'
            ENDIF.                         " IF SY-SUBRC = 0
            ADD 1 TO lw_lineno.
          ENDDO.                           " DO LW_LINES TIMES
          SUBMIT yh1314_030502_call
            WITH s_carr IN r_carr
            WITH s_conn IN r_conn
             AND RETURN.
          IMPORT t_itab FROM MEMORY ID 'YH1314'.
          LOOP AT t_itab INTO fs_itab.
            r_carrid-sign = 'I'.
            r_carrid-option = 'EQ'.
            r_carrid-low = fs_itab-carrid.
            APPEND r_carrid.
            r_connid-sign = 'I'.
            r_connid-option = 'EQ'.
            r_connid-low = fs_itab-connid.
            APPEND r_connid.
            r_fldate-sign = 'I'.
            r_fldate-option = 'EQ'.
            r_fldate-low = fs_itab-fldate.
            APPEND r_fldate.
          ENDLOOP.                         " LOOP AT T_ITAB INTO.....
          SELECT carrid                    " Carriee Id
                 connid                    " Connection number
                 fldate                    " Flight date
                 bookid                    " Booking number
                 loccuram                  " Local Currency
                 order_date                " Booking date
             INTO CORRESPONDING FIELDS OF TABLE t_sbook
             FROM sbook
             WHERE carrid IN r_carrid AND
                   connid IN r_connid AND
                   fldate IN r_fldate.
          IF SY-SUBRC NE 0.
            MESSAGE 'NO RECORDS FOUND'(006) TYPE 'S'.
          ENDIF.                           " IF SY-SUBRC NE 0
          LOOP AT t_sbook INTO fs_sbook.
            AT FIRST.
              WRITE: /5 'Carrier Id'(001),
                     20 'Conn Id'(002),
                     35 'Flight date'(003),
                     50 'Book Id'(004),
                     65 'Local Currency'(005).
            ENDAT.                         " AT FIRST
            WRITE: /5 fs_sbook-carrid,
                   20 fs_sbook-connid,
                   35 fs_sbook-fldate,
                   50 fs_sbook-bookid,
                   65 fs_sbook-loccuram CURRENCY fs_sbook-loccurkey.
          ENDLOOP.                         " LOOP AT T_SBOOK INTO.....
      ENDCASE.                             " CASE SY-UCOMM
    ENDFORM.                               " UCOMM
    Regards
    Kiran

Maybe you are looking for