SAP Reports / Programs | Controlling | Overhead Cost Controlling | Cost Center Accounting(CO-OM-CCA) SAP CO

FKGA2F02 SAP ABAP INCLUDE - documentation and ABAP source code







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


INCLUDES used within this REPORT FKGA2F02

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:

G_SET_AVAILABLE CALL FUNCTION 'G_SET_AVAILABLE' EXPORTING * class = rgsmh-class "ALRK003906 SETNAME = RGSMH-SETNR * table = rgsmh-table "ALRK003906 IMPORTING SUBRC = RCODE.

K_KOKRS_SET CALL FUNCTION 'K_KOKRS_SET' EXPORTING I_KOKRS = LD_KOKRS.

K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING GJAHR = RKGA2U-GJAHR KOKRS = LD_KOKRS IMPORTING E_TKA01 = LS_TKA01.

G_POSTING_DATE_OF_PERIOD_GET CALL FUNCTION 'G_POSTING_DATE_OF_PERIOD_GET' EXPORTING PERIOD = RKGA2U-FROM VARIANT = LS_TKA01-LMONA YEAR = RKGA2U-GJAHR IMPORTING FROM_DATE = FROM_DATE EXCEPTIONS OTHERS = 1.

G_POSTING_DATE_OF_PERIOD_GET CALL FUNCTION 'G_POSTING_DATE_OF_PERIOD_GET' EXPORTING PERIOD = RKGA2U-TO VARIANT = LS_TKA01-LMONA YEAR = RKGA2U-GJAHR IMPORTING TO_DATE = TO_DATE EXCEPTIONS OTHERS = 1.

G_SET_INSERT CALL FUNCTION 'G_SET_INSERT' EXPORTING * class = rgsmh-class "ALRK003906 SETNAME = RGSMH-SETNR * table = rgsmh-table "ALRK003906 DATE_FROM = FROM_DATE DATE_TO = TO_DATE IMPORTING HEADER = RGSMH INDEX = IT811K-SETINDX.

G_SET_INDEX_READ CALL FUNCTION 'G_SET_INDEX_READ' EXPORTING * INDEX = RGSMH-SEQNR INDEX = IT811K-SETINDX IMPORTING HEADER = RGSMH SUBRC = RCODE.

G_FIELD_SET CALL FUNCTION 'G_FIELD_SET' EXPORTING TABLE = DBTABLE-TAB FTYPE = 'K' TEXT_FLAG = TRUE EXCEPTIONS NOT_FOUND = 4.

G_FIELD_GET CALL FUNCTION 'G_FIELD_GET' IMPORTING FIELD_ATTR = DFIES SUBRC = SUBRC.

G_SET_EXPORT CALL FUNCTION 'G_SET_EXPORT' EXPORTING SRTFD = INDX-SRTFD EXCEPTIONS OTHERS = 4.

G_SET_AVAILABLE CALL FUNCTION 'G_SET_AVAILABLE' EXPORTING * class = rgsmh-class "ALRK003906 SETNAME = RGSMH-SETNR * table = rgsmh-table "ALRK003906 IMPORTING SUBRC = RCODE.

G_SET_INSERT CALL FUNCTION 'G_SET_INSERT' EXPORTING * class = rgsmh-class "ALRK003906 SETNAME = RGSMH-SETNR * table = rgsmh-table "ALRK003906 IMPORTING HEADER = RGSMH INDEX = IT811X-SETINDX.

G_SET_INDEX_READ CALL FUNCTION 'G_SET_INDEX_READ' EXPORTING INDEX = IT811X-SETINDX IMPORTING HEADER = RGSMH SUBRC = RCODE.

G_SET_ENCRYPT_SETID CALL FUNCTION 'G_SET_ENCRYPT_SETID' EXPORTING SETCLASS = '0002' " setclass for temporary sets SHORTNAME = SHORTNAME IMPORTING SETID = HEADER-SETNR.

G_GENERATE_BASIC_SET CALL FUNCTION 'G_GENERATE_BASIC_SET' EXPORTING SET_HEADER = P_HEADER TABLES SET_LINES = P_SET_LINES EXCEPTIONS BAD_FORMULA = 01 NOT_UNIQUE = 02 OLD_SET_HAS_WRONG_DATA_ELEMENT = 03 OLD_SET_HAS_WRONG_TYPE = 04 VARIABLE_DOES_NOT_EXIST = 05 VARIABLE_HAS_WRONG_DATA_ELEM = 06 VARIABLE_HAS_WRONG_TYPE = 07 SETNAME_TOO_LONG = 08 TABLE_OR_FIELDNAME_MISSING = 09 WRONG_INTERVAL = 10.

RK_AL_GET_ONE_ASACC CALL FUNCTION 'RK_AL_GET_ONE_ASACC' EXPORTING ABSCH = SEQS-ABSCH KOKRS = LD_KOKRS IMPORTING ASACC = LD_ASACC EXCEPTIONS NO_ASACC = 1 OTHERS = 2.



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