[转]SM30 屏幕维护DISABLE删除按钮
[转]SM30 屏幕维护DISABLE删除按钮
http://m.blog.csdn.net/blog/whiskey1122/6448414
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.
*****inclule one line of code for excluding delete fucion module set_pf output. MOVE 'DELE' 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表维护的传输问题
http://www.sapfans.com/forums/viewtopic.php?f=12&t=286914&start=0&st=0&sk=t&sd=a
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
Thanx Quentin 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 'Continue'. 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
 
                     
                    
                 
                    
                
 
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号