Owner: ABAP Gallery URL:http://abap-gallery.blogspot.com Join Date: Sun, 22 Jul 2007 21:40:19 -0500 Rating:0 Site Description: ABAP Tutorial, ABAP Sample Code Site statistics:Click here
New ABAP Trial Software Available !!! 2007-07-20 05:29:00 If you are new to ABAP / SAP. You might find this link useful.
Download the latest version trial version of SAP NetWeaver 7.0 ABAP technology (SP12), including Web Dynpro for ABAP! .
https://www.sdn.sap.com/irj/sdn/abap
Try to download it, and if it success, try to create your first ABAP program.
Enjoy installing ABAP trial :) Read more:Trial
, Software
Get Document / File stored in SAP 2007-07-20 03:36:00 Previous post: Store Document / File to SAP
Get document / file stored
in SAP Business Document.
REPORT ZAALTES1 line-size 300.
INCLUDE officeintegrationinclude. " used by DOI
* Get descr_list
TYPES: BEGIN OF SOI_DOCUMENT_TYPE_DESCR,
DOCUMENT_TYPE TYPE SOI_DOCUMENT_TYPE, " prog id
TYPE_FULL_NAME(70) TYPE C, " full name
TYPE_SHORT_NAME(20)
Store Document / File to SAP 2007-07-19 22:25:00 To store document / image in SAP, we can use Business Document Navigator.
To go to the Business Document Navigator, choose Office -> Business Documents -> Documents -> Find (transaction code : OAOR).
In the upper part of the screen, the relevant documents, sorted by document type (the document types in turn belong to specified application objects) are displayed in the tree. The lower left part Read more:Store
Customizing SAP 2007-07-18 04:24:00 If you want to be a SAP consultant, customizing will be a knowledge you must have.
Customizing covered following function:
1. Define Organization Structure
Example:
Business Area (Finance Accounting)
Maintain Storage Location (Material Management)
2. Maintain Master Data
Example:
-Define Customer Group (Sales and Distribution)
3. Rules:
-Define required entry in each module
4. Output Layout
-
Step by step learning ABAP 2007-07-17 23:17:00 ABAP stands for Advanced Business Applicatian Programming. The ABAP programming language was originally used by SAP developers to develop the SAP R/3 platform. It was also intended to be used by SAP customers to enhance SAP applications – customers can develop custom reports and interfaces with ABAP programming. The language is fairly easy to learn for programmers but it is not a tool for direct
FTP 2007-07-17 22:50:00 SAP provide sample code to connect to FTP.
It provided in SAP function module, FTP_CONNECT (connect to FTP), FTP_COMMAND (send command by FTP), FTP_DISCONNECT (disconnect),FTP_R3_TO_SERVER (put file to FTP),FTP_SERVER_TO_R3 (get file from FTP).
Instead of writing a new code, I will try to give you explanation on SAP sample code.
I will explore program RSFTP002.
Program RSFTP002 demonstrate
Dynamic Table Maintenance 2007-07-17 22:50:00 It is a good sample of how to create dynamic table maintenance by utilized SAP function module "STC1_FULLSCREEN_TABLE_CONTROL".
I copy this code from ITToolbox
You can use it to replace funtion of SM31 with additional benefit.
1. Because it is written in as customer program we can add additional feature, for example change history.
2. There is no need to create screen maintenance for all table Read more:Dynamic
, Table
, Maintenance
Simple ALV 2007-07-17 22:34:00 ALV is very an useful tools in reporting. Just pass the data to ALV, than it will display interactive report easy to sort, filter, calculate total, etc.
There are two ALV model, list report (function REUSE_ALV_LIST_DISPLAY) and grid report (function REUSE_ALV_GRID_DISPLAY). Please read the function module documentation for complete guidance.
There are two main part of simple ALV report.
1. Read more:Simple
Processing Internal Tables 2007-07-17 22:34:00 Internal Table is a main part of ABAP programming. In ABAP, internal tables fulfill the function of arrays. It is a data that have a structure and could contain more than one row.
Please refer to Data declaration for creating an internal table.
These are how to process internal table.
1. Sort Internal Table
SORT inttab BY field1 field2 ... field-n.
2. Loop At internal Table
LOOP AT inttab. Read more:Processing
, Internal
, Tables
Data Declaration 2007-07-17 22:34:00 Declare single value variable:
Variable can be declared by two ways, first by declaring based on data type, second by declared it refer to table field.
Data d_data1 TYPE type. " berdasarkan type data
Data d_data2 LIKE customer-customerno. " refer ke field tertentu
Data types:
C (character)
N (numeric)
D (date)
T (Time)
X (byte / hexadecimal)
I (integer)
P (packed number)
F (floating point Read more:Declaration
my first ABAP program 2007-07-16 04:47:00 No, it's not a "hello world" program ;p
One of main job of an ABAPer is create ABAP report.
Report content 4 basic component.
1. Data declaration.
2. Selection screen.
3. Select Data.
4. Write Report.
I assume you already familiar with data dictionary. For an example, we have a table "SFLIGHT", with following fields:
1. CARRID (Airline carrier ID)
2. CONNID (Flight connection Id)
3. FLDATE (
Data Dictionary 2007-07-15 23:04:00 Data dictionary provide:
1. Table definition
2. Type definition
Data dictionary can be accessed by transaction code SE11. (SAP Menu->Tools->ABAP Workbench->Development->Data Dictionary
).
Table definition.
Display table definition.Go to Transaction Code SE11, enter table name (example: SFLIGHT), click Display.
You can assign the data type, length and short text in different ways:
1. You
Hide parameter / select option in selection screen 2007-07-25 02:30:00 We can Hide parameter / select option
in selectionscreen
dynamically by manipulating screen object.
SCREEN is like an internal table with a header line. However, you do not have to declare it in your program. Go to debugging mode and then view structure of screen.
You can modify SCREEN in your ABAP program during the PBO event of a screen. Its contents override the static attributes of the
Add toolbar button on selection screen 2007-07-24 03:20:00 We can add new toolbar (maximal 5) in ABAP report to make program more interactive to user on selectionscreen
.
Do following step.
1. Declare work area sscrfields.
TABLES: sscrfields.
2. Define text displayed in button
in initialization event.
INITIALIZATION.
MOVE 'This is button 1' TO sscrfields-functxt_0n." n = 1 up to 5
3. Activate toolbar in selection screen.
SELECTION-SCREEN FUNCTION
Debugging ABAP Program 2007-07-23 23:19:00 To go to ABAP debugging mode, activate ABAP debuggin then press enter. In ABAP report, usually debuggin mode started from selection screen, just before we enter execute command (F8).
There are two way to alternative way to activate debugging mode:
1. Type "/h" in command field (little box in upper left corner, where we usually type transaction code in it)
2. Go To System -> Utilities -> Debug Read more:Program
Performance Tuning - Operation on Internal Table 2007-07-23 20:41:00 In development server you may not aware of performance tuning on operation on internal table, but it could become a problem when you are working on internal table containing more 10 thousand rows.
These are tips to improve your program performance.
READ Table
WITH Criteria
By default, read command on internal table will read it sequentially. The binary search algorithm helps faster search of a Read more:Performance
, Tuning
, Operation
, Internal
Help Value Request (F4) 2007-07-22 22:46:00 This sample program demonstrate how to create "Help Value
Request". It will appear when user pressing F4 (help) on an input field to request list of available value.
To do this we are using function module F4IF_INT_TABLE_VALUE_REQUEST. It provide help value request with following feature:
1. single / multiple choice.
2. update screen without PBO, so it can be used to update more than one field
Change layout format in ALV 2007-07-27 01:29:00 Layout format
in ALV defined in structure IS_LAYOUT as importing structure of ALV REUSE_ALV_LIST_DISPLAY.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
......
is_layout
= wa_layout
......
EXCEPTIONS
program_error = 1
OTHERS = 2.
Commonly used field:
- IS_LAYOUT-ZEBRA: X=striped (zebra) pattern
- IS_LAYOUT-BOX_FIELDNAME: insert column checkbox for each row to select row.
How to inset Read more:Change
Field catalog in ALV 2007-07-26 23:09:00 Field catalog
containing descriptions of the list output fields. You can use fields of the catalog to determine the number format and column properties of the list to be displayed.
The field catalog contains more than 60 fields, some of which are only used internally. The field catalog is defined in the Data Dictionary through table type LVC_T_FCAT.
We can get field description by calling Read more:Field
Tabstrip in selection screen 2007-08-01 01:02:00 To define a tabstrip area with tab pages in selectionscreen
, use the following statements in your selection screen definition:
SELECTION-SCREEN: BEGIN OF TABBED BLOCK FOR LINES,
TAB () USER-COMMAND
[DEFAULT [PROGRAM ] SCREEN ],
TAB () USER-COMMAND
[DEFAULT [PROGRAM ] SCREEN ],
Event in ABAP Report 2007-08-10 02:10:00 Event in ABAP report determine process flow of a program. The events are triggered depended on the way the output is generated. They begin after event keyword and end when the next event reached.
Event keyword:
INITIALIZATION.
Occurs when report initialized.
We can use it to check user authorization or prepare output for selection screen.
AT SELECTION-SCREEN OUTPUT :
Occurs each time
BDC (Batch Data Communication) Tutorial for Data Transfer 2007-08-16 04:32:00 What is BDC
BDC ( Batch Data Communication ) is used for uploading mass data into SAP system. In SAP system BDC also referred to batch input or data tranfer.
Typical Uses
Typical uses of batch input include the one-time import of data from a legacy system into a newly installed R/3 System. Another typical use is for periodic transfers of data from external systems or legacy systems that are Read more:Tutorial
Site Map ABAP Sample Code 2007-08-14 00:44:00 ABAP Sample
Code:
ALV
Simple ALV
Field Catalog in ALV
Change Layout Format in ALV
FTP
FTP
Business Document
Store Document / File to SAP
Get Document / File Stored in SAP
Selection Screen
Help Value Request (F4)
Add Toolbar Button in Selection Screen
Hide Parameter / Select Option in Selection Screen
Tab Strip in Selection Screen
Miscellaneous
Dynamic Table Maintenance
Site Map ABAP Tutorial 2007-08-14 00:44:00 ABAP Tutorial
:
Step by Step learning ABAP
New ABAP Trial Software Available
Data Dictionary
My first ABAP Program
Data Declaration
Processing Internal Tables
Debugging ABAP Program
Event in ABAP Report
Screen Painter 2007-08-27 05:26:00 Screen Painter
is an ABAP Editor tools allowed us to create dialog screen. Dialog screen usually created as a screen to catch user input. It can be accessed by tcode SE51.
Screen Painter Architecture:
1. Screen Attributes
Define screen title, define its type (normal, subscreen).
2. Flow logic
Flow logic control flow of program. The event block is introduced by the corresponding keyword
Find out table source in SAP 2007-08-23 23:23:00 Find out where the data is stored in SAP is a very challenging task. In some cases, we can find it easily in few minutes, but in another case it takes more then one day to find it.
I will try to give tips to find it out step by step.
1. Technical Information.
Put cursor in screen field, press F1, it will show description about this field. Then press "Technical Information" button, you can get
Conversion routine 2007-09-04 01:45:00 Write this simple code.
REPORT ZFIELDCONV.
data: d_auart LIKE vbak-auart.
d_auart = 'TA'.
WRITE d_auart.
What the result output on screen do you expect, "TA"? No, the result will be "OR".
The result comes from conversion routine of its domain. In SE11 open table VBAK, find field AUART, double click to go to data element AUART, then double click to open domain AUART. You will see its Read more:Conversion
SAP and ABAP Tutorials in PDF 2007-10-31 21:06:00 Here are some SAP & ABAP Tutorials
in PDF:
Complete SAP 46c Tutorials Index
Tutorial related to ABAP
ABAP Programming (BC-ABA)
ALV Gird Control (BC-SRV-ALE)
BC - ABAP Dictionary
BC ABAP Workbench Tools
BC ABAP Workbench Tutorial