sap

ABAP Type mismatch using cl_salv_bs_runtime_info=>get_data_ref()

社会主义新天地 提交于 2019-12-24 23:50:21
问题 I found a solution here which I try to apply. cl_salv_bs_runtime_info=>set( EXPORTING display = abap_false metadata = abap_false data = abap_true ). SUBMIT ('RM07MLBS') AND RETURN. DATA: lt_outtab TYPE STANDARD TABLE OF alv_t_t2. FIELD-SYMBOLS: <lt_outtab> like lt_outtab. DATA lo_data TYPE REF TO data. TRY. " get data from SALV model"  cl_salv_bs_runtime_info=>get_data_ref( IMPORTING r_data = lo_data ). ASSIGN lo_data->* to <lt_outtab>. BREAK-POINT. CATCH cx_salv_bs_sc_runtime_info. ENDTRY.

SAP: Port-Number for msserv (RFC)

假如想象 提交于 2019-12-24 23:13:55
问题 How to determine the correct port for the msserv connection parameter? According to the docs of RfcOpenConnection : msserv is only needed, if the service of the message server is not defined as sapms in /etc/services. In my case I run a standard linux distribution with unmodified /etc/services file. This means I need the matching value for msserv . On one system I was lucky I tried 3600 and it worked. But on a second system this failed. I can connect to the system via SAP-GUI. How to

Greater than operator &gt in Hana

删除回忆录丶 提交于 2019-12-24 22:29:07
问题 I'm passing Sql Staments from Ms sql server to Sap Hana Sintaxis (There are inside an xml file) so I'm confused because I can't can't figure out: Which is the equivalen in SAP Hana for &gt? &gt --> Greater than (used when the sql staments are inside an XML file) Hope someone can help me. 回答1: You just need to convert it back to a >, because it's an xml escape sequence. 来源: https://stackoverflow.com/questions/24083459/greater-than-operator-gt-in-hana

PM Order change status to TECO

旧时模样 提交于 2019-12-24 22:14:07
问题 Hello I want to change the status of a PM order to TECO. For that I am using the BAPI BAPI_ALM_ORDER_MAINTAIN . This is my code, but it doesn't work. What am I doing wrong? DATA: lt_alm_order_method TYPE TABLE OF bapi_alm_order_method, ls_alm_order_method TYPE bapi_alm_order_method. ls_alm_order_method-refnumber = '00001'. ls_alm_order_method-objecttype = 'HEADER'. ls_alm_order_method-method = 'TECHNICALCOMPLETE'. ls_alm_order_method-objectkey = '000000900085'. APPEND ls_alm_order_method TO

Problem creating proxy class with wsdl.exe

吃可爱长大的小学妹 提交于 2019-12-24 19:30:02
问题 I need to create a .net client which consumes a webservice from a SAP CRM application. I just got the wsdl file. But when i try to create a proxy class with wsdl.exe i get a warning that no classes are generated. What am I doing wrong? There is the header of the wsdl file. <?xml version="1.0" encoding="utf-8"?> <wsdl:definitions targetNamespace="urn:sap-com:document:sap:soap:functions:mc-style" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns

Get profit center/cost center from RBKP invoice receipt number

假如想象 提交于 2019-12-24 19:06:01
问题 how can I get the cost center, profit center? I am from RSEG and RBKP tables is there any other way to get those, i can't use vbseg tables cause the doc no. are stored in rseg and rbkp since i created the document using MIR7. please help. thanks 回答1: Firstly you should find accounting document number from invoice number (RBKP-BELNR). You can do this by two ways: Via reference key (AWKEY). You should concatenate fields BELNR and GJAHR and link this with BKPF-AWKEY. Another way to find this

java 语音合成并生成wav文件

岁酱吖の 提交于 2019-12-24 16:40:13
1.下载jacob文件,根据自己操作系统,将jacob-1.18-x64.dll文件复制到C:/windows/System32文件夹中 下载链接: https://pan.baidu.com/s/1mimoaBeFhzVMsGOLzsvpBw 提取码: wsfz 2.pom.xml引入依赖 <!--文字转语音--> <dependency> <groupId>com.hynnet</groupId> <artifactId>jacob</artifactId> <version>1.18</version> </dependency> 3.代码 import com.jacob.activeX.ActiveXComponent; import com.jacob.com.Dispatch; import com.jacob.com.Variant; public class ReadText { public static void main(String[] args) { // ActiveXComponent sap = new ActiveXComponent("Sapi.SpVoice"); //// // Dispatch是做什么的? // Dispatch sapo = sap.getObject(); try { // // 音量 0-100 // sap

How to load a external html file?

邮差的信 提交于 2019-12-24 16:13:12
问题 I just want to load a .html file into a JS view in my UI5 Application. This file is an external page that contains some charts.. I'm trying many things, but no success.. Thank you very much if anyone could help me on that. 回答1: What were those "many things" you tried? The general approach is to embed the other HTML page as an iframe, using the sap.ui.core.HTML control, see this example: http://jsbin.com/dutuparedeyu/1/edit?html,output new sap.ui.core.HTML({ preferDOM: true, content: "<iframe

Error getting the version of the native layer: java.lang.UnsatisfiedLinkError: no sapjco3 in java.library.path

馋奶兔 提交于 2019-12-24 15:14:32
问题 In my java web application, trying to connect SAP Server. This error is generated. I have placed the sapjco3.dll and sapjco3.jar in WEB-INF/lib/ and also configured in the Java Build Path. I have also set the Path in servlet as System.setProperty("java.library.path", "/WEB-INF/lib"); But also error existing. 回答1: There are several issues in your approach It is not recommended to change java.library.path programmatically, since the property is cached at the JVM start. See Setting "java.library

Receiving data from SAP Web Application Server over HTTPS

痞子三分冷 提交于 2019-12-24 15:09:55
问题 I am trying to receive xml idoc data I from a SAP system. It should get push to me over HTTPS but something is not working. I gave out a ssl certificate and the ip address of the server. I can see the SAP is trying to send me something because I am getting an call from Agent: SAP Web Application Server (1.0;701) but no data is transmitted in GET, POST or FILE. The SAP system is controlled by someone else. They got this working with some other server so I assume it must be my fault. Currently