Error While Selecting into Field Symbol in SAP ABAP

Rishi Raj
Updated on 05-Dec-2019 09:13:59

438 Views

The problem is that you have not declared Field-symbol. Try using the below code.data:  ws_bkpf      TYPE bkpf_type. SELECT MANDT    INTO CORRESPONDING FIELDS OF ws_mandt UP TO 1 ROWS    FROM bkpf    WHERE belnr = '1700001016'. ENDSELECT.

Merge Tables with Similar Column Names in SAP HANA Database

Vikyath Ram
Updated on 05-Dec-2019 09:11:29

584 Views

This can be done by using UNION or UNION ALL operator as followsselect id, Empl_name, DeptId from table1 union select id, Empl_name, DeptId from table2 The difference between UNION and UNION ALL is that UNION removes the duplicates while UNION ALL shows duplicates as well.

Get ICollection Containing Keys in HybridDictionary in C#

AmitDiwan
Updated on 05-Dec-2019 08:09:38

117 Views

To get an ICollection containing the keys in HybridDictionary, the code is as follows −Example Live Demousing System; using System.Collections.Specialized; public class Demo {    public static void Main(){       HybridDictionary dict = new HybridDictionary();       dict.Add("One", "Katie");       dict.Add("Two", "Andy");       dict.Add("Three", "Gary");       dict.Add("Four", "Mark");       dict.Add("Five", "Marie");       dict.Add("Six", "Sam");       dict.Add("Seven", "Harry");       dict.Add("Eight", "Kevin");       dict.Add("Nine", "Ryan");       String[] strArr = new String[dict.Count];       dict.Keys.CopyTo(strArr, 0);       for (int i ... Read More

Enumerator for Iterating Through SortedDictionary in C#

AmitDiwan
Updated on 05-Dec-2019 08:06:48

155 Views

To get an enumerator that iterates through the SortedDictionary, the code is as follows −Example Live Demousing System; using System.Collections; using System.Collections.Generic; public class Demo {    public static void Main(){       SortedDictionarysortedDict = new SortedDictionary();       sortedDict.Add(100, "Mobile");       sortedDict.Add(200, "Laptop");       sortedDict.Add(300, "Desktop");       sortedDict.Add(400, "Speakers");       sortedDict.Add(500, "Headphone");       sortedDict.Add(600, "Earphone");       Console.WriteLine("SortedDictionary key-value pairs...");       IDictionaryEnumerator demoEnum = sortedDict.GetEnumerator();       while (demoEnum.MoveNext())          Console.WriteLine("Key = " + demoEnum.Key + ", Value = " + ... Read More

Using Aggregate Function to Fetch Values from Different Tables in SAP

Moumita
Updated on 05-Dec-2019 08:04:28

341 Views

First of all, the example you gave has different description for a fund. So, you should know which one to be kept. If you want to keep any description, you can use the below query using aggregation functionsSELECT    X1."FundName"    ,min( X0."Dscription")    , X0."FundId" FROM INV1 X0 INNER JOIN OINV X1 ON X0."FundId" = X1."FundId" INNER JOIN NNM1 X2 ON X1."SourceId" = X2."SourceId" WHERE X1."FundTotal" > 1000 AND X0."FundStart" between [%1] and [%2] GROUP BY X1."FundName", X0."FundId"

Get Enumerator to Iterate Through ListDictionary in C#

AmitDiwan
Updated on 05-Dec-2019 08:03:44

164 Views

To get an enumerator that iterates through the ListDictionary, the code is as follows −Example Live Demousing System; using System.Collections; using System.Collections.Specialized; public class Demo {    public static void Main(){       ListDictionary dict1 = new ListDictionary();       dict1.Add("A", "Books");       dict1.Add("B", "Electronics");       dict1.Add("C", "Smart Wearables");       dict1.Add("D", "Pet Supplies");       dict1.Add("E", "Clothing");       dict1.Add("F", "Footwear");       Console.WriteLine("ListDictionary1 elements...");       foreach(DictionaryEntry d in dict1){          Console.WriteLine(d.Key + " " + d.Value);       }       ListDictionary ... Read More

Get ICollection Containing Values in ListDictionary in C#

AmitDiwan
Updated on 05-Dec-2019 08:00:18

158 Views

To get an ICollection containing the values in ListDictionary, the code is as follows −Example Live Demousing System; using System.Collections; using System.Collections.Specialized; public class Demo {    public static void Main(){       ListDictionary listDict = new ListDictionary();       listDict.Add("1", "Laptop");       listDict.Add("2", "Tablet");       listDict.Add("3", "Desktop");       listDict.Add("4", "Speaker");       listDict.Add("5", "Earphone");       listDict.Add("6", "Headphone");       ICollection col = listDict.Values;       foreach(String s in col){          Console.WriteLine(s);       }    } }OutputThis will produce the following output −Laptop ... Read More

Back Button Not Working in SAP Fiori Custom App Launchpad

Mohd Arshad
Updated on 05-Dec-2019 07:58:15

577 Views

Try to use “shellHash” property instead of “semanticObject” like below:-------------------------------------------------------- sap.ushell.Container.getService("CrossApplicationNavigation").toExternal({     target: {         shellHash: "#"     } }); --------------------------------------------------------

Get Enumerator to Iterate Through HybridDictionary in C#

AmitDiwan
Updated on 05-Dec-2019 07:57:29

135 Views

To get an enumerator that iterates through the HybridDictionary, the code is as follows −Example Live Demousing System; using System.Collections; using System.Collections.Specialized; public class Demo {    public static void Main(){       HybridDictionary dict1 = new HybridDictionary();       dict1.Add("A", "Books");       dict1.Add("B", "Electronics");       dict1.Add("C", "Smart Wearables");       dict1.Add("D", "Pet Supplies");       dict1.Add("E", "Clothing");       dict1.Add("F", "Footwear");       Console.WriteLine("HybridDictionary1 elements...");       foreach(DictionaryEntry d in dict1){          Console.WriteLine(d.Key + " " + d.Value);       }       HybridDictionary ... Read More

Error While Passing Image Value to OData Request in SAP

Altamas Khan
Updated on 05-Dec-2019 07:54:55

355 Views

If you ImgData includes an image in Data URI format base64 then add the below line to Imgvalue to convert it to ImgData:var imgData = JSON.stringify(ImgValue);I suggest you to use AJAX to post image through OData as shown in below code:OData.request ({      requestUri:"http://test.test1.net:8081/sap/opu/odata/sap/ SALES_VRS/DailySalesSet",      method: "GET",      headers:      {       -Requested-With": "XMLHttpRequest",       "Content-Type": "application/atom+xml",       "DataServiceVersion": "2.0",                 "X-CSRF-Token":"Fetch"                                    }     ... Read More

Advertisements