‎2009 Dec 28 7:54 AM
Hi,
I want to write custom code in view to validate business logic before
saving the data. Kindly suggest.
Regards,
Gopal.
‎2009 Dec 28 7:56 AM
Hello Gopal,
Once view is generated, you can write code in events or you can directly
change the screen of your view for business logic.
Events: Goto SE54 -> fill view name -> Select Generated Objects ->
Click on Create/Change
A new screen will open -> Goto menu Environment -> Modification ->
Events -> Click on new entries
In first couloumn if you press F4, you can define where exactly you
want to write custom code.
Cheers,
Varun.
‎2009 Dec 28 7:56 AM
Hello Gopal,
Once view is generated, you can write code in events or you can directly
change the screen of your view for business logic.
Events: Goto SE54 -> fill view name -> Select Generated Objects ->
Click on Create/Change
A new screen will open -> Goto menu Environment -> Modification ->
Events -> Click on new entries
In first couloumn if you press F4, you can define where exactly you
want to write custom code.
Cheers,
Varun.
‎2009 Dec 29 9:55 AM
Hi,
Generate 1 maintenance view goto SE54 -> Type in the veiw name and select the radio button 'Generated objects' -> Change
Now choose Environment -> Modification -> Events -> New entries
Add event '01' for Before saving the data into database assign a form name 'F_CHECK_B4_SAVE' and click on editor button
that will open up the FORM write the code in this routine as per the requirement and even set break points to validate the logic.
Hope this helps you.
Thanks & Regards
Ranjith Nambiar
‎2009 Dec 29 10:17 AM
Experts,
Got the solution for my query...Thanks a lot....
-Gopal