Monday, March 17, 2008
SAP ABAP Module Pool Programming Tutorial Part 1
SAP ABAP Tutorial: Module Pool Programming. Part 1
Related Transaction Codes:
SE51: Screen Painter Initial Screen
SE41: Menu Painter Initial Screen
SE38: ABAP Editor Initial Screen
SE80: Object Navigator
In this tutorial we will explore module pool programming. We will create a sales order.
We will combine the Initial screen and the Overview Screen of Transaction VA01 Create Standard Order into one screen.
We will use the following BAPI to create the Sales Order
BAPI_SALESORDER_CREATEFROMDAT1
The following fields will be updated.
Order Type OR
Sales Org 1000
Dsitribution Channel 10
Division 00
Sold-to Party 7777
Ship-to Party 7777
Purch Ord No 15493
Material y-351
Order Quantity 10
We will now proceed and create the main program.
Run Transaction SE80 and create a program 'ZSALESORDSCREEN'. First just create this program save and activate.
To do so in the dropdown box select Program and type the name 'ZSALESORDSCREEN' in the filed below and hit enter.
You will see a prompt that says 'Program does not exist' do you want to create a new object?
Say yes.
Create a program with TOPINCLUDE, give an appropriate name to the TOPINCLUDE and save the program.
See SAP ABAP Tutorial: Module Pool Programming. Part 2
Related Transaction Codes:
SE51: Screen Painter Initial Screen
SE41: Menu Painter Initial Screen
SE38: ABAP Editor Initial Screen
SE80: Object Navigator
In this tutorial we will explore module pool programming. We will create a sales order.
We will combine the Initial screen and the Overview Screen of Transaction VA01 Create Standard Order into one screen.
We will use the following BAPI to create the Sales Order
BAPI_SALESORDER_CREATEFROMDAT1
The following fields will be updated.
Order Type OR
Sales Org 1000
Dsitribution Channel 10
Division 00
Sold-to Party 7777
Ship-to Party 7777
Purch Ord No 15493
Material y-351
Order Quantity 10
We will now proceed and create the main program.
Run Transaction SE80 and create a program 'ZSALESORDSCREEN'. First just create this program save and activate.
To do so in the dropdown box select Program and type the name 'ZSALESORDSCREEN' in the filed below and hit enter.
You will see a prompt that says 'Program does not exist' do you want to create a new object?
Say yes.
Create a program with TOPINCLUDE, give an appropriate name to the TOPINCLUDE and save the program.
See SAP ABAP Tutorial: Module Pool Programming. Part 2
Subscribe to:
Post Comments (Atom)
ABAP TIPS
|
Always use Pretty Printer and Extended Program Check before releasing the code. Do not leave unused code in the program. Comment the code thoroughly. Align the comments and the Code. Follow the SAP Standards and SAP Best Practices guidelines. It’s a good practice to take a dump of the code on your local drive. |
No comments:
Post a Comment