如何查看SAP表的输出 [英] How to view the output of SAP table

查看:84
本文介绍了如何查看SAP表的输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我是C#的新手。


我正在学习构建一个可以从中读取数据的C#应用​​程序SAP表和存储在ms访问。


[我正在使用Nuget的SapMicroOrm连接到SAP。]


我能够编译,一切都很好。但我需要帮助 -  


                                1)我不知道如何在console.writeline或消息框中查看数据。请帮助


                                            2)我还需要将输出值存储到ms访问表。


公共类MARA


        { 

              public string MATNR {get;组; } 

              public string MTART {get;组; } 

              public string MATKL {get;组; } 

         }


并使用


  List< MARA>材料= sapConn

  &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; 。来自< MARA>()

  &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; 。选择("MATNR,MTART");


请您帮我解决控制台和消息框中的输出?


解决方案

您好,


MS-Access中没有兼容的数据类型  2007 +对于这些数据,这些是

可用
。如果您使用的是SQL-Server Express版本,则可以使用一种数据类型来存储二进制文件并将其读回,但必须在使用该表之前将文件(包含其中的表)保存到磁盘。 / p>

只有其他选项是在MS-Access数据库中存储SAP数据的路径,但这没有用。


也许你可以解释为什么要将表存储在另一个数据库而不是简单地使用它。


Hi All,

I am new to C#.

I am learning to build an C# application which can read data from SAP Table and store in ms access.

[I am using SapMicroOrm from Nuget to connect to SAP.]

I am able to compile and everything is fine. But I need help on - 

                                1) I do not know how to view the data in console.writeline or message box. Please help

                                           2) Also I need to store the output values to an ms access table.

Public class MARA

        { 
             public string MATNR { get; set; } 
             public string MTART { get; set; } 
             public string MATKL { get; set; } 
         }

And using as

 List<MARA> materials = sapConn
                .From<MARA>()
                .Select("MATNR, MTART");

Would you please help to me to get the output in console and message box ?

解决方案

Hello,

There are no compatible data type in MS-Access  2007+ for this data, these is what's available. If you were using SQL-Server Express edition there is a data type that may be used to store a binary file and read it back out but you must save the file (with the table in it) to disk prior to using the table.

Only other options is to store the path to the SAP data in a MS-Access database but that doesn't really make sense.

Perhaps you can explain why you want to store the table in another database rather than simply use it.


这篇关于如何查看SAP表的输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆