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

Screen Control Sequence

arvind_soni
Participant
0 Likes
744

Hi All,

In Transactoin IW52,I have added a table control as the Enhancement Tab with the delete functionality.The user can select records and delete records from the Table control.

Porblem No 1 : I have added a POP UP for confirmation saying that Do you really want to delete.When clicked on Yes the entryi is getting deleted.But after deleting the entry if I press ENTER button the POP up comes again.I debugged and found that the system still has the same SY_UCOMM value.

Porblem No 2 :After deleting the entry if I try to Navigate to other tab on the screen the system says that "The requested function XXXX is not available here".

The same problem came when clicked on delete button,For this I did some customization in VFBS transaction.

But it seems that Next screen sequence is still not configured properly.

Could any one knows how to configure the Screen sequence table in VFBS and what should be maintained in the table.

Your response will be appreciated.

Thanks.

Arvind

4 REPLIES 4
Read only

rejish_balakrishnan
Contributor
0 Likes
659

Hi arvind,

There seems to be problem in code logic and not in screen config...

Set a flag when process deletes the entry . and check for the flag value .

-


if sy-ucomm = enter

if w_flag = 1.(if deleted)

process with other screens.

else.

delete entry

w_flag = 1.

endif.

endif.

-


Ask me If u need some more help !

Read only

Former Member
0 Likes
659

Hi,

When ever you press enter you pai is called and as the sy-ucomm hold the function code fro delete it starts processing the module. Either use a variable ok_code to hold your fucntion codes and clear it after the delete fucntion is called, so that next time it is triggered only when delete is pressed and not when enter is hit. the other way would be to create a global flag and check its value before the delete function as mentioned in the above post.

Hope this solves yor issue.

Regards,

Sachin.

Read only

sagarmehta
Product and Topic Expert
Product and Topic Expert
0 Likes
659

Hi,

I agree with what the sachin says. I would like to add one thing:-

As a good programming practice you are supposed to always clear the sy-ucomm variable before the end of PAI.

Hope this was of some help to you. Regarding the second Q. can you be a little bit more clearer??

Best regards,

Sagar.

Read only

arvind_soni
Participant
0 Likes
659

.