call table maintenance screen with filters

call table maintenance screen with filters
5 (100%) 2 votes

After creating a table maintenance, you create a corresponding custom transaction which provides the user to maintain your table with SM30/SM31/SM34 . What would you do , if you want the users to navigate this transaction from another custom program lets say from a dialog screen. The answer is easy. You would put a button of your programs ALV toolbar or PF-STATUS of a screen. Then implement a callback/user-command which is calling CALL TRANSACTION ‘ZTCODE’ command.

Till this step eveything seems fine. What if you dont want to show all old data but a restricted data for example just the user’s company code’s data. It is for sure that your custom table have company code (BUKRS) field in that case. Now only thing you should do is calling VIEW_MAINTENANCE_CALL with right parameters.

For example below subroutine opens the Z_TABLE’s maintenance screen filtered with 1000 company code.

You may also like

  • table control ‘Position’ button for non key fields (0)
    Recently I have noticed that for SM30 transaction that we make maintenance of tables , there is a filter or search button that is notworking properly for all fields. It is actually […]
  • display XML data in screen (0)
    There are cases where the users want to see XML data in SAP screen. For this aim SAP has provided a couple of function modules under SDIXML . I have used SDIXML_XML_TO_DOM and […]
  • table maintenance with time-sliced data (0)
    If you have ever seen, there are many tables with time-sliced data in SAP. As a general rule these tables consist of a beginning and an end date which one of them is defined as a primary […]