SAP interface programming with RFC and VBA
eBook - ePub

SAP interface programming with RFC and VBA

Edit SAP data with MS Access

Karl Josef Hensel

  1. English
  2. ePUB (disponibile sull'app)
  3. Disponibile su iOS e Android
eBook - ePub

SAP interface programming with RFC and VBA

Edit SAP data with MS Access

Karl Josef Hensel

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Informazioni sul libro

The migration of data is an important process when introducing SAP systems or adopting new data from third-party systems. This takes up a large proportion of the time and thus also the costs in migration projects. This book gives you practical tips and examples of how you can use Microsoft products and the VBA programming language to quickly and inexpensively create useful migration tools yourself. It is not necessary to install the software on the SAP systems. This saves the time-consuming procedure of software implementation in SAP systems. Developments with ABAP code, complex documentation, tests in development, quality and productive systems are not necessary and save time and money. The batch input interface and the LSMW and CATT tools are no longer required.The book is suitable for administrators, technical consultants and developers in the SAP environment. Even power users from the specialist departments will be able to produc-tively extract or upload data from the SAP systems after reading it. The programs created according to my method can be used for all SAP modules. As an example, I use functionalities of the SAP module PS. By using ready-made SAP functions and BAPI's, functionalities such as creating and changing projects and WBS-Elements can be carried out.

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
SAP interface programming with RFC and VBA è disponibile online in formato PDF/ePub?
Sì, puoi accedere a SAP interface programming with RFC and VBA di Karl Josef Hensel in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Informatique e Applications de bureau. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Editore
tredition
Anno
2022
ISBN
9783347574793
Edizione
1
Argomento
Informatique
Chapter 1
Chapter 1.1 – The logon to the SAP system
You have to decide on a login type in advance when programming.
I definitely recommend using the logon for functions and staying on track.
Set FunctionCtrl = CreateObject("SAP.Functions")
The advantage is that all SAP functions as well as all BAPI functions can be used, which is not possible the other way around and leads to a constant new logon.
If no logon parameters are given in the program, the SAP GUI logon is used automatically.
Logon example:
'******** RFC LOGON ****************
If Not sapConnection Is Nothing Then
If sapConnection.IsConnected <> 1 Then
If RFC_Connect() = False Then Exit Sub
End If
Else
If RFC_Connect() = False Then Exit Sub
End If
'******** RFC LOGON END ************
Requirements:
Create a module in which all RFC functions are collected, e.g.
Module name SAP_RFC
The following objects are declared:
Declarations:
Public FunctionCtrl As Object
Public sapConnection As Object
Private oRowOPTIONS As Object
Private Akt_User As String
Private Akt_PW As String
Private Akt_SAP_System As String
Private Akt_SAPMandant As String
Private Akt_SAPLang As String
Private Akt_ApplicationServer As String
Private Akt_SystemNumber As Integer
Private oRFC_READ_TABLE As Object
Private MyArray(10) As Variant
Required functions:
' *********************************************************************************
' Public Functions
' *********************************************************************************
Public Function RFC_Connect(Optional s_User = "", _
Optional s_PW = "", _
Optional s_SAP_System = "", _
Optional s_SAPMandant = "", _
Optional s_SAPLang = "", _
Optional s_ApplicationServer = "", _
Optional i_SystemNumber = 0) As Boolean
On Error GoTo Error
Dim Pruefnummer
Dim TEMP As Variant
RFC_Connect = False
' Parameter setzen
If s_User <> "" Then Akt_User = s_User
1:
Pruefnummer = 1
TEMP = FunctionCtrl.Count
2:
Pruefnummer = 2
If sapConnection.IsConnected <> 1 Then GoTo Error
RFC_Connect = True
Exit Function
Error:
Err.Clear
Select Case Pruefnummer
Case 1 ' FunctionCtrl nicht initiert.
pr_Init
GoTo 1
Case 2 ' Noch keine SAP-Anmeldung
If pr_Logon() = False Then Exit Function
GoTo 2
End Select
End Function
' *********************************************************************************
' Private Functions
' *********************************************************************************
Private Sub pr_Init()
Set FunctionCtrl = CreateObject("SAP.Functions")
Set sapConnection = FunctionCtrl.Connection
End Sub
Private Function pr_Logon() As Boolean
Dim silent As Boolean
If sapConnection.IsConnected = 1 Then Exit Function
sapConnection.Client = Akt_SAPMandant
sapConnection.LANGUAGE = Akt_SAPLang
sa...

Indice dei contenuti

  1. Cover
  2. Title Page
  3. Table of Contents
  4. Chapter 1
  5. Chapter 2
  6. Chapter 3
  7. Chapter 4
  8. Chapter 5
  9. Chapter 6
  10. Chapter 7
  11. Epilogue:
  12. Index
  13. Copyright
Stili delle citazioni per SAP interface programming with RFC and VBA

APA 6 Citation

Hensel, K. J. (2022). SAP interface programming with RFC and VBA (1st ed.). tredition. Retrieved from https://www.perlego.com/book/3282747/sap-interface-programming-with-rfc-and-vba-edit-sap-data-with-ms-access-pdf (Original work published 2022)

Chicago Citation

Hensel, Karl Josef. (2022) 2022. SAP Interface Programming with RFC and VBA. 1st ed. tredition. https://www.perlego.com/book/3282747/sap-interface-programming-with-rfc-and-vba-edit-sap-data-with-ms-access-pdf.

Harvard Citation

Hensel, K. J. (2022) SAP interface programming with RFC and VBA. 1st edn. tredition. Available at: https://www.perlego.com/book/3282747/sap-interface-programming-with-rfc-and-vba-edit-sap-data-with-ms-access-pdf (Accessed: 15 October 2022).

MLA 7 Citation

Hensel, Karl Josef. SAP Interface Programming with RFC and VBA. 1st ed. tredition, 2022. Web. 15 Oct. 2022.