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

Help needed in Dialog programming

Former Member
0 Likes
544

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?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
507

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.

4 REPLIES 4
Read only

Former Member
0 Likes
507

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.

Read only

0 Likes
507

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?

Read only

Former Member
0 Likes
508

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.

Read only

Former Member
0 Likes
507

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.