on 02-08-2014 11:45 PM
Hello,
I developed a custom WDA, wherein i have my_view_2, wherein I have On_Button_Action event handler methos, well
In this On_Button_Action, I am calling a custom FM, in this custom FM I am updating a custom table by using MODIFY and COMMIT WORK statements.
Pls. let me know
1) Is it OK/safe that Can I call a custom FM, wherein we have MODIFY & COMMIT WORK statements?
2) If not, pls. suggest that how can achieve my requirement?
Thank youi
Hi,
In WDA, the business logic should be separated and it should be placed in a model viz class, function module, BAPI etc
Hence, FM is also a model and you can call FM in WDA.
As suggested by Mr. Chandra, it is standard practice that we use assistance class to write our business logic.
In your case, you can create a method in assistance class with MODIFY & COMMIT WORK logic and call method in WDA as you require.
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah, you can call your FM in the view, but its recommended according to Web Dynpro Architecture
you create the Assistance class and call your FM into the method of assistance class and call the method of assistance class in the view.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.