RWAPPT04 is a standard Executable ABAP Report 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 RWAPPT04 into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
WAP4 - Appointments: Overview
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: DATUM = From Date
Selection Text: LGNUM = Warehouse Number
Selection Text: LGTOR = Door
Selection Text: UHRAB = Time from
Selection Text: UHRBI = To
Title: Appointments: Overview
Text Symbol: B01 = Selection Parameters
Text Symbol: C01 = Time from
Text Symbol: C02 = To
Text Symbol: C10 = Door for Warehouse Number
Text Symbol: H01 = Appointments for warehouse number:
Text Symbol: H02 = Period from
Text Symbol: H03 = To
INCLUDE APPTDATA.
INCLUDE APPTDAT1.
INCLUDE APPTCON1.
No SAP DATABASE tables are accessed within this REPORT code!
W_APPOINTMENT_PRE_CHECK CALL FUNCTION 'W_APPOINTMENT_PRE_CHECK' EXPORTING I_LGNUM = LGNUM I_DATAB = DATUM-LOW I_UHRAB = UHRAB I_DATBI = DATUM-HIGH I_UHRBI = UHRBI I_WETKZ = WETKZ I_WATKZ = WATKZ I_TRTYP = TRTYP TABLES T_LGTOR = LGTOR EXCEPTIONS WAREHOUSE_NOT_FOUND = 8 WAREHOUSE_WITHOUT_APPOINTMENTS = 9 NO_GATES_SELECTED = 10 W_PROFILE_NOT_IN_TWAP1 = 11 TWAP1_IS_INITIAL = 12 UHRBI_LT_UHRAB = 20 WAREHOUSE_IS_INITIAL = 15 UHRAB_IS_INITIAL = 30 UHRBI_IS_INITIAL = 40.
REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = G_REPID I_CALLBACK_PF_STATUS_SET = G_STATUS_SET I_CALLBACK_USER_COMMAND = G_USER_COMMAND IS_LAYOUT = APPT_LAYOUT IT_EVENTS = APPT_EVENT IT_FIELDCAT = APPT_FIELDCAT[] IS_VARIANT = APPT_VARIANT I_SAVE = 'A' IS_PRINT = APPT_PRINT TABLES T_OUTTAB = XRWAP1.
W_APPOINTMENT_REFRESH * call function 'W_APPOINTMENT_REFRESH'.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING I_PROGRAM_NAME = G_REPID I_INTERNAL_TABNAME = 'XRWAP1' I_STRUCTURE_NAME = 'RWAP1' I_CLIENT_NEVER_DISPLAY = 'X' CHANGING CT_FIELDCAT = APPT_FIELDCAT EXCEPTIONS INCONSISTENT_INTERFACE = 1 PROGRAM_ERROR = 2 OTHERS = 3.
W_APPOINTMENT_SELECT CALL FUNCTION 'W_APPOINTMENT_SELECT' EXPORTING I_LGNUM = LGNUM I_DATAB = DATUM-LOW I_UHRAB = UHRAB I_DATBI = DATUM-HIGH I_UHRBI = UHRBI I_WETKZ = WETKZ I_WATKZ = WATKZ TABLES T_LGTOR = LGTOR T_WAPPT = XWAPPT EXCEPTIONS NO_ENTRIES_FOUND = 1.
W_APPOINTMENT_DOCUMENT_INFO CALL FUNCTION 'W_APPOINTMENT_DOCUMENT_INFO' TABLES T_WAPPT = XWAPPT T_RWAP1 = XRWAP1.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.