cancel
Showing results for 
Search instead for 
Did you mean: 

Validations with Service Create Expense Report

former_member215786
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Abhijeet-K
Active Participant
0 Kudos

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.

former_member215786
Participant
0 Kudos

Dear Not Active Contributor

Thank you.

I have others doubts before close this post

In this application How can get the scheme selected by the enduser when the user press the button Start? This validation apply for two Scheme of the list

What is the reason Why SAP create two components for this application

The firt called Web Dynpro Component: FITE_VC_PRESELECTION and the second: Web Dynpro Component: FITV_FPM.

I always have this doubt with the applications that use FPM.

Can you recommend a good book for learn WDA?

Regards

Abhijeet-K
Active Participant
0 Kudos

Hi Carmen,

You can add custom code, just like the one for selected row validation. It can have logic such that if a particular trip number is selected, and it has cities of a particular country, the schema, say, 'Domestic' would be chosen. To 'auto-choose' schema, bind the attribute TRIP_SCHEMA of node TRIP_SCHEMA with the value 'Domestic'.

ABAP Dynpro is a component based model. So, a typically a component is created in such a way that it can be reused at many places. The component FITE_VC_PRESELECTION is for listing already initiated trips, and is rendered in expense report. The same component might be used in other travel web dynpro applications, like FITE_REQUEST, FITE_EXPRESS_EXPENSES, etc. The component FITV_FPM uses many other components for rendering different features of travel. You can think of it as parent-child relationship.

I am attaching an old book on WDA, which I guess, I downloaded from SDN itself.

I hope I could clear you doubts.

couldn't attach the book, as the file extension is not allowed. You can search for WDA resources at SDN, SAP help, or do a simple google search for PDF.

Abhijeet-K
Active Participant
0 Kudos

There is a minor correction in the code I had attached earlier. Instead of putting a call to the original on_navigate method, you will need to paste its code in there. This is because calling the overwritten method within the overwritten code will - as the sentence sounds - result into endless looping. Refer here for more details.

I apologise.

former_member215786
Participant
0 Kudos

I closed the post but please You can send me the book to

carmen.guerrero.ruiz at g m a i l . com

carmen.guerrero at g m a i l . com

Thanks in advance

Regards

former_member215786
Participant
0 Kudos

You can please say me the name of book for search by google?

Thanks

Abhijeet-K
Active Participant
0 Kudos

Hi Carmen,

I mailed the book on the latter mail address. Sent today on the former too. The books are Floor Plan Manager - A Developer's Guide and An Extended Web Dynpro ABAP Application.

Answers (1)

Answers (1)

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

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

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