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 (apto para móviles)
  3. Disponible en iOS y Android
eBook - ePub

SAP interface programming with RFC and VBA

Edit SAP data with MS Access

Karl Josef Hensel

Detalles del libro
Vista previa del libro
Índice
Citas

Información del 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.

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es SAP interface programming with RFC and VBA un PDF/ePUB en línea?
Sí, puedes acceder a SAP interface programming with RFC and VBA de Karl Josef Hensel en formato PDF o ePUB, así como a otros libros populares de Informatique y Applications de bureau. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Editorial
tredition
Año
2022
ISBN
9783347574793
Edición
1
Categoría
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...

Índice

  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
Estilos de citas para 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.