Validations with Service Create Expense Report
I have the following doubt:
In the service "Create Expense Report" ESS the system call two component different:
Web Dynpro Component: FITV_FPM
Window Information: FPM_WINDOW
View Information: LAYOUT_VIEW
Configuration ID: FITV_FPM_EXPENSES
This component show two buttons Start and Cancel, as is displayed in the screen attach.
And other component is
Web Dynpro Component: FITE_VC_PRESELECTION
Window Information: VC_WINDOW
View Information: PRESELECTION_VIEW
Configuration ID: FITE_VC_PRESELECTION
That show the information with "Available Travel Requests / Plans and a listbox with Schema Selection(National Trip and Foreign Trip). as is displayed in the screen attach.
I need do two validations and I dont know Where Can I do this validations:
1.When I select the schema National and press the button Start the system must validate that the enduser have selectioned a row of "Available Travel Requests / Plans", if the enduser not select a row the system have that show a message saying "Please select a row". This message have that be type error.
2. What is the name of the table and the method that use SAP for get the information that is displayed in the grid "Available Travel Requests / Plans"
Thanks in advance
Abhijeet Kulkarni replied
For first validation, I suggest you overwrite the method ON_NAVIGATE of component controller of component FITE_VC_PRESELECTION. Keep in mind that you are putting this check in 'Create Expense Report'. The standard behaviour is to create a new trip, in case no trip is selected. If your business requirement is to suppress trip creation from here, follow these steps:
- Create an enhancement of component controller of component FITE_VC_PRESELECTION.
- Implement the Overwrite Exit for method ON_NAVIGATE.
- Refer to the attachments for what and where to write.
The trips, populated in the table 'Available Travel Requests / Plans' are picked from FM PTRM_WEB_TRIPS_GET_LIST.