SAP Reports / Programs

SAPFGSTO SAP ABAP dialog Program - Reverse FI-SL Documents







SAPFGSTO is a standard Module pool for a dialog screen ABAP Program 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 SAPFGSTO into the relevant SAP transactions such as SE38 or SE80


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 SAPFGSTO. "Basic submit
SUBMIT SAPFGSTO AND RETURN. "Return to original report after report execution complete
SUBMIT SAPFGSTO VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Reverse FI-SL Documents
Text Symbol: 001 = Enter


INCLUDES used within this REPORT SAPFGSTO

INCLUDE FGSTOI02.
INCLUDE FGSTOI01.


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:

G_GET_TABLES CALL FUNCTION 'G_GET_TABLES' EXPORTING I_TT = ' ' I_SI = 'X' TABLES E_T800A = T800A_SI.

NUMBER_GET_NEXT CALL FUNCTION 'NUMBER_GET_NEXT' EXPORTING OBJECT = NBR_OBJECT SUBOBJECT = SUBOBJ NR_RANGE_NR = T889-NORNG TOYEAR = SY-DATUM(4) QUANTITY = '1' IMPORTING NUMBER = DOCNUMBER EXCEPTIONS INTERVAL_NOT_FOUND = 01 NUMBER_RANGE_NOT_INTERN = 02 OBJECT_NOT_FOUND = 03 QUANTITY_IS_0 = 04 OTHERS = 08.

NUMBER_GET_INFO CALL FUNCTION 'NUMBER_GET_INFO' EXPORTING NR_RANGE_NR = T889-NORNG OBJECT = NBR_OBJECT SUBOBJECT = SUBOBJ TOYEAR = SY-DATUM(4) IMPORTING INTERVAL = NBR_INTERVAL EXCEPTIONS OTHERS = 8.

POPUP_TO_GET_VALUE CALL FUNCTION 'POPUP_TO_GET_VALUE' EXPORTING FIELDNAME = 'DOCNR' TABNAME = 'GLU1' TITEL = TEXT-001 VALUEIN = '0000000000' IMPORTING ANSWER = ANSWER VALUEOUT = DOCNUMBER EXCEPTIONS FIELDNAME_NOT_FOUND = 01.

G_MAX_PERIOD_AND_OFFSET_GET CALL FUNCTION 'G_MAX_PERIOD_AND_OFFSET_GET' EXPORTING PERIOD = BUCHPER TABLE = T800A-NTABLE IMPORTING OFFSET = OFFSET RPMAX = RPMAX.

NUMBER_CHECK CALL FUNCTION 'NUMBER_CHECK' EXPORTING OBJECT = NBR_OBJECT SUBOBJECT = SUBOBJ NR_RANGE_NR = T889-NORNG TOYEAR = SY-DATUM(4) NUMBER = DOCNUMBER IMPORTING RETURNCODE = RETURNCODE EXCEPTIONS INTERVAL_NOT_FOUND = 01 NUMBER_RANGE_NOT_EXTERN = 02 OBJECT_NOT_FOUND = 03 OTHERS = 08.

G_GLU1_HEADER CALL FUNCTION 'G_GLU1_HEADER' EXPORTING I_GLU1 = GLU1.

G_GIVE_GLEDGER CALL FUNCTION 'G_GIVE_GLEDGER' TABLES ILEDGER = LEDGER.

G_PERIOD_GET CALL FUNCTION 'G_PERIOD_GET' EXPORTING COMPANY = BUKRS DATE = BUDAT GLOBAL_COMPANY = RCOMP LEDGER = LEDGER IMPORTING PERIOD = l_POPER YEAR = RYEAR VARIANT = PERIV.

G_NBR_OF_PERIODS_GET CALL FUNCTION 'G_NBR_OF_PERIODS_GET' EXPORTING PERIV = PERIV IMPORTING ANZBP = ANZBP ANZSP = ANZSP EXCEPTIONS PERIV_NOT_FOUND = 1 OTHERS = 2.

G_PERIOD_ALLOWED_CHECK CALL FUNCTION 'G_PERIOD_ALLOWED_CHECK' EXPORTING ACCOUNT_TYPE = HELP_ACCOUNT_TYPE COMPANY = BUKRS GLOBAL_COMPANY = RCOMP PERIV_LEDGER = PERIV PERIOD = POPER RECORD_TYPE = '0' YEAR = RYEAR.



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