Send MATMAS and DEBMAS IDoc to Another SAP System

SAP ABAP Expert
Updated on 12-Dec-2019 10:19:54

2K+ Views

I would suggest you to use T-code: BD12 to send the complete IDoc of DEBMAS.

Avoid Memory Leakage in SAP B1 DI API

SAP ABAP Expert
Updated on 12-Dec-2019 10:18:50

538 Views

The thumb rule goes like this, if you instantiate a DI API object, you have to release it. if you don't release it explicitly, it will result in memory leaks.You can use a ReleaseComObject method to release the object memory. In case if you try to release a null object, it will throw an exception.So, it will be better to have a null check before you try to release the object.Sample snippet:if (obj != null) System.Runtime.InteropServices.Marshal.ReleaseComObject(obj);

Read CSV Files into Internal Table in SAP ABAP

SAP ABAP Expert
Updated on 12-Dec-2019 10:17:53

4K+ Views

There are many functions that can be used to read csv however many are broken and read part of content. You need to go through each file and then process the file content. I would prefer to perform this manually.You can use the READ DATASET to read data from a file on the application server. Below is the syntax:READ DATASET INTO [LENGTH ].Below is SAP documentation link that you can use to know more about reading data from files:SAP DocumentationExampleIncase you are using binary mode, you can use LENGTH to find the length of data transferred to . ... Read More

Auto-Filling NAME 1 in SAP System When Entering Client Number

SAP ABAP Expert
Updated on 12-Dec-2019 10:12:32

243 Views

You should use maintenance view to display name corresponding to customer number. With use of Maintenance view, you can maintain related data in several tables. Check out this link to know more about Maintenance view:SAP LinkTo perform a check for the mandatory, edit the generated screen and in screen flow logic you should add a module to check if the required fields are filled or not. You can also set the field possible to mandatory in the screen field options, however this is not recommended as it will show it as mandatory even for empty lines.SAP Link

Putting 2 Pages of Data into a Single Report in SAP Crystal Reports

SAP ABAP Expert
Updated on 12-Dec-2019 10:11:25

809 Views

You can do this by adding a group based on participant Id as primary key. Then you have to add ran description in group footer.In your group footer settings, check the "New page before" option

Map Output of a Function to an Internal Table in SAP ABAP Using Gateway Service

SAP ABAP Expert
Updated on 12-Dec-2019 09:04:35

327 Views

You need to just import the function so that it can be used. First, you need to have a ABAP structure which should map the structure of the output parameters.Exampledefine structure zza_enqtstat {     entries_total  : abap.int4;     entries_peak   : abap.int4;     entries_actual : abap.int4; }Then map this newly created structure to a new entity in the gateway project. Now for the function ‘ENQUEUEGETSTAT’’ create a function import. Next step for you will be to redefine the method in DPC_EXT. Save you changes and it should work.

System Goes Out of Memory on Establishing Connection in a SAP Delphi Integrated Project

SAP ABAP Expert
Updated on 12-Dec-2019 09:01:04

208 Views

When you are trying to release the object, make sure that you set the query object to null. When you set it to null, it will release the memory for sure. But the scope also plays a role, so make sure it is local to the procedure.Example   Please find a sample snippet for reference    myFunction := TSAPFunctions.Create;     myFunction.Connection := FConnection;     myFunction.RemoveAll;     myQuery := mySAPFunction.Add('interface here');     myQuery.Call;     myQuery := null; // will clear the memory Hope this helps!

Fetch Max Date and Other Fields Grouped by Other Fields in SAP HANA

SAP ABAP Expert
Updated on 12-Dec-2019 08:59:54

1K+ Views

You have done partially correct but just missed one step further to get the desired result. The case where after grouping you need to pick one of the rows from the results, use rank number or rank function.You need to partition your data based on your requirement, then order them as per your requirement again then pick the desired row.ExampleFor e.g. partition your data by Item Number and Shop Id. Then order them in descending order of Date column. Then pick the row with row number as 1select date, Order_Number   from   (SELECT  *, row_number() over ( partition by ... Read More

Difference Between jQuery show and jQuery hide

David Meador
Updated on 12-Dec-2019 08:38:09

453 Views

jQuery show() methodThe show( speed, [callback] ) method shows all matched elements using a graceful animation and firing an optional callback after completion.Here is the description of all the parameters used by this method −speed − A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).callback − This is optional parameter representing a function to call once the animation is complete.ExampleYou can try to run the following code to learn how to work with show() method:Live Demo           The jQuery Example     ... Read More

Animate Hide and Show Elements Using jQuery

David Meador
Updated on 12-Dec-2019 08:34:30

4K+ Views

Use the hide() and show() method with animate() to hide and show elements.ExampleYou can try to run the following code to learn how to work with animate() method to hide and show elements:Live Demo $(document).ready(function(){     $("#btn1").click(function(){         $("#box").animate({height: "300px"}, 500, function() {            $(this).hide();         });     });    $("#btn2").click(function(){         $("#box").animate({height: "300px"}, 500, function() {            $(this).show();         });     }); }); Hide Show

Advertisements