Application Development 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: 

Error message in tablecontrol

Former Member
0 Kudos

Hi All,

Thanx in advance n will award points for the usefull answers

I have a table control. i have 3 buttons on it. INSERT, DELETE and SAVE.

When ever i SAVE the data in the table control saves into table ZVTW.

so my point is right now iam having 2 records in the table control from the table ZVTW. now am clicking on the insert button so that it enables one record to enter the data into it. 4 fields are mandatory. without entering any data iam trying to save. iam showing one error message 'PLEASE ENTER MANDATORY FIELDS'.

fileds are getting disabled.

Now i need to enable the fields again to enter the data.

CHAIN and ENDCHAIN is not working in my case.

Please help me out.

6 REPLIES 6

Former Member
0 Kudos

try leave to screen there immediately after the error message. there give screen number of table control

former_member386202
Active Contributor
0 Kudos

Hi,

Use LEAVE LIST-PROCESSING after your message statement.

Regards,

Prashant

0 Kudos

after error message every thing is getting disabled. Itried witj List Processing . but after message no line is triggered.

Please suggest me

0 Kudos

Hi,

u can use leave to list processing command just after u r displaying ur

error message , and then use the call screen command to call ur initial screen.

Former Member
0 Kudos

Hi,

IN <b>PAI</b> you have to write

MODULE USER_COMMAND_1100.

In this module you have to first check SY-UCOMM.

like IF SY_UCOMM = 'SAVE'.

IF screenfield1 = sapce and screenfield2 = sapce and

screenfield3 = sapce and

screenfield4 = sapce .

  • write your error msg.

endif.

endif.

0 Kudos

Hi Arti i did the same thing as i told in my question. However aqfter the error message everything is getting disabled. Next statement after error msg is not working.