SAP ABAP Reports and Programs

Share |

J_2IRG23 SAP Report - Print RG23D register

J_2IRG23 is a standard ABAP report available within your SAP system (depending on your version and release level). Below is the standard documentation available for this report and a few details of other objects it interacts with such as tables, function modules, includes etc. If you would like to see the full code listing simply enter J_2IRG23 into the relevant SAP transaction such as SE38 or SE80

Although this basic information may have limited use other that for reference, within the comments section below there is also an opportunity for anyone to add useful hints, information and links to existing content specific to this abap report. This page will therfore over time start to contain a useful amount of information that can be found quickly, simply by searching on the object name, J_2IRG23.


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

J2IR23D - Register RG23D


Includes used within report:

INCLUDE J_2ICONS.
INCLUDE J_2ISDEF.
INCLUDE J_2IDDEF.


Tables used within report and the associated select statement:

j_1iexgrps SELECT SINGLE * FROM J_1IEXGRPS WHERE J_1IEXCGRP = P_EXGRP.

t001k SELECT SINGLE * FROM T001K WHERE BWKEY = J_1IEXGRPS-J_1IWERKS.

j_2iextrct SELECT * FROM J_2IEXTRCT WHERE REGISTER = C_RG23D AND BUDAT >= P_STDATE AND BUDAT <= P_ENDATE AND EXGRP = P_EXGRP.

j_2ilayctr SELECT SINGLE * FROM J_2ILAYCTR WHERE BUKRS = T001K-BUKRS AND REGISTER = C_RG23D AND LAYOUTNR = 1.

j_2iextrct SELECT * FROM J_2IEXTRCT WHERE REGISTER = C_RG23D AND BUDAT > P_ENDATE AND EXGRP = P_EXGRP AND SERIALNO <> '0000000001'.

j_1irg23d SELECT * INTO TABLE it_reg23d1 FROM j_1irg23d FOR ALL ENTRIES IN i_rg23d_tab WHERE docyr = i_rg23d_tab-i_rg23d_typ-docyr AND docno = i_rg23d_tab-i_rg23d_typ-docno AND zeile = i_rg23d_tab-i_rg23d_typ-zeile AND ( vbeln <> '' OR mblnr <> '' ) AND folio <> 0.

j_2iextrct SELECT * FROM j_2iextrct INTO TABLE it_j2iextrct FOR ALL ENTRIES IN i_rg23d WHERE budat = i_rg23d-cpudt AND serialno = i_rg23d-serialno AND register = c_rg23d AND exgrp = p_exgrp AND keyid = i_rg23d-i_ext_key_typ-keyid.


Function Modules used within report and the associated call statement:

SPELL_AMOUNT CALL FUNCTION 'SPELL_AMOUNT' EXPORTING AMOUNT = P_AMOUNT CURRENCY = 'INR' LANGUAGE = SY-LANGU IMPORTING IN_WORDS = I_SPELL EXCEPTIONS NOT_FOUND = 1 TOO_LARGE = 2 OTHERS = 3.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING FILENAME = pathname FILETYPE = ftype WRITE_FIELD_SEPARATOR = 'X' TRUNC_TRAILING_BLANKS = 'X' TABLES DATA_TAB = disp_tab2 EXCEPTIONS FILE_WRITE_ERROR = 1.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING FILENAME = pathname FILETYPE = ftype APPEND = 'X' WRITE_FIELD_SEPARATOR = 'X' TRUNC_TRAILING_BLANKS = 'X' TABLES DATA_TAB = disp_tab6 EXCEPTIONS FILE_WRITE_ERROR = 1.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING FILENAME = pathname FILETYPE = ftype APPEND = 'X' WRITE_FIELD_SEPARATOR = 'X' TRUNC_TRAILING_BLANKS = 'X' TABLES DATA_TAB = disp_tab4 EXCEPTIONS FILE_WRITE_ERROR = 1.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING FILENAME = pathname FILETYPE = ftype APPEND = 'X' WRITE_FIELD_SEPARATOR = 'X' TRUNC_TRAILING_BLANKS = 'X' TABLES DATA_TAB = disp_tab1 EXCEPTIONS FILE_WRITE_ERROR = 1.

WS_FILENAME_GET call function 'WS_FILENAME_GET' exporting def_filename = rlgrap-filename def_path = $pathname mask = ',*.*,*.*.'

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING FILENAME = pathname FILETYPE = ftype APPEND = 'X' WRITE_FIELD_SEPARATOR = 'X' TABLES DATA_TAB = disp_tab3 EXCEPTIONS FILE_WRITE_ERROR = 1.


Text pool values


Selection Text: P_ENDATE = End Date
Selection Text: P_EXGRP = Excise Group
Selection Text: P_STDATE = Start Date
Title: Print RG23D register
Text Symbol: 004 = Form Selection
Text Symbol: 005 = Script Form
Text Symbol: 006 = Excel Form






Terms of Service     Contact Us     Privacy Policy     Useful SAP related sites