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
Below is a list of transaction codes which are relevant to this SAP report
PRNT_LAST_ODN - Printing the Last ODN assigned
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.
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
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
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.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
J_1AFONR - Printing of the last official documents numbers assigned J_1AFONR - Printing of the last official documents numbers assigned J_1AFITP - Top include for FI inflation adjustment program J_1AFIPI - External routines for the function group FIPI J_1AFIPI - External routines for the function group FIPI J_1AFIGL - Top include for FI inflation adjustment program