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 - Variable Declarations-
 
Page 12 Of 13
 

Variable Declarations

As we use various variables and constants in our code, double click them to create their declarations in the top include of the transaction, i.e MZTRYTOP. Finally this top include will look something like this ... 

MZTRYTOP 

Tables : ztryemp,

                  Ztrydept,

                  Ztryrate,

                  Ztrytxn.

 

Data :     t_ztryemp like ztryemp,

t_ztrydept like ztrydept,

t_ztryrate like ztryrate,

t_ztrytxn like ztrytxn.

               

                Constants :            c_x(1) type c value ‘X’,

                                                c_0(1) type c value ‘0’,

c_save(4) type c value ‘SAVE’,

                                                c_exit(4) type c value ‘EXIT’,

                                                c_modify(4) type c value ‘MODI’,

                                                c_delete(4) type c value ‘DELE’,

                                                c_back(4) type c value ‘BACK’,

                                                c_cancel(4) type c value ‘CANC’,

                                                c_digits(10) type c value ‘0123456789’,

c_alphabet(28) type c value ‘ ABCDEFGHIJKLMNOPQRSTUVWXYZ’.

 

 

                Data :     v_date like sy-datum,

                                V_emp_exist(1) type c,

                                V_empno like ztryemp-empno.

 

Final Step – Assign Transaction Code and IT IS READY TO RUN !!!!!!

 
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.