{"id":1815,"date":"2018-03-13T14:19:15","date_gmt":"2018-03-13T14:19:15","guid":{"rendered":"https:\/\/ntspl.co.in\/blog\/?p=1815"},"modified":"2021-12-20T11:11:46","modified_gmt":"2021-12-20T11:11:46","slug":"business-api-integration","status":"publish","type":"post","link":"https:\/\/www.ntspl.co.in\/blog\/business-api-integration\/","title":{"rendered":"Business API integration"},"content":{"rendered":"<p>Business Application Programming Interface are standardized object oriented programming methods that enabling external applications to access business processes and data in the SAP system. Some BAPIs and methods provide basic functions and can be used for most SAP Business Objects. ABAP (Advanced Business Application Programming) is a programming language for developing applications for the SAP R\/3 system.<br \/>\nApplication Integration<br \/>\n\u2022 BAPI supports CRUD operation in SAP, A RFC connector bridge is established the connection for Dot Net application to build up the connectivity.<br \/>\n\u2022 RFC connector provides two dll SAPNCO and SAPNCO_UTIL, these two dll needs to import to the project as reference.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1816\" src=\"https:\/\/ntspl.co.in\/blog\/wp-content\/uploads\/2018\/03\/blog1.gif\" alt=\"\" width=\"639\" height=\"438\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Connectivity code and execution of BAPI<\/strong><\/p>\n<p>RfcDestination destination = RfcDestinationManager.GetDestination(&#8220;ABC&#8221;);<br \/>\nRfcRepository repo = destination.Repository;<br \/>\nIRfcFunction bapiDepot = repo.CreateFunction(BapiName);<br \/>\nIRfcFunction custPaymentTrans =<\/p>\n<p>repo.CreateFunction(&#8220;BAPI_TRANSACTION_COMMIT&#8221;);<br \/>\nbapiDepot.SetValue(&#8220;FROMDATE&#8221;, Convert.ToDateTime(FromDate).Date);<br \/>\nbapiDepot.SetValue(&#8220;TODATE&#8221;, Convert.ToDateTime(ToDate).Date);<br \/>\nIRfcTable rfcTable = bapiDepot.GetTable(rfcTableName);<br \/>\nRfcSessionManager.BeginContext(destination);<\/p>\n<p>bapiDepot.Invoke(destination);<\/p>\n<p>custPaymentTrans.Invoke(destination);<\/p>\n<p>rfcTable.Append();<\/p>\n<p><strong>Advanced Business Application Programming<\/strong><\/p>\n<p>\u2022 ABAP is a programming language that runs in the SAP ABAP runtime environment which was created and used by\u00a0 \u00a0 \u00a0SAP for the development of application in SAP environment, user can use SAP client to write ABAP.<br \/>\n\u2022 User can create function modules by using t-code.<br \/>\n\u2022 User has to test the BAPI by using t-code se37.<br \/>\n\u2022 On screen user can type function name which is called BAPI.<br \/>\n\u2022 For execute BAPI user has to execute by execute symbol or F8.<br \/>\n\u2022 Import and export parameter are there where user can easily find the input as well as output of the BAPI.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1817\" src=\"https:\/\/ntspl.co.in\/blog\/wp-content\/uploads\/2018\/03\/blog2.jpg\" alt=\"\" width=\"529\" height=\"500\" srcset=\"https:\/\/www.ntspl.co.in\/blog\/wp-content\/uploads\/2018\/03\/blog2.jpg 529w, https:\/\/www.ntspl.co.in\/blog\/wp-content\/uploads\/2018\/03\/blog2-300x284.jpg 300w\" sizes=\"(max-width: 529px) 100vw, 529px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Business Application Programming Interface are standardized object oriented programming methods that enabling external applications to access business processes and data in the SAP system. Some BAPIs and methods provide basic functions and can be used for most SAP Business Objects. ABAP (Advanced Business Application Programming) is a programming language for developing applications for the SAP [&hellip;]<\/p>\n","protected":false},"author":52,"featured_media":1816,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1815","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-asp-dot-net"],"acf":{"custom_meta_title":"Configuring Business APIs to your applications | NTSPL","meta_description":"Business APIs are the standardized methods that enable external applications to access business processes and data in SAP systems.","meta_keyword":"business api, configuring business api, advanced business application programming","other_meta_tag":"<meta property=og:locale content=\"en-IN\" \/>\r\n<meta property=og:type content=\"website\" \/>\r\n<meta property=og:title content=\"Configuring Business APIs to your applications | NTSPL\"\/>\r\n<meta property=og:description content=\"Business APIs are the standardized methods that enable external applications to access business processes and data in SAP systems.\"\/>\r\n<meta property=og:url content=\"https:\/\/www.ntspl.co.in\/blog\/business-api-integration\"\/>\r\n<meta property=og:site_name content=NTSPL \/>\r\n<meta name=\"twitter:site\" content=\"@NTSPL\">\r\n<meta name=twitter:card content=\"summary\" \/>\r\n<meta name=twitter:description content=\"Business APIs are the standardized methods that enable external applications to access business processes and data in SAP systems.\"\/>\r\n<meta name=twitter:title content=\"Configuring Business APIs to your applications | NTSPL\"\/>"},"_links":{"self":[{"href":"https:\/\/www.ntspl.co.in\/blog\/wp-json\/wp\/v2\/posts\/1815"}],"collection":[{"href":"https:\/\/www.ntspl.co.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ntspl.co.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ntspl.co.in\/blog\/wp-json\/wp\/v2\/users\/52"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ntspl.co.in\/blog\/wp-json\/wp\/v2\/comments?post=1815"}],"version-history":[{"count":3,"href":"https:\/\/www.ntspl.co.in\/blog\/wp-json\/wp\/v2\/posts\/1815\/revisions"}],"predecessor-version":[{"id":4387,"href":"https:\/\/www.ntspl.co.in\/blog\/wp-json\/wp\/v2\/posts\/1815\/revisions\/4387"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ntspl.co.in\/blog\/wp-json\/wp\/v2\/media\/1816"}],"wp:attachment":[{"href":"https:\/\/www.ntspl.co.in\/blog\/wp-json\/wp\/v2\/media?parent=1815"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ntspl.co.in\/blog\/wp-json\/wp\/v2\/categories?post=1815"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ntspl.co.in\/blog\/wp-json\/wp\/v2\/tags?post=1815"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}