SAP Reports / Programs | Production Planning and Control | Capacity Requirements Planning | Capacity Evaluations(PP-CRP-ALY) SAP PP

MC65AFX1 SAP ABAP INCLUDE - FORM Routines Starting with X







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


Text pool values


Title: FORM Routines Starting with X


INCLUDES used within this REPORT MC65AFX1

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:

XXL_CHECK_API CALL FUNCTION 'XXL_CHECK_API' "// Ist XXL und Windows korrekt EXPORTING "// installiert ? QUESTION = 'STARTABLE' IMPORTING RETURN_CODE = FLAG.

XXL_FULL_API CALL FUNCTION 'XXL_FULL_API' EXPORTING * DATA_ENDING_AT = -1 * DATA_STARTING_AT = 1 FILENAME = LISPROFIL-EX_UDAT HEADER_1 = 'Kapazitätsplanung'(200) HEADER_2 = 'Standardübersicht'(202) NO_DIALOG = 'X' "// XXL fragt Dateinamen nicht NO_START = ' ' "// ab und startet immer ! N_ATT_COLS = 6 "// 6 Datenspalten (Kennzahlen) N_HRZ_KEYS = 1 "// nur 1 horizontales Merkmal N_VRT_KEYS = 3 "// 3 vertikale Merkmale SEMA_TYPE = ' ' SO_TITLE = ' ' TABLES DATA = DATA HKEY = HKEY ONLINE_TEXT = ONLINE PRINT_TEXT = PRINT SEMA = SEMA VKEY = VKEY EXCEPTIONS FILE_OPEN_ERROR = 55 FILE_WRITE_ERROR = 56 DATA_TOO_BIG = 57.

CY_CUT_TEXT CALL FUNCTION 'CY_CUT_TEXT' EXPORTING INTEXT = VKEY-COL_NAME "// Periodenüberschrift IMPORTING OUTTEXT = VKEY-COL_NAME.

CY_CUT_TEXT CALL FUNCTION 'CY_CUT_TEXT' EXPORTING INTEXT = TEXT-007 "// Bedarf IMPORTING OUTTEXT = HKEY-COL_NAME.

CY_CUT_TEXT CALL FUNCTION 'CY_CUT_TEXT' EXPORTING INTEXT = TEXT-006 "// Angebot IMPORTING OUTTEXT = HKEY-COL_NAME.

CY_CUT_TEXT CALL FUNCTION 'CY_CUT_TEXT' EXPORTING INTEXT = TEXT-017 "// Belast.

CY_CUT_TEXT CALL FUNCTION 'CY_CUT_TEXT' EXPORTING INTEXT = TEXT-042 "// freie Kap.

CY_CUT_TEXT CALL FUNCTION 'CY_CUT_TEXT' EXPORTING INTEXT = TEXT-095 "// Einh.

CY_CUT_TEXT CALL FUNCTION 'CY_CUT_TEXT' EXPORTING INTEXT = TEXT-128 "// Poolkap.

XXL_CHECK_API CALL FUNCTION 'XXL_CHECK_API' "// Ist XXL und Windows korrekt EXPORTING "// installiert ? QUESTION = 'STARTABLE' IMPORTING RETURN_CODE = FLAG.

NAMETAB_GET * CALL FUNCTION 'NAMETAB_GET' "// Beschaffung der Struktur * EXPORTING "// der DATA-Tabelle, um so * TABNAME = 'CYDETALL' "// die Spaltennummern (der * TABLES "// bekannten Feldnamen aus *AKT-/ * X031L_TAB = NAMETAB. "// SORT_KENNZAHLEN) zu

DDIF_NAMETAB_GET CALL FUNCTION 'DDIF_NAMETAB_GET' EXPORTING TABNAME = 'CYDETALL' TABLES X031L_TAB = NAMETAB * DFIES_TAB = EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

XXL_FULL_API CALL FUNCTION 'XXL_FULL_API' EXPORTING * DATA_ENDING_AT = -1 * DATA_STARTING_AT = 1 FILENAME = LISPROFIL-EX_DDAT HEADER_1 = 'Kapazitätsplanung'(200) HEADER_2 = 'Kapazitätsdetail'(201) NO_DIALOG = 'X' "// XXL fragt Dateinamen nicht NO_START = ' ' "// ab und startet immer ! N_ATT_COLS = KZ_ANZ "// Anzahl Datenspalten (Kennz.)

CY_CUT_TEXT CALL FUNCTION 'CY_CUT_TEXT' EXPORTING "// Periodenüberschrift INTEXT = VKEY-COL_NAME IMPORTING OUTTEXT = VKEY-COL_NAME.

CY_CUT_TEXT CALL FUNCTION 'CY_CUT_TEXT' "// Da die Periode nicht in EXPORTING "// SORT_KENNZAHLEN enthalten INTEXT = VKEY-COL_NAME "// ist, muß sie hier noch IMPORTING "// explizit als vertikales OUTTEXT = VKEY-COL_NAME. "// Merkmal angehängt werden.

NAMETAB_GET * CALL FUNCTION 'NAMETAB_GET' "// Beschaffung der Struktur * EXPORTING "// der DATA-Tabelle, um so * TABNAME = 'CYDETALL' "// die Spaltennummern (der * TABLES "// bekannten Feldnamen aus *AKT-/ * X031L_TAB = NAMETAB. "// SORT_KENNZAHLEN) zu

DDIF_NAMETAB_GET CALL FUNCTION 'DDIF_NAMETAB_GET' EXPORTING TABNAME = 'CYDETALL' TABLES X031L_TAB = NAMETAB * DFIES_TAB = EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

XXL_CHECK_API CALL FUNCTION 'XXL_CHECK_API' "// Ist XXL und Windows korrekt EXPORTING "// installiert ? QUESTION = 'STARTABLE' IMPORTING RETURN_CODE = FLAG.

XXL_FULL_API





CALL FUNCTION 'XXL_FULL_API' EXPORTING * DATA_ENDING_AT = -1 * DATA_STARTING_AT = 1 FILENAME = LISPROFIL-EX_VDAT HEADER_1 = 'Kapazitätsplanung'(200) HEADER_2 = 'Variable Übersicht'(203) NO_DIALOG = 'X' "// XXL fragt Dateinamen nicht NO_START = ' ' "// ab und startet immer ! N_ATT_COLS = KZ_ANZ "// Anzahl Datenspalten (Kennz.)

CY_GET_COLUMN_DEFINITIONS CALL FUNCTION 'CY_GET_COLUMN_DEFINITIONS' EXPORTING ILIVAR = RC65A-LIVAR TABLES KOMBI = KOMBI ZEIZU = ZEIZU.

CY_FILL_INTSPAL CALL FUNCTION 'CY_FILL_INTSPAL' EXPORTING IINDI = INDI IRC65A = RC65A IMPORTING EINDI = INDI ERC65A = RC65A TABLES IAVER = AVER INTSPAL = INTSPAL KOMBI = KOMBI EXCEPTIONS MISSING_DATA = 01.

CY_GET_PERIOD_KTEXT CALL FUNCTION 'CY_GET_PERIOD_KTEXT' TABLES PERTEXT = PERTEXT.

CY_GET_TCY19 CALL FUNCTION 'CY_GET_TCY19' EXPORTING ILIVAR = RC65A-LIVAR TABLES ETCY19 = ITCY19.

CY_CONV_DATE_TO_PERIOD CALL FUNCTION 'CY_CONV_DATE_TO_PERIOD' EXPORTING IDATE = RC65A-LIDAV IMPORTING EINDPERIOD = INTSPAL_KEY-INDPERIOD EXCEPTIONS NOT_FOUND = 01.

CY_CONV_DATE_TO_PERIOD CALL FUNCTION 'CY_CONV_DATE_TO_PERIOD' EXPORTING IDATE = RC65A-LIDAB IMPORTING EINDPERIOD = INDPERBIS EXCEPTIONS NOT_FOUND = 01.

CY_CUT_TEXT CALL FUNCTION 'CY_CUT_TEXT' EXPORTING INTEXT = VKEY-COL_NAME "// Periodenüberschrift, IMPORTING "// (einzigstes vertikales OUTTEXT = VKEY-COL_NAME. "// Merkmal).



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