SM30 屏幕维护DISABLE删除按钮

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值