‎2009 Jan 13 9:33 AM
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
‎2009 Feb 06 6:02 AM
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 !
‎2009 Feb 06 7:15 AM
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.
‎2009 Feb 06 7:58 AM
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.
‎2009 Feb 11 11:23 AM