SAP Virtual/Onsite Trainings

Document Categories:

What's New?

Contribute?

Sample Specs

What's Hot?

Web Dynpro for ABAP Tutorials 


Join the Mailing List
Enter name and email address below:
Name:
Email:
Subscribe  Unsubscribe 

Modal Dialog Box in Module Pool Programming

...Previous  

Step12: Create EXIT button with fctcode : EXIT

Step13: Screen Layout for Normal Screen : 0100 is as shown below

Step14: Screen Layout for Modal Dialog Box: 0110 is as shown below

Step15: Write the below code

REPORT  SAPMZ_MODAL_DIALOG NO STANDARD PAGE HEADING.
TABLES MARA.
TYPES : MATNR TYPE MARA-MATNR,
        ERSDA 
TYPE MARA-ERSDA,
        ERNAM 
TYPE MARA-ERNAM,
        mtart 
type mara-mtart,
        matkl 
type mara-matkl.
Start-
of-selection.
call SCREEN 0100.


*&---------------------------------------------------------------------*
*&      Module  STATUS_0110  OUTPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
module STATUS_0110 output.
  
SELECT SINGLE MATNR ERSDA ERNAM mtart matkl FROM MARA
    
INTO (MARA-MATNR, MARA-ERSDA, MARA-ERNAM, mara-mtart, mara-matkl)
    
where matnr = mara-matnr.
endmodule.                 " STATUS_0110  OUTPUT
*&---------------------------------------------------------------------*
*&      Module  USER_COMMAND_0110  INPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
module USER_COMMAND_0110 input.
  
CASE SY-UCOMM.
WHEN 'EXIT'.
  
LEAVE PROGRAM.
  
ENDCASE.
endmodule.                 " USER_COMMAND_0110  INPUT  

Step16: Activate the program and execute the program,  

Step17: The Output is displayed

 

Step18: Give the Material Number and Click on Display

 

Step19: Modal Dialog Box is displayed with the required fields as shown below

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image