‎2006 Jun 28 7:29 PM
Hi,
I am in a module pool program. This contains a subscreen which has a tablecontrol. Based on one of the entry in the table control. I need to stop the user to change the value.
So I have coded like the below.
If i_tc-value = 0.
v_scrno = sy-dynnr.
leave to screen v_scrno.
endif.
But the above code gives an ABEND error with message
<b>SET SCREEN not allowed in subscreen (screen: <Program name> <Screen nbr>)</b>
Please help to solve the above issue. User must make the entry in the table control. How to stop the user for changing the entry?
‎2006 Jun 29 1:44 PM
Hi Murphy,
What i understood from ur prob is u r tryin to call a screen into a subscreen which is not possible and hence ur getting an error.
Hope this helps.
Seema.
‎2006 Jun 28 11:00 PM
Keep the original values in other variable or structure. If table control entry is what you don't want to change, replace it with original one in PAI of subscreen.
‎2006 Jun 29 11:55 AM
User must change the value. For that table control should accept the entry. How to take control back to the table control for user entry?
‎2006 Jun 29 1:44 PM
Hi Murphy,
What i understood from ur prob is u r tryin to call a screen into a subscreen which is not possible and hence ur getting an error.
Hope this helps.
Seema.
‎2006 Jun 29 1:58 PM
Hi Murphy,
I don't know on wot entry you want to stop the user to changes , i hope for stoping your user you may have some condiation once that condation pass make use screen properties to make that field into display mode such that the user again not able to edit.
Thanks,
saleem.