This document provides a guide to integrating Excel with SAP. It describes preparing an RFC function module in SAP to retrieve sales order data and preparing Excel VBA scripts to call the RFC from Excel. The RFC FM retrieves a sales order header and lines using a BAPI. The VBA script references SAP ActiveX controls to call the RFC FM and populate the retrieved data in Excel. Testing is done to validate the end-to-end integration between SAP and Excel.
Sap alv excel inplace with macro recording sapigniteAromal Raveendran
This article explains how we can make use of MS Excel Inplace functionality in the SAP ALV toolbar with macro recording to avoid repetitive tasks such as adding custom calculation field in the standard /Custom/ Query reports (e.g. Order Qty- Delivery Qty, Pivot Table chart etc)
Sap alv excel inplace with macro recording sapigniteAromal Raveendran
This article explains how we can make use of MS Excel Inplace functionality in the SAP ALV toolbar with macro recording to avoid repetitive tasks such as adding custom calculation field in the standard /Custom/ Query reports (e.g. Order Qty- Delivery Qty, Pivot Table chart etc)
For regular Updates on SAP ABAP please like our Facebook page:-
Facebook:- https://www.facebook.com/bigclasses/
Twitter:- https://twitter.com/bigclasses
LinkedIn:-https://www.linkedin.com/company/bigclasses/
Google+:https://plus.google.com/+Bigclassesonlinetraining
SAP ABAP Course Page:-https://bigclasses.com/sap-abap-online-training.html
Contact us: - India +91 800 811 4040
USA +1 732 325 1626
Email us at: - info@bigclasses.com
sap abap online training, online sap abap training, sap abap training online, sap abap training, abap online training, sap abap, sap online training, sap abap online training from india, sap abap online training demo, sap, abap, sap abap online classes, sap abap online, sap abap training course, online abap training, abap training online, sap abap online courses, www.bigclasses.com,sap abap training
usa
Contains most of the standard SAP CS process, related data objects, configuration aspects in Logistics modules SD, PM, and integration touchpoints with FI-CO.
Guide to Configure Custom SD Output Types in S/4HANA Using BRF+Ashish Saxena
BRF+ is part of SAP provided decision service management tool (DSM) and it is not new in SAP. But doing output management via BRF+ is new in S/4 HANA system. Before knowing how output determination and management is done in S/4 HANA system using BRF+, we must know what is BRF+ and how it works.
BRF+ is comprehensive application programming interface (API) and user interface for defining and processing business rule. It allows us to model rules in an intuitive way and to reuse these rules in different applications.
Deciding on how you integrate your SAP system with Low-Code platform is a complex architectural problem to solve. We look at a sample scenario and consider the various SAP integration options.
For regular Updates on SAP ABAP please like our Facebook page:-
Facebook:- https://www.facebook.com/bigclasses/
Twitter:- https://twitter.com/bigclasses
LinkedIn:-https://www.linkedin.com/company/bigclasses/
Google+:https://plus.google.com/+Bigclassesonlinetraining
SAP ABAP Course Page:-https://bigclasses.com/sap-abap-online-training.html
Contact us: - India +91 800 811 4040
USA +1 732 325 1626
Email us at: - info@bigclasses.com
sap abap online training, online sap abap training, sap abap training online, sap abap training, abap online training, sap abap, sap online training, sap abap online training from india, sap abap online training demo, sap, abap, sap abap online classes, sap abap online, sap abap training course, online abap training, abap training online, sap abap online courses, www.bigclasses.com,sap abap training
usa
Contains most of the standard SAP CS process, related data objects, configuration aspects in Logistics modules SD, PM, and integration touchpoints with FI-CO.
Guide to Configure Custom SD Output Types in S/4HANA Using BRF+Ashish Saxena
BRF+ is part of SAP provided decision service management tool (DSM) and it is not new in SAP. But doing output management via BRF+ is new in S/4 HANA system. Before knowing how output determination and management is done in S/4 HANA system using BRF+, we must know what is BRF+ and how it works.
BRF+ is comprehensive application programming interface (API) and user interface for defining and processing business rule. It allows us to model rules in an intuitive way and to reuse these rules in different applications.
Deciding on how you integrate your SAP system with Low-Code platform is a complex architectural problem to solve. We look at a sample scenario and consider the various SAP integration options.
This PPT will help for SAP Interview Questions particularly SAP domain Candidates. for more information please login to www.rekruitin.com
By ReKruiTIn.com
What is it like to work with an ERP suite in an MNC environment? What are the real opportunities and challenges involved? Employees/Managers nowadays are expected to handle cross-discipline assignments. Consultants/Analysts are not only expected to be techno-functional, but also cross-functional. ERP skills, in short, are career differentiators. Jumpstart your ERP career or journey with this book now!
ABAP/4 Mindmap!! - for busy functional consultants
Ever wonder what are the functional improvements in S/4HANA? for more details, please checkout: https://www.amazon.com/dp/B083C3X8YY ERP Made Simple: ERP Explained in 80 Pages or Less
This is a highlevel view of PS.
For more comprehensive details, please checkout: https://www.amazon.com/dp/B083C3X8YY ERP Made Simple: ERP Explained in 80 Pages or Less
This is a highlevel view of PP.
For more comprehensive details, please checkout: https://www.amazon.com/dp/B083C3X8YY ERP Made Simple: ERP Explained in 80 Pages or Less
Ever wonder what are the functional improvements in S/4HANA? for more details, please checkout: https://www.amazon.com/dp/B083C3X8YY ERP Made Simple: ERP Explained in 80 Pages or Less
SAP MTS-To-COPA Flow Diagram. for more details, please checkout: https://www.amazon.com/dp/B083C3X8YY ERP Made Simple: ERP Explained in 80 Pages or Less
SAP Core Account Determination Diagram. for more details, please checkout: https://www.amazon.com/dp/B083C3X8YY ERP Made Simple: ERP Explained in 80 Pages or Less
This is an overview of the CO integration with all other modules through the COPA module. for more details, please checkout: https://www.amazon.com/dp/B083C3X8YY ERP Made Simple: ERP Explained in 80 Pages or Less
This is an overview for SAP S/4HANA Cloud 1808. for more details, please checkout: https://www.amazon.com/dp/B083C3X8YY ERP Made Simple: ERP Explained in 80 Pages or Less
Highlevel Overview of S4 Improvements. for more details, please checkout: https://www.amazon.com/dp/B083C3X8YY ERP Made Simple: ERP Explained in 80 Pages or Less
This is an overview for SAP HANA MM S/4 1709. for more details, please checkout: https://www.amazon.com/dp/B083C3X8YY ERP Made Simple: ERP Explained in 80 Pages or Less
This is an overview for SAP HANA SD S/4 1709. for more details, please checkout: https://www.amazon.com/dp/B083C3X8YY ERP Made Simple: ERP Explained in 80 Pages or Less
SAP S4 HANA CO Certification mindmap. for more details, please checkout: https://www.amazon.com/dp/B083C3X8YY ERP Made Simple: ERP Explained in 80 Pages or Less
SAP S4 HANAFI Certification mindmap. for more details, please checkout: https://www.amazon.com/dp/B083C3X8YY ERP Made Simple: ERP Explained in 80 Pages or Less
Taurus Zodiac Sign_ Personality Traits and Sign Dates.pptxmy Pandit
Explore the world of the Taurus zodiac sign. Learn about their stability, determination, and appreciation for beauty. Discover how Taureans' grounded nature and hardworking mindset define their unique personality.
Attending a job Interview for B1 and B2 Englsih learnersErika906060
It is a sample of an interview for a business english class for pre-intermediate and intermediate english students with emphasis on the speking ability.
Personal Brand Statement:
As an Army veteran dedicated to lifelong learning, I bring a disciplined, strategic mindset to my pursuits. I am constantly expanding my knowledge to innovate and lead effectively. My journey is driven by a commitment to excellence, and to make a meaningful impact in the world.
Putting the SPARK into Virtual Training.pptxCynthia Clay
This 60-minute webinar, sponsored by Adobe, was delivered for the Training Mag Network. It explored the five elements of SPARK: Storytelling, Purpose, Action, Relationships, and Kudos. Knowing how to tell a well-structured story is key to building long-term memory. Stating a clear purpose that doesn't take away from the discovery learning process is critical. Ensuring that people move from theory to practical application is imperative. Creating strong social learning is the key to commitment and engagement. Validating and affirming participants' comments is the way to create a positive learning environment.
3.0 Project 2_ Developing My Brand Identity Kit.pptxtanyjahb
A personal brand exploration presentation summarizes an individual's unique qualities and goals, covering strengths, values, passions, and target audience. It helps individuals understand what makes them stand out, their desired image, and how they aim to achieve it.
Memorandum Of Association Constitution of Company.pptseri bangash
www.seribangash.com
A Memorandum of Association (MOA) is a legal document that outlines the fundamental principles and objectives upon which a company operates. It serves as the company's charter or constitution and defines the scope of its activities. Here's a detailed note on the MOA:
Contents of Memorandum of Association:
Name Clause: This clause states the name of the company, which should end with words like "Limited" or "Ltd." for a public limited company and "Private Limited" or "Pvt. Ltd." for a private limited company.
https://seribangash.com/article-of-association-is-legal-doc-of-company/
Registered Office Clause: It specifies the location where the company's registered office is situated. This office is where all official communications and notices are sent.
Objective Clause: This clause delineates the main objectives for which the company is formed. It's important to define these objectives clearly, as the company cannot undertake activities beyond those mentioned in this clause.
www.seribangash.com
Liability Clause: It outlines the extent of liability of the company's members. In the case of companies limited by shares, the liability of members is limited to the amount unpaid on their shares. For companies limited by guarantee, members' liability is limited to the amount they undertake to contribute if the company is wound up.
https://seribangash.com/promotors-is-person-conceived-formation-company/
Capital Clause: This clause specifies the authorized capital of the company, i.e., the maximum amount of share capital the company is authorized to issue. It also mentions the division of this capital into shares and their respective nominal value.
Association Clause: It simply states that the subscribers wish to form a company and agree to become members of it, in accordance with the terms of the MOA.
Importance of Memorandum of Association:
Legal Requirement: The MOA is a legal requirement for the formation of a company. It must be filed with the Registrar of Companies during the incorporation process.
Constitutional Document: It serves as the company's constitutional document, defining its scope, powers, and limitations.
Protection of Members: It protects the interests of the company's members by clearly defining the objectives and limiting their liability.
External Communication: It provides clarity to external parties, such as investors, creditors, and regulatory authorities, regarding the company's objectives and powers.
https://seribangash.com/difference-public-and-private-company-law/
Binding Authority: The company and its members are bound by the provisions of the MOA. Any action taken beyond its scope may be considered ultra vires (beyond the powers) of the company and therefore void.
Amendment of MOA:
While the MOA lays down the company's fundamental principles, it is not entirely immutable. It can be amended, but only under specific circumstances and in compliance with legal procedures. Amendments typically require shareholder
Remote sensing and monitoring are changing the mining industry for the better. These are providing innovative solutions to long-standing challenges. Those related to exploration, extraction, and overall environmental management by mining technology companies Odisha. These technologies make use of satellite imaging, aerial photography and sensors to collect data that might be inaccessible or from hazardous locations. With the use of this technology, mining operations are becoming increasingly efficient. Let us gain more insight into the key aspects associated with remote sensing and monitoring when it comes to mining.
Business Valuation Principles for EntrepreneursBen Wann
This insightful presentation is designed to equip entrepreneurs with the essential knowledge and tools needed to accurately value their businesses. Understanding business valuation is crucial for making informed decisions, whether you're seeking investment, planning to sell, or simply want to gauge your company's worth.
Accpac to QuickBooks Conversion Navigating the Transition with Online Account...PaulBryant58
This article provides a comprehensive guide on how to
effectively manage the convert Accpac to QuickBooks , with a particular focus on utilizing online accounting services to streamline the process.
What is the TDS Return Filing Due Date for FY 2024-25.pdfseoforlegalpillers
It is crucial for the taxpayers to understand about the TDS Return Filing Due Date, so that they can fulfill your TDS obligations efficiently. Taxpayers can avoid penalties by sticking to the deadlines and by accurate filing of TDS. Timely filing of TDS will make sure about the availability of tax credits. You can also seek the professional guidance of experts like Legal Pillers for timely filing of the TDS Return.
Falcon stands out as a top-tier P2P Invoice Discounting platform in India, bridging esteemed blue-chip companies and eager investors. Our goal is to transform the investment landscape in India by establishing a comprehensive destination for borrowers and investors with diverse profiles and needs, all while minimizing risk. What sets Falcon apart is the elimination of intermediaries such as commercial banks and depository institutions, allowing investors to enjoy higher yields.
Cracking the Workplace Discipline Code Main.pptxWorkforce Group
Cultivating and maintaining discipline within teams is a critical differentiator for successful organisations.
Forward-thinking leaders and business managers understand the impact that discipline has on organisational success. A disciplined workforce operates with clarity, focus, and a shared understanding of expectations, ultimately driving better results, optimising productivity, and facilitating seamless collaboration.
Although discipline is not a one-size-fits-all approach, it can help create a work environment that encourages personal growth and accountability rather than solely relying on punitive measures.
In this deck, you will learn the significance of workplace discipline for organisational success. You’ll also learn
• Four (4) workplace discipline methods you should consider
• The best and most practical approach to implementing workplace discipline.
• Three (3) key tips to maintain a disciplined workplace.
Improving profitability for small businessBen Wann
In this comprehensive presentation, we will explore strategies and practical tips for enhancing profitability in small businesses. Tailored to meet the unique challenges faced by small enterprises, this session covers various aspects that directly impact the bottom line. Attendees will learn how to optimize operational efficiency, manage expenses, and increase revenue through innovative marketing and customer engagement techniques.
Digital Transformation in PLM - WHAT and HOW - for distribution.pdf
SAP Integration with Excel - Basic Guide
1. 1
SAP integration with Excel -
Basic Guide
Summary
This document provides a foundation overview of SAP Integration with Excel. This is a two-part series
document: the basic guide shows how Excel can retrieve data from SAP; the advanced guid e shows how
Excel can post data into SAP.
Perquisites:
Basic SAP ABAP knowledge is required. SAP terminologies and jargons are applied for brevity.
Disclaimers:
Although the author and publisher have made every reasonable attempt to achieve complete ac curacy of the
content, they assume no responsibility for errors or omissions. You should use this information as you see fit,
and at your own risk.
This publication is not affiliated with, sponsored by, or approved by SAP. Any trademarks, service marks,
product names or named features are assumed to be the property of their respective owners, and are used
only for reference.
2. SAP Excel Integration
2
Table of Contents
Business Requirements ........................................................................................................................... 3
System Architecture ................................................................................................................................ 5
Preparatory work in RFC FM.................................................................................................................... 6
Preparatory work in Excel VBA................................................................................................................. 8
Integration & Testing ............................................................................................................................. 13
Conclusion............................................................................................................................................ 14
Appendix .............................................................................................................................................. 15
Author Bio............................................................................................................................................. 18
Reference............................................................................................................................................. 19
3. SAP Excel Integration
3
Business Requirements
In an enterprise with SAP, there can be business units where sales order creation is minimal. Hence, there is
a requirement to create a streamlined user entry/retrieval interface.
It will be a dream come true to have sales order data input in Excel and have these data posted into SAP at
a click of a button and review them back again in Excel. In this document, we will go through how to create a
SAP RFC Function Module that can be called by an Excel VBA.
Base on the above, we will design a simple proof of concept.
Step 1: This is the Sales Order in SAP screen that will be retrieved into Excel format.
Step 2: This is the Excel Sales Order Retrieval screen, to be populated with Sales Order information.
5. SAP Excel Integration
5
System Architecture
As the Excel Integration process comprises of various components and interactions, a 3-Tier Model-View-
Controller Framework should be applied to manage the complexity.
3-Tier Model-View-Controller Framework
In the 3-Tier MVC Framework, there are
View/ Interface:The role focuseson userinteraction;collectinganddisplayinginformation. Inour
specificcase,thiswill be ourExcel anditsembeddedVBA.
Controller:The role focusesontransmittingandmanipulationof information. Inourspecificcase,
thiswill be ourSAPRFC FunctionModule.
Model:The role focusesondata storage and itsrelatedprocesses. Inourspecificcase,thiswillbe
the underlyingDatabase.
This document will now be divided into 2 sections:
Preparatory work in RFC FM – this explains how the Controller of the architecture is coded.
Preparatory work in Excel VBA – this explains how the View/Interface of the architecture is
scripted.
6. SAP Excel Integration
6
Preparatory work in RFC FM
The purpose of RFC FM/BAPI is to read sales header and line items data from SAP backend.
This can be achieved by creating a wrapper RFC FM as “ZZZ_SO_BAPI”. This RFC FM will perform
appropriate coordination and relay information to/from the standard BAPI
“BAPI_SALESORDER_GETDETAILBOS”. (It is a good practice to create a wrapper RFC FM, instead of having
the invoking interface calling the standard BAPI directly)
Note: the FM must be “Remote-Enabled”
Note: full code at appendix.
7. SAP Excel Integration
7
Function Module Unit Testing is as per expectation.
Sales Order 401004151 is retrieved with its header information and 3 line items.
8. SAP Excel Integration
8
Preparatory work in Excel VBA
To be able to perform scripting in Excel VBA, the Developer Tab needs to be turned on.
Once turned on, user interface controls such as buttons, checkbox, text field can be used.
9. SAP Excel Integration
9
This is the layout we will be using for Sales Order Retrieval. User will input the Sales Order to be retrieved
and press the “Retrieve SO” button. Information such as customer, customer reference PO# and the line
items will be displayed.
10. SAP Excel Integration
10
To attach VBA codes to the button, we need to access the “Assign Macro” context menu item.
Once selected, the VBA editor will be accessible.
11. SAP Excel Integration
11
SAP ActiveX components needs to be referenced by MS VBA, via the Tools menu.
Typically the ActiveX files (.OCX) are found in SAP frontend folder.
12. SAP Excel Integration
12
The start of the script is to instantiate ActiveX Components “SAP LogonControl.1” and “SAP.Functions”.
The actual function call to “ZZZ_SO_BAPI” is as per below.
Note: full script at appendix.
13. SAP Excel Integration
13
Integration & Testing
With both the Excel VBA scripting and SAP RFC FM coding completed, we can perform end-to-end testing.
Testing within SAP end Testing at Excel end
14. SAP Excel Integration
14
Conclusion
The standard way of access SAP is via SAP GUI. However, it is technically possible to access SAP using
ActiveX control delivered by SAP. This greatly enriches the developer toolset to provide user a wide array of
connectivity options (such as Excel VBA, JAVA, C++, ASP/C#, JavaScript). From a business perspective,
an intuitive user interface greatly enhances user experiences and potentially reduces user training cost.
Kindly look out for ‘SAP integration with Excel - Advanced Guide, by Benedict Yong’ for part II (last part) of
this two-part series.
15. SAP Excel Integration
15
Appendix
Full RFC FM ABAP
FUNCTION zzz_so_bapi.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" VALUE(SALESDOCUMENT) LIKE BAPIVBELN-VBELN
*" EXPORTING
*" VALUE(ORDERHEADER) LIKE BAPISDHD STRUCTURE BAPISDHD
*" TABLES
*" ORDERITEMS STRUCTURE BAPISDITBOS OPTIONAL
*"----------------------------------------------------------------------
CALL FUNCTION 'BAPI_SALESORDER_GETDETAILBOS'
EXPORTING
salesdocument = salesdocument
IMPORTING
orderheader = orderheader
TABLES
orderitems = orderitems.
SELECT SINGLE name1 FROM kna1 INTO orderheader-sold_to
WHERE kunnr = orderheader-sold_to.
ENDFUNCTION.
16. SAP Excel Integration
16
Full Excel VBA Scripting
Sub Button1_Click()
'---------------------------------
' Declaration.
'---------------------------------
Dim LogonControl As SAPLogonCtrl.SAPLogonControl
Dim R3Connection As SAPLogonCtrl.Connection
Dim TableFactory As SAPTableFactory
Dim Functions As SAPFunctionsOCX.SAPFunctions
Dim objBAPIControl As Object
Dim oWB As Workbook
Dim oST As Worksheet
Set oWB = Application.ActiveWorkbook
Set oST = oWB.Worksheets(1)
'---------------------------------
' Initialize SAP ActiveX Control.
'---------------------------------
Set LogonControl = CreateObject("SAP.LogonControl.1")
Set R3Connection = LogonControl.NewConnection
Dim objBAPIControl As Object
Set objBAPIControl = CreateObject("SAP.Functions")
'--------------------
' Logon with prompt.
'--------------------
R3Connection.Client = "100" 'as per SAP Logon Pad
R3Connection.System = "SID" 'as per SAP Logon Pad
R3Connection.SystemNumber = "00" 'as per SAP Logon Pad
R3Connection.ApplicationServer = "XX.XX.XX.XX" 'as per SAP Logon Pad
R3Connection.User = "sapidx" 'as per SAP Logon Pad
R3Connection.Password = "sapid-passwdx" 'as per SAP Logon Pad
Application.StatusBar = "Start of Logging in"
SY_Subrc = R3Connection.Logon(0, SilentLogon)
If SY_Subrc <> True Then MsgBox "Logon failed": Exit Sub
Application.StatusBar = "Login Successful"
Set objBAPIControl.Connection = R3Connection
'---------------------------------
' Retrieve a sales order.
'---------------------------------
17. SAP Excel Integration
17
Dim vRow, vCol As Integer
Dim vStr As Integer
Dim vMax, vIdx As Integer
Dim oSearch As String
Dim oInfo As Object
Dim oTabl As Object
oSearch = Cells(4, 4).Value
Set oBAPI = objBAPIControl.Add("ZZZ_SO_BAPI")
oBAPI.Exports("SALESDOCUMENT") = oSearch
Set oInfo = oBAPI.Imports("ORDERHEADER")
Set oTabl = oBAPI.Tables("ORDERITEMS")
Application.StatusBar = "Perform SAP Call"
SY_Subrc = oBAPI.Call
If SY_Subrc <> True Then MsgBox "Call failed": Exit Sub
Application.StatusBar = "Perform SAP Call Successful"
oST.Cells(6, 4).Value = oInfo.Value("SOLD_TO")
oST.Cells(7, 4).Value = Trim(oInfo.Value("PURCH_NO"))
vMax = oTabl.Rows.Count
vCol = 3: vStr = 9
For vIdx = 1 To vMax
vRow = vStr + vIdx
oST.Cells(vRow, vCol + 0) = oTabl.Value(vIdx, "ITM_NUMBER")
oST.Cells(vRow, vCol + 1) = oTabl.Value(vIdx, "MATERIAL")
oST.Cells(vRow, vCol + 2) = Trim(oTabl.Value(vIdx, "NET_VALUE"))
oST.Cells(vRow, vCol + 3) = Trim(oTabl.Value(vIdx, "SHORT_TEXT"))
Next vIdx
'-----------------------------------
' Logoff SAP and close the control.
'-----------------------------------
R3Connection.Logoff
Set LogonControl = Nothing
Set objBAPIControl = Nothing
End Sub
18. SAP Excel Integration
18
Author Bio
Benedict Yong is a PMP/ITIL trained Project Consultant with 9+ years Finance domain experience (FICO,
COPA, BPC) and 3+ years of Logistics experiences (SD, MM, PS, CS). He holds four SAP® Functional
Certifications (Financial Accounting, Management Accounting, Sales, Procurement) and three Technical
Certifications (S/4 HANA Implementation Architect, S/4 Cloud Onboarding with SAP Activate, SAP
Business Intelligence 7.0).
He holds a Bachelor of Management and a Diploma in IT. He has worked in Banking,
Retail and Manufacturing industries, playing both in-house and external consultant
role.
He is situated in Singapore and is bilingual in English and Mandarin. He can be
contacted at benytx@gmail.com.
For people who are interested to have a holistic understanding of ERP, a PDF document will not be
enough. “ERP Made Simple” at Amazon might prove to be useful.
https://www.amazon.com/dp/B083C3X8YY
19. SAP Excel Integration
19
Reference
1. SAP Help - BAPI Framework
https://help.sap.com/doc/saphelp_46c/4.6C/en-
US/d8/44ca02ac3c11d189c60000e829fbbd/content.htm
2. SAP OSS – note 2256415 - Adaptation of RFC controls (Logon, Function, Table and BAPI) to use
SAP NetWeaver RFC Library
https://launchpad.support.sap.com/#/notes/2256415
3. SAP SDN – Common export parameter issues
https://blogs.sap.com/2014/04/27/activex-component-sapfunctions-with-export-parameter-string/
https://answers.sap.com/questions/529288/datatype-problem-with-sap-gui-75-pl5-unicode-activ.html
https://answers.sap.com/questions/10222185/activex-component-sapfunctions-with-export-
paramet.html