on 02-22-2010 9:02 AM
Requirement - when creating new entries in to the table, i need to check if there is any record with the same key.
If exists, delimit the existing entry before saving the new one.
I am using the event Before saving entries into Data base table.
But i am not able to see the values of new record in this event.
Ex: table name is ZOVRD.
when i write
SELECT SINGLE *
FROM zovrd
into wa_zovrd
WHERE begda EQ zovrd-begda
AND endda EQ zovrd-endda.
In debugging there are no values populated for zovrd.
lko;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lavanya,
I am not sure why you arent able to see the values of ZOVRD.
Alternatively you can try doing the following.
Activate the code in the event and then save the FM. Then goto table and 'activate and readjust the database' by going to database utility. Try logging out of the session and relogin and try doing your tests again.
Or change the event fro 01 to 05 'Creating a new entry'.
Please let me kow if this works.
Regards
Nanda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can have this done automatically.
Specify ENDDA as key field and before generating the maintenace view go to Environment->Generate Time-Dep.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
11 | |
11 | |
6 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.