SAP Reports / Programs | Payroll | Portugal(PY-PT) SAP PY

RPCAIDPT SAP ABAP INCLUDE - HR-PT: Annual Income Declaration - form pool for SAPScript layout







RPCAIDPT is a standard ABAP INCLUDE available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

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


ABAP code to call this SAP report using the submit statement

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






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


Text pool values


Selection Text: CCODE = Company code
Selection Text: GET_FI = Retrieve FI data
Selection Text: PRIM = First
Selection Text: P_FILE = Temse file
Selection Text: P_FORM = Form
Selection Text: RECT = Modification
Selection Text: YEAR = Year
Title: HR-PT: Annual Income Declaration - form pool for SAPScript layout
Text Symbol: 014 = withhld
Text Symbol: 013 = of
Text Symbol: 012 = fiscal of person
Text Symbol: 011 = Alt
Text Symbol: 010 = Total
Text Symbol: 009 = Type
Text Symbol: 008 = Amounts
Text Symbol: 007 = Yr.
Text Symbol: 006 = Name
Text Symbol: 005 = ID number
Text Symbol: 004 = LIST OF PERSONS WITH INCOME
Text Symbol: 003 = PAGE NUMBER
Text Symbol: 002 = TAX NUMBER
Text Symbol: 001 = YR.
Text Symbol: 020 = Carry forward.................
Text Symbol: 021 = Total of page...............................
Text Symbol: 022 = 1. IDENTIFICATION OF INCOME PROVIDER
Text Symbol: 023 = NAME:
Text Symbol: 024 = TAX NUMBER
Text Symbol: 025 = 2. HEAD OFFICE'S TAX OFFICE
Text Symbol: 026 = MUN./DICTRICT:
Text Symbol: 019 = income
Text Symbol: 037 = DEPENDENT WORK
Text Symbol: 036 = 5. AMOUNTS WITHHELD
Text Symbol: 035 = DISK:
Text Symbol: 034 = FORMS:
Text Symbol: 033 = 6. MEDIUM USED
Text Symbol: 032 = NUMBER OF PAGES:
Text Symbol: 031 = Adjustment
Text Symbol: 030 = First





Text Symbol: 029 = 3. DATA ON DECLARATION
Text Symbol: 028 = Declaration type:
Text Symbol: 027 = CODE:
Text Symbol: 015 = of
Text Symbol: 056 = Output
Text Symbol: 055 = Period
Text Symbol: 054 = Period
Text Symbol: 053 = TemSe objects created:
Text Symbol: 052 = LIST OF REJECTED
Text Symbol: 051 = Number of type 2 records:
Text Symbol: 050 = 8. EXCLUSIVE FOR DATA MEDIUM DELIVERIES
Text Symbol: 049 = Process employee no.
Text Symbol: 048 = TOTAL(13+14-15)
Text Symbol: 047 = PLUS VALUE
Text Symbol: 046 = IRS/IRC CLEARINGS
Text Symbol: 045 = PROPERTY
Text Symbol: 044 = LIBERATING RATES WITHHOLDINGS
Text Symbol: 043 = FUNDS
Text Symbol: 042 = SUM (05+06+..+12)
Text Symbol: 041 = COMMISS.
Text Symbol: 040 = IRC WITHHOLDINGS (art.75 of CIRC)
Text Symbol: 039 = SELF-EMPLOYMENT
Text Symbol: 057 = Additional data
Text Symbol: UNK = Unknown error
Text Symbol: TS3 = Error closing TemSe object
Text Symbol: TS2 = Error writing to the TemSe object
Text Symbol: TS1 = Error creating TemSe object
Text Symbol: RTX = Error reading TX cluster table
Text Symbol: RRP = Error reading cluster RP
Text Symbol: RCT = EE doesn't match report criteria
Text Symbol: NFI = No FI data available for the selection criteria
Text Symbol: 059 = External income data
Text Symbol: 058 = Entity
Text Symbol: 038 = PENSION
Text Symbol: 018 = inc.
Text Symbol: 017 = report
Text Symbol: 016 = passive


INCLUDES used within this REPORT RPCAIDPT

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:

No SAP DATABASE tables are accessed within this REPORT code!







Function Modules used within report and the associated call statement:

READ_FORM_ELEMENTS * CALL FUNCTION 'READ_FORM_ELEMENTS' * EXPORTING * FORM = FORM * LANGUAGE = SY-LANGU * TABLES * ELEMENTS = TEXT_ELEMENT_TAB * EXCEPTIONS * FORM = 1 * UNOPENED = 2 * OTHERS = 3.

OPEN_FORM * CALL FUNCTION 'OPEN_FORM' * EXPORTING ** APPLICATION = 'TX' ** archive_index = p_archive_index ** archive_params = p_archive_parameters ** DEVICE = 'PRINTER' ** dialog = p_dialog * FORM = P_FORM ** LANGUAGE = SY-LANGU * OPTIONS = L_OPTIONS ** MAIL_SENDER = ' ' ** MAIL_RECIPIENT = ' ' ** MAIL_APPL_OBJECT = ' ' ** RAW_DATA_INTERFACE = '*' ** importing ** LANGUAGE = ** NEW_ARCHIVE_PARAMS = ** result = p_result * EXCEPTIONS * CANCELED = 1 * DEVICE = 2 * FORM = 3 * OPTIONS = 4 * UNCLOSED = 5 * MAIL_OPTIONS = 6 * ARCHIVE_ERROR = 7 * MORE_PARAMS_NEEDED_IN_BATCH = 8 * OTHERS = 9.

WRITE_FORM * CALL FUNCTION 'WRITE_FORM' * EXPORTING * ELEMENT = TEXT_ELEMENT-ELEMENT ** function = 'SET' ** function = w_function ** TYPE = 'BODY' * WINDOW = TEXT_ELEMENT-WINDOW ** importing ** pending_lines = * EXCEPTIONS * ELEMENT = 1 * FUNCTION = 2 * TYPE = 3 * UNOPENED = 4 * UNSTARTED = 5 * WINDOW = 6 * OTHERS = 7.

CLOSE_FORM * CALL FUNCTION 'CLOSE_FORM' * IMPORTING * RESULT = P_RESULT ** tables ** OTFDATA = * EXCEPTIONS * UNOPENED = 1 * OTHERS = 2.

START_FORM * CALL FUNCTION 'START_FORM' ** exporting ** archive_index = p_archive_index ** FORM = ' ' ** LANGUAGE = ' ' ** STARTPAGE = ' ' ** PROGRAM = ' ' ** MAIL_APPL_OBJECT = ' ' ** IMPORTING ** LANGUAGE = * EXCEPTIONS * FORM = 1 * FORMAT = 2 * UNENDED = 3 * UNOPENED = 4 * UNUSED = 5 * OTHERS = 6.

END_FORM * CALL FUNCTION 'END_FORM' * EXCEPTIONS * OTHERS = 1.



Contribute (Add Comments)

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

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

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