Today one of the member of our telegram group aked how to open a document in it’s related transaction by doubleclicking the documentnumber in a tablecontrol. So I created a small demo report to open a material by doubleclicking on materialnumber.
Create a report in SE38 or SE80 and copy the following code into it.
An error has occurred. Please try again later. |
Create a screen 100 and copy the following code into flow logic of the screen.
An error has occurred. Please try again later. |
Create PF-Status 0100 as shown below.

Create title 0100 as shown below.

Now place the tablecontrol on screen 100 as described below.

2. Fill the screen with the tablecontrol object

2. Enter the tablename “MARA”
3. click Get From Dictionary
4. Choose the fields
5. Confirm with OK


2. Uncheck Input Field for all fields

Now activate all created objects and execute the report.

