thespot4sap.com independent sap information
 

get SAP Access - pay monthly

  Online SAP Training    SAP Jobs    SAP Tutorials    SAP CBT    Articles    Forums   SAP Resume
  SAP Access    SAP Books    Links     Vendor Directory     Submit Content    Search

New Page 1

Previous Page

Next Page

Designing SAP Transactions
Example Transaction Code

Page 5 of 13

Sample Code For Transaction ZTRY

Create the Base Module Pool

Invoke SE80 to decide the program to be linked to the transaction

Customer dialog programs should begin with SAPMZ or SAPMY

Lets name the program SAPMZTRY.

Do not forget to give the type as M – module pool

SAP provides some standard include in this main program

Program sapmztry.

Include mztrytop         .           (include for data declarations)

Include mztryo01.                   (include for PBO modules)

Include mztryi01.                    (include for PAI modules)

Include mztryf01.                    (include for subroutines)

Create the required Screens

We will create 2 screens for our transaction as shown below

 Screen 100

Text Box:  
Employee Number  
      
 
 
 
Text Box: EXIT
Text Box: ENTER RECORD

  

 

 

 

 

 

Screen 200

Text Box:  Employee Number   
Employee Name           
Address1                     
Address2                     
Address3                     
Phone                           
Department                  
Designation                   
Basic Salary                 
Valid From                   
            
 
 
Text Box: EXIT
Text Box: SAVE
Text Box: MODIFY
Text Box: DELETE

  

 

 

 

 

 

 

 

 

 

 

 

 

Invoke transaction SE51 and create both the screens for the program SAPMZTRY. The screen numbers should be given as 100 and 200.

Next Page

Previous Page

 

New Page 1

 

 


About Us   Contact Us   Privacy   Disclaimer   Feedback   Email Discussion   Newsletter  

Copyright © - Independent SAP Information
Find a Bed and Breakfast