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

Validating enteries in SM30 using event 5

Former Member
0 Likes
1,828

Hi,

I have a requirement where I have to validate the enteries in a table using 7 fields in a custom table.

I have written the code in event 5. But when in debugger the 'total' table did not have the new entry and hence action was not triggered.

code :

2 REPLIES 2
Read only

Sandra_Rossi
Active Contributor
0 Likes
1,303

The event 05 is to be used only to process the current entry.

As said in the documentation, you have to use the "table/view fields for the realization of the user routine". So, if your table/view is ZZZZ, then you may directly test "IF ZZZZ-FIELD = ...".

TOTAL is not updated yet with the new record (because 05 may be used to prevent the entry from being created).

Read only

matt
Active Contributor
1,303

use the editor button "code" to post code. Not a screenshot.