Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Table maintenance Validations

Hi All,

I created a table with 2 fields, also created a maintenance generator. Now my requirement is i need to have 1-1 relation with the fields, what i mean is, no value can repeat with in either of the fields.

I need to validate this condition.

Suppose user enters a value 1234 in first field, again if he enters the same, i need to throw a error message.

I went to transaction SE54, the following is the code

PROCESS BEFORE OUTPUT.

MODULE liste_initialisieren.

LOOP AT extract WITH CONTROL

tctrl_zzbank CURSOR nextline.

MODULE liste_show_liste.

ENDLOOP.

*

PROCESS AFTER INPUT.

MODULE liste_exit_command AT EXIT-COMMAND.

MODULE liste_before_loop.

LOOP AT extract.

MODULE liste_init_workarea.

CHAIN.

FIELD zzbank-zzau1.

FIELD zzbank-hbkid.

MODULE set_update_flag ON CHAIN-REQUEST.

ENDCHAIN.

FIELD vim_marked MODULE liste_mark_checkbox.

CHAIN.

FIELD zzbank-zzau1.

MODULE liste_update_liste.

ENDCHAIN.

ENDLOOP.

MODULE liste_after_loop.

<b> MODULE check_dupe.</b>

the line in bold is what i added, how do i proceed from here, could anyone please help.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question