Question

RFC to read data from SAP logical database ODK

Asked by: cErasmus

Is there a SAP remote function call (RFC) that one can use to extract data from any logical SAP database for example ODK?

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-03-15 at 07:47:06ID24231708
Topic

SAP ERP

Participating Experts
1
Points
500
Comments
1

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Getting SAP general state through RFC calls
    Hi, I need to query SAP from java (servlet). The idea is a simple page in the intranet to show if all the instances are available, no. of connected users, etc. I 've successfully made the RFC connection through Java Connector (JCo) and I can execute some test RFC functions. ...
  2. Description of SAP cross application components
    Hello, Could you please provide a general description of the differences between the types of cross application component, including the following: SAP Forms, SAP Smart Forms, SAP Script, IDoc, GUI Interfaces (Automation), GUI Code generator, RFC interfaces, BAPI, Bat...
  3. Data from mySQL to SAP
    I am currently working on an ecommerce project. My client is setting up his accounting and order processing through a SAP software. Our goal is to transfer the data from our mySQL database to my clients SAP. The SAP end has not yet been set up. I am wondering if setting up th...
  4. Integration/Interfaces to SAP
    Hi, Can someone advise about various interfaces available to fetch data from SAP, in general? 1. I have a scenario where SAP is used to maintain Debit, Payments, Credit information per customer. I have an application running on DB2. I want to fetch information from SAP and i...
  5. Mapping of transactions to BAPI(/RFC) calls?
    Are transactions mapped to BAPI (or RFC) calls? Is there a way to find the BAPI that is used by a transaction?
  6. Excel connect SAP
    I am using VBA to retrieve data from SAP, when the following line is execute "Set RfcCallTransaction = Functions.Add("RFC_CALL_TRANSACTION")" the error messge "SAP Remote Function CALL" is displayed? Can anybody provide me the solution?

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: PsychotecPosted on 2009-03-16 at 01:28:23ID: 23895461

check out this:
http://www.codeproject.com/KB/dotnet/ERPConnect_Article1.aspx

See code: Function musteri_bakiye

Imports Microsoft.VisualBasic
Imports System.Data
Imports System.Data.OleDb
Namespace Saputilty
'RFC T0PLER0
'ABAP/4 data types ANSI C Visual Basic Comment 
'Const gTYPC = 0 'RFC_CHAR STRING $ characters 
'Const gTYPDATE = 1 'RFC_DATE STRING $ date (YYYYMMDD) 
'Const gTYPP = 2 'RFC_BCD STRING $ packed numbers 
'Const gTYPTIME = 3 'RFC_TIME STRING $ time (HHMMSS) 
'Const gTYPX = 4 'RFC_BYTE STRING $ raw data 
'Const gTYPTABH = 5 'not used here 
'Const gTYPNUM = 6 'RFC_NUM STRING $ digits 
'Const gTYPFLOAT = 7 'RFC_FLOAT FLOAT # floating point 
'Const gTYPINT = 8 'RFC_INT LONG & 4 byte integer 
'Const gTYPINT2 = 9 'RFC_INT2 INTEGER % 2 byte integer 
'Const gTYPINT1 = 10 'RFC_INT1 INTEGER % 1 byte integer 
'Const gTYPB = 11 'not used here 
'Const gTYP1 = 12 'not used here 
'Const gTYP2 = 13 'not used here 
'RFC_MODE Rfc open modus 
'Const RFC_MODE_R3ONLY = 0 'only for R/3 systems, any kind of user 
'Const RFC_MODE_CPIC = 1 'can be used for R/2, but CPIC-Users only 
'T2.Columns(3).Decimals 0 say1 ise decimal k1s1m
'T2.Columns(3).Name MSNUMBER ad1
'T2.Columns(3).Type 0 tipi
'T2.Columns(3).TypeName String RFC tip adi
'T2.Columns(3).intlength 10 uzunluk 
 
'RFC_RC Rfc return codes 
'Const RFC_OK = 0 'OK 
'Const RFC_FAILURE = 1 'error occured 
'Const RFC_EXCEPTION = 2 'exception raised 
'Const RFC_SYS_EXCEPTION = 3 'system exception raised, connection closed 
'Const RFC_CALL = 4 'call received 
'Const RFC_INTERNAL_COM = 5 'internal communication, repeat 
'Const RFC_CLOSED = 6 'connection closed by the other side 
'Const RFC_RETRY = 7 'no data yet (RfcListen only) 
'Const RFC_NO_TID = 8 'no transaction ID available 
'Const RFC_EXECUTED = 9 'function already executed 
'Type BAPIRETURN 
'Type As STRING * 1 
'Code As STRING * 5 
'Message As STRING * 220 
'LogNo As STRING * 20 
'LogMsgNo As STRING * 6 
'MessageV1 As STRING * 50 
'MessageV2 As STRING * 50 
'MessageV3 As STRING * 50 
'MessageV4 As STRING * 50 
'End Type 
Public Class Saptools
Public Structure SapConnectionOptions
Public logfilename As String
Public loglevel As Integer
Public ApplicationServer As String
Public user As String
Public Password As String
Public Destination As String
Public Client As String
Public Language As String
Public System As String
Public systemid As String
Public SystemNumber As Integer
Public GatewayHOST As String
Public Gatewayservice As String
Public tracelevel As Integer
End Structure
Public Structure Personel_bil
Public BUKRS As String 'S1n1rlama nas1l 4 katrakter 
Public ADSOYAD As String
Public AUFNR As String
Public GSBER As String
Public KOSTL As String
Public CEPTEL As String
Public PLAKA As String
Public KUNNR As String
Public SP_GL_IND As String
Public DB_CR_IND As String
Public LOC_CURRCY As String
Public LC_BAL As String
Public HATA As String
End Structure
Public Structure musteri_bil
Public UNVAN1 As String
Public UNVAN2 As String
Public ADRES1 As String
Public ADRES2 As String
Public SEMT As String
Public POSTCODE As String
Public KENT As String
Public TEL_NUMBER As String
Public FAX_NUMBER As String
Public ISTASYONISMI As String
End Structure
Public Structure MasrafBaslik
Public MANDT As String
Public BUKRS As String
Public MSNUMBER As String
Public MSTARIHI As String
Public PERSNOB As String
Public VALUT As String
Public WAERS As String
Public MSHARCAMATUR As String
Public MSAVANSTOP As String
Public MSAVANSBKY As String
Public MSAVANSKAL As String
End Structure
Public Structure MasrafBelgeSatir
Public MANDT As String 'Üst birim
Public BUKRS As String '^irket kodu
Public MSNUMBER As String 'Masraf Numaras1
Public MSTARIHI As String 'Masraf Tarihi
Public WAERS As String 'Para Birimi
Public BUZEI As String 'Masraf Satir No
Public MSCESIDI As String 'Masraf Çe_idi
Public MSFATTARIHI As String 'Fatura/Fi_ Tarihi
Public MSFATURANO As String 'Fatura No
Public WRBTR As String 'Belge para birimi cinsinden tutar
Public MWSKZ As String 'Kdv Göstergesi
Public FWBAS As String 'vergi matrah1
Public WMWST As String 'vergi tutar1
Public BELNR As String 'Muhasebe belge no
Public BUDAT As String 'Belgedeki kay1t tarihi
Public SGTXT As String 'Masraf Kalemi aç1klama
Public KOSTL As String 'Masraf Yeri
Public AUFNR As String '0ç Sipari_
Public PERSNO As String 'Personel No
Public KFZKZ As String 'Ta_1t Plakasi
Public ANLN1 As String 'Duran varl1k ana numaras1
Public ANLN2 As String 'Duran varl1k alt numaras1
Public MENGE As String 'Miktar
Public MEINS As String 'Temel ölçü birimi
End Structure
Private Personel As Personel_bil
Private SapFunctions As Object
Dim FNS As Object
Dim CONN, RS, MYFUNC, T1, T2, T3, t4_reserved As Object
Private T_ConnectionState As Boolean
Private T_ShowConnectDialog As Boolean
Private T_FunctionCalledState As Boolean = False
Public Sub New()
T_ShowConnectDialog = True
T_ConnectionState = False
End Sub
Public Sub New(ByVal ShowConnectDialog As Boolean)
T_ShowConnectDialog = ShowConnectDialog
T_ConnectionState = False
End Sub
Sub SAP_CONNECT(ByVal Connectoption As SapConnectionOptions, ByVal VarsayilanBaglanti As Boolean)
FNS = CreateObject("SAP.Functions")
CONN = FNS.Connection
RS = Nothing
MYFUNC = Nothing
T1 = Nothing
T2 = Nothing
T3 = Nothing
If Not VarsayilanBaglanti Then
If Connectoption.logfilename <> "" Then FNS.logfilename = Connectoption.logfilename
If Connectoption.loglevel > -1 Then FNS.loglevel = Connectoption.loglevel
If Connectoption.ApplicationServer <> "" Then CONN.ApplicationServer = Connectoption.ApplicationServer
If Connectoption.user <> "" Then CONN.user = Connectoption.user
If Connectoption.Password <> "" Then CONN.Password = Connectoption.Password
If Connectoption.Destination <> "" Then CONN.Destination = Connectoption.Destination
If Connectoption.Client <> "" Then CONN.Client = Connectoption.Client
If Connectoption.Language <> "" Then CONN.Language = Connectoption.Language
If Connectoption.System <> "" Then CONN.system = Connectoption.System
If Connectoption.systemid <> "" Then CONN.systemid = Connectoption.systemid
If Connectoption.SystemNumber <> Nothing Then CONN.SystemNumber = Connectoption.SystemNumber
If Connectoption.GatewayHOST <> "" Then CONN.GatewayHOST = Connectoption.GatewayHOST
If Connectoption.Gatewayservice <> "" Then CONN.Gatewayservice = Connectoption.Gatewayservice
If Connectoption.tracelevel > -1 Then CONN.tracelevel = Connectoption.tracelevel
Else
FNS.logfilename = "C:\RFSsap.txt"
FNS.loglevel = 7
CONN.ApplicationServer = 'xxx'
CONN.user = "xxxxxx"
CONN.Password = "xxxxxxx"
CONN.Client = "xxx"
CONN.Language = "T"
CONN.tracelevel = 6
End If
T_ConnectionState = CONN.Logon(0, T_ShowConnectDialog)
End Sub
Sub SAP_DISCONNECT()
If T_ConnectionState = True Then
T_ConnectionState = False
CONN.logoff()
FNS.Connection.logoff()
FNS = Nothing
CONN = Nothing
MYFUNC = Nothing
T1 = Nothing
T2 = Nothing
T3 = Nothing
End If
End Sub
 
Public ReadOnly Property ConnectionState() As Boolean
Get
' Return T_ConnectionState
' T_ConnectionState = CONN.isconnected
Try
If CONN Is Nothing Then
Return False
Else
'Return CONN.isconnected
Return T_ConnectionState
End If
Catch ex As Exception
Return False
End Try
 
End Get
End Property
Public ReadOnly Property FunctionCalledState() As Boolean
Get
Return T_FunctionCalledState
End Get
End Property
Public Property ShowConnectdialog() As Boolean
Get
Return T_ShowConnectDialog
End Get
Set(ByVal Value As Boolean)
T_ShowConnectDialog = Value
End Set
End Property
 
Sub ConvertDataTabletOSaptable(ByVal DtTable As DataTable, ByRef saptable As Object)
Dim readrow As DataRow
Dim sira As Integer = 1
For j As Integer = 0 To DtTable.Rows.Count - 1
 
saptable.Rows.Add()
readrow = DtTable.Rows.Item(j)
 
For k As Integer = 0 To DtTable.Columns.Count - 1
If DtTable.Columns(k).ToString <> "MsCesID" Then
saptable.Value(sira, DtTable.Columns(k).ToString) = readrow(DtTable.Columns(k).ToString)
End If
Next
sira += 1
Next j
End Sub
 
Function ConvertSaptableToDataTable(ByVal Saptable As Object) As DataTable
Dim TableName As String = Saptable.name.ToString
Dim dt As New DataTable(TableName)
Dim myRow As DataRow
For i As Integer = 1 To Saptable.COLUMNCOUNT
With dt.Columns.Add
.ColumnName = Saptable.Columns(i).Name.ToString
Select Case Saptable.Columns(i).typename
Case "String RFC"
.DataType = System.Type.GetType("System.String")
Case "Date RFC"
.DefaultValue = Now
.DataType = System.Type.GetType("System.DateTime")
Case "Numerical RFC"
.DataType = System.Type.GetType("System.Int32")
Case "BCD RFC"
.DataType = System.Type.GetType("System.Decimal")
Case "Time RFC"
.DefaultValue = Now
.DataType = System.Type.GetType("System.DateTime")
Case "Byte RFC"
.DataType = System.Type.GetType("System.Int16")
Case "Short RFC"
.DataType = System.Type.GetType("System.Int16")
Case "Long RFC"
.DataType = System.Type.GetType("System.Int64")
Case "Float RFC"
.DataType = System.Type.GetType("System.Double")
End Select
End With
'dt.Columns.Add(Saptable.Columns(i).Name.ToString)
Next i
For i As Integer = 1 To Saptable.RowCount
myRow = dt.NewRow()
For j As Integer = 1 To Saptable.COLUMNCOUNT
Dim gecici As String = dt.Columns(j - 1).ToString
myRow(gecici) = Saptable.Value(i, gecici.ToString)
Next j
dt.Rows.Add(myRow)
Next i
Return dt
End Function
 
Sub personel_bilgi(ByVal pers_no As String, ByVal KEYDATE As String, ByVal UMSKZ As String, ByRef Personel As Personel_bil)
If T_ConnectionState Then
MYFUNC = FNS.Add("Z_RFC_PERSONEL_BILGILERI")
MYFUNC.exports("PERNR") = pers_no
MYFUNC.exports("KEYDATE") = KEYDATE
MYFUNC.exports("UMSKZ") = UMSKZ
T_FunctionCalledState = MYFUNC.Call
If T_FunctionCalledState Then
Personel.BUKRS = MYFUNC.ImportS("BUKRS").Value
Personel.ADSOYAD = MYFUNC.ImportS("ADSOYAD").Value
Personel.KOSTL = MYFUNC.ImportS("KOSTL").Value
Personel.SP_GL_IND = MYFUNC.ImportS("SP_GL_IND").Value
Personel.GSBER = MYFUNC.ImportS("GSBER").Value
Personel.KUNNR = MYFUNC.ImportS("KUNNR").Value
Personel.PLAKA = MYFUNC.ImportS("PLAKA").Value
Personel.HATA = MYFUNC.ImportS("HATA").Value
Personel.CEPTEL = MYFUNC.ImportS("CEPTEL").Value
Personel.AUFNR = MYFUNC.ImportS("AUFNR").Value
Personel.LC_BAL = MYFUNC.ImportS("LC_BAL").Value
Dim bakiye As Long
bakiye = Convert.ToDouble(Personel.LC_BAL)
Personel.LC_BAL = bakiye.ToString
End If
End If
End Sub
 
Function musteri_bakiye(ByVal skod As String, ByVal must As String, ByVal KEYDATE As String, ByVal odk As String) As DataSet
Dim ds As New DataSet("sap1")
must = must.PadLeft(10, Char.Parse("0"))
If T_ConnectionState Then
MYFUNC = FNS.Add("BAPI_AR_ACC_GETKEYDATEBALANCE")
T1 = MYFUNC.tables("KEYBALANCE")
T2 = MYFUNC.imports("RETURN")
MYFUNC.exports("COMPANYCODE") = skod
MYFUNC.exports("CUSTOMER") = must
MYFUNC.exports("KEYDATE") = KEYDATE
MYFUNC.exports("BALANCESPGLI") = odk
 
T_FunctionCalledState = MYFUNC.Call
 
If T_FunctionCalledState And Not T1 Is Nothing Then
ds.Tables.Add(ConvertSaptableToDataTable(T1))
End If
End If
Return ds
End Function
 
Function Bapi_get_orders(ByVal CustomerNumber_ As String, _
ByVal SalesOrganization_ As String, _
ByVal Material_ As String, _
ByVal DocumentDate_ As String, _
ByVal DocumentDateTo_ As String, _
ByVal PurchaseOrder_ As String, _
ByVal TransactionGroup_ As Char, _
ByVal PurchaseOrderNumber_ As String) As DataSet
Dim ds As New DataSet("sap1")
If T_ConnectionState Then
MYFUNC = FNS.Add("BAPI_SALESORDER_GETLIST")
T1 = MYFUNC.tables("SALES_ORDERS")
T2 = MYFUNC.imports("RETURN")
CustomerNumber_ = CustomerNumber_.PadLeft(MYFUNC.exports("CUSTOMER_NUMBER").length, Char.Parse("0"))
MYFUNC.exports("CUSTOMER_NUMBER") = CustomerNumber_
MYFUNC.exports("SALES_ORGANIZATION") = SalesOrganization_
MYFUNC.exports("MATERIAL") = Material_
MYFUNC.exports("DOCUMENT_DATE") = DocumentDate_
MYFUNC.exports("DOCUMENT_DATE_TO") = DocumentDateTo_
MYFUNC.exports("PURCHASE_ORDER") = PurchaseOrder_
MYFUNC.exports("TRANSACTION_GROUP") = TransactionGroup_
MYFUNC.exports("PURCHASE_ORDER_NUMBER") = PurchaseOrderNumber_
T_FunctionCalledState = MYFUNC.Call
If T_FunctionCalledState And Not T1 Is Nothing Then
ds.Tables.Add(ConvertSaptableToDataTable(T1))
End If
End If
 
Return ds
End Function
 
 
 
 
Function masraf_belge_kaydet(ByRef BelgeBaslik As MasrafBaslik, ByRef BelgeSatir() As MasrafBelgeSatir) As Boolean
If T_ConnectionState Then
MYFUNC = FNS.Add("Z_RFC_MASRAF_TABLOLARI")
T1 = MYFUNC.tables("ZRFCFI04")
T2 = MYFUNC.tables("ZRFCFI05")
'***********************belge ba_l1k*************************************
T1.Rows.add()
T1.Value(1, "MANDT") = BelgeBaslik.MANDT
T1.Value(1, "BUKRS") = BelgeBaslik.BUKRS
T1.Value(1, "MSNUMBER") = BelgeBaslik.MSNUMBER
T1.Value(1, "MSTARIHI") = BelgeBaslik.MSTARIHI
T1.Value(1, "PERSNOB") = BelgeBaslik.PERSNOB
T1.Value(1, "VALUT") = BelgeBaslik.VALUT
T1.Value(1, "WAERS") = BelgeBaslik.WAERS
T1.Value(1, "MSHARCAMATUR") = BelgeBaslik.MSHARCAMATUR
T1.Value(1, "MSAVANSTOP") = BelgeBaslik.MSAVANSTOP
T1.Value(1, "MSAVANSBKY") = BelgeBaslik.MSAVANSBKY
T1.Value(1, "MSAVANSKAL") = BelgeBaslik.MSAVANSKAL
'***********************Satir********************************************
For k As Integer = 0 To BelgeSatir.Length - 1
T2.Rows.Add()
T2.Value(k + 1, "MANDT") = BelgeSatir(k).MANDT
T2.Value(k + 1, "BUKRS") = BelgeSatir(k).BUKRS
T2.Value(k + 1, "MSNUMBER") = BelgeSatir(k).MSNUMBER
T2.Value(k + 1, "MSTARIHI") = BelgeSatir(k).MSTARIHI
T2.Value(k + 1, "WAERS") = BelgeSatir(k).WAERS
T2.Value(k + 1, "BUZEI") = BelgeSatir(k).BUZEI
T2.Value(k + 1, "MSCESIDI") = BelgeSatir(k).MSCESIDI
T2.Value(k + 1, "MSFATTARIHI") = BelgeSatir(k).MSFATTARIHI
T2.Value(k + 1, "MSFATURANO") = BelgeSatir(k).MSFATURANO
T2.Value(k + 1, "WRBTR") = BelgeSatir(k).WRBTR
T2.Value(k + 1, "MWSKZ") = BelgeSatir(k).MWSKZ
T2.Value(k + 1, "FWBAS") = BelgeSatir(k).FWBAS
T2.Value(k + 1, "WMWST") = BelgeSatir(k).WMWST
T2.Value(k + 1, "BELNR") = BelgeSatir(k).BELNR
T2.Value(k + 1, "BUDAT") = BelgeSatir(k).BUDAT
T2.Value(k + 1, "SGTXT") = BelgeSatir(k).SGTXT
T2.Value(k + 1, "KOSTL") = BelgeSatir(k).KOSTL
T2.Value(k + 1, "AUFNR") = BelgeSatir(k).AUFNR
T2.Value(k + 1, "PERSNO") = BelgeSatir(k).PERSNO
T2.Value(k + 1, "KFZKZ") = BelgeSatir(k).KFZKZ
T2.Value(k + 1, "ANLN1") = BelgeSatir(k).ANLN1
T2.Value(k + 1, "ANLN2") = BelgeSatir(k).ANLN2
T2.Value(k + 1, "MENGE") = BelgeSatir(k).MENGE
T2.Value(k + 1, "MEINS") = BelgeSatir(k).MEINS
Next
End If
T_FunctionCalledState = MYFUNC.Call
Dim Hata As String = MYFUNC.ImportS("HATA").ToString 'error döner
If Hata <> "" Then
Return True
Else
Return False
End If
End Function
 
 
 
Function SD_RFC_CUSTOMER_GET(ByVal CUSTNAME As String) As DataTable
Dim dt As New DataTable
If T_ConnectionState Then
MYFUNC = FNS.Add("SD_RFC_CUSTOMER_GET")
MYFUNC.exports("NAME1") = CUSTNAME
T1 = MYFUNC.tables("CUSTOMER_T")
T_FunctionCalledState = MYFUNC.Call
If T_FunctionCalledState And Not T1 Is Nothing Then
dt = ConvertSaptableToDataTable(T1)
Dim dcolCustCodeName= New DataColumn
dcolMusteriVekodu.ColumnName = "CustomercodeName"
dcolMusteriVekodu.DataType = System.Type.GetType("System.String")
dcolMusteriVekodu.Expression = "KUNNR + ' ' + NAME1"
dt.Columns.Add(dcolCustCodeName)
End If
End If
Return dt
End Function
 
End Class
 
End Namespace
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
328:
329:
330:
331:
332:
333:
334:
335:
336:
337:
338:
339:
340:
341:
342:
343:
344:
345:
346:
347:
348:
349:
350:
351:
352:
353:
354:
355:
356:
357:
358:
359:
360:
361:
362:
363:
364:
365:
366:
367:
368:
369:
370:
371:
372:
373:
374:
375:
376:
377:
378:
379:
380:
381:
382:
383:
384:
385:
386:
387:
388:
389:
390:
391:
392:
393:
394:
395:
396:
397:
398:
399:
400:
401:
402:
403:
404:
405:
406:
407:
408:
409:
410:
411:
412:
413:
414:
415:
416:
417:
418:
419:
420:
421:
422:
423:
424:
425:
426:
427:
428:
429:
430:
431:
432:
433:
434:
435:
436:
437:
438:
439:
440:
441:
442:
443:
444:
445:
446:
447:
448:
449:
450:

Select allOpen in new window

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...