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

Problem with Table Control

Former Member
0 Likes
719

Hi,

I have a problem regarding table control. The table control is not allowing to process further after a error message is displayed. I am showing the error message when a particular row is selected and a push button is clicked.

With Regards,

Nelson

1 ACCEPTED SOLUTION
Read only

mandar_shete
Active Participant
0 Likes
691

Hi,

Before showing the error message clear the OKCODE and Sy-ucomm and then display the error message. Because whenever you get the error message the OKCODE will not change and it will keep on hitting the same code.

IF <condition>.

clear OKCODE.

clase Sy-ucomm.

error message.

endif.

6 REPLIES 6
Read only

Former Member
0 Likes
691

Hi Nelson,

Whenever an error message is displayed u can't access further In ny case whather it is a table control or ny report program or ny thing else.

What u can do is display an information message i.e. Message type - I.

In this case u can show a message and also proceed further.

regards

-


Sachin Dhingra

Read only

Former Member
0 Likes
691

check whether u had given the error message with 'e'.

try to give the message in this form.

message e000(zv) with itab-vbelnr itab-posnr.

check whether u had done in this way or not.

This could be done only when ur in loop..endloop of pai.

so if u r doing the actions after the pushbutton is selected then it will not be in the loop..endloop. for this you have to give the message type 'i'.

so that it will allow u to modify the data when the pushbutton is selected.

i hope this will solve ur problem

Message was edited by: Hasmath

Read only

Former Member
0 Likes
691

Hello Nelson,

U need to use FIELD stmt in the flow logic.

CHAIN.

FIELD: ABC,

123.

Module xyz.

ENDCHAIN.

if there is an error in field abc and u are throwing error msg from module xyz then fields ABC and 123 will be input enabled.

Read only

Former Member
0 Likes
691

Please clarify what you mean by 'further processing'. My guess is that you are looking for exit commands.

1) Declare the back, exit and cancel as exit commands. This is done in the menu.

2) In PAI, declare a module like so...

module xyz at exit-command.

3) write the navigation code etc here.

Keep the error message if you like. Once the error message has been triggered, your back exit and cancel still will work fine.

More to come...

Read only

0 Likes
691

Here's how you create a exit command... In the PF-status declaration, go to function keys, say 'Back', double click on it. On the popup, you should see the functional type, set it as 'E'.

Read only

mandar_shete
Active Participant
0 Likes
692

Hi,

Before showing the error message clear the OKCODE and Sy-ucomm and then display the error message. Because whenever you get the error message the OKCODE will not change and it will keep on hitting the same code.

IF <condition>.

clear OKCODE.

clase Sy-ucomm.

error message.

endif.