Designing SAP Transactions
Content
Introduction
SAP Dynpros
Screen Elements, Fields and Layouts
Flow Logic
Example Transaction Code
Example - Define Screens
Example - Write Flow Logic
Example - PBO
Example - PAI
Example - Forms
Example - Validating Fields
Example - Variable Declarations
Assigning Transaction Codes
  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

 

Employee Number  
     

 

 

 

EXIT

ENTER RECORD

  

 

 

 

 

 

 

Screen 200

 Employee Number  

Employee Name          

Address1                    

Address2                    

Address3                    

Phone                          

Department                 

Designation                  

Basic Salary                

Valid From                  

           

 

 

EXIT

SAVE

MODIFY

DELETE

  

 

 

 

 

 

 

 

 

 

 

 

 

 

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

 
Stats Box
Vendor Listings (9)
Jobs (3)
Resumes (3)
Tutorials (18)
Articles (22)
Code Snippets (1)
CBTs (17)
Books (4)
Online Training (15)
Latest 5 Tutorial
SAPscript
SAP Mobile Engine
Integrating XML into SAP Business Connector
Lotus Notes Integration
SAP Data Archiving
 
Copyright © 2007 SapDox.com. All rights Reserved.