SAP Reports / Programs

J_2GPFI SAP ABAP Report - Main program for printing FI documents







J_2GPFI 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_2GPFI 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

J2GPFI - FI printing program


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_2GPFI. "Basic submit
SUBMIT J_2GPFI AND RETURN. "Return to original report after report execution complete
SUBMIT J_2GPFI 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: SPRINTER =
Selection Text: S_BELNR = D .
Selection Text: S_BLART = D .
Selection Text: S_BUDAT = D .
Selection Text: S_BUKRS = D .
Selection Text: S_GJAHR = D .
Selection Text: S_LIST = Display list before printing
Selection Text: S_LOG = Show log
Selection Text: S_MULT = Print docs in one payment slip
Selection Text: S_PRNTSK = D .
Selection Text: S_RLDNR = Ledger
Selection Text: S_USNAM = User
Selection Text: TDDELETE = Delete after print
Selection Text: TDIMMED = Print immediately
Title: Main program for printing FI documents
Text Symbol: P14 = Selected FI documents have been associated
Text Symbol: P13 = New number
Text Symbol: P12 = Skip all
Text Symbol: P11 = Skip
Text Symbol: P10 = Old number
Text Symbol: P09 =
Text Symbol: P08 = Associate the FI document with new legal number
Text Symbol: P07 = Skip this FI document and all subsequent documents
Text Symbol: P06 = Skip this FI document
Text Symbol: P05 = Print with old legal number
Text Symbol: P04 = and logical kind
Text Symbol: P03 = from print task code
Text Symbol: P02 = with legal number
Text Symbol: P01 = FI document has been associated
Text Symbol: L02 = OPEN
Text Symbol: L01 = PARTIALY
Text Symbol: I06 = Nothing to print.
Text Symbol: P15 = Partner text for document &.
Text Symbol: P16 = Get partner-header data
Text Symbol: P17 = Line 1
Text Symbol: P18 = Line 2
Text Symbol: P19 = Line 3
Text Symbol: P20 = Partner error





Text Symbol: P21 = Documents can not be printed in one payment slip.
Text Symbol: P22 = Documents do not have the same partner.
Text Symbol: R01 = EXCLUDED
Text Symbol: R02 = CANCELED
Text Symbol: R03 = PRINTED
Text Symbol: R04 = ERROR
Text Symbol: R05 = LOCK.ERROR (J_2GLPDOCSFI)
Text Symbol: R06 = LOCKING ERROR (J_2GLPP3)
Text Symbol: R07 = SERIES EXHAUSTED
Text Symbol: R08 = DATE VIOLATION
Text Symbol: R09 = CANNOT COMMIT
Text Symbol: R10 = LAYOUT SET ERROR
Text Symbol: I05 = Select new number or one old number.
Text Symbol: 602 = with number & from series $ ?
Text Symbol: 601 = Associate billing document &
Text Symbol: 600 = Verify assignment
Text Symbol: 503 = from Series &
Text Symbol: 502 = FI doc &
Text Symbol: 501 = Please specify the number for
Text Symbol: 500 = Give a number
Text Symbol: 207 = Document has been sent to printer
Text Symbol: 206 = This document will not be send to the printer
Text Symbol: 205 = This document will not be send to the printer and all subsequent documents will not be processed
Text Symbol: 204 = This document and all subsequent will not be processed
Text Symbol: 203 = Document will not be processed
Text Symbol: 200 = No documents will be processed.
Text Symbol: 138 = The posting date is less than the last date we printed a document.
Text Symbol: 122 = Cannot commit work.
Text Symbol: 121 = The document has been associated with &
Text Symbol: 116 = The FI(SD) document has not been updated. Tell your administrator to run the special update program.
Text Symbol: 114 = Cannot lock entry in J_2GLPDOCSFI ( Legal documents ) -- System failure
Text Symbol: 113 = Cannot lock entry in J_2GLPDOCSFI ( Legal documents ) -- Foreign lock
Text Symbol: 112 = User chose to skip this document
Text Symbol: 111 = Series has been exhausted.
Text Symbol: 110 = Cannot lock Series. System failure.
Text Symbol: 006 = Use this printer intead of default in customizing
Text Symbol: 001 = Printing parameters
Text Symbol: 000 = Document selection
Text Symbol: I04 = the same reference document number.





Text Symbol: I03 = all accounting documents have to have
Text Symbol: I02 = in one payment slip and therefore
Text Symbol: I01 = Selected documents have to be printed
Text Symbol: H05 = STATUS
Text Symbol: H04 = REF.DOCUMENT NO
Text Symbol: H03 = POST.DATE
Text Symbol: H02 = DT
Text Symbol: H01 = DOC.NO
Text Symbol: E34 = Unable to determine partner in document &.
Text Symbol: E33 = The documents do not have the same partner.
Text Symbol: E32 = Partner not found in document &.
Text Symbol: E31 = The document(s) will not be processed.
Text Symbol: E20 = Logical kind & not supported by this program. Use $ instead.
Text Symbol: E08 = Documents can not be printed in one payment slip.
Text Symbol: E03 = Incorrect & partner string.
Text Symbol: E02 = Earlier posting date
Text Symbol: E01 = Line items error
Text Symbol: 609 = the FI documents
Text Symbol: 608 = Skip FI documents ?
Text Symbol: 607 = with legal document &
Text Symbol: 606 = NO
Text Symbol: 605 = YES
Text Symbol: 604 = Skip FI document & ?
Text Symbol: 603 = Verify cancelation


INCLUDES used within this REPORT J_2GPFI

INCLUDE J_2GPFI1.


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:

F4_USER call function 'F4_USER' importing result = s_usnam-low.

F4_USER call function 'F4_USER' importing result = s_usnam-high.

FAGL_CHECK_IF_LEDGER_IS_GLFLEX call function 'FAGL_CHECK_IF_LEDGER_IS_GLFLEX' exporting i_rldnr = s_rldnr exceptions not_found = 1 no_glflex_ledger = 2 glflex_rollup_ledger = 3 others = 4.

G_GET_ORGANIZATIONAL_DATA call function 'G_GET_ORGANIZATIONAL_DATA' exporting i_rldnr = g_relevant_ledger i_orgunit = s_bukrs exceptions no_info_found = 1 error_in_setup = 2 error_in_depld = 3 others = 4.



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