tag:blogger.com,1999:blog-1694435738834807392024-03-19T01:48:30.441-07:00ABAP GalleryABAP Tutorial, ABAP sample codealionzohttp://www.blogger.com/profile/14252828833239818110noreply@blogger.comBlogger29125tag:blogger.com,1999:blog-169443573883480739.post-63355468220241074432008-07-28T19:30:00.000-07:002008-07-28T20:20:32.103-07:00ABAP sample code provided by SAPSAP provide a alot of sample code.For demo about selection screen validation, dynamic selection screen, find them in DEMO_SEL_SCREEN*For demo about select data, dynamic condition, find them in in DEMO_SELECT*Demo about write output to list can be found in program DEMO_LIST*You can find also demo about object oriented programming, tree control, drap & drop menu (contect menu)To find all the demos,alionzohttp://www.blogger.com/profile/14252828833239818110noreply@blogger.com177tag:blogger.com,1999:blog-169443573883480739.post-6555861246384585092007-10-31T19:06:00.000-07:002007-10-31T19:21:43.231-07:00SAP and ABAP Tutorials in PDFHere are some SAP & ABAP Tutorials in PDF:Complete SAP 46c Tutorials IndexTutorial related to ABAPABAP Programming (BC-ABA)ALV Gird Control (BC-SRV-ALE)BC - ABAP DictionaryBC ABAP Workbench ToolsBC ABAP Workbench Tutorialalionzohttp://www.blogger.com/profile/14252828833239818110noreply@blogger.com42tag:blogger.com,1999:blog-169443573883480739.post-3298164064432774712007-09-03T23:45:00.000-07:002007-09-03T23:50:55.463-07:00Conversion routineWrite 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 conversion routinealionzohttp://www.blogger.com/profile/14252828833239818110noreply@blogger.com16tag:blogger.com,1999:blog-169443573883480739.post-13454244547682654102007-08-27T03:26:00.000-07:002008-11-12T19:51:09.702-08:00Screen PainterScreen 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 AttributesDefine screen title, define its type (normal, subscreen).2. Flow logicFlow logic control flow of program. The event block is introduced by the corresponding keyword statement, and alionzohttp://www.blogger.com/profile/14252828833239818110noreply@blogger.com32tag:blogger.com,1999:blog-169443573883480739.post-30825707256521258682007-08-23T21:23:00.000-07:002008-11-12T19:51:10.111-08:00Find out table source in SAPFind 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 field alionzohttp://www.blogger.com/profile/14252828833239818110noreply@blogger.com19tag:blogger.com,1999:blog-169443573883480739.post-85077657199785744872007-08-16T02:32:00.000-07:002007-09-02T21:48:14.566-07:00BDC (Batch Data Communication) Tutorial for Data TransferWhat is BDCBDC ( 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 UsesTypical 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 still inalionzohttp://www.blogger.com/profile/14252828833239818110noreply@blogger.com69tag:blogger.com,1999:blog-169443573883480739.post-17692063600950337722007-08-13T22:44:00.001-07:002007-08-13T23:01:30.100-07:00Site Map ABAP Sample CodeABAP Sample Code:ALVSimple ALVField Catalog in ALVChange Layout Format in ALVFTPFTPBusiness DocumentStore Document / File to SAPGet Document / File Stored in SAPSelection ScreenHelp Value Request (F4)Add Toolbar Button in Selection ScreenHide Parameter / Select Option in Selection ScreenTab Strip in Selection ScreenMiscellaneousDynamic Table Maintenance alionzohttp://www.blogger.com/profile/14252828833239818110noreply@blogger.com19tag:blogger.com,1999:blog-169443573883480739.post-71049605282160539472007-08-13T22:44:00.000-07:002007-08-27T03:36:12.350-07:00Site Map ABAP TutorialABAP Tutorial:Step by Step learning ABAPNew ABAP Trial Software AvailableData DictionaryMy first ABAP ProgramData DeclarationProcessing Internal TablesBDC Tutorial for Data TransferDebugging ABAP ProgramEvent in ABAP ReportFind out table source in SAPScreen Painteralionzohttp://www.blogger.com/profile/14252828833239818110noreply@blogger.com3tag:blogger.com,1999:blog-169443573883480739.post-11372767630740847332007-08-10T00:10:00.000-07:002007-08-10T00:13:03.209-07:00Event in ABAP ReportEvent 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 selection screen alionzohttp://www.blogger.com/profile/14252828833239818110noreply@blogger.com14tag:blogger.com,1999:blog-169443573883480739.post-6934465354218294072007-07-31T23:02:00.000-07:002007-08-01T00:40:47.827-07:00Tabstrip in selection screenTo define a tabstrip area with tab pages in selection screen, 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 ], ...alionzohttp://www.blogger.com/profile/14252828833239818110noreply@blogger.com4tag:blogger.com,1999:blog-169443573883480739.post-34815660806937542672007-07-26T23:29:00.000-07:002007-07-26T23:58:13.494-07:00Change layout format in ALVLayout 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......EXCEPTIONSprogram_error = 1OTHERS = 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 checkbox:1. insert newalionzohttp://www.blogger.com/profile/14252828833239818110noreply@blogger.com25tag:blogger.com,1999:blog-169443573883480739.post-63608142403259677522007-07-26T21:09:00.000-07:002007-07-26T21:45:16.654-07:00Field catalog in ALVField 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 function alionzohttp://www.blogger.com/profile/14252828833239818110noreply@blogger.com4tag:blogger.com,1999:blog-169443573883480739.post-77582759332997523552007-07-25T00:30:00.000-07:002007-07-25T01:27:37.599-07:00Hide parameter / select option in selection screenWe can Hide parameter / select option in selection screen 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 screen alionzohttp://www.blogger.com/profile/14252828833239818110noreply@blogger.com11tag:blogger.com,1999:blog-169443573883480739.post-61978247956907560092007-07-24T01:20:00.000-07:002008-11-12T19:51:10.431-08:00Add toolbar button on selection screenWe can add new toolbar (maximal 5) in ABAP report to make program more interactive to user on selection screen.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 53. Activate toolbar in selection screen.SELECTION-SCREEN FUNCTION KEY n.4. Check alionzohttp://www.blogger.com/profile/14252828833239818110noreply@blogger.com33tag:blogger.com,1999:blog-169443573883480739.post-17210437675091511482007-07-23T21:19:00.000-07:002008-11-12T19:51:10.795-08:00Debugging ABAP ProgramTo 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 ABAPInalionzohttp://www.blogger.com/profile/14252828833239818110noreply@blogger.com4tag:blogger.com,1999:blog-169443573883480739.post-44090903948338846522007-07-23T18:41:00.000-07:002007-07-23T19:20:17.545-07:00Performance Tuning - Operation on Internal TableIn 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 CriteriaBy default, read command on internal table will read it sequentially. The binary search algorithm helps faster search of a valuealionzohttp://www.blogger.com/profile/14252828833239818110noreply@blogger.com7tag:blogger.com,1999:blog-169443573883480739.post-13467288754018013302007-07-22T20:46:00.000-07:002007-07-23T00:18:43.480-07:00Help Value Request (F4)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 on alionzohttp://www.blogger.com/profile/14252828833239818110noreply@blogger.com11tag:blogger.com,1999:blog-169443573883480739.post-49414293257421078242007-07-20T03:29:00.000-07:002008-11-12T19:51:11.029-08:00New ABAP Trial Software Available !!!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! .Download ABAP Trial VersionTry to download it, and if it success, try to create your first ABAP program. Enjoy installing ABAP trial :)alionzohttp://www.blogger.com/profile/14252828833239818110noreply@blogger.com5tag:blogger.com,1999:blog-169443573883480739.post-25085165410516416612007-07-20T01:36:00.000-07:002007-07-25T02:56:23.725-07:00Get Document / File stored in SAPPrevious post: Store Document / File to SAPGet document / file stored in SAP Business Document.REPORT ZAALTES1 line-size 300.INCLUDE officeintegrationinclude. " used by DOI* Get descr_listTYPES: 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) TYPE Calionzohttp://www.blogger.com/profile/14252828833239818110noreply@blogger.com9tag:blogger.com,1999:blog-169443573883480739.post-37043623274675295842007-07-19T20:25:00.000-07:002008-11-12T19:51:11.279-08:00Store Document / File to SAP 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 of alionzohttp://www.blogger.com/profile/14252828833239818110noreply@blogger.com195tag:blogger.com,1999:blog-169443573883480739.post-6192185614453602492007-07-18T02:24:00.001-07:002008-11-12T19:51:11.610-08:00Customizing SAPIf you want to be a SAP consultant, customizing will be a knowledge you must have.Customizing covered following function:1. Define Organization StructureExample:Business Area (Finance Accounting)Maintain Storage Location (Material Management)2. Maintain Master DataExample:-Define Customer Group (Sales and Distribution)3. Rules:-Define required entry in each module4. Output Layout-Define output alionzohttp://www.blogger.com/profile/14252828833239818110noreply@blogger.com2tag:blogger.com,1999:blog-169443573883480739.post-22964885530615053742007-07-17T21:17:00.000-07:002007-08-31T02:59:55.312-07:00Step by step learning ABAPABAP 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 alionzohttp://www.blogger.com/profile/14252828833239818110noreply@blogger.com83tag:blogger.com,1999:blog-169443573883480739.post-91760148688937546782007-07-17T20:50:00.001-07:002007-09-10T20:31:40.847-07:00Dynamic Table MaintenanceIt 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 ITToolboxYou 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 alionzohttp://www.blogger.com/profile/14252828833239818110noreply@blogger.com10tag:blogger.com,1999:blog-169443573883480739.post-33042641852354904472007-07-17T20:50:00.000-07:002008-11-12T19:51:12.047-08:00FTPSAP 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 how to alionzohttp://www.blogger.com/profile/14252828833239818110noreply@blogger.com21tag:blogger.com,1999:blog-169443573883480739.post-29771859156699561942007-07-17T20:34:00.002-07:002007-07-27T00:03:19.657-07:00Simple ALVALV 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. Create alionzohttp://www.blogger.com/profile/14252828833239818110noreply@blogger.com12