sap

Bit shifts with ABAP

风流意气都作罢 提交于 2020-01-04 14:17:37
问题 I'm trying to port some Java code, which requires arithmetic and logical bit shifts, to ABAP. As far as I know, ABAP only supports the bitwise NOT, AND, OR and XOR operations. Does anyone know another way to implement these kind of shifts with ABAP? Is there perhaps a way to get the same result as the shifts, by using just the NOT, AND, OR and XOR operations? 回答1: Disclaimer: I am not specifically familiar with ABAP, hence this answer is given on a more general level. Assuming that what you

sap hana - select top expression

删除回忆录丶 提交于 2020-01-04 04:54:11
问题 I have a problem with a stored procedure. The procedure gets as an argument the number of rows needed, but the following does not work in HANA: SELECT TOP :NUM_OF_ROWS * FROM TABLE_NAME I read that TOP in HANA only receives a number, not an expression. Is there another way to do this? My solution for the moment is to select everything and delete the unneeded records on the service, but it's not very efficient. 回答1: Instead of TOP n you can use the LIMIT n option. That one can bind variables.

未能加载文件或程序集“CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken

我的梦境 提交于 2020-01-04 03:11:27
下了个CRM代码,从08升级到10,就报未能加载文件或程序集“CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken.......,试了很多种方法,找那什么C:\Program Files\Business Objects\Common\2.8\bin下文件 到C:\Inetpub\wwwroot\bin下,或者用regsvr32.exe将所有的dll文件注册,我电脑连BUSINESS OBJECTS这个文件夹都没有,后来终于找到这个下来安装就OK了。 这是开发机上用的, SAP Crystal Reports, version for Visual Studio 2010 - Standard 这是部署到服务器上要用的 SAP Crystal Reports runtime engine for .NET Framework 4 (32-bit) 当然根据不同需求,自己选择相应的下载 安装完成后,打开项目基本没有什么问题 来源: https://www.cnblogs.com/kkeeq/archive/2013/03/27/2984848.html

How to set values in the listbox?

◇◆丶佛笑我妖孽 提交于 2020-01-03 19:34:32
问题 I have defined a list box in my selection screen, as follows: SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE ALTITLE1. SELECTION-SCREEN BEGIN OF LINE. SELECTION-SCREEN COMMENT (30) ALCONT4 FOR FIELD L1. PARAMETERS: L1 AS LISTBOX VISIBLE LENGTH 20 MODIF ID AOD. SELECTION-SCREEN END OF LINE. SELECTION-SCREEN END OF BLOCK B2. Now I need to propose possible values for that list box, how can I do it ? 回答1: During the PBO of your screen (for selection screens, the PBO code is defined inside

Enabling SAP mode for SAP Logon Pad in Blue Prism

跟風遠走 提交于 2020-01-02 23:11:51
问题 I followed the below steps to enable client and server side settings for SAP, hoping that this would enable the SAP mode in Blue Prisms. Even after executing the below steps and then restarting both Blue Prism and SAP logon pad, I don't see the SAP mode in blue prism. Any suggestions on what might be happening? I am still only seeing the three default modes - Win32, Accessibility and Region mode. i. Enabling Client-Side Scripting Start the SAP Logon and log in to the SAP server. Click the

SAP 封装一个SE16N功能,直接修改数据库表数据

空扰寡人 提交于 2020-01-02 16:18:45
更多内容关注公众号:SAP Technical 各位可以关注我的公众号:SAP Technical 其实自建SE16N功能,并让它可以直接修改数据库表数据,其原理与在SE16N中DEBUG修改EDIT参数的原理一样,只是在调用标准的函数组时把入参稍作修改即可。 实现代码如下: REPORT zse16n. PARAMETERS:p_tabnm TYPE dd02l-tabname OBLIGATORY. AT SELECTION-SCREEN. SELECT COUNT(*) FROM dd02l WHERE tabname = p_tabnm. IF sy-subrc <> 0. MESSAGE '表不存在' TYPE 'E'. ENDIF. START-OF-SELECTION. CALL FUNCTION 'SE16N_INTERFACE' EXPORTING i_tab = p_tabnm i_edit = 'X' "参数修改 i_sapedit = 'X' "参数修改 EXCEPTIONS no_values = 1 OTHERS = 2. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 DISPLAY LIKE

ABAP Websocket Server XSRF Token

陌路散爱 提交于 2020-01-02 10:12:53
问题 I'm currently trying to setup a web-socket server on an SAP application server as a proof of concept. The application which is connecting to the web-socket server is not going to be a UI5 or WebDynpro application but just a middle-ware program running on a headless computer. Following a quick guide, I've setup the push channel and I have an object with the interface methods ON_START , ON_MESSAGE and etc. I'm currently testing the interface using wscat which you can get from npm . When I tried

Dynamically defined variable in ABAP

柔情痞子 提交于 2020-01-02 08:28:25
问题 Lets say I have a variable (char30) which contains a name of a Datatype and I would like to create another variable of this Datatype. Example: lv_type = 'BU_PARTNER' data: rt_value type range of ( lv_type ). Any tips how to achieve this in ABAP? Thanks! 回答1: RANGE table is just a STANDARD table with component like 'LOW', 'HIGH', 'EQ' and 'OPTION' . Using RTTS related API to create such a STANDARD table. data: lr_data type ref to data, lt_ra_string type range of string, ls_ra_string like line

XML parsing with SAX | how to handle special characters?

佐手、 提交于 2020-01-02 08:14:29
问题 We have a JAVA application that pulls the data from SAP, parses it and renders to the users. The data is pulled using JCO connector. Recently we were thrown an exception: org.xml.sax.SAXParseException: Character reference "&#00" is an invalid XML character. So, we are planning to write a new level of indirection where ALL special/illegal characters are replaced BEFORE parsing the XML. My questions here are : Is there any existing(open source) utility that does this job of replacing illegal

SAP Gateway OData service with LCHR long string

我是研究僧i 提交于 2020-01-01 19:47:20
问题 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