Skip to Content
Author's profile photo Former Member

An Easier Way of displaying and editing data using Table Control

Recently I came across a couple of interesting function modules in SAP R/3 which can be used to display and edit data via a table control.These functions provide almost all the functionalities available in a table control and can be used for doing moderate editing operations.In this blog I would like to demonstrate a small example using these function modules.

Function modules :
STC1_POPUP_WITH_TABLE_CONTROL
STC1_FULLSCREEN_TABLE_CONTROL

image
image

Note : I found these functions very useful while creating editable popups for my applications.

Assigned Tags

      4 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo .Subramony A R .Subramony Ramakrishnan
      .Subramony A R .Subramony Ramakrishnan
      Hi

      These two function module have major limitation ie. at present the Table Control is limited on 36 fields and 16 Table controls

      aRs

      Author's profile photo .Subramony A R .Subramony Ramakrishnan
      .Subramony A R .Subramony Ramakrishnan
      Hi,

      If go thru documentation of these function module ( Documentation is available in German only). If you giving a table more than 36 fields, all the fields will not display in the table control.

      aRs

      Author's profile photo Carlos Duarte
      Carlos Duarte
      Hi Ravi Shankar Rajan.

      We are trying to test your example, but we are having problems with the screen 9000.

      Can you send us the elements list of the screen 9000.

      We created a custom table 'zmakt'.

      Thanks,
      Carlos Duarte
      carlos-a-duarte@telecom.pt

      Author's profile photo Former Member
      Former Member
      Screen 9000 is not required as the function will allow changes to be saved as is.
      Change the START-OF-SELECTION in the code as follows:
      START-OF-SELECTION.
      *  CALL SCREEN 9900.
      PERFORM ZF_TABLE_CONTROL_POPUP .

      The screen (called from the function) will appear as above but without the buttons at the top. Use "Save" button when you have finised editing in the table. It's a bit clunky but it works.
      Regards,
      Peter Croghan