Owner: ALL SAP ABAP PROGRAMMING URL:http://all-sap-abap.blogspot.com Join Date: Wed, 01 Oct 2008 01:56:47 -0500 Rating:0 Site Description: all sap,abap programming,alv,User,Customer Exits,ale,idoc,edi,badi,bapi,Reports,Bdc,Scripts,Smart Forms. Site statistics:Click here
ABAP ALV REPORT SAMPLE CODE CONTACT RENEWAL DETIALS 2008-10-01 00:19:28 *----------------------------------------------------------------------** Contract Renewal Details **----------------------------------------------------------------------************************************************************************** Description: The contract details of the customers in a particular ** sales area are displayed.
ABAP REPLACE COMMENTARY IN ALV 2008-10-01 00:18:45 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
ABAP ALV WITH POV SAMPLE CODE 2008-10-01 00:18:02 ****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
ABAP ALV HIRACHICAL REPORT SAMPLE CODE 2008-10-01 00:17:32 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
ABAP ALV LIST DISPLAY SAMPLE CODE 2008-10-01 00:17:05 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
ABAP ALV LAYOUT DISPLAY SAMPLE CODE 2008-10-01 00:16:37 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
ABAP ALV BLOCK SAMPLE REPORT 2008-10-01 00:16:07 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
ABAP ALV CHECK BOXES SAMPLE CODE 2008-10-01 00:15:36 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
ABAP ALV INTERACTIVE REPORT SAMPLE CODE 2008-10-01 00:15:03 TYPE-POOLS: SLIS.*type declaration for values from ekkoTYPES: BEGIN OF I_EKKO,EBELN LIKE EKKO-EBELN,AEDAT LIKE EKKO-AEDAT,BUKRS LIKE EKKO-BUKRS,BSART LIKE EKKO-BSART,LIFNR LIKE EKKO-LIFNR,END OF I_EKKO.DATA: IT_EKKO TYPE STANDARD TABLE OF I_EKKO INITIAL SIZE 0,WA_EKKO TYPE I_EKKO.*type declaration for values from ekpoTYPES: BEGIN OF I_EKPO,EBELN LIKE EKPO-EBELN,EBELP LIKE EKPO-EBELP,MATNR LIKE EKP Read more:INTERACTIVE
ABAP ALV DOUBLE CLICK SAMPLE CODE 2008-10-01 00:14:19 REPORT ALVINTERSAMPLE NO STANDARD PAGE HEADING LINE-SIZE 650.TYPE-POOLS: SLIS.*type declaration for values from ekkoTYPES: BEGIN OF I_EKKO,EBELN LIKE EKKO-EBELN,AEDAT LIKE EKKO-AEDAT,BUKRS LIKE EKKO-BUKRS,BSART LIKE EKKO-BSART,LIFNR LIKE EKKO-LIFNR,END OF I_EKKO.DATA: IT_EKKO TYPE STANDARD TABLE OF I_EKKO INITIAL SIZE 0,WA_EKKO TYPE I_EKKO.*type declaration for values from ekpoTYPES: BEGIN OF I_EK
ABAP ALV SIMPLE SAMPLE CODE 2008-10-01 00:13:35 BCALV_DEMO_HTMLBCALV_FULLSCREEN_DEMO ALV Demo: Fullscreen ModeBCALV_FULLSCREEN_DEMO_CLASSIC ALV demo: Fullscreen modeBCALV_GRID_DEMO Simple ALV Control Call Demo ProgramBCALV_TREE_DEMO Demo for ALV tree controlBCALV_TREE_SIMPLE_DEMOBC_ALV_DEMO_HTML_D0100*data definitiontables:marav. "Table MARA and table MAKT*---------------------------------------------------------------------** Data to be displa
ABAP ALV COLURING SAMPLE CODE 2008-10-01 00:13:01 REPORT zalv.****************************************************************** Use of colours in ALV grid (cell, line and column) ******************************************************************* TableTABLES : mara.* TypeTYPES : BEGIN OF ty_mara, matnr LIKE mara-matnr, matkl LIKE mara-matkl, counter(4) TYPE n, free_text(15) TYPE c,
ABAP ALV LIST USING OO STYLE SAMPLE CODE 2008-10-01 00:12:18 1. Create a Control (for Custom and Split Containers only)2. Instantiate a Container Object (in case of Custom and Split Containers, specify the control which is created by us in Screen painter) CREATE OBJECT3. Instantiate an Object of the kind of report that has to be displayed (List, Grid or Tree). CREATE OBJECT . Here we need to specify the Parent Container as the so that it sits in that conta
ABAP ALV HIRARCHIAL VIEWER Report Sample Code 2008-10-01 00:11:47 ****EXE PROGRAM-****REPORT ZREPORT .***TABLE WORK AREA****TABLES:KNA1,VBAK.***INTERNAL TABLE***DATA:ITAB TYPE VBAK OCCURS 0,****LOGIC FOR CUTOM CONTROL OF SCREEN 100 ****CONTAINER TYPE SCRFNAME VALUE 'LVCONTROL',CUST TYPE REF TO CL_GUI_CUSTOM_CONTAINER,TREE TYPE REF TO CL_GUI_ALV_TREE_SIMPLE,CL_GUI_ALV_TREE_SIMPLE,FCAT TYPE LVC_T_FCAT,***DECLARE FOR THE INTERNL TABLE BODY AND WORK AREA***SORT_B TY Read more:Sample
Adapters in SAP XI Introduction ABAP 2008-10-01 00:09:10 “One that adapts, such as a device used to effect operative compatibility between different parts of one or more pieces of apparatus.” (Dictionary definition).An XI Adapter enables compatibility between the XI Integration Server and an application system As such, the use of the XI Integration Server in conjunction with selected adapters enables the compatibility between heterogeneous business Read more:Introduction
SAP XI ADAPTER ENGINE ABAP 2008-10-01 00:08:37 The J2EE-based Adapter Engine provides you with various adapters that you can use to connect external systems to your Integration Engine. You can use these adapters to convert XI Protocolbased messages (SOAP /attachments over HTTP) to the specific protocols and formats of the respective external systems and the other way around.Besides the J2EE-based Adapter Engine, you can also use the plain J2SE
SAP XI Adapters Cental and Local ABAP 2008-10-01 00:08:06 Central AE is installed by default.Any number of local AEs can be installed. The local AE needs its own instance of the J2EE engine. The local AE can reside on any remote hosts, and several local AEs can even coexist on the same host (even on the Integration Server host).Many factors come into play when making a decision to use the central or local AE The primary reason for using a local AE is the Read more:Local
SAP XI CONNECTIVIY ABAP 2008-10-01 00:07:18 The choice of adapters vs proxies comes into play when connecting SAP applications Before WebAS 6.20 the only connectivity option in/out of the SAP system is RFC/BAPI/IDoc Starting with the WebAS 6.10 the native HTTP connectivity has been added to the basis layer Starting with the WebAS 6.20, each application system has its own local integration engine and is therefore able to connect to XI via pr
ERP SAP XI ADAPTER ABAP 2008-10-01 00:06:29 “One that adapts, such as a device used to effect operative compatibility between different parts of one or more pieces of apparatus.” (Dictionary definition).An XI Adapter enables compatibility between the XI Integration Server and an application system As such, the use of the XI Integration Server in conjunction with selected adapters enables the compatibility between heterogeneous business
SAP ALE ABAP DETIAL 2008-10-17 23:56:11 ALEReasons for Distributing Business FunctionsIn a modern company, the flows of logistics and information between the various organizational units are likely to be sizable and complex. One reason for this is the adoption of new management concepts like "lean production".Many previously centralized responsibilities are now being assigned to the organizational units that are directly linked to the r
SAP ABAP ALE IDOC'S 2008-10-17 23:55:31 IDoc Interface / Electronic Data InterchangePurposeThe IDoc Interface is used to exchange business data between two different systems.The IDoc interface consists of the definition of a data structure and the processing logic for this data structure.The data structure is the IDoc. The systems involved must both recognize the data format used to exchange the data. IDocs allow exception handling to b
SAP - DIFFERENCE BETWEEN CONVERSION AND INTERFACE 2008-10-17 23:54:52 DIFFERENCE BETWEEN CONVERSION AND INTERFACE:A Conversion means data that is converted from one format to another format and from one system to another.So when you first implement SAP, you are actually replacing some of your legacy systems, but you are not completely trashing the data. You still need some of that data from the systems that are being replaced. So you pull the data out of your legacy
BAPI AND IDOC ALE 2008-10-17 23:54:26 ALEALE is SAP proprietary technology that enables data communications between two or more SAP R/3 systems and/or R/3 and external systems. When a new enterprise resource planning (ERP) solution such as R/3 is implemented, companies have to interface the ERP system with legacy systems or other ERP systems.ALE provides intelligent mechanisms where by clients can achieve integration as well as distri
SAP ABAP MESSAGE CONTORL 2008-10-17 23:53:24 Message Control is a cross application component used as a service program in several areas. The biggest application is in pricing.The basic concept behind message control is to generate and manage outputs from an application and control their timing and medium of exchange.The Benefits of Message Control.• Disconnecting the process of creating an application document from the process of generati
SAP IDOC'S IN ABAP INTRODUCTION 2008-10-17 23:52:46 IDocs are SAP’s file format to exchange data with a foreign system.IDocs are an ASCII file format to exchange data between computers; the format is chosen arbitrarily .IDocs are similar to segmented files; they are not a description language like ANSI X.12, EDIFACT or XML.The IDoc contents are processed by function modules, which can be assigned in customizing.IDocs are structured ASCII files (o
SAP ABAP IDOC'S OUTLOOK 2008-10-17 23:52:18 IDocs are basically a small number of records in ASCII format, building a logicalentity. It makes sense to see an IDoc as a plain and simple ASCII text file, even if itmight be transported via other means.Any IDoc consists of two sections:the control recordwhich is always the first line of the file and provides the administrative information.the data record which contains the application dependent
SAP ABAP IDOC PROCESSING 2008-10-17 23:51:47 Creating and processing IDocs is primarily a mechanical task, which is certainly true for most interface programming. We will show a short example that packs SAP R/3 SAPscript standard text elements into IDocs and stores them.Outbound IDocs from R/3 are usually created by a function module. This functionmodule is dynamically called by the IDoc engine. A sophisticated customisingdefines the conditi
SAP ABAP IDOC'S BASIC TOOLS I 2008-10-17 23:51:18 There are several common expressions and methods that you need to know, when dealingwith IDoc.The message type defines the semantic context of an IDoc. The message type tellsthe processing routines, how the message has to be interpreted.The same IDoc data can be sent with different message types. E.g. The same IDocstructure which is used for a purchase order can also be used for transmitting a sal
SAP ABAP IDOC'S BASIC TOOLS II 2008-10-17 23:50:43 Creating an IDoc Segment WE31:The segment defines the structure of the records in an IDoc. They are defined with transaction WE31.We will define a structure to send a text from the text database.Transaction WE31 calls the IDoc segment editor. The editor defines the fields of asingle segment structure. The thus defined IDoc segment is then created as a datadictionary structure. You can view the cre
SAP ABAP IDOC'S INBOUND BASIC TOOLS III 2008-10-17 23:49:46 The declaration of valid combinations is done to allow validation, if the system canhandle a certain combination.The combination of message type and IDoc type determine the processing algorithm. This isusually a function module with a well defined interface or a SAP business object and is set upin table EDIFCT.The entry made here points to a function module which will be called when the IDocis to