Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Disabling fields in table Maintenance generator

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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к

Former Member
0 Kudos

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

0 Kudos

hello Raj,

                Can you tell me the code for hiding fields among 5 fields in my scenario.

Thanks.