SAP Reports / Programs

J_2GLPRPD SAP ABAP Report - Reprint DSD enabled legal documents







J_2GLPRPD is a standard Executable ABAP Report 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 J_2GLPRPD into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

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

J2GLPRPD - Reprint DSD enabled legal documents


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 J_2GLPRPD. "Basic submit
SUBMIT J_2GLPRPD AND RETURN. "Return to original report after report execution complete
SUBMIT J_2GLPRPD 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: S_AEDAT = Last print attempt on
Selection Text: S_AENAM = Last print attempt by
Selection Text: S_BUKRS = D Company code
Selection Text: S_FRNPR = D Host printer
Selection Text: S_LEGNR = Legal document number
Selection Text: S_POSTD = D Posting date
Selection Text: S_PRNEW = Redirect to output device
Selection Text: S_PRORI = Originally used output device
Selection Text: S_PTCOD = D Print task code
Selection Text: S_SAPNR = System document number
Selection Text: S_SERIE = D Series
Selection Text: S_STAT1 = Only unprinted documents
Selection Text: S_STAT2 = Only printed documents
Selection Text: S_STAT3 = Both
Selection Text: TDDELETE = Delete after print
Selection Text: TDIMMED = Print immediately
Title: Reprint DSD enabled legal documents
Text Symbol: T18 = Doc's print data are not compatible with $! Choose new printer:
Text Symbol: T17 = Print data incompatibility
Text Symbol: T15 = Filter originally selected documents
Text Symbol: T13 = Cancel
Text Symbol: T12 = Yes
Text Symbol: T11 = Ignore changes?
Text Symbol: I01 = Display print log
Text Symbol: I02 = Ok
Text Symbol: I03 = Last print date < post.date !
Text Symbol: I04 = Printed in past date
Text Symbol: I05 = Left unprinted !
Text Symbol: M00 = No authorization for PTC $ (Authorization object $). PTC will be excluded from selection
Text Symbol: M01 = Enqueue system failure, while locking PTC $. PTC will be excluded from selection
Text Symbol: M02 = PTC $ is currently locked by user $ $. PTC will be excluded from selection
Text Symbol: M03 = PTC $ is not valid. PTC will be excluded from selection
Text Symbol: M04 = Could not determine the printing program for PTC $. PTC will be excluded from selection
Text Symbol: M05 = No valid PTCs found
Text Symbol: M06 = PTC $ is no longer valid. Program will terminate
Text Symbol: M07 = Cannot read PTC enqueue info! Program execution cancelled
Text Symbol: M08 = User $ is currently editing PTC customizing data. Please try again later
Text Symbol: M10 = This program does not support the case of many FI docs printed as one legal paper. All docs that fall into case, will be excluded





Text Symbol: M15 = Filter operation aborted
Text Symbol: M16 = No records match your selection criteria. Please try again
Text Symbol: M17 = Please select some entries first
Text Symbol: T01 = Document selection
Text Symbol: T03 = Print options
Text Symbol: T05 = Printing program log
Text Symbol: T10 = Confirm step


INCLUDES used within this REPORT J_2GLPRPD

J_2GLPEID02.


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:

J_2GAB_FILES call function 'J_2GAB_FILES' exporting i_dsig = j_2glprpdref-dsig&1 i_nxtz = j_2glprpdref-nxtz&1 importing * e_afile = * e_bfile = e_apath = j_2glprpdref-afil&1 e_bpath = j_2glprpdref-bfil&1 exceptions invalid_import_param = 1 others = 2.

J_2GGET_GLOBAL_PARAMS call function 'J_2GGET_GLOBAL_PARAMS' importing e_glopar = gh_params-glopar.

J_2GREAD_OTF call function 'J_2GREAD_OTF' exporting i_legkey = lh_legkey importing e_itcpp = lh_itcpp exceptions not_found = 1 uncompression_error = 2 others = 3.

ENQUEUE_E_TABLEE call function 'ENQUEUE_E_TABLEE' exporting * MODE_RSTABLE = 'E' tabname = 'J_2GLPP3' varkey = l_varkey * X_TABNAME = ' ' * X_VARKEY = ' ' * _SCOPE = '2' _wait = 'X' * _COLLECT = ' ' exceptions foreign_lock = 1 system_failure = 2 others = 3.

ENQUEUE_EJ_2GLPEP3 call function 'ENQUEUE_EJ_2GLPEP3' exporting * MODE_J_2GLPP3 = 'E' * MANDT = SY-MANDT bukrs = p_bukrs prntsk = p_prntsk * X_BUKRS = ' ' * X_PRNTSK = ' ' * _SCOPE = '2' _wait = 'X' * _COLLECT = ' ' exceptions foreign_lock = 1 system_failure = 2 others = 3.

DEQUEUE_E_TABLEE call function 'DEQUEUE_E_TABLEE' exporting * MODE_RSTABLE = 'E' tabname = 'J_2GLPP3' varkey = l_varkey * X_TABNAME = ' ' * X_VARKEY = ' ' * _SCOPE = '3' * _SYNCHRON = ' ' * _COLLECT = ' ' exceptions others = 1.

DEQUEUE_EJ_2GLPEP3 call function 'DEQUEUE_EJ_2GLPEP3' exporting * MODE_J_2GLPP3 = 'E' * MANDT = SY-MANDT bukrs = p_bukrs prntsk = p_prntsk * X_BUKRS = ' ' * X_PRNTSK = ' ' * _SCOPE = '3' * _SYNCHRON = ' ' * _COLLECT = ' ' exceptions others = 1.

J_1GPTC_AUTH_CHECK call function 'J_1GPTC_AUTH_CHECK' exporting i_bukrs = lt_p1-bukrs i_prntsk = lt_p1-prntsk i_actvt = '04' exceptions no_authorization = 1 others = 2.

DEQUEUE_ALL call function 'DEQUEUE_ALL' * EXPORTING * _SYNCHRON = ' ' exceptions others = 1.

POPUP_TO_CONFIRM call function 'POPUP_TO_CONFIRM' exporting titlebar = text-t10 * DIAGNOSE_OBJECT = ' ' text_question = text-t11 text_button_1 = text-t12 * ICON_BUTTON_1 = ' ' text_button_2 = text-t13 icon_button_2 = 'ICON_CANCEL' * DEFAULT_BUTTON = '1' display_cancel_button = ' ' * USERDEFINED_F1_HELP = ' ' * START_COLUMN = 25 * START_ROW = 6 * POPUP_TYPE = importing answer = g_user_answer exceptions text_not_found = 1 others = 2.

ICON_CREATE call function 'ICON_CREATE' exporting name = p_icon * TEXT = ' ' info = l_itxt * ADD_STDINF = 'X' importing result = p_fval exceptions icon_not_found = 1 outputfield_too_short = 2 others = 3.

J_2GLIST_IN_POPUP call function 'J_2GLIST_IN_POPUP' exporting window_title = text-t05 * START_X = 10 * START_Y = 2 * WINDOW_WIDTH = * WINDOW_HEIGHT = tables listobject = icurr-p2-plist exceptions empty_list = 1 old_listversion = 2 others = 3.

SCROLLING_IN_TABLE call function 'SCROLLING_IN_TABLE' exporting entry_act = p_tc-top_line entry_from = 1 entry_to = p_tc-lines "(itab lines) last_page_full = ' ' loops = p_tc_lines ok_code = p_scroll_code overlapping = 'X' importing entry_new = l_tc_new_top_line exceptions no_entry_or_page_act = 01 no_entry_to = 02 no_ok_code_or_page_go = 03 others = 99.

ENQUEUE_READ call function 'ENQUEUE_READ' exporting * GCLIENT = SY-MANDT gname = 'RSTABLE' garg = 'J_2GLP*' guname = '*' * LOCAL = ' ' importing number = l_locks subrc = l_subrc tables enq = lt_enq.

HELP_VALUES_GET_NO_DD_NAME





call function 'HELP_VALUES_GET_NO_DD_NAME' exporting * CUCOL = 0 * CUROW = 0 * DISPLAY = ' ' selectfield = ' ' titel = l_tit1 * NO_PERS_HELP_SELECT = ' ' title_in_values_list = l_tit2 show_all_values_at_first_time = 'X' * USE_USER_SELECTIONS = ' ' * WRITE_SELECTFIELD_IN_COLOURS = 'X' * NO_SCROLL = ' ' * NO_CONVERSION = ' ' * REDUCED_STATUS_ONLY = ' ' no_marking_of_checkvalue = 'X' * NO_DISPLAY_OF_PERS_VALUES = ' ' * FILTER_FULL_TABLE = ' ' importing ind = l_sel_index * SELECT_VALUE = tables fields = lt_f4fields full_table = lt_prn * USER_SEL_FIELDS = * HEADING_TABLE = exceptions full_table_empty = 1 no_tablestructure_given = 2 no_tablefields_in_dictionary = 3 more_then_one_selectfield = 4 no_selectfield = 5 others = 6.



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 J_2GLPRPD or its description.