Application Development and Automation 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: 
Read only

Maintenance Views

Former Member
0 Likes
562

I'm currently calling the maintenance view for a table with the followning code:

CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
    EXPORTING
      action    = p_action
      view_name = p_tabname
    EXCEPTIONS
      OTHERS    = 1.

However I would like to disable the user from creating new entries, allowing them only to modify existing records. Is there any standard functionality to acheive this or will it require a bespoke solution?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
535

Hello Chris,

One of the tables passed to you FM is EXCL_CUA_FUNCT.

You can pass the value DELE and NEWL to prevent the addition of new lines and the deletion

of existing ones.

Hope that helps a bit.

Regards

Greg Kern

I'm currently calling the maintenance view for a table with the followning code:

CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
    EXPORTING
      action    = p_action
      view_name = p_tabname
    EXCEPTIONS
      OTHERS    = 1.

However I would like to disable the user from creating new entries, allowing them only to modify existing records. Is there any standard functionality to acheive this or will it require a bespoke solution?

3 REPLIES 3
Read only

Former Member
0 Likes
535

With the parameter ACTION, you specify the processing action to be performed. Possible actions are:

S = Display

U = Change

T = Transport

However even from SM30 Maintain allows you to Create new entries and the same is true theough this FM also.

You may have to have a little workaround to tackle this probably.

Edited by: Ankesh on Jan 20, 2009 8:19 PM

Read only

tushar_shukla
Active Participant
0 Likes
535

Chris,

Use a select statement for your table to check the existance of a particular record and call function module only if a records exists in system .

Thanks ,

Tushar ..

Read only

Former Member
0 Likes
536

Hello Chris,

One of the tables passed to you FM is EXCL_CUA_FUNCT.

You can pass the value DELE and NEWL to prevent the addition of new lines and the deletion

of existing ones.

Hope that helps a bit.

Regards

Greg Kern