SAP Reports / Programs

RWAPPT20 SAP ABAP Report - Appointments: Example for Automatic Creation of Appointments







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


Text pool values


Selection Text: UHRBI = Time
Selection Text: UHRAB = Time
Selection Text: LGTOR = Door
Selection Text: LGNUM = Warehouse number
Selection Text: DATUM = Date
Title: Appointments: Example for Automatic Creation of Appointments
Text Symbol: H18 = D.
Text Symbol: H17 = WN.
Text Symbol: H16 = T. to
Text Symbol: H15 = Date to
Text Symbol: H14 = T. fm
Text Symbol: H13 = From date
Text Symbol: H12 = Ct
Text Symbol: H11 = Document
Text Symbol: H03 = Page:
Text Symbol: H02 = Date :
Text Symbol: H01 = Automatic creation of appointments
Text Symbol: F14 = Delivery date cannot be determined
Text Symbol: F13 = Document category not relevant
Text Symbol: F12 = No authorization to create appointments
Text Symbol: F09 = No appointment created
Text Symbol: F08 = Purchase orders not possible for warehouse number
Text Symbol: F07 = Different delivery date
Text Symbol: F06 = Customizing entries missing
Text Symbol: F05 = No warehouse number can be determined
Text Symbol: F04 = Document is relevant for several warehouse numbers
Text Symbol: F03 = Appointment already exists
Text Symbol: F02 = Order category incorrect
Text Symbol: F01 = No data was transferred
Text Symbol: C02 = To
Text Symbol: C01 = Time from
Text Symbol: B01 = Selection criteria


INCLUDES used within this REPORT RWAPPT20

INCLUDE APPTDATA.
INCLUDE APPTDAT1.
INCLUDE APPTCON1.
INCLUDE RWAPPTS1.
INCLUDE RWAPPTF1.


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:

W_APPOINTMENT_DUE_LIST CALL FUNCTION 'W_APPOINTMENT_DUE_LIST' EXPORTING I_DATAB = DATUM-LOW I_DATBI = DATUM-HIGH I_UHRAB = UHRAB I_UHRBI = UHRBI I_LGNUM = LGNUM I_WETKZ = YES I_WATKZ = NO I_STANDALONE = YES I_TRTYP = TRTYP_UPDATE I_RETURN_ONLY_DATA = YES TABLES T_WAPPTV = XWAPPTV EXCEPTIONS NO_ENTRIES_FOUND = 1 OTHERS = 2.

W_APPOINTMENT_CREATE_PO CALL FUNCTION 'W_APPOINTMENT_CREATE_PO' EXPORTING I_EKKO = XEKKO I_COMMIT = YES I_SYNC = YES IMPORTING E_WAPPT = WAPPT TABLES T_EKPO = YEKPO T_EKET = YEKET T_EKES = YEKES EXCEPTIONS NO_DATA_RECEIVED = 1 WRONG_PO_TYPE = 2 APPOINTMENT_DUPLICATE = 3 MULTIPLE_WAREHOUSE = 4 NO_WAREHOUSE = 5 CUSTOMIZING_ERROR = 6 MULTIPLE_DELIVERY_DATES = 7 PO_NOT_ALLOWED = 8 NO_APPOINTMENT_CREATED = 9 PO_DELETED = 10 CONFIRMATION_ERROR = 11 NO_AUTHORITY = 12 OTHERS = 13.

W_APPOINTMENT_CREATE_SN CALL FUNCTION 'W_APPOINTMENT_CREATE_SN' EXPORTING I_LIKP = XLIKP I_SYNC = YES I_COMMIT = YES I_DOC_UPDATE = YES IMPORTING E_WAPPT = WAPPT TABLES T_LIPS = YLIPS EXCEPTIONS NO_DATA_RECEIVED = 1 NO_WAREHOUSE = 2 WRONG_SN_TYPE = 3 DELIVERY_DATE_MISSING = 4 APPOINTMENT_DUPLICATE = 5 CUSTOMIZING_ERROR = 6 NO_APPOINTMENT_CREATED = 7 NO_AUTHORITY = 12 OTHERS = 13.



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