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

How to make field initial inTC to avoid Error Message

Former Member
0 Likes
648

Hi,

To ALL.

I am Developing a screen(module pool) Using a Table Control to enter data.

I am Setting TC-Lines = 20 .

I made the field Mantitory( using Chain Endchain ) .

I entered a values in TC and deleted all fields since i dont want the record.

The program showing error 'Fill Required Values' .


IF ZT-f1 = '00000000' AND ZT-F1 = '00000000'. 
    MESSAGE 'Fill Required Values' TYPE 'E'.
endif.

Both Fields are Numc.

Please Reply Your Idea ASAP

Can you please explain the problem in more detail?

Regards,

Manne.

4 REPLIES 4
Read only

Former Member
0 Likes
608

Hi Pramoth,

Don't make the TC fields Mandatory in Screen, it will cause problems better validate the fileds and give the Error in the PAI itself with in the chain and endchain. if you delete check whether you have deleted in the internal table also. then only the table control loop will bypass it.

Read only

Former Member
0 Likes
608

Can you please explain the problem in more detail?

Regards,

Manne.

Read only

Former Member
0 Likes
608

Hi,

The problem here is after the delete operation in the PAI, the PBO is called again for display. So, it throws an error message asking for the mandatory fields to be filled. So, if you want to by pass the mandatory fields, then you gotto write your code in the AT EXIT-COMMAND.

Or what you can possibly do is, remove the mandatory check for the fields and manually write the code and check for the fields being initial and then display an error message.

Read only

Former Member
0 Likes
608

I Solved the problem.