2006 Dec 11 8:55 PM
Hi.
I need to validate a field of a table view in the standard transaction SM30, the problem is that there is not userexit or badi, someone can help me?
thanks & regards
luis
2006 Dec 11 9:20 PM
Hi,
If it is a custom view..
Do the following..
Go to the view V_TVIMF.
Add an entry with the following entry.
EVent - '05' (Before saving the data in the database)
Form rourtine - 'CHECK_DATA'
Save the entry in a CR.
Then in the function group that you created for the table maintenance add this subroutine..
FORM CHECK_DATA.
Types Declaration
DATA: BEGIN OF WA_ZTABLE.
INCLUDE STRUCTURE ZTABLE.
DATA: update_fl TYPE char1,
mark TYPE char1,
END OF WA_ZTABLE.
move the values.
WA_ZTABLE = <table1>.
<b>IF WA_ZTABLE-FIELD1 <> '05'.</b>
MESSAGE E208(00).
ENDIF.
ENDFORM.
Hope this works..
Thanks,
Naren
Hi,
If it is a custom view..
Do the following..
Go to the view V_TVIMF.
Add an entry with the following entry.
EVent - '05' (Before saving the data in the database)
Form rourtine - 'CHECK_DATA'
Save the entry in a CR.
Then in the function group that you created for the table maintenance add this subroutine..
FORM CHECK_DATA.
Types Declaration
DATA: BEGIN OF WA_ZTABLE.
INCLUDE STRUCTURE ZTABLE.
DATA: update_fl TYPE char1,
mark TYPE char1,
END OF WA_ZTABLE.
move the values.
WA_ZTABLE = <table1>.
<b>IF WA_ZTABLE-FIELD1 <> '05'.</b>
MESSAGE E208(00).
ENDIF.
ENDFORM.
Hope this works..
Thanks,
Naren
2006 Dec 11 9:20 PM
Hi,
If it is a custom view..
Do the following..
Go to the view V_TVIMF.
Add an entry with the following entry.
EVent - '05' (Before saving the data in the database)
Form rourtine - 'CHECK_DATA'
Save the entry in a CR.
Then in the function group that you created for the table maintenance add this subroutine..
FORM CHECK_DATA.
Types Declaration
DATA: BEGIN OF WA_ZTABLE.
INCLUDE STRUCTURE ZTABLE.
DATA: update_fl TYPE char1,
mark TYPE char1,
END OF WA_ZTABLE.
move the values.
WA_ZTABLE = <table1>.
<b>IF WA_ZTABLE-FIELD1 <> '05'.</b>
MESSAGE E208(00).
ENDIF.
ENDFORM.
Hope this works..
Thanks,
Naren
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |