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

automatic matchcode mapping in table

Former Member
0 Likes
1,315

Hello experts,

iam facing the following problem:

we have a table with a column datatype NAME1_GP (which has small and big letters), now we want to add a new column as search column (same content like column NAME1_GP but in capital letters) for this purpuse we would like to use datatype MCDD1 (capital letters)

is there a way to tell the new colum to use the content of the old column on table/database level so that we must not change any insert/update source code? again i want that column2 has always the same content than column1 but in capital letters?

Thank u

6 REPLIES 6
Read only

Former Member
0 Likes
1,211

Hi Benjamin,

               I dint get exactly what is your requirement because for search help the case sensitiveness is irrelevant. by the way you can do this

                  1.By manually putting code for updating only that field.

                  2.By scheduling other program which updates the field.

                  3.Use trigger at database level for performing the update.

Read only

former_member201275
Active Contributor
0 Likes
1,211

just use the same search help for the second field as for the first?

Read only

0 Likes
1,211

Hi Benjamin,

    I dint get you. Can you explain with screen shot.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,211

is there a way to tell the new colum to use the content of the old column on table/database level so that we must not change any insert/update source code?

AFAIK not from SAP side without coding, some triggers can be defined in most database, but that's no longer related to ABAP Development.

Regards,

Raymond

Read only

ThangaPrakash
Active Contributor
0 Likes
1,211

Hello Benjamin,

If your table is a custom table and it has Table maintenance generator then you can try with the Events available in the Table Maintenance Generator. Try with event 01.

But this will work when you do Insert/Update any records via transaction SM30.

If Insert/Update is happening via programs then source code of those programs has to be changed.

Regards,

Thanga

Read only

matt
Active Contributor
0 Likes
1,211

Please specify your database and I'll move your post there. You need database triggers, so this is not an ABAP question.