Sunday, May 11, 2008

SAP ABAP program for POPUP screen

SAP ABAP program for POPUP screen

If you wish to POPUP a screen in SAP ABAP then it can be done as shown below. Do experiment with the X,Y co-ordinates for the POP-UP Screen. The following program pulls out sales orders from the sap database and displays them on the screen. When the user clicks on a particular sales order, it displays the Sales order number and the Customer number in the POP-UP Screen

REPORT ZEX_POPUPSCREEN .

*&---------------------------------------------------------------------*
*& ABAPLOVERS POPUP SCREEN
*&---------------------------------------------------------------------*

* Table Declaration
TABLES VBAK.
* Start of Selection
START-OF-SELECTION.
  SELECT * FROM VBAK.
    WRITE / VBAK-VBELN HOTSPOT ON.
  ENDSELECT.
* Display the screen
AT LINE-SELECTION.
  WINDOW STARTING AT 10 10
         ENDING   AT 40 25.
  WRITE:/ 'VBAK-VBELN, VBAK-KUNNR'.



No comments:

Post a Comment