sap

Finding duplicates in ABAP internal table via grouping

自闭症网瘾萝莉.ら 提交于 2019-12-04 20:24:19
We all know these excellent ABAP statements which allows finding unique values in one-liner: it_unique = VALUE #( FOR GROUPS value OF <line> IN it_itab GROUP BY <line>-field WITHOUT MEMBERS ( value ) ). But what about extracting duplicates? Can one utilize GROUP BY syntax for that task or, maybe, table comprehensions are more useful here? The only (though not very elegant) way I found is: LOOP AT lt_marc ASSIGNING FIELD-SYMBOL(<fs_marc>) GROUP BY ( matnr = <fs_marc>-matnr werks = <fs_marc>-werks ) ASSIGNING FIELD-SYMBOL(<group>). members = VALUE #( FOR m IN GROUP <group> ( m ) ). IF lines(

SAP Gateway OData service with LCHR long string

坚强是说给别人听的谎言 提交于 2019-12-04 20:23:02
I am developing a SAPUI5 application consuming oData services with SAP Gateway, where I have implemented a search functionality which is producing a SQL where condition. One part of the condition looks like follows: ... OR DESCRIPTION LIKE '%searchString%'... . In my database table I have a field DESCRIPTION which is of type LCHR length 32000 . The only problem is that the field DESCRIPTION cannot be in WHERE clause. What would be a correct approach of searching long strings in database table via oData services? Do I need to hardcode the search functionality or is there some cleaner way? The

SAP .NET Connector

孤者浪人 提交于 2019-12-04 19:24:22
I need to connect to SAP and do a simple update but it will be the first time for me connecting to SAP and i know almost nothing. After some search on web i learned that there is an API which works only in visual studio 2003 (SAP .NET Connector). But i have a win7 .net 3.5 sp1 system. Is there any free way to connect to SAP using visual studio 2008 on the system above? (Free means without additional payment, we have an SAP account) Thanks... There is always the SAP Portal Development Kit (PDK) for .NET . These are available for SAP NetWeaver 7.0 and 2004, and versions for Visual Studio 2003,

Pulling data from SAP using Excel Macros

两盒软妹~` 提交于 2019-12-04 16:55:45
So I am trying to pull data from SAP using excel macros. I am new to VBA so please bear with me. I found a topic on here called VBA pulling data from SAP for dummies and I am confused. What I am trying to do is as follows: Copy a notification number from a list in excel. Go to the appropriate screen in SAP and paste this number in the search box. Open the long text box. Copy the long text. Paste into excel. Here is the link VBA pulling data from SAP for dummies I can't seem to get by Set session = connection.Children(0) 'Get the first session (window) on that connection. Any help is much

Usage of Biztalk SAP Adapter without Biztalk Server to connect .NET and SAP

给你一囗甜甜゛ 提交于 2019-12-04 13:19:38
Is it possible to use the Biztalk adapter pack whithout a Biztalk installation (Biztalk license is available)? I want to use the Biztalk Adapter for SAP RFC calls within a .NET Application (as a replacement of the SAP Connector for .NET , which is unfortunately no longer maintened by SAP and I don't can use third party products like " ErpConnect "). Makes this idea sense or not ? This questions can be also seen in conjunction of my question concerning connecting SAP and Microsoft ( Microsoft and SAP ) The adapters in the Biztalk adapter pack are build on the WCF LOB adapter SDK, so it's

SAP如何删除或更改已经释放的传输请求

。_饼干妹妹 提交于 2019-12-04 10:41:21
下面介绍一个方法删除或修改在SAP系统内已经释放的传输请求TR。 1,修改TR状态 SE38运行RDDIT076程序,将TR的状态由已释放R修改为可修改的D状态。 首先有个已经释放的TR SE38 输入TR,运行 修改TR状态,R->D 修改后就是这个样子的,然后退出程序就行了。 2,删除TR的EXPORT_TIMESTAMP属性 这时TR虽然已经不是释放的状态了,但是还不能再次释放或删除,需要先将EXPORT_TIMESTAMP属性删除。 双击TR进入属性Tab页面,修改状态下,删除EXPORT_TIMESTAMP属性 还有一个EXPTIMESTAMP也要删除,之后就能再次释放或删除TR了。 大功告成。 以上。 转自http://www.baidusap.com/abap/others/6494 来源: https://www.cnblogs.com/sapb1/p/11855842.html

How to connect to a SAP System using sapjco3 and Eclipse?

蹲街弑〆低调 提交于 2019-12-04 10:09:45
I need to connect to SAP Systems via standard BAPI calls. I already installed JCo (sapjco3) and added the .jar to my build path in Eclipse. But due to the fact that I am rather a beginner regarding network/server programming, I have no idea how to setup a connection between Eclipse and the SAP Systems...can anyone provide a basic solution or some ideas for that? Thank you and greetings! I solved the question by myself after having found a good documentation with examples regarding that topic on the SAP homepage. First you need to define a destination , basically setting up your host and all

使用RPA处理SAP系统清账操作中选表格指定的行

跟風遠走 提交于 2019-12-04 08:00:21
SAP 系统中进行某些清账操作时,要求只选中金额汇总(黄色的行)为负数和 0 的项目进行清账,效果如图所示: SAP 中有一个方法可以选中指定的行: 1 import sys 2 import win32com.client 3 4 SapGuiAuto = win32com.client.GetObject("SAPGUI") 5 application = SapGuiAuto.GetScriptingEngine 6 connection = application.Children(0) 7 session = connection.Children(0) # 连接SAP服务 8 9 e = session.findByID('wnd[0]/usr/cntlGRID1/shellcont/shell') # 获取SAP表格 10 e.selectedRows = '1' 如果要选中多行只需要这样写: e.selectedRows = '1,2,3,5' 如果是连续的行可以更简单: e.selectedRows = '1-5' 我们运行看一下效果: 需要注意一点,如果表很大时,表后面的部分没有加载,所以直接运行 e.selectedRows 没有效果,因此必须翻页,当翻到最后一页时运行就可以把需要的行都选中了。 翻页部分代码如下: 1 import ubpa

How should I start learning about SAP? [closed]

被刻印的时光 ゝ 提交于 2019-12-04 07:26:57
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I'm working as a MS developer working to provide bridging products between MS technology and SAP. I'm used to the MS space which seems to have an absolutely different philosophy than SAP. And this is starting to be an issue - I can't "get" SAP. So, what are good materials to "grok" SAP? - understand why people

Abap Null issue in the code

大兔子大兔子 提交于 2019-12-04 06:58:30
问题 I was trying run this program copied from a tutorial. But I am getting Null exception I this line CALL METHOD list->SET_TABLE_FOR_FIRST_DISPLAY. form My understanding the list object should be created in the class-constructor. Method CLASS_CONTRUCTOR. CREATE OBJECT list EXPORTING i_parent = cl_gui_container=>screen0. ENDMETHOD. //code please have a look. class select_display_sflight DEFINITION. public section. CLASS-METHODS class_contructor. Methods: constructor importing i_carrid type