sap

Grouping + aggregation of itab with table comprehensions

走远了吗. 提交于 2020-01-06 08:14:15
问题 Rather typical task but I'm stuck on doing it in a beautiful way. For example, I need to find the last shipment for each vendor, i.e. to find delivery with the max date for the each vendor VENDOR DELIVERY DATE 10 00055 01/01/2019 20 00070 01/19/2019 20 00088 01/20/2019 20 00120 11/22/2019 40 00150 04/01/2019 40 00200 04/10/2019 The result table to be populated VENDOR DELIVERY DATE 10 00055 01/01/2019 20 00120 11/22/2019 40 00200 04/10/2019 I implemented this in a following way, via DESCENDING

SAP Script Runs Slower Over Time VBA

三世轮回 提交于 2020-01-06 08:05:42
问题 When I run a SAP script in VBA (excel) over a long period of time, the SAP session starts to slow down. If I interrupt the code and start it again, the SAP session still runs at the slow speed it was at. If I close excel and run the code again, the SAP session still runs at the slow speed. However, if I close the SAP session and reopen it and then run the code (not closing excel), the speed goes back to optimal speed again. I ran the below code (as a test) to see the speed decrease. When the

SAP RFC Connection with VBA - BAD VARIANT TYPE

早过忘川 提交于 2020-01-06 07:05:32
问题 I'm having a problem with the SAP RFC when I'm trying to download some tables. When I try to create the connection I get the following error: Bad Variant Type I checked the regedit registry for RFC and it is all right. The IT installed the SAP 7.50, but I'm unable to use such version cause it does not allow me to download some tables that I need, so I asked them to make the downgrade to the 7.40 version of SAP. The problem started just there. Public Sub conecta_sap() Set ctlLogon =

My code cannot set a new session when a window appears

你。 提交于 2020-01-06 05:04:20
问题 I have just started programming and am aware of my poor programming skills. Please provide some critique on which parts of my code I should have done better. I apologize for unclear explanation in my first post. I added some edits to clarify the matter. My questions: If error resume next: did I put it in the right place? Sometimes when running SAP I have extra windows appear. I just need to press OK when they pop up. In some cases, I also need to start my loop all over again if a specific pop

My code cannot set a new session when a window appears

廉价感情. 提交于 2020-01-06 05:04:03
问题 I have just started programming and am aware of my poor programming skills. Please provide some critique on which parts of my code I should have done better. I apologize for unclear explanation in my first post. I added some edits to clarify the matter. My questions: If error resume next: did I put it in the right place? Sometimes when running SAP I have extra windows appear. I just need to press OK when they pop up. In some cases, I also need to start my loop all over again if a specific pop

Need Help at Getting data from SAP to C#

自古美人都是妖i 提交于 2020-01-06 03:17:25
问题 I want to get some data from an SAP Server to my C# Programm in Visual Studio. The connection between the SAP and the program is already working but I don't really know how to get the data from the Server into the program. namespace ConsoleApp1 { class Program //: IDestinationConfiguration { static void Main(string[] args) { fn f = new fn(); RfcDestination destination = f.GetRfcDestination("vhcalnplci", "brachi", "Abap2017", "001", "EN", "vhcalnplci", "00", "20", "10"); RfcSessionManager

Show duplicates in internal table

核能气质少年 提交于 2020-01-05 07:59:57
问题 Each an every item should have an uniquie SecondNo + Drawing combination. Due to misentries, some combinations are there two times. I need to create a report with ABAP which identifies those combinations and does not reflect the others. Item: SecNo: Drawing: 121 904 5000 double 122 904 5000 double 123 816 5100 124 813 5200 125 812 4900 double 126 812 4900 double 127 814 5300 How can I solve this? I tried 2 approaches and failed: Sorting the data and tried to print out each one when the value

sapui5 JS in controller table is not binding

依然范特西╮ 提交于 2020-01-05 07:32:30
问题 Im trying to create search help using Odata service but my table is showing as undefined in controller, here is my code plz help index.html <head> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta charset="UTF-8"> <title>search_help</title> <script id="sap-ui-bootstrap" src="../../resources/sap-ui-core.js" data-sap-ui-libs="sap.m,sap.ui.commons,sap.ui.table,sap.ui.ux3" data-sap-ui-theme="sap_belize" data-sap-ui-compatVersion="edge" data-sap-ui-resourceroots='{"search_help": ""}'>

how to load external libraries into an SAP UI5 view?

北慕城南 提交于 2020-01-05 07:31:59
问题 In SAP UI5 I can load local files this way: jQuery.sap.require("util.someFile"); But is it possible to load external libraries when required in some view using the above command or a similar approach? Ideally, I am looking for something like: theLoadingCommand("some_url"); Thanks 回答1: Basically it is possible to register a module path to some URL. jQuery.sap.registerModulePath('external.library', 'http://....'); //not working There is only one problem with that. UI5 loads the resources via

Cannot Bypass Error 619 [executing SAP from VBA]

試著忘記壹切 提交于 2020-01-05 04:11:29
问题 I have the following code and it appears to always produce an error 619 even though I have entered Application.DisplayAlerts = False and I've taken extra precaution to bypass the error. I have bolded the line causing the error. I have attempted using On Error GoTo, On Error Resume Next, and even If IsError(), but none of that seems to be working. VIM: 'Insert Sum of Amts and list as Balance on Summary tab Sheets(2).Select LastRow = ActiveSheet.UsedRange.Rows.Count Range("D" & LastRow + 1)