Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Custom code in view

gopal_jee
Product and Topic Expert
Product and Topic Expert
0 Likes
628

Hi,

I want to write custom code in view to validate business logic before

saving the data. Kindly suggest.

Regards,

Gopal.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
588

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.

3 REPLIES 3
Read only

Former Member
0 Likes
589

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.

Read only

Former Member
0 Likes
588

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

Read only

gopal_jee
Product and Topic Expert
Product and Topic Expert
0 Likes
588

Experts,

Got the solution for my query...Thanks a lot....

-Gopal