Skip to Content
avatar image
Former Member

Validations with Service Create Expense Report

Dear experts.

I have the following doubt:

In the service "Create Expense Report" ESS the system call two component different:


Application: FITE_EXPENSES
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

Application: FITE_EXPENSES
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


Regards

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jun 14, 2012 at 07:21 AM

    Hi Carmen,

    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.
    • Activate.

    The trips, populated in the table 'Available Travel Requests / Plans' are picked from FM PTRM_WEB_TRIPS_GET_LIST.

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 14, 2012 at 07:41 AM

    Hi,

    For 1st question, you neeed to validation in Button start event.

    For 2nd question,check infotype 17(pa0017) may help.

    Add comment
    10|10000 characters needed characters exceeded