<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-9192338957519088277</id><updated>2012-02-16T19:05:22.038-08:00</updated><category term='ABAP BDC OK CODE'/><category term='bdc session and call transactions methids'/><category term='BAPI'/><category term='ABAP BDC RECORDING'/><category term='BADI'/><title type='text'>BDC for SAP</title><subtitle type='html'>Learn about batch data conversion of SAP ABAP here completely.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://abapbdc.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9192338957519088277/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://abapbdc.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>suresh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9192338957519088277.post-8334178138448520037</id><published>2009-01-20T07:16:00.000-08:00</published><updated>2010-01-05T07:09:05.767-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='BADI'/><title type='text'>BADI and Customer exits</title><content type='html'>&lt;div style="text-align: justify;"&gt;Business Add-Ins are a new SAP enhancement technique based on ABAP Objects. They can be&lt;br /&gt;inserted into the SAP System to accommodate user requirements too specific to be  included inthe standard delivery. Since specific industries often require special functions, SAP allows you to predefine these points in your software.&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;As with customer exits two different views are available:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1·In the definition view, an application programmer predefines exit points in a  source that &lt;span class="fullpost"&gt;allow specific industry sectors, partners, and customers to attach additional software to &lt;/span&gt;&lt;span class="fullpost"&gt;standard SAP source code without having to modify the original object.&lt;br /&gt;&lt;/span&gt;&lt;span class="fullpost"&gt;2· In the implementation view, the users of Business Add-Ins can customize the logic they&lt;/span&gt; &lt;span class="fullpost"&gt;need or use a standard logic if one is available.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="fullpost"&gt;In contrast to customer exits, Business Add-Ins no longer assume a two-level infrastructure (SAP&lt;/span&gt; &lt;span class="fullpost"&gt;and customer solutions), but instead allow for a multi-level system landscape (SAP, partner, and&lt;/span&gt; &lt;span class="fullpost"&gt;customer solutions, as well as country versions, industry solutions, and the like). Definitions and&lt;/span&gt; &lt;span class="fullpost"&gt;implementations of Business Add-Ins can be created at each level within such a system &lt;/span&gt;&lt;span class="fullpost"&gt;infrastructure.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="fullpost"&gt;SAP guarantees the upward compatibility of all Business Add-In interfaces. Release upgrades do&lt;/span&gt;&lt;br /&gt;&lt;span class="fullpost"&gt;not affect enhancement calls from within the standard software nor do they affect the validity of&lt;/span&gt;&lt;br /&gt;&lt;span class="fullpost"&gt;call interfaces. You do not have to register Business Add-Ins in SSCR.&lt;/span&gt;&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;The Business Add-In enhancement technique differentiates between enhancements that can only&lt;/span&gt; &lt;span class="fullpost"&gt;be implemented once and enhancements that can be used actively by any number of customers&lt;/span&gt; &lt;span class="fullpost"&gt;at the same time. In addition, Business Add-Ins can be defined according to filter values. This&lt;/span&gt; &lt;span class="fullpost"&gt;allows you to control add-in implementation and make it dependent on specific criteria (on a &lt;/span&gt;&lt;span class="fullpost"&gt;specific Country value, for example).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="fullpost"&gt;All ABAP sources, screens, GUIs, and table interfaces created using this enhancement technique&lt;/span&gt;&lt;br /&gt;&lt;span class="fullpost"&gt;are defined in a manner that allows customers to include their own enhancements in the&lt;/span&gt; &lt;span class="fullpost"&gt;standard. A single Business Add-In contains all of the interfaces necessary to implement a &lt;/span&gt;&lt;span class="fullpost"&gt;specific task.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Related Posts:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2009/09/customer-relationship-management.html"&gt;Customer Relationship Management and mysap an introduction&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2009/09/crm-management-customer-sales-service.html"&gt;CRM Management and sales and service strategy of mysap crm &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2009/10/sap-crm-customer-as-business-partner.html"&gt;MySAP CRM and customer as business partner&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;How &lt;a href="http://www.abapprogramming.net/2009/11/customer-relationship-management-makes.html"&gt;Customer Relationship management makes company Leader&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2009/11/crm-uses-and-how-to-get-best-results.html"&gt;CRM Uses and how to get best results with CRM&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2009/11/crm-software-solutions-and-sap.html"&gt;CRM software solutions and mysap advantage&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2009/11/mysap-crm-customer-relationship.html"&gt;MySAP CRM  and customer relationship management&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2009/12/mysap-crm-business-scenarios-and-sap.html"&gt;My SAP CRM , Business Scenarios and SAP Solutions&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2009/12/business-view-and-mysapcom.html"&gt;Business View and Mysap.com&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2010/01/customer-relationship-management.html"&gt;Customer Relationship Management Software and Interaction with Customer&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2009/09/erp-implementation-challenges.html"&gt;&lt;br /&gt;Challenges in implementing ERP&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2009/09/erp-system-implementation.html"&gt;ERP implementation practices&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2009/09/enterprise-resource-planning-system.html"&gt;Enterprise resource planning introduction&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2009/10/erp-software-selection-for-project.html"&gt;ERP software selection&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2009/09/erp-implementation-advantages.html"&gt;ERP implementation process and advantages&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id="TixyyLink" style="border: medium none ; overflow: hidden; color: rgb(0, 0, 0); background-color: transparent; text-align: left; text-decoration: none;"&gt;&lt;a href="http://www.abapprogramming.net/2009/10/erp-advantages-and-erp-project-launch.html"&gt;ERP advantages and erp project launch&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9192338957519088277-8334178138448520037?l=abapbdc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://abapbdc.blogspot.com/feeds/8334178138448520037/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://abapbdc.blogspot.com/2009/01/badi-and-customer-exits.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9192338957519088277/posts/default/8334178138448520037'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9192338957519088277/posts/default/8334178138448520037'/><link rel='alternate' type='text/html' href='http://abapbdc.blogspot.com/2009/01/badi-and-customer-exits.html' title='BADI and Customer exits'/><author><name>suresh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9192338957519088277.post-8313797737845425028</id><published>2008-08-11T06:32:00.000-07:00</published><updated>2010-01-05T07:09:56.742-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='BAPI'/><title type='text'>BAPI SAMPLE CODE FOR FLAT FILE</title><content type='html'>REPORT  ZBAPI.&lt;br /&gt;&lt;br /&gt;DATA: BEGIN OF i_data OCCURS 0,&lt;br /&gt;  text(255),&lt;br /&gt;END OF i_data.&lt;br /&gt;&lt;p&gt; DATA: i_ekko TYPE bapiekkoc.&lt;br /&gt;&lt;/p&gt;&lt;p&gt; DATA: it_ekko LIKE TABLE OF i_ekko INITIAL SIZE 0  WITH HEADER LINE.&lt;br /&gt;&lt;/p&gt;&lt;p&gt; DATA: BEGIN OF i_ekpo OCCURS 0,&lt;br /&gt;  po_item(5),&lt;br /&gt;  pur_mat(18),&lt;br /&gt;  plant(4),&lt;br /&gt;  net_price(23),&lt;br /&gt;  disp_quan(13),&lt;br /&gt;END OF i_ekpo.&lt;br /&gt;&lt;/p&gt;&lt;p&gt; DATA: it_ekpo LIKE TABLE OF bapiekpoc INITIAL SIZE 0 WITH HEADER LINE .&lt;br /&gt;&lt;br /&gt;DATA: BEGIN OF i_eket OCCURS 0,&lt;br /&gt;   po_item(5),&lt;br /&gt;   deliv_date(8),&lt;br /&gt;   quantity(13),&lt;br /&gt;END OF i_eket.&lt;br /&gt;DATA: it_eket LIKE TABLE OF bapieket INITIAL SIZE 0 WITH HEADER LINE.&lt;br /&gt;&lt;/p&gt;&lt;p&gt; DATA: v_index TYPE i.&lt;br /&gt;DATA: return TYPE TABLE OF bapireturn INITIAL SIZE 0 WITH HEADER LINE.&lt;br /&gt;DATA: po_num(10).&lt;br /&gt;&lt;br /&gt;START-OF-SELECTION.&lt;br /&gt;&lt;br /&gt;CALL FUNCTION 'UPLOAD'&lt;br /&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;EXPORTING&lt;/li&gt;&lt;li&gt;CODEPAGE                      = ' '&lt;/li&gt;&lt;li&gt;FILENAME                      = ' '&lt;/li&gt;&lt;li&gt;FILETYPE                      = ' '&lt;/li&gt;&lt;li&gt;ITEM                          = ' '&lt;/li&gt;&lt;li&gt;FILEMASK_MASK                 = ' '&lt;/li&gt;&lt;li&gt;FILEMASK_TEXT                 = ' '&lt;/li&gt;&lt;li&gt;FILETYPE_NO_CHANGE            = ' '&lt;/li&gt;&lt;li&gt;FILEMASK_ALL                  = ' '&lt;/li&gt;&lt;li&gt;FILETYPE_NO_SHOW              = ' '&lt;/li&gt;&lt;li&gt;LINE_EXIT                     = ' '&lt;/li&gt;&lt;li&gt;USER_FORM                     = ' '&lt;/li&gt;&lt;li&gt;USER_PROG                     = ' '&lt;/li&gt;&lt;li&gt;SILENT                        = 'S'&lt;/li&gt;&lt;li&gt;IMPORTING&lt;/li&gt;&lt;li&gt;FILESIZE                      =&lt;/li&gt;&lt;li&gt;CANCEL                        =&lt;/li&gt;&lt;li&gt;ACT_FILENAME                  =&lt;/li&gt;&lt;li&gt;ACT_FILETYPE                  =&lt;/li&gt;&lt;/ul&gt;   TABLES&lt;br /&gt;data_tab                      = i_data&lt;br /&gt;&lt;ul&gt;&lt;li&gt;EXCEPTIONS&lt;/li&gt;&lt;li&gt;CONVERSION_ERROR              = 1&lt;/li&gt;&lt;li&gt;INVALID_TABLE_WIDTH           = 2&lt;/li&gt;&lt;li&gt;INVALID_TYPE                  = 3&lt;/li&gt;&lt;li&gt;NO_BATCH                      = 4&lt;/li&gt;&lt;li&gt;UNKNOWN_ERROR                 = 5&lt;/li&gt;&lt;li&gt;GUI_REFUSE_FILETRANSFER       = 6&lt;/li&gt;&lt;li&gt;OTHERS                        = 7&lt;/li&gt;&lt;/ul&gt;           .&lt;br /&gt;IF sy-subrc  0.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/li&gt;&lt;li&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/li&gt;&lt;/ul&gt; ENDIF.&lt;br /&gt;&lt;br /&gt;loop at i_data.&lt;br /&gt;if i_data-text(1) = 'H'.&lt;br /&gt;shift i_data-text.&lt;br /&gt;v_index = v_index + 1.&lt;br /&gt;split i_data-text at ',' into i_ekko-doc_type&lt;br /&gt;                          i_ekko-purch_org&lt;br /&gt;                          i_ekko-pur_group&lt;br /&gt;                          i_ekko-vendor.&lt;br /&gt;append i_ekko to it_ekko.&lt;br /&gt;&lt;br /&gt;elseif i_data-text(1) = 'I'.&lt;br /&gt;shift i_data-text.&lt;br /&gt;split i_data-text at ',' into i_ekpo-po_item&lt;br /&gt;                         i_ekpo-pur_mat&lt;br /&gt;                         i_ekpo-plant&lt;br /&gt;                         i_ekpo-net_price&lt;br /&gt;                         i_ekpo-disp_quan.&lt;br /&gt;append i_ekpo.&lt;br /&gt;move-corresponding i_ekpo to it_ekpo.&lt;br /&gt;append it_ekpo.&lt;br /&gt;clear it_ekpo.&lt;br /&gt;else.&lt;br /&gt;shift i_data-text.&lt;br /&gt;split i_data-text at ',' into i_eket-po_item&lt;br /&gt;                         i_eket-deliv_date&lt;br /&gt;                         i_eket-quantity.&lt;br /&gt;&lt;br /&gt;append it_eket .&lt;br /&gt;move-corresponding i_eket to it_eket.&lt;br /&gt;append it_eket.&lt;br /&gt;clear it_eket.&lt;br /&gt;endif.&lt;br /&gt;endloop.&lt;br /&gt;&lt;br /&gt;CALL FUNCTION 'BAPI_PO_CREATE'&lt;br /&gt;EXPORTING&lt;br /&gt;po_header                        = i_ekko&lt;br /&gt;&lt;ul&gt;&lt;li&gt;PO_HEADER_ADD_DATA               =&lt;/li&gt;&lt;li&gt;HEADER_ADD_DATA_RELEVANT         =&lt;/li&gt;&lt;li&gt;PO_ADDRESS                       =&lt;/li&gt;&lt;li&gt;SKIP_ITEMS_WITH_ERROR            = 'X'&lt;/li&gt;&lt;li&gt;ITEM_ADD_DATA_RELEVANT           =&lt;/li&gt;&lt;li&gt;HEADER_TECH_FIELDS               =&lt;/li&gt;&lt;li&gt;IMPORTING&lt;/li&gt;&lt;li&gt;PURCHASEORDER                    =&lt;/li&gt;&lt;/ul&gt;   tables&lt;br /&gt;po_items                         = it_ekpo&lt;br /&gt;&lt;ul&gt;&lt;li&gt;PO_ITEM_ADD_DATA                 =&lt;/li&gt;&lt;/ul&gt;     po_item_schedules                = it_eket&lt;br /&gt;&lt;ul&gt;&lt;li&gt;PO_ITEM_ACCOUNT_ASSIGNMENT       =&lt;/li&gt;&lt;li&gt;PO_ITEM_TEXT                     =&lt;/li&gt;&lt;/ul&gt;    RETURN                           = return&lt;br /&gt;&lt;ul&gt;&lt;li&gt;PO_LIMITS                        =&lt;/li&gt;&lt;li&gt;PO_CONTRACT_LIMITS               =&lt;/li&gt;&lt;li&gt;PO_SERVICES                      =&lt;/li&gt;&lt;li&gt;PO_SRV_ACCASS_VALUES             =&lt;/li&gt;&lt;li&gt;PO_SERVICES_TEXT                 =&lt;/li&gt;&lt;li&gt;PO_BUSINESS_PARTNER              =&lt;/li&gt;&lt;li&gt;EXTENSIONIN                      =&lt;/li&gt;&lt;li&gt;POADDRDELIVERY                   =&lt;/li&gt;&lt;/ul&gt;           .&lt;br /&gt;write: po_num.&lt;br /&gt;&lt;p&gt;   loop at return.&lt;br /&gt;&lt;br /&gt;write:/ return-message,return-type.&lt;br /&gt;endloop.&lt;/p&gt;&lt;p&gt;Here it is.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2007/10/oops-abap-1.html"&gt;SAP OOPS ABAP PART 1&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2007/10/oops-abap-2.html"&gt;SAP OOPS ABAP PART 2&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2007/10/oops-abap-3.html"&gt;SAP OOPS ABAP PART 3&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2007/10/oops-abap-4.html"&gt;SAP OOPS ABAP PART 4&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2007/10/oops-abap-5.html"&gt;SAP OOPS ABAP PART 5&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2007/10/oops-abap-6.html"&gt;SAP OOPS ABAP PART 6&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2007/10/oops-abap-7.html"&gt;SAP OOPS ABAP PART 7&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2007/10/oops-abap-8.html"&gt;SAP OOPS ABAP PART 8&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2007/10/oops-abap-9.html"&gt;SAP OOPS ABAP PART 9&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2007/10/oops-abap-10.html"&gt;SAP OOPS ABAP PART 10&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2007/10/oops-abap-11.html"&gt;SAP OOPS ABAP PART 11&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2007/10/oops-abap-12.html"&gt;SAP OOPS ABAP PART 12&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2007/10/oops-abap-13.html"&gt;SAP OOPS ABAP PART 13&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2007/10/oops-abap-14.html"&gt;SAP OOPS ABAP PART 14&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2007/10/oops-abap-15.html"&gt;SAP OOPS ABAP PART 15&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-weight: bold; color: rgb(0, 51, 0);"&gt;ABAP TOPIC WISE COMPLETE COURSE&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/abap-bdc-complete-series.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;BDC&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;a href="http://www.abapprogramming.net/2008/08/object-oriented-sap-abap-complete.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;OOPS ABAP&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/ale-complete-series.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;ALE&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/ale-idocs-complete.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;IDOC'S&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/badi-complete-series.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;BADI&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/bapi-complete-couse.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;BAPI&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/sap-abap-syntax-check-complete.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Syntax Check&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/sap-abap-interview-questions.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Interview Questions&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/alv-real-time-reports-sample-code.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;ALV Reports with  sample  code&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/sap-abap-complete-course-day-wise.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;ABAP complete course&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/sap-abap-dictionary-complete.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;ABAP Dictionary&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;a href="http://www.abapprogramming.net/2008/08/sap-scripts-complete-series.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;SAP Scripts&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2008/08/sap-scripts-complete-series.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt; &lt;/span&gt;&lt;/a&gt;&lt;/span&gt;      &lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/sap-script-controls-complete-series.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Script Controls&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/09/sap-smart-forms-complete.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Smart Forms&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/sap-abap-work-flow-complete.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Work Flow&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/sap-abap-work-flow-for-mm.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Work Flow MM&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/work-flow-for-sd-complete.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Work Flow SD&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/communication-interface-in-abap.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Communication Interface&lt;/span&gt;&lt;/a&gt;&lt;div id="TixyyLink" style="border: medium none ; overflow: hidden; color: rgb(0, 0, 0); background-color: transparent; text-align: left; text-decoration: none;"&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9192338957519088277-8313797737845425028?l=abapbdc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://abapbdc.blogspot.com/feeds/8313797737845425028/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://abapbdc.blogspot.com/2008/08/bapi-sample-code-for-flat-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9192338957519088277/posts/default/8313797737845425028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9192338957519088277/posts/default/8313797737845425028'/><link rel='alternate' type='text/html' href='http://abapbdc.blogspot.com/2008/08/bapi-sample-code-for-flat-file.html' title='BAPI SAMPLE CODE FOR FLAT FILE'/><author><name>suresh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9192338957519088277.post-5823534265136533757</id><published>2008-08-11T06:20:00.000-07:00</published><updated>2008-08-11T06:21:16.275-07:00</updated><title type='text'>contact</title><content type='html'>For advertising contact me at&lt;br /&gt;&lt;br /&gt;d_vsuresh@yahoo.co.in&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9192338957519088277-5823534265136533757?l=abapbdc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://abapbdc.blogspot.com/feeds/5823534265136533757/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://abapbdc.blogspot.com/2008/08/contact.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9192338957519088277/posts/default/5823534265136533757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9192338957519088277/posts/default/5823534265136533757'/><link rel='alternate' type='text/html' href='http://abapbdc.blogspot.com/2008/08/contact.html' title='contact'/><author><name>suresh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9192338957519088277.post-6216066969642632972</id><published>2007-12-21T04:31:00.000-08:00</published><updated>2010-01-05T07:11:22.255-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bdc session and call transactions methids'/><title type='text'>bdc session and call transactions methids</title><content type='html'>&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;Data Transfer Methods&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;You can use the following methods to transfer data:&lt;br /&gt;&lt;br /&gt;• CALL TRANSACTION: Data consistency check with the help of screen logic.&lt;br /&gt;• Batch input with batch input sessions: Data consistency check with the help of screen logic&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;Difference between Batch Input and CALL TRANSACTION&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If the direct input cannot be used for your task, this makes creating a data transfer program easier since the underlying transactions ensure that the data consistency checks are executed.&lt;br /&gt;&lt;br /&gt;In the case of an error during the data transfer (if data records are inconsistent, for example), you can restart the transfer at the point in the program where the error occurred.&lt;br /&gt;Data Transfer Overview&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;Batch input methods&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;With the batch input method, an ABAP program reads the external data that is to be entered in the SAP system and stores the data in a “batch input session”. The session records the actions that are required to transfer data into the system using normal SAP transactions.&lt;br /&gt;&lt;br /&gt;When the program has generated the session, you can run the session to execute the SAP transactions in it. You can explicitly start and monitor a session with the batch input management function (by choosing System  Services  Batch input), or have the session run in the background processing system.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;CALL TRANSACTION methods&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In the second method, your program uses the ABAP statement CALL TRANSACTION USING to run an SAP transaction. External data does not have to be deposited in a session for later processing. Instead, the entire batch input process takes place inline in your program.&lt;br /&gt;Choosing Data Transfer Methods&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;Selecting a Data Transfer Method&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;When you transfer data in ABAP, you have three options to submit the data for the data transfer. 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.&lt;br /&gt;&lt;br /&gt;• Use the CALL TRANSACTION USING statement&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;Summary: &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;With CALL TRANSACTION USING, the system processes the data more quickly than with batch input sessions. Unlike batch input sessions, CALL TRANSACTION USING does not automatically support interactive correction or logging functions.&lt;br /&gt;Your program prepares the data and then calls the corresponding transaction that is then processed immediately.&lt;br /&gt;&lt;br /&gt;The most important features of CALL TRANSACTION USING are:&lt;br /&gt;&lt;br /&gt;o Synchronous processing&lt;br /&gt;o Transfer of data from an individual transaction each time the statement CALL TRANSACTION USING is called&lt;br /&gt;o You can update the database both synchronously and asynchronously&lt;br /&gt;The program specifies the update type&lt;br /&gt;o Separate LUW (logical units of work) for the transaction&lt;br /&gt;The system executes a database commit immediately before and after the CALL TRANSACTION USING statement&lt;br /&gt;o No batch input processing log&lt;br /&gt;&lt;br /&gt;• Create a session on the batch input queue.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;Summary:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Offers management of sessions, support for playing back and correcting sessions that contain errors, and detailed logging.&lt;br /&gt;Your program prepares the data and stores it in a batch input session. A session is a collection of transaction data for one or more transactions. Batch input sessions are maintained by the system in the batch input queue. You can process batch input sessions in the background processing system.&lt;br /&gt;Your program must open a session in the queue before transferring data to it, and must close it again afterwards. All of these operations are performed by making function module calls from the ABAP program.&lt;br /&gt;&lt;br /&gt;The most important aspects of the session interface are:&lt;br /&gt;&lt;br /&gt;o Asynchronous processing&lt;br /&gt;o Transfers data for multiple transactions&lt;br /&gt;o Synchronous database update&lt;br /&gt;During processing, no transaction is started until the previous transaction has been written to the database.&lt;br /&gt;o A batch input processing log is generated for each session&lt;br /&gt;o Sessions cannot be generated in parallel&lt;br /&gt;The batch input program must not open a session until it has closed the preceding session.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;Executing Data Transfer Programs&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Procedure&lt;br /&gt;&lt;br /&gt;If you are using an SAP data transfer program, follow the procedure specified in the program documentation.&lt;br /&gt;If you are using a generated data transfer program, proceed as follows:&lt;br /&gt;1. Start the data transfer program.&lt;br /&gt;2. Decide which batch input method you want to use for the data transfer.&lt;br /&gt;a) CALL TRANSACTION USING:&lt;br /&gt;&lt;br /&gt;You must specify the:&lt;br /&gt;&lt;br /&gt;– Processing mode: You use this parameter to specify whether processing should take place in the background or in dialog mode.&lt;br /&gt;Possible values are:&lt;br /&gt;&lt;br /&gt;A Display all&lt;br /&gt;E Display only errors&lt;br /&gt;N No display&lt;br /&gt;– Update mode: This parameter determines how the data is to be updated:&lt;br /&gt;Possible values are:&lt;br /&gt;S Synchronous&lt;br /&gt;A Asynchronous&lt;br /&gt;L Local update&lt;br /&gt;&lt;br /&gt;– Error session: Here you have the option to specify a session name for a batch input session in which data is to be written in the case of an error. You can use this to identify incorrect data records after the batch input program has run and to import the records into the R/3 System once you have corrected them.&lt;br /&gt;&lt;br /&gt;If you are creating an error session, you must also specify:&lt;br /&gt;&lt;br /&gt;– User: Specify the user with whose authorizations the sessions are processed.&lt;br /&gt;– Keep session: This specifies whether or not the session should be deleted once it has been processed.&lt;br /&gt;– Lock date: Specify the processing date for the error session.&lt;br /&gt;&lt;br /&gt;b) Generate session:&lt;br /&gt;&lt;br /&gt;– Session name: Specify a name for the batch input session to be generated.&lt;br /&gt;– User: Specify the user with whose authorizations the sessions are processed.&lt;br /&gt;– Keep session: This specifies whether or not the session should be deleted once it has been processed.&lt;br /&gt;– Lock date: Specify the processing date for the error session.&lt;br /&gt;3. Specify a character that is to be used as the NODATA character.&lt;br /&gt;4. Specify the path of the data file from which the data is to be imported into the R/3 System.&lt;br /&gt;5. Execute the program.&lt;br /&gt;6. If you have generated a session, or if errors occurred in CALL TRANSACTION USING mode, you must now edit the generated sessions. You can find information on this in BC - System services in batch input sessions.&lt;br /&gt;&lt;br /&gt;Creating a Session with BDC_OPEN_GROUP&lt;br /&gt;&lt;br /&gt;Use the BDC_OPEN_GROUP function module to create a new session. Once you have created a session, then you can insert batch input data into it with BDC_INSERT.&lt;br /&gt;You cannot re-open a session that already exists and has been closed. If you call BDC_OPEN_GROUP with the name of an existing session, then an additional session with the same name is created.&lt;br /&gt;&lt;br /&gt;A batch input program may have only one session open at a time. Before opening a session, make sure that any sessions that the program closes any sessions that it previously had opened.&lt;br /&gt;&lt;br /&gt;BDC_OPEN_GROUP takes the following EXPORTING parameters:&lt;br /&gt;&lt;br /&gt;• CLIENT&lt;br /&gt;&lt;br /&gt;Client in which the session is to be processed.&lt;br /&gt;Default: If you don't provide a value for this parameter, the default is the client under which the batch input program runs when the session is created.&lt;br /&gt;&lt;br /&gt;• GROUP&lt;br /&gt;&lt;br /&gt;Name of the session that is to be created. May be up to 12 characters long.&lt;br /&gt;Default: None. You must specify a session name.&lt;br /&gt;&lt;br /&gt;• HOLDDATE&lt;br /&gt;&lt;br /&gt;Lock date. The session is locked and may not be processed until after the date that you specify. Only a system administrator with the LOCK authorization for the authorization object Batch Input Authorizations can unlock and run a session before this date.&lt;br /&gt;&lt;br /&gt;Format: YYYYMMDD (8 digits).&lt;br /&gt;Default: No lock date, session can be processed immediately. A lock date is optional.&lt;br /&gt;&lt;br /&gt;• KEEP&lt;br /&gt;&lt;br /&gt;Retain session after successful processing. Set this option to the value X to have a session kept after it has been successfully processed. A session that is kept remains in the input/output queue until an administrator deletes it.&lt;br /&gt;&lt;br /&gt;Sessions that contain errors in transactions are kept even if KEEP is not set.&lt;br /&gt;Default: If not set, then sessions that are successfully processed are deleted. Only the batch input log is kept.&lt;br /&gt;&lt;br /&gt;• USER&lt;br /&gt;&lt;br /&gt;Authorizations user for background processing. This is the user name that is used for checking authorizations if a session is started in background processing. The user must be authorized for all of the transactions and functions that are to be executed in a session. Otherwise, transactions will be terminated with “no authorization” errors.&lt;br /&gt;&lt;br /&gt;The user can be of type dialog or background. Dialog users are normal interactive users in the SAP system. Background users are user master records that are specially defined for providing authorizations for background processing jobs.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Advantages:&lt;br /&gt;&lt;br /&gt;Types of BDC :&lt;br /&gt;CLASSICAL BATCH INPUT (Session Method)&lt;br /&gt;CALL TRANSACTION&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;Session method.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1) synchronous processing.&lt;br /&gt;2) can tranfer large amount of data.&lt;br /&gt;3) processing is slower.&lt;br /&gt;4) error log is created&lt;br /&gt;5) data is not updated until session is processed.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;Call transaction.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1) asynchronous processing&lt;br /&gt;2) can transfer small amount of data&lt;br /&gt;3) processing is faster.&lt;br /&gt;4) errors need to be handled explicitly&lt;br /&gt;5) data is updated automatically&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;RELATED POSTS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2007/11/abap-bdc-table-control.html"&gt;&lt;span style="font-weight: bold;"&gt;SAP ABAP BDC TABLE CONTROL&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-weight: bold; color: rgb(0, 51, 0);"&gt;ABAP TOPIC WISE COMPLETE COURSE&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/abap-bdc-complete-series.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;BDC&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;a href="http://www.abapprogramming.net/2008/08/object-oriented-sap-abap-complete.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;OOPS ABAP&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/ale-complete-series.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;ALE&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/ale-idocs-complete.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;IDOC'S&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/badi-complete-series.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;BADI&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/bapi-complete-couse.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;BAPI&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/sap-abap-syntax-check-complete.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Syntax Check&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/sap-abap-interview-questions.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Interview Questions&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/alv-real-time-reports-sample-code.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;ALV Reports with  sample  code&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/sap-abap-complete-course-day-wise.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;ABAP complete course&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/sap-abap-dictionary-complete.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;ABAP Dictionary&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;a href="http://www.abapprogramming.net/2008/08/sap-scripts-complete-series.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;SAP Scripts&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2008/08/sap-scripts-complete-series.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt; &lt;/span&gt;&lt;/a&gt;&lt;/span&gt;      &lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/sap-script-controls-complete-series.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Script Controls&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/09/sap-smart-forms-complete.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Smart Forms&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/sap-abap-work-flow-complete.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Work Flow&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/sap-abap-work-flow-for-mm.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Work Flow MM&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/work-flow-for-sd-complete.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Work Flow SD&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/communication-interface-in-abap.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Communication Interface&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://abapprogramming.blogspot.com/2007/11/abap-bdc-session-method-sample-code.html"&gt;BDC SESSION METHOD SAMPLE CODE&lt;/a&gt;&lt;br /&gt;&lt;a href="http://abapprogramming.blogspot.com/2007/11/abap-bdc-sample-code-xd01.html"&gt;BDC SAMPLE CODE CUSTOMER MASTER&lt;/a&gt;&lt;br /&gt;&lt;a href="http://abapprogramming.blogspot.com/2007/11/abap-bdc-table-control.html"&gt;BDC TABLE CONTROL&lt;/a&gt;&lt;br /&gt;&lt;a href="http://abapprogramming.blogspot.com/2007/09/table-control-overall-picture.html"&gt;BDC TABLE CONTROL IN BRIEF&lt;/a&gt;&lt;br /&gt;&lt;a href="http://abapprogramming.blogspot.com/2007/08/bdc-and-lsmw-comparision.html"&gt;BDC AND LSMW COMARISION&lt;/a&gt;&lt;br /&gt;&lt;a href="http://abapprogramming.blogspot.com/2007/09/bdc-10.html"&gt;BDC PART 10&lt;/a&gt;&lt;br /&gt;&lt;a href="http://abapprogramming.blogspot.com/2007/09/bdc-9.html"&gt;BDC PART 9&lt;/a&gt;&lt;br /&gt;&lt;a href="http://abapprogramming.blogspot.com/2007/09/bdc-8.html"&gt;BDC PART 8&lt;/a&gt;&lt;br /&gt;&lt;a href="http://abapprogramming.blogspot.com/2007/09/bdc-7.html"&gt;BDC PART 7&lt;/a&gt;&lt;br /&gt;&lt;a href="http://abapprogramming.blogspot.com/2007/09/bdc-6.html"&gt;BDC PART 6&lt;/a&gt;&lt;br /&gt;&lt;a href="http://abapprogramming.blogspot.com/2007/09/bdc-5.html"&gt;BDC PART 5&lt;/a&gt;&lt;br /&gt;&lt;a href="http://abapprogramming.blogspot.com/2007/09/bdc-4.html"&gt;BDC PART 4&lt;/a&gt;&lt;br /&gt;&lt;a href="http://abapprogramming.blogspot.com/2007/09/bdc-3.html"&gt;BDC PART 3&lt;/a&gt;&lt;br /&gt;&lt;a href="http://abapprogramming.blogspot.com/2007/09/bdc-2.html"&gt;BDC PART 2&lt;/a&gt;&lt;br /&gt;&lt;a href="http://abapprogramming.blogspot.com/2007/09/bdc-1.html"&gt;BDC PART 1&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9192338957519088277-6216066969642632972?l=abapbdc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://abapbdc.blogspot.com/feeds/6216066969642632972/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://abapbdc.blogspot.com/2007/12/bdc-session-and-call-transactions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9192338957519088277/posts/default/6216066969642632972'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9192338957519088277/posts/default/6216066969642632972'/><link rel='alternate' type='text/html' href='http://abapbdc.blogspot.com/2007/12/bdc-session-and-call-transactions.html' title='bdc session and call transactions methids'/><author><name>suresh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9192338957519088277.post-6234615552129448401</id><published>2007-12-05T07:32:00.000-08:00</published><updated>2010-01-05T07:12:06.585-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ABAP BDC RECORDING'/><title type='text'>ABAP BDC RECORDING</title><content type='html'>&lt;div style="text-align: justify;"&gt;Recording in&lt;span style="text-decoration: underline;"&gt; BDC&lt;/span&gt; means that suppose you want to update some values in MM01 transaction and these values are in a flat file , so first start the recording from transaction sm35 an go new recording, here give the transaction name (e.g.-MM01) , and when the recording ends then go to the programme, it will give you the full recoding code , apply for these code in your original programme and then you will update the new values.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;DATA TRANSFER METHODS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You can use the following methods to transfer data:&lt;br /&gt;• Direct input: With direct input, the SAP function modules execute the consistency checks. However with batch input, these consistency checks are executed with the help of the screens. This means that direct input has considerable performance advantages.&lt;br /&gt;&lt;br /&gt;• CALL TRANSACTION: Data consistency check with the help of screen logic.&lt;br /&gt;• &lt;a href="http://en.wikipedia.org/wiki/ABAP#Batch_input:_concepts"&gt;&lt;/a&gt;BATCH INPUT with batch input sessions : Data consistency check with the help of screen logic.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;Batch Input&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Batch input is a standard technique for transferring large sets of data into the R/3 System. Here the transaction flow is simulated and the data is transferred as if it were entered online. The advantage of this is that all relevant checks of the transaction are executed, thereby ensuring that the data is consistent.&lt;br /&gt;The batch input process is divided into two phases:&lt;br /&gt;&lt;br /&gt;1. The data transfer program creates a batch input session that contains all the relevant data.&lt;br /&gt;2. The batch input session is processed and the data it contains is transferred into the R/3 System.&lt;br /&gt;&lt;br /&gt;The majority of SAP standard data transfer programs use the batch input technique. The data transfer program creates a batch input session which is processed later. Batch input sessions can be processed in various ways:&lt;br /&gt;&lt;br /&gt;• In the foreground&lt;br /&gt;• In the background&lt;br /&gt;• During processing, with error display&lt;br /&gt;&lt;br /&gt;You should process BATCH INPUT sessions in the foreground or using the error display if you want to test the data transfer. If you want to execute the data transfer or test its performance, you should process the sessions in the background.&lt;br /&gt;&lt;br /&gt;You can find detailed information on batch input in the Basis documentation BC - Basis Programming Interfaces under Transferring Data with Batch Input.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;Difference between Batch Input and CALL TRANSACTION&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If the direct input cannot be used for your task, this makes creating a data transfer program easier since the underlying transactions ensure that the data consistency checks are executed.&lt;br /&gt;&lt;br /&gt;In the case of an error during the data transfer (if data records are inconsistent, for example), you can restart the transfer at the point in the program where the error occurred.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;Batch input methods&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;With the batch input method, an ABAP program reads the external data that is to be entered in the R/3 System and stores the data in a "batch input session". The session records the actions that are required to transfer data into the system using normal SAP transactions.&lt;br /&gt;&lt;br /&gt;When the program has generated the session, you can run the session to execute the SAP transactions in it. You can explicitly start and monitor a session with the batch input management function (by choosing System  Services  Batch input), or have the session run in the background processing system.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;CALL TRANSACTION methods&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In the second method, your program uses the ABAP statement CALL TRANSACTION USING to run an SAP transaction. External data does not have to be deposited in a session for later processing. Instead, the entire batch input process takes place inline in your program.&lt;br /&gt;&lt;br /&gt;The information in Choosing Data Transfer Methods will help you decide which is the best data transfer method&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;The MODE Parameter&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You can use the MODE parameter to specify whether data transfer processing should be displayed as it happens. You can choose between three modes:&lt;br /&gt;A Display all. All screens and the data that goes in them appear when you run your program.&lt;br /&gt;&lt;br /&gt;N No display. All screens are processed invisibly, regardless of whether there are errors or not. Control returns to your program as soon as transaction processing is finished.&lt;br /&gt;&lt;br /&gt;E Display errors only. The transaction goes into display mode as soon as an error in one of the screens is detected. You can then correct the error.&lt;br /&gt;The display modes are the same as those that are available for processing batch input sessions&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;The UPDATE Parameter&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You use the UPDATE parameter to specify how updates produced by a transaction should be processed. You can select between these modes:&lt;br /&gt;&lt;br /&gt;A Asynchronous updating. In this mode, the called transaction does not wait for any updates it produces to be completed. It simply passes the updates to the SAP update service. Asynchronous processing therefore usually results in faster execution of your data transfer program.&lt;br /&gt;&lt;br /&gt;Asynchronous processing is NOT recommended for processing any larger amount of data. This is because the called transaction receives no completion message from the update module in asynchronous updating. The calling data transfer program, in turn, cannot determine whether a called transaction ended with a successful update of the database or not.&lt;br /&gt;&lt;br /&gt;If you use asynchronous updating, then you will need to use the update management facility (Transaction SM12) to check whether updates have been terminated abnormally during session processing. Error analysis and recovery is less convenient than with synchronous updating.&lt;br /&gt;&lt;br /&gt;S Synchronous updating. In this mode, the called transaction waits for any updates that it produces to be completed. Execution is slower than with asynchronous updating because called transactions wait for updating to be completed. However, the called transaction is able to return any update error message that occurs to your program. It is much easier for you to analyze and recover from errors.&lt;br /&gt;&lt;br /&gt;L Local updating. If you update data locally, the update of the database will not be processed in a separate process, but in the process of the calling program. (See the ABAP keyword documentation on SET UPDATE TASK LOCAL for more information.)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;The MESSAGES Parameter&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The MESSAGES specification indicates that all system messages issued during a CALL TRANSACTION USING are written into the internal table &lt;messtab&gt; . The internal table must have the structure BDCMSGCOLL .&lt;/messtab&gt;&lt;br /&gt;&lt;messtab&gt;&lt;/messtab&gt;&lt;br /&gt;&lt;messtab&gt;This transaction allows a user to record keystrokes and other keyboard actions so that they may be incorporated into a BDC session. While any session may be recorded, it does not mean that the recording can be used to create a session. Within a recording individual screens may not be allowed.&lt;/messtab&gt;&lt;br /&gt;&lt;messtab&gt;&lt;/messtab&gt;&lt;br /&gt;&lt;messtab&gt;Customized screens may present a problem. Only use the non-customized screens to record sessions.&lt;/messtab&gt;&lt;br /&gt;&lt;messtab&gt;&lt;/messtab&gt;&lt;br /&gt;&lt;messtab&gt;In this example, the transaction MM is recorded.&lt;/messtab&gt;&lt;br /&gt;&lt;messtab&gt;&lt;/messtab&gt;&lt;br /&gt;&lt;messtab&gt;Enter transaction SHDB, also called The Transaction Recorder:Recording Overview.&lt;/messtab&gt;&lt;br /&gt;&lt;messtab&gt;&lt;/messtab&gt;&lt;br /&gt;&lt;messtab&gt;Click on the "New Recording button"&lt;/messtab&gt;&lt;br /&gt;&lt;messtab&gt;&lt;/messtab&gt;&lt;br /&gt;&lt;messtab&gt;To start a new recording, enter a recording name (up to 10 letters) in the field labeled "Recording," and the Transaction Code MM01. Click either the "Start Recording" button or the green check mark at the bottom of the screen.&lt;/messtab&gt;&lt;br /&gt;&lt;messtab&gt;&lt;/messtab&gt;&lt;br /&gt;&lt;messtab&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;Recording the session:&lt;/span&gt;&lt;/messtab&gt;&lt;br /&gt;&lt;messtab&gt;&lt;/messtab&gt;&lt;br /&gt;&lt;messtab&gt;Once the Start Recording button is pressed, the system displays the screens for the transaction code requested. Enter each field needed for the transaction, and proceed to the following screen. A "recording running" message may appear between screens. During a recorded session screen interaction time is extended.&lt;/messtab&gt;&lt;br /&gt;&lt;messtab&gt;&lt;/messtab&gt;&lt;br /&gt;&lt;messtab&gt;Completing the transaction&lt;/messtab&gt;&lt;br /&gt;&lt;messtab&gt;&lt;/messtab&gt;&lt;br /&gt;&lt;messtab&gt;End the transaction normally. When completed, the Transaction Recorder: Edit Recording screen is shown, Click the Save icon, which saves the recording. Green arrow back to the starting point (Transaction Recorder).&lt;/messtab&gt;&lt;br /&gt;&lt;messtab&gt;&lt;/messtab&gt;&lt;br /&gt;&lt;messtab&gt;&lt;/messtab&gt;&lt;br /&gt;&lt;messtab&gt;&lt;span style="font-weight: bold;"&gt;RELATED POSTS&lt;/span&gt;&lt;/messtab&gt;&lt;br /&gt;&lt;messtab&gt;&lt;/messtab&gt;&lt;br /&gt;&lt;messtab&gt;&lt;a href="http://abapprogramming.blogspot.com/2007/11/abap-bdc-session-method-sample-code.html"&gt;&lt;/a&gt;&lt;/messtab&gt;&lt;a href="http://abapprogramming.blogspot.com/2007/09/bdc-1.html"&gt;LEARNING BAPI HERE IS SYSTEMATIC  AND DAY WISE.&lt;br /&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href="http://www.abapprogramming.net/2007/09/bapi-1.html"&gt;SAP ABAP BAPI  1&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2007/09/bapi-2.html"&gt;SAP ABAP BAPI  2&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2007/09/bapi-3.html"&gt;SAP ABAP BAPI  3&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2007/09/bapi-4.html"&gt;SAP ABAP BAPI  4&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;RELATED POST&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2008/08/ale-idocs-complete.html"&gt;&lt;span style="font-weight: bold; color: rgb(0, 51, 0);"&gt;ALE IDOC'S COMPLETE SERIES&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-weight: bold; color: rgb(0, 51, 0);"&gt;ABAP TOPIC WISE COMPLETE COURSE&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/abap-bdc-complete-series.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;BDC&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;a href="http://www.abapprogramming.net/2008/08/object-oriented-sap-abap-complete.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;OOPS ABAP&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/ale-complete-series.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;ALE&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/ale-idocs-complete.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;IDOC'S&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/badi-complete-series.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;BADI&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/bapi-complete-couse.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;BAPI&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/sap-abap-syntax-check-complete.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Syntax Check&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/sap-abap-interview-questions.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Interview Questions&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/alv-real-time-reports-sample-code.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;ALV Reports with  sample  code&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/sap-abap-complete-course-day-wise.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;ABAP complete course&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/sap-abap-dictionary-complete.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;ABAP Dictionary&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;a href="http://www.abapprogramming.net/2008/08/sap-scripts-complete-series.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;SAP Scripts&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2008/08/sap-scripts-complete-series.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt; &lt;/span&gt;&lt;/a&gt;&lt;/span&gt;      &lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/sap-script-controls-complete-series.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Script Controls&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/09/sap-smart-forms-complete.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Smart Forms&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/sap-abap-work-flow-complete.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Work Flow&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/sap-abap-work-flow-for-mm.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Work Flow MM&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/work-flow-for-sd-complete.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Work Flow SD&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/communication-interface-in-abap.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Communication Interface&lt;/span&gt;&lt;/a&gt;&lt;div id="TixyyLink" style="border: medium none ; overflow: hidden; color: rgb(0, 0, 0); background-color: transparent; text-align: left; text-decoration: none;"&gt;&lt;a href="http://abapprogramming.blogspot.com/2007/09/bdc-1.html"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9192338957519088277-6234615552129448401?l=abapbdc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://abapbdc.blogspot.com/feeds/6234615552129448401/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://abapbdc.blogspot.com/2007/12/abap-bdc-recording.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9192338957519088277/posts/default/6234615552129448401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9192338957519088277/posts/default/6234615552129448401'/><link rel='alternate' type='text/html' href='http://abapbdc.blogspot.com/2007/12/abap-bdc-recording.html' title='ABAP BDC RECORDING'/><author><name>suresh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9192338957519088277.post-1189645834313844152</id><published>2007-12-02T23:40:00.000-08:00</published><updated>2010-01-05T07:12:48.940-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ABAP BDC OK CODE'/><title type='text'>ABAP BDC OK CODE</title><content type='html'>&lt;div style="text-align: justify;"&gt;In your ABAP programs, you should work with the OK_CODE field instead of SY-UCOMM. There are two reasons for this:&lt;br /&gt;&lt;br /&gt;Firstly, the ABAP program has full control over fields declared within it, and secondly, you should never change the value of an ABAP system field. However, you should also always initialize the OK_CODE field in an ABAP program for the following reason:&lt;br /&gt;&lt;br /&gt;In the same way that the OK_CODE field in the ABAP program and the system field SY-UCOMM receive the contents of the corresponding screen fields in the PAI event, their contents are also assigned to the OK_CODE screen field and system field SYST-UCOMM in the PBO event.&lt;br /&gt;&lt;br /&gt;Therefore, you must clear the OK_CODE field in the ABAP program to ensure that the function code of a screen is not already filled in the PBO event with an unwanted value. This is particularly important when the next PAI event can be triggered with an empty function code (for example, using ENTER). Empty function codes do not affect SY-UCOMM or the OK_CODE field, and consequently, the old field contents are transported.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In your application programs, the first step in PAI processing should be to save the function code in an auxiliary variable and then initialize the OK_CODE field. You can then read the function code from the auxiliary variable (for example, using a CASE structure), and control the program flow from there.&lt;br /&gt;&lt;br /&gt;The OK_CODE field can have a different name on each screen. However, common practice is to use the same name for the field on each screen of an ABAP program. You then only need one field in the ABAP program, with the same name, into which the function code is placed, and from which you can read it.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;RELATED POSTS&lt;/span&gt;&lt;br /&gt;shown here.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2008/08/sap-abap-badi-importance.html"&gt;&lt;span style="font-weight: bold;"&gt;IMPORTANCE OF BADI IN SAP ABAP&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2008/08/comparison-of-enhancement-techniques-in.html"&gt;&lt;span style="font-weight: bold;"&gt;COMPARISON OF ENHANCEMENTS IN ABAP&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2008/08/sap-abap-badi-defination.html"&gt;&lt;span style="font-weight: bold;"&gt;BADI DEFINITION WITH SCREEN SHOTS &lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2008/09/abap-badi-implementation.html"&gt;BADI IMPELEMTATION&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2008/09/sap-abap-business-add-ins.html"&gt;BADI IMPLEMENTATION PART TWO&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2008/09/sap-abap-badi-menu-enhancements.html"&gt;MENU ENHANCEMENTS USING SAP BADI&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2008/09/abap-badi-screen-enhacements.html"&gt;SCREEN ENHANCEMENTS USING SAP BADI&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2008/10/badi-screen-enhancements-implementation.html"&gt;&lt;br /&gt;IMPLEMENTATION OF SCREEN ENHANCEMENTS USING BADI&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2008/09/abap-badi-implementation-part-two.html"&gt;BADI IMPLEMENTATION WITH FORMULA BAR&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2008/09/sap-abap-business-add-ins-filter.html"&gt;FILTER DEPENDENT BADI IMPLEMENTATION PART ONE&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2008/09/sap-abap-business-add-ins-filter_16.html"&gt;FILTER DEPENDENT BADI IMPLEMENTATION PART TWO&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2008/09/sap-abap-business-add-ins.html"&gt;SAP ABAP FILTER DEPENDENT BADI IMPLEMENTATION&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2008/08/comparison-of-enhancement-techniques-in.html"&gt;BADI AND OTHER ENHANCEMENTS COMPARISON&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2007/09/badi-1.html"&gt;SAP ABAP BADI PART ONE &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2007/09/badi-2.html"&gt;ABAP BADI PART TWO&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2007/09/badi-3.html"&gt;ABAP BADI PART THREE&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2008/07/badi-introduction.html"&gt;ABAP BADI PART FOUR &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2008/07/badi-defination-and-implementaion.html"&gt;BADI PART FIVE&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2008/07/calling-badi-and-uses.html"&gt;ABAP BADI PART SIX CALLING BADI AND ITS USES&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2008/08/sap-abap-badi-introduction.html"&gt;BADI INTRODUCTION&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;RELATED POST&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2008/08/bapi-complete-couse.html"&gt;&lt;span style="font-weight: bold; color: rgb(0, 51, 0);"&gt;BAPI IN SAP ABAP COMPLETE COURSE&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);"&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-weight: bold; color: rgb(0, 51, 0);"&gt;ABAP TOPIC WISE COMPLETE COURSE&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/abap-bdc-complete-series.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;BDC&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;a href="http://www.abapprogramming.net/2008/08/object-oriented-sap-abap-complete.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;OOPS ABAP&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/ale-complete-series.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;ALE&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/ale-idocs-complete.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;IDOC'S&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/badi-complete-series.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;BADI&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/bapi-complete-couse.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;BAPI&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/sap-abap-syntax-check-complete.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Syntax Check&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/sap-abap-interview-questions.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Interview Questions&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/alv-real-time-reports-sample-code.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;ALV Reports with  sample  code&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/sap-abap-complete-course-day-wise.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;ABAP complete course&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/sap-abap-dictionary-complete.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;ABAP Dictionary&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;a href="http://www.abapprogramming.net/2008/08/sap-scripts-complete-series.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;SAP Scripts&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.abapprogramming.net/2008/08/sap-scripts-complete-series.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt; &lt;/span&gt;&lt;/a&gt;&lt;/span&gt;      &lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/sap-script-controls-complete-series.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Script Controls&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/09/sap-smart-forms-complete.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Smart Forms&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/sap-abap-work-flow-complete.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Work Flow&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/sap-abap-work-flow-for-mm.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Work Flow MM&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/work-flow-for-sd-complete.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Work Flow SD&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.abapprogramming.net/2008/08/communication-interface-in-abap.html"&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Communication Interface&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9192338957519088277-1189645834313844152?l=abapbdc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://abapbdc.blogspot.com/feeds/1189645834313844152/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://abapbdc.blogspot.com/2007/12/abap-bdc-ok-code.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9192338957519088277/posts/default/1189645834313844152'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9192338957519088277/posts/default/1189645834313844152'/><link rel='alternate' type='text/html' href='http://abapbdc.blogspot.com/2007/12/abap-bdc-ok-code.html' title='ABAP BDC OK CODE'/><author><name>suresh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
