Sm30 screen maintenance disable deletion button

Source: Internet
Author: User

Https://forums.sdn.sap.com/thread.jspa? Messageid = 7354231

Disable delete button in Table maintainance Generator

 

Add new module in PbO for excluding delete function. Ex module set_pf.

Process before output.

* *** Here I added my own code for excluding delete function
* *** Begin of addion
Module set_pf.
* *** End of Addition

Module liste_initialisieren.

Loop at extract with control
Tctrl_zmaintain cursor nextline.
Module liste_show_liste.
Endloop.
*
Process after input.
Module liste_exit_command at exit-command.
Module liste_before_loop.
Loop at extract.
Module liste_init_workarea.
Chain.
Field ZMAINTAIN-MATNR.
Field ZMAINTAIN-KUNNR.
Field ZMAINTAIN-LIFNR.
Module set_update_flag on chain-request.
Endchain.
Field vim_marked module liste_mark_checkbox.
Chain.
Field ZMAINTAIN-MATNR.
Module liste_update_liste.
Endchain.
Endloop.
Module liste_after_loop.

 

 

***** Using le one line of code for excluding Delete fucion
Module set_pf output.
Move 'delimiter' to excl_cua_funct-function. Collect excl_cua_funct.
Endmodule.

 

 

Basically sap fetching status dynamically from program saplsvim Using FM view_set_pf_status. Status name is eulg.
Please don't hardcode anything by using set pf status statment, you just add one line of code the PBo by creating new module.

 

 

Https://forums.sdn.sap.com/thread.jspa? Threadid = 1593938 & tstart = 809

 

 

Sm30 table maintenance transmission problems

Http://www.sapfans.com/forums/viewtopic.php? F = 12 & t = 286914 & START = 0 & St = 0 & Sk = T & SD =

Thank you thanks you Thank you !!!!!
With the table set to "standard recording routine" and the client * As far left as possible and no other keys. It worked !!!!!!!
It deleted the stuff I wanted it too, and kept what I wanted to keep.

I am really thankful! I hade done a similar transport earlier but did not have the flag "standard recording routine" on it before, so then it didn't work. but with the flag and creating the transport as you suggested it worked !!!

 

 

 

Capture record marked for deletion in sm30

Http://forums.sdn.sap.com/thread.jspa? Threadid = 1934265 & tstart = 270

For your information, in total there is a field which identifies insert, change & deleted records.

 

 

 

 

Delete rows in SE16

Http://aq33.com/development-programming/Articles026248.html

 

Delete row from internal table without sm30

Question:
Hello all,
I have to delete some rows of the table roosprmsc. This table don't have the flag for 'table maintenance allowed 'in sm11, so I can't delete the rows using sm30.
We have already do that but the man who perfomed this action is not reachable for the moment and this is very urgent!
(Of course I Know This Is Not Reachable to do maintenance on SAP tables, but I have to do it ).
So please if someone has an idea, you will be enjoyed!
Thanx
Quentin
Answer:
FYI, the 'table maintenance allowed' flag has nothing to do with table maintenance screens. once you 've created a screen, you have invalidated the use of the flag. the flag identifies whether or not you can maintain entries via SE16 in an open system.
Now, here's an old developer's trick (but don't misuse it !) -- If you have debug-replace authority, you can do the following: display the entry you want to delete in se16. turn on the debugger with '/H' & hit 'enter '. enter 'code' in the field list & change the value to 'dele '. hit 'contine '. this also works for changing entries with code 'edit '.
You can always write an ABAP or use lsmw to do this too
Of course, this type of stuff is generally why I take away debug replace from my junior developers in Production
Brad

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.