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: 

Passing a value to a table maintenance view

Former Member
0 Kudos

i need to pass a value to the before calling a table maintenance view through a program.so when the table maintenance view open it displays only the value passed through the program.

Kindly help me resolve the same.

Thank you in advance

Dilip

3 REPLIES 3

Former Member
0 Kudos

Please check the below code to call SM30 with restrictions. S_FIELD is Select option declared in the program.


CALL FUNCTION 'VIEW_RANGETAB_TO_SELLIST'
    EXPORTING
      fieldname = 'FIELDNAME'
    TABLES
      sellist   = gt_sellist
      rangetab  = s_field.

  CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
    EXPORTING
      action                       = 'U'
      view_name                    = 'ZTABLE_NAME'
    TABLES
      dba_sellist                  = gt_sellist
    EXCEPTIONS
      client_reference             = 1
      foreign_lock                 = 2
      invalid_action               = 3
      no_clientindependent_auth    = 4
      no_database_function         = 5
      no_editor_function           = 6
      no_show_auth                 = 7
      no_tvdir_entry               = 8
      no_upd_auth                  = 9
      only_show_allowed            = 10
      system_failure               = 11
      unknown_field_in_dba_sellist = 12
      view_not_found               = 13
      maintenance_prohibited       = 14
      OTHERS                       = 15.

Former Member
0 Kudos

Hi Dilip,

Try using the events in the table maintenance generator.

Regards,

Himanshu

jaigupta
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Dilip,

please refer to the below linkas it might help you in solving your problem:

[http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/8129f164-0a01-0010-2a8e-8765287250fc&overridelayout=true]

thanks,

jai