2008 Jun 03 10:31 AM
hi,
i have created one table control in module pool. while entering values into the table control how can we validate the table control if we enter duplicate values.ie in the first line i entered 200 500 400
again inthe second line i
entered 200 500 400.
validation should tabke place and error msg should be populated. pls help...
i have used the below code.
LOOP AT IT_TC2.
CHAIN.
FIELD:ZTC_ATMP-BUKRS,
ZTC_ATMP-LEGACCNO,
ZTC_ATMP-ZZDESKCODE,
ZTC_ATMP-SAKNR.
MODULE READ_TABLE_CONTROL.
MODULE check_duplicates ON CHAIN-REQUEST.
ENDCHAIN.
ENDLOOP.
but here module check_duplicates is not triggering why? any idea..
2008 Jun 03 10:41 AM
Hi there.
Two questions:
1 - is that code in PAI of table control screen?
2 - go to screen layout (graphical) and check in the lines of table control if the fields are really named ZTC_ATMP-BUKRS, etc ...
Best regards.
Valter Oliveira.
Hi there.
Two questions:
1 - is that code in PAI of table control screen?
2 - go to screen layout (graphical) and check in the lines of table control if the fields are really named ZTC_ATMP-BUKRS, etc ...
Best regards.
Valter Oliveira.
2008 Jun 03 10:41 AM
Hi there.
Two questions:
1 - is that code in PAI of table control screen?
2 - go to screen layout (graphical) and check in the lines of table control if the fields are really named ZTC_ATMP-BUKRS, etc ...
Best regards.
Valter Oliveira.
2008 Jun 03 11:35 AM
Hi,
you can try like this...
************************************
LOOP AT IT_TC2.
CHAIN.
FIELD ZTC_ATMP-BUKRS module CHK1.
FIELD ZTC_ATMP-LEGACCNO module CHK1.
FIELD ZTC_ATMP-ZZDESKCODE module CHK1.
FIELD ZTC_ATMP-SAKNR module CHK1.
MODULE READ_TABLE_CONTROL.
ENDCHAIN.
ENDLOOP.
Now write the validations for the corresopnding Fields in there Respective Modules.... for example Validation for ZTC_ATMP-BUKRS filed in module CHK1 and so on..
************************************
Reward if helpful.
Regards,
Syed
2008 Jun 10 5:55 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |