03-16-2009 3:27 PM
Hi Experts,
I would like to restrict some fields in table maintenance generator dynamically/ statically.
Here is the situation.
I have generated table maintenance for the table ZMARA and I have created three transactions for the above single table maintenance generator.
i.e .. Transaction --- Table
ZT1 --- ZMARA
ZT2 --- ZMARA
ZT3 --- ZMARA
I am using above three transactions in my module pool program. Based on the certain conditions I am calling different transactions i.e ZT1, ZT2, etc
Here is my requirement:
Suppose if I call ZT1 transaction, I need to display only few fields. i.e ZMATNR, ZMTART, ZPRODH.
or remaining fields should disable. User should not allow to change the content, even if it is new entries/existing entries. only ZMATNR, ZMTART, ZPRODH.
Suppose if I call ZT2 transaction, I need to display only few fields. i.e ZMATNR, ZMTART, ZHTSCODE
How can we restrict dynamically when you call table maintenance generator table through transaction
or
How can we generate table maintenance for few fields?
Edited by: r badveli on Mar 16, 2009 4:27 PM
Edited by: r badveli on Mar 16, 2009 4:27 PM
Edited by: r badveli on Mar 16, 2009 4:28 PM
03-16-2009 5:20 PM
Hi ,
go to Se11->Table maintenace generation. Double click on screen to edit and assign the field you want to display/hide to groups. In PBO , after the following lines..
LOOP AT EXTRACT WITH CONTROL
TCTRL_ZMARA CURSOR NEXTLINE.
MODULE LISTE_SHOW_LISTE.
ENDLOOP.
Write a new module in PBO and edit the SCREEN as per the Tcode, you are calling,,'
Hope this helps you
Rj
03-16-2009 3:30 PM
Hi,
Create different maintenance views in SE11..
In the maintenance view you can mention (Main. Status tab) to allow new entries or not.
Sample maintenance view V023.
Thanks
Naren
03-16-2009 4:04 PM
Hi,
another way to proceed (but probably it's most time-consuming) is using transaction SHD0 and create different custom transaction based on SM31 tcode.
The better way (as write before) is create three different views and the the maintenance views on that.
Regards
Andrea
03-16-2009 4:54 PM
goto se11. utilities -> table maintenance generator.
now click environment -> here here open the source code and in the pbo of the screen put the necessary conditions to make the fields invisible.
U can modify the table maintenance just as normal module pool program.
кu03B1ятu03B9к
03-16-2009 5:20 PM
Hi ,
go to Se11->Table maintenace generation. Double click on screen to edit and assign the field you want to display/hide to groups. In PBO , after the following lines..
LOOP AT EXTRACT WITH CONTROL
TCTRL_ZMARA CURSOR NEXTLINE.
MODULE LISTE_SHOW_LISTE.
ENDLOOP.
Write a new module in PBO and edit the SCREEN as per the Tcode, you are calling,,'
Hope this helps you
Rj
04-02-2014 9:57 AM
hello Raj,
Can you tell me the code for hiding fields among 5 fields in my scenario.
Thanks.