SAP Reports / Programs | Financial Accounting | Localization(FI-LOC) SAP FI

J_1AFONR SAP ABAP Report - Printing of the last official documents numbers assigned







J_1AFONR is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for List the last used official document numbers in the sytem for every combination of document class, branch and printing character who are self-issued (relevant for numbering) -for a certain period- Assignation of number ranges and numbering groups for self-issued document types The period of time where the report looks for the documents have an initial and a final date in the screen: The final date is obligatory field, because is the searching limit...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter J_1AFONR 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

PRNT_LAST_ODN - Printing the Last ODN assigned


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_1AFONR. "Basic submit
SUBMIT J_1AFONR AND RETURN. "Return to original report after report execution complete
SUBMIT J_1AFONR 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: COMPANY = Company Code
Selection Text: DATE_HI = to
Selection Text: DATE_LO = Docs issued from
Title: Printing of the last official documents numbers assigned
Text Symbol: 001 = Last official document numbers
Text Symbol: 002 = No document in period
Text Symbol: 003 = No self issued and relevant for numbering document types
Text Symbol: 004 = No branch defined for the company code
Text Symbol: 005 = Result
Text Symbol: 006 = Company Code
Text Symbol: 007 = Docs issued from
Text Symbol: 017 = to


INCLUDES used within this REPORT J_1AFONR

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:

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = G_REPID I_CALLBACK_PF_STATUS_SET = 'STANDARD' I_CALLBACK_USER_COMMAND = 'USER_COMMAND' IT_FIELDCAT = GT_FIELDCAT[] IS_LAYOUT = GS_LAYOUT IT_EVENT_EXIT = GT_EVENT_EXIT IT_EVENTS = GT_EVENTS[] I_SAVE = 'A' TABLES T_OUTTAB = IT_DOC.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = G_REPID I_CALLBACK_USER_COMMAND = 'USER_COMMAND_1' IT_FIELDCAT = GT_FIELDCAT_1[] IS_LAYOUT = GS_LAYOUT IT_EVENT_EXIT = GT_EVENT_EXIT IT_EVENTS = GT_EVENTS[] TABLES T_OUTTAB = IT_DOC_END.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING I_LIST_TYPE = 0 IMPORTING ET_EVENTS = LT_EVENTS.



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