09-10-2014 8:11 AM
Hello all,
I' ve a custom table with 10 fields (five of them are KEY- suppose filed A B C D and E are Key).
I need to create different view to anable user to update them:
in one View I wanted just field A B And C; in the second one all the key field
Obviously, as they are key, all of them must be entered in the view, so i can't create two different view.
I Want User X can run SM30 and view only field A B And C (D and E must always be empty); User Y must be able to run SM30 and see al the fields.
We do not manage it by ALV. How could I achive this aim, please?
Thanks a lot
09-10-2014 9:06 AM
Hello Favrizio,
you could create two different maintenance view (SE11->View). Then, using the "Maintenance table generator" the views will be exectuable in SM30.
Regards.
09-10-2014 9:10 AM
Hi Pablo,
thanks for your reply.
SAP do not let me create view without all the key fields. All the KEY field must be inserted in the view.
My probelm i just releted to the fact that I have Hide key field for some users and unhide them for others.
BR
09-10-2014 9:21 AM
Strange, when I tried to create it I just received a warning message.
Good luck.
09-10-2014 9:21 AM
You don't need to create 2 views for this, this can be done by using Events in the table maintenance generator, i.e. got to your table, click utilities -> table maintenance generaotr, then Environment -> Modification -> Events
09-10-2014 9:23 AM
Forgot... here is link to help: http://wiki.scn.sap.com/wiki/display/ABAPch/EVENTS+IN+TABLE+MAINTENANCE
09-10-2014 9:28 AM
Hi Glen,
I'm not so expert...in the event code (I'll chose 05 type) I will be able to loop on the screen to set screen-input = 0 ? Sorry for stupid question....
Please, could you shown me the code.
Thanks and BR
09-11-2014 7:28 AM
Hi Fabrizio,
I'm also no expert in Events for table maintenance generator so you will have to investigate the route further yourself or hopefully someone else on this forum can answer your question. Best of luck.
09-11-2014 8:51 AM
09-11-2014 10:21 AM
OK, thanks a lot to all.
I'll write a program and I'll manage everything using function SE16N_INTERFACE.
Bye