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 In SM30

Former Member
0 Likes
743

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
568

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.

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

1 REPLY 1
Read only

Former Member
0 Likes
569

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