Owner: SAP ABAP Programming URL:http://allsapabap.blogspot.com Join Date: Mon, 05 May 2008 12:09:22 -0500 Rating:0 Site Description: This is a Blog about the world of SAP and my path to a successful SAP consultant career. Site statistics:Click here
BUFFERING IN SAP ABAP 2008-06-07 23:58:24 Buffer Components:DefinitionAn SAP buffer consists of the following parts:Mode tableThe mode table resides in shared memory and tells you which pool contains which shared memory areas. The mode table is part of the common information on the shared memory areas that are accessed by the work processes.For example, SAP Key 1 with Mode = 0, instructs the OS kernel to extract this buffer from the defau
BDC AND LSMW COMPARISION 2008-06-22 07:44:36 Batch Data Communication (BDC) is the oldest batch interfacing technique that SAP provided since the early versions of R/3. BDC is not atypical integration tool, in the sense that, it can be only be used for uploading data into R/3 and so it is not bi-directional.BDC works on the principle of simulating user input for transactional screen, via an ABAP program. Typically the input comes in the form
TABLE CONTROL IN BDC 2008-06-22 07:44:05 Steploop and table contol is inevitable in certain transactions. When we run BDC for such transactions, we will face the situation: how many visible lines of steploop/tablecontrol are on the screen?Although we can always find certain method to deal with it, such as function code 'NP', 'POPO', considering some extreme situation: there is only one line visible one the screen, our BDC program should
BDC 1 2008-06-22 07:43:31 (1) BATCH INPUT CONCEPTS:The SAP System offers two primary methods for transferring data into the System from other SAP Systems and non-SAP Systems. These two methods are collectively called "batch input" or "batch data communication."basic technique for data transfer with batch input.Both batch input methods work by carrying out normal SAP transactions, just as a user would. However, batch-input
BDC 2 2008-06-22 07:42:45 B.MANAGING BATCH-INPUT SESSION.Batch input sessions enter data non-interactively into an R/3 System. Batch input is typically used to transfer data from non-R/3 Systems to R/3 Systems or to transfer data between R/3 Systems.This section describes how to manage batch input sessions.To reach the main menu of the batch input system, select System --> Services --> Batch input.Overview and Conceptsa)
BDC 3 2008-06-22 07:41:47 (3) WRITING A DATA TRANSFER PROGRAM:The data transfer program is responsible for doing the following:Converting the data that is to be transferred into the SAP System as required by the SAP data structure or transactions that you are using.The data structure may be generated from the standard SAP data structures (see Generating an SAP Data Structure(5)). This is required if you are working with a
BDC 4 2008-06-22 07:41:05 (5) GENERATING AN SAP DATA STRUCTURE:You can use the ABAP/4 Dictionary to generate data structures for SAP tables in any of the following programming languages:CobolPL/1CYou can then incorporate these data structures in your data conversion program.For most of the standard SAP batch input programs, SAP has also provided special data structure identifiers. With such an identifier, you can generate
BDC 5 2008-06-22 07:39:58 (11) SELECTING A BATCH-INPUT METHOD:When you generate batch input in ABAP/4, you have three options for submitting the data to batch input processing. Only the first two methods can be recommended without reservation. The third method, by way of CALL DIALOG, is outmoded. CALL DIALOG Is less comfortable than the other methods. You should use it only if you must.Create a session on the batch input q
BDC 6 2008-06-22 07:38:58 (13) PROGRAMMING TECHNIQUES :ENTERING DATA AND EXECUTINGFUNCTIONS:a)Sample Code: Filling the BDCDATA Structureb)Identifying a Screenc)Entering a Value in a Fieldd)Executing a Functione)Entering Values in Loop Fieldsf)Positioning the Cursorg)Ending a Transactiona)Sample Code: Filling the BDCDATA Structure:The following form routine shows how the BDCDATA structure should be filled. Build the struc
BDC 7 2008-06-22 07:37:58 (14) CREATING BATCH INPUT SESSIONS:One of the two recommended ways to process batch input data is to store the data in a batch input session. This session can then be run in the SAP System to enter the batch input data into the system.In general, preparing a session is the best and most comfortable way to process batch input data.However, you may wish to use the alternate method, CALL TRANSACTION
BDC 8 2008-06-22 07:37:27 (18) PROCESSING BATCH INPUT SESSIONS:When you create a batch input session, it remains in the batch input queue until it is explicitly started. Session processing can be started in two ways:An on-line user can start the session using the batch input menu options. (To access the batch input options, choose System-->Services-->Batch Input.)You can submit the background job RSBDCSUB to start a sessio
BDC 9 2008-06-22 07:36:55 Error Analysis and Restart CapabilityUnlike "classical" batch input processing using sessions, CALL TRANSACTION USING processing does not provide any special handling for incorrect transactions. There is no restart capability for transactions that contain errors or produce update failures.You can handle incorrect transactions by using update mode S (synchronous updating) and checking the return co
BDC 10 2008-06-22 07:36:15 (23) BATCH INPUT RECORDING FOR TRANSACTION RUNS:This section tells you how to use the recording functions of batch input.For more information, refer to these sections:a)Recording featuresb)Sample programc)Special recording features(24) BATCH INPUT AUTHORIZATIONS:You need no special authorization -- other than the ABAP/4 run time authorization (authorization object S_PROGRAM -- to run a program th
ABAP BDC TABLE CONTROL 2008-06-22 07:35:49 BDC table control is an area on the screen in which you can display data in tabular form. You process it using a loop. Table controls are comparable to step loop tables. While a table control consists of a single definition row, step loop blocks may extend over more than one row. Table controls are more flexible than step loops, and are intended to replace themWhen you need to handle a scenario li
ABAP ALV IN BRIEF 2008-06-22 07:34:54 ABAP List Viewer The common features of report are column alignment, sorting, filtering, subtotals, totals etc. To implement these, a lot of coding and logic is to be put. To avoid that we can use a concept called ABAP List Viewer (ALV). Using ALV, we can have three types of reports: 1. Simple Report 2. Block Report 3. Hierarchical Sequential Report There are some func
ALV DOCUMENTATION COMPLETE 2008-06-22 07:33:47 ALV (ABAP LIST VIEWER):Sap provides a set of ALV (ABAP LIST VIEWER) function modules, which can be put into use to embellish the output of a report.This set of ALV functions is used to enhance the readability and functionality of any report output. Cases arise in sap when the output of a report contains columns extending more than 255 characters in length.In such cases, this set of ALV functions c
LESSON 34 ALV GRID CONTROL 2008-06-22 07:30:55 ALV GRID CONTROL:This task is performed by the SAP Control Framework.The R/3 System allows you to create custom controls using ABAP Objects. The application server is the Automation Client, which drives the custom controls (automation server) at the front end.If custom controls are to be included on the frontend, then the SAPGUI acts as a container for them.Custom controls can be ActiveX Controls
ALV IN BRIEF 2008-06-22 07:29:28 IntroductionHere is the definition for ALV from SAP Help: “The ALV Grid control is a flexible tool for displaying lists.The tool provides common list operations as generic functions and can be enhanced by self-defined options.”The ALV Grid control is used to build non-hierarchical, interactive, and modern-design lists. As a control, it is a component that is installed on the local PC.The ALV G
ALV REPORT SAMPLE CODE CONTACT RENEWAL DETIALS 2008-06-20 01:49:38 *----------------------------------------------------------------------** Contract Renewal Details **----------------------------------------------------------------------************************************************************************** Description: The contract details of the customers in a particular ** sales area are displayed.
REPLACE COMMENTARY IN ALV 2008-06-20 01:48:17 1 IntroductionThe ALV provides Events, which allows users to add information to the List at different rendering time points.Goals of the ALV Form:• UI independent information for rendering• The information is displayed in agreement with the SAP agronomical guidelineThe base Element of the ALV Form is the abstract class CL_SALV_FORM_ELEMENT.This base Element (CL_SALV_FORM_ELEMENT) describes the
ALV WITH POV SAMPLE CODE 2008-06-20 01:47:32 ****EXECUTABLE PROGRAM ON ALV****REPORT Y_MALVPOV .****TABLE WORK AREATABLES:KNA1,VBAK.***SELECTION SCREEN***PARAMETERS:P_KUNNR LIKE KNA1-KUNNR DEFAULT 1001.SELECT-OPTIONS:S_VBELN FOR VBAK-VBELN.****DEFINE INTERNAL TABLE***DATA:BEGIN OF IT_ITAB OCCURS 0, VBELN LIKE VBAK-VBELN, END OF IT_ITAB.***DEFINE INTERNAL TABLE WITH HEADER LINE****DATA:IT_JTAB LIKE VBAK OCCURS 0 WITH HEADER LINE.****PROVI
ALV HIRACHICAL REPORT SAMPLE CODE 2008-06-20 01:46:55 TYPE-POOLS: slis.TABLES : ekko, ekpo.DATA : BEGIN OF i_ekko OCCURS 0, ebeln LIKE ekko-ebeln, ernam LIKE ekko-ernam, bsart LIKE ekko-bsart, var1, END OF i_ekko.DATA : BEGIN OF i_ekpo OCCURS 0, ebeln LIKE ekpo-ebeln, ebelp LIKE ekpo-ebelp, matnr LIKE ekpo-matnr, aedat LIKE ekpo-aedat, var2, END OF i_ekpo.DATA : BEGIN OF i_final OCCURS 0, ebeln LIKE ekk
ALV LIST DISPLAY SAMPLE CODE 2008-06-20 01:46:09 TYPE-POOLS:SLIS.TABLES:EKKO.SELECT-OPTIONS:SO_EBELN FOR EKKO-EBELN.DATA:BEGIN OF IT_EKKO OCCURS 0, EBELN LIKE EKKO-EBELN, "PURCHASE DOCUMENT NUMBER BUKRS LIKE EKKO-BUKRS, "COMPANY CODE BSTYP LIKE EKKO-BSTYP, "PURCHASE DOCUMENT CATEGORY BSART LIKE EKKO-BSART, "PUCHASE DOCUMENT TYPE END OF IT_EKKO.*FIELD CATALOG TABLE DECLARATION.DATA:I_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV WIT
ALV LAYOUT DISPLAY SAMPLE CODE 2008-06-20 01:45:30 TYPE-POOLS:slis.TABLES:ekko.SELECT-OPTIONS:so_ebeln FOR ekko-ebeln.PARAMETERS: VARIANT LIKE DISVARIANT-VARIANT.DATA:BEGIN OF it_ekko OCCURS 0, ebeln LIKE ekko-ebeln, "PURCHASE DOCUMENT NUMBER bukrs LIKE ekko-bukrs, "COMPANY CODE bstyp LIKE ekko-bstyp, "PURCHASE DOCUMENT CATEGORY bsart LIKE ekko-bsart, "PUCHASE DOCUMENT TYPE END OF it_ekko.*FIELD CATALOG AND EVENT CATALOG
ALV BLOCK SAMPLE REPORT 2008-06-20 01:44:46 TYPE-POOLS: slis.TABLES : ekko, ekpo.DATA : BEGIN OF i_ekko OCCURS 0, ebeln LIKE ekko-ebeln, ernam LIKE ekko-ernam, bsart LIKE ekko-bsart, var1, END OF i_ekko.DATA : BEGIN OF i_ekpo OCCURS 0, ebeln LIKE ekpo-ebeln, ebelp LIKE ekpo-ebelp, matnr LIKE ekpo-matnr, aedat LIKE ekpo-aedat, var2, END OF i_ekpo.DATA : BEGIN OF i_final OCCURS 0, ebeln LIKE ekk
ALV CHECK BOXES SAMPLE CODE 2008-06-20 01:43:44 REPORT zalv5 NO STANDARD PAGE HEADING.*Description-----------------------------------------------------------** TOPICS INTRODUCED:* 1. Learn about the ‘Standard’ PF-Status that comes as default.* 2. Exclude function codes from ‘Standard’ PF-Status and customize it.*----------------------------------------------------------------------*TYPE-POOLS: slis.DATA: BEGIN OF i_data OCCURS 0,qmnum L
TABLE TYPES IN SAP 2008-07-10 08:06:08 TABLE TYPES IN SAP:Choosing a Table Type The table type (and particularly the access method) that you will use depends on how the typical internal table operations will be most frequently executed. Standard tables This is the most appropriate type if you are going to address the individual table entries using the index. Index access is the quickest possible access. You should fill a standard ta
TYPES OF VIEWS IN SAP 2008-07-10 08:05:12 TYPES OF VIEWS IN SAP: Views :Data about an application object is often distributed on several tables. By defining a :view, you can define an application-dependent view that combines this data. The structure of such a view is defined by specifying the tables and fields used in the view. Fields that are not required can be hidden, thereby minimizing interfaces. A view can be used in ABAP program
ABAP DATA BASE UPDATES COMPLETE 2008-07-10 08:04:28 OVERVIEW: DATABASE UPDATES:You can update databases either using ABAP's Open SQL commands, or with the database-specific commands of your database's Native SQL command set.You can access ABAP cluster databases using special ABAP commands.You can access the data in database tables using the Open SQL commands. The command set includes operations of the Data Manipulation Language (DML). The Data Defi
SAP LOCK CONCEPT 2008-07-10 08:03:42 SAP LOCK CONCEPT:If several users are competing to access the same resource or resources, you need to find a way of synchronizing the access in order to protect the consistency of your data.Example: In a flight booking system, you would need to check whether seats were still free before making a reservation. You also need a guarantee that critical data (the number of free seats in this case)