SM30 屏幕维护DISABLE删除按钮

标准表维护视图

隐藏“删除“按钮

PBO中增加MODULE pbo_hide_button.

*&---------------------------------------------------------------------*
*& Module PBO_HIDE_BUTTON OUTPUT
*&---------------------------------------------------------------------*
*&"隐藏按钮
*&---------------------------------------------------------------------*
MODULE pbo_hide_button OUTPUT.

  "隐藏删除按钮
  MOVE 'DELE' TO excl_cua_funct-function.
  COLLECT excl_cua_funct.

ENDMODULE.

效果如下:

 

http://blog.csdn.net/crmsd/article/details/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


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 '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

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

王小磊

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值