sap

Why does not commit transaction of Requires_New?

元气小坏坏 提交于 2019-12-13 12:40:20
问题 I have a problem. I am working on java application server(sap netweaver) with I am using ejb 3.0 So I want to database insert one by one. Because I have too much data and i have to divide data. So I made try test code and it did work but it did not work as I want. I want to create a new transaction for each part and of course at the end method(transaction) should be commit. Sample code is below; package com.transaction.jobs; import javax.ejb.Local; /** * * @author muratdemir */ @Local public

Character variable with dynamic length

岁酱吖の 提交于 2019-12-13 10:17:07
问题 Is there any way to declare char variable (or maybe string) with the length which is calculated dynamically? This coding clarifies what I want: DATA: len TYPE i, a TYPE i, b TYPE i. len = a + b. DATA: var(len) TYPE с. Do not propose solutions with CREATE DATA and/or field symbols: I've tried them but they are not applicable in my case. The intention of such declaration is adding leading zeroes and/or apply other logic to this string. Therefore string is to be declared strictly ! Any proposals

PyRFC: Connect via mshost (not ashost)

淺唱寂寞╮ 提交于 2019-12-13 08:34:42
问题 I would like to use PyRFC to do remote procedure call on SAP using the Python programming language. conn = pyrfc.Connection(user='foouser', passwd='xxxx', mshost='sap.example.com', sysid='TE1', client='220', group='EXAMPLE', ) But it fails like this: RFC_COMMUNICATION_FAILURE (rc=1): key=RFC_COMMUNICATION_FAILURE, message= ERROR service 'sapmsTE1' unknown TIME Tue Dec 18 15:49:40 2018 RELEASE 753 COMPONENT NI (network interface) VERSION 40 RC -3 MODULE /bas/753_REL/src/base/ni/niuxi.c LINE

Generation of ABAP report in runtime

本小妞迷上赌 提交于 2019-12-13 07:42:43
问题 Is there any Function module that can generate ABAP code. For eg: FM takes tables name and join conditions as input and generate ABAP code corresponding to that. Thanks 回答1: 1. Generic reports are possible. Your problem is, that You will have to draw a strict frame of what is generic and what not, this means, some stuff MUST be that generic, that it will deal with WHATEVER You want to do before ( mostly the selection ) , during ( mostly manipulation ---> I would offer a badi for that ), and

Using Sqoop1 with SAP Hana using a table name that contains forward slash '/' causes error

北战南征 提交于 2019-12-13 07:29:48
问题 Trying to import data from SAP Hana using table that contains a forward slash '/'. Not sure if escaping the '/' will work. My connection attempt: sqoop import –connect jdbc:sap://mysaphost:30015 --driver com.sap.db.jdbc.Driver --username xxxxxx --password xxxx --table xxx./xxx/xxx Produces the following error: 2016-05-20 13:12:23,098 ERROR - [main:] ~ Error executing statement: com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: [257]: sql syntax error: incorrect syntax near "/":

How to delete the row of sap.m.Table on click of an icon inside ColumnListItem? [duplicate]

不想你离开。 提交于 2019-12-13 06:15:10
问题 This question already has answers here : How to prevent OData service call on model change (2 answers) Closed 2 years ago . I have a JS view in which I am creating a sap.m.Table. It's "columns" are bound to a JSON model. It's "items" are bound to odata service. I have two issues I have been struggling with for a while now. Issue 1 - How to delete the row a table on click of an icon inside columnlistitem? Issue 2 - I have created another question for this - How to access row and column data on

Call a SAP transaction, execute with given parameters and download a report with C# or VB.net

99封情书 提交于 2019-12-13 05:14:52
问题 I'm not familiar with ABAP at all and I'm trying to automate a SAP report for my job (downloaded from the result of an executed transaction in SAP R/3). At the moment I have to open SAP (manually of course), login, call the transaction, add some parameters to it, execute it and download the first report. After that I have to work it around (thing that I already automate, so it's not a problem) but then I have to get some other parameters from it and call another transaction to execute with

Load Excel file with long cells via SAPGUI

て烟熏妆下的殇ゞ 提交于 2019-12-13 05:06:58
问题 I need to read excel files via SAPGUI (not in batch, not from server). Only one sheet/file, not a csv file. I am aware of a few function modules that do that, but they are restricted to cell sizes of 32 or 40 or 50 characters per cell. Are there function modules or classes/methods that allow me to read excel files with longer cells? Longer means: either String or defined by the caller or at least 80. Edit I used ALSM_EXCEL_TO_INTERNAL_TABLE successfully in other projects where cell size is

How to Upload files in SAPUI5

雨燕双飞 提交于 2019-12-13 04:29:52
问题 How to upload file in SAP Netweaver server using SAPUI5? I tried to upload file using FileUploader but did not get the luck if any one can help it will be very appreciated . Thanks in Advance 回答1: After researching a little more on this issue I finally solved this issue by myself I placed a file controller and a uploader in php which return the details related to files further, we can use it to upload it on server. Here is the code I have used. fileUpload.html <!DOCTYPE html> <html><head>