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

Validation

Former Member
0 Likes
774

Hi All!!

I have a field which has to be validated once it is entered in the output screen and to be saved. I have validated it but I want to know under whcih event does it come under?

Thanks.

1 ACCEPTED SOLUTION
Read only

alejandro_bindi
Active Contributor
0 Likes
745

Adding to what Rich said, in case of report programs, you could also use

AT SELECTION-SCREEN ON <field>

.

Regards.

6 REPLIES 6
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
745

In a selection screen? It would be done in the AT SELECTION-SCREEN event.

If in a dynpro or screen, then you would do it inside a module within the PAI of the screen flow logic.

Regards,

Rich Heilman

Read only

0 Likes
745

My rek is to have a selection screen, execute it and then maintain the output in SM30. so when they enter the values for that field in SM30, it shud validate the field values and then only let them save it orelse give an error message.

So pls let me know how i can do this and under wchih event?

Thanks!!

Read only

0 Likes
745

Try out events 01 and 21.

Read only

0 Likes
745

Under which report event???

Read only

0 Likes
745

Are you doing a report or a table maintenance view adjustment?

If you need to validate entries in SM30 as you said previously, you don't have report events. You must relate your own forms to events in view V_TVIMF. Those forms must be created in a new include under the same function group as the maintenance view.

Check this list for available events:

http://help.sap.com/saphelp_nw04/helpdata/en/91/ca9f0ea9d111d1a5690000e82deaaa/content.htm

Please award points if helpful.

Regards

Read only

alejandro_bindi
Active Contributor
0 Likes
746

Adding to what Rich said, in case of report programs, you could also use

AT SELECTION-SCREEN ON <field>

.

Regards.