How to give a error message in interactive lists

Question: Hi, here's my situation, i have given orders on the selection screen, based on those orders, data is selected in an internal table itab and displayed in a primary list (with customised pf-status with buttons). The first two fields of all records in the itab are displayed as checkbox.

user has to select either of the checkboxes and the program displays secondary screen based on his selections . (secondary screen processing starts by pressing a button, all the checkbox entries are populated into corresponding internal table records after button is pressed)

If the user clicks both the checkboxes for any particular records, the system should give a popup with error message and the control should come back to the primary list so that he can change the checkboxes.

now the problem i'm facing. When i'm using the popup function, i am getting an error popup. . .but the program goes to seconddary list. I want to come back to the primary list in case of any error.

can anyone tell me which popup function to use, popup-to-confirm is not required. i just need a error message popup function.

Please help

Answer:
I doubt that it's the pop-up causing the secondary list to be displayed, rather it's the logic of your code.

Post the relevant code here so we can have a look.
_________________
Regards

R


Abap KC
SFMDR

Answer:
Hi,

If my understanding is correct, what you need to do is set the sy-lsind = 0, just after calling the POPUP function, which should ensure that your control goes to the primay list.

I hope this helps,

Regards
Raju Chitale
Copyright ?2007 - 2008 www.jt77.com