Tuesday, March 11, 2008

Designing SAP Transactions Example Transaction Code

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 ………………

Enter Record


Exit





Screen 200



Address1


Address2


Address3


Phone


Department


Designation


Basic Salary


Valid From


SAVE

EXIT

MODIFY

DELETE

No comments:

Tutorials on SAP-ABAP

Adobe Interactive Forms Tutorials

Business Server Pages (BSP)

Userexits/BADIs

Web Dynpro for ABAP (Step by step procedure for web dynpro,Tutorials on Web Dynpro,)

ALV Tutorials

Blog Archive

goodsites