While creating interactive reports it may be required to create a HOTSPOT. Please find the sample code below.
REPORT ZEX_HOTSPOT .
*&---------------------------------------------------------------------* *& ABAPLOVERS: Example of HOTSPOT *&---------------------------------------------------------------------*
* Table Declaration TABLES: VBAK, VBAP.
* Start-Of-Selection START-OF-SELECTION. SELECT single vbeln INTO (VBAK-VBELN) FROM VBAK. WRITE / VBAK-VBELN HOTSPOT ON.
* Single click AT LINE-SELECTION. Select Single posnr matnr INTO (VBAP-POSNR, VBAP-MATNR) from vbap where VBELN = VBAK-VBELN.
SAP ABAP comparing 2 programs with Split Screen Editor In ABAP you may want to compare 2 programs. If you wish to compare the inactive version of the same program or of you want to compare 2 completely different programs. This can be done using the Split Screen Editor. Please follow the path shown below to open the Split Screen Editor.
Open the ABAP Editor Transaction SE38. Open any of the programs.
Click on Utilities >>>>>>>>>> More Utilities >>>>>>>>>>> Split Screen Editor.
In the following figure you will see the Split Screen Editor.
Always use Pretty Printer and Extended Program Check before releasing the code.
Do not leave unused code in the program. Comment the code thoroughly. Align the comments and the Code. Follow the SAP Standards and SAP Best Practices guidelines. It’s a good practice to take a dump of the code on your local drive.