Viewing field names or tables names of the forms in SAP Business One

Jai Janardhan
Published on 23-Sep-2019 10:47:31
It is possible that the older version of SAP B1 may not show you all the fields of all the forms. If you have the latest version, you should be able to see the data sources that are mapped to given field. You need to open the forms in SAP ... Read More

How to remove all trailing whitespace of string in Python?

Rajendra Dharmkar
Published on 23-Sep-2019 10:47:31
We can use the method rstrip() which returns a copy of the string in which all specified chars have been stripped from the end of the string. The default char to be trimmed is whitespace. For example:>>> '   Hello   '.rstrip() '   Hello' >>> 'Ninja Turtles the movie ... Read More

Calling a JAVA method through JavaScript in SAPUI5 project

Sai Nath
Published on 23-Sep-2019 10:47:31
Create a REST service hosted on a server and place java method inside it. Now you can call this REST service from a SAPUI5 application using AJAX by passing required parameters.

Creating a variable with dynamic variable type in SAP ABAP

Fendadis John
Published on 23-Sep-2019 10:47:31
You can use RTTS related API to create a Standard table like RANGE which has components like 'LOW', 'HIGH', 'EQ' and 'OPTION' data:    rr_data              type ref to data,    rt_range_string      type range of string,    rs_range_string      like line of ... Read More

How to get a space-padded string with the original string right-justified in Python?

Rajendra Dharmkar
Published on 23-Sep-2019 10:47:31
We can use the method rjust() which returns the string right justified in a string of length equal to 'width' which is the string length in total after padding. Padding is done using the specified fillchar (default is a space). The original string is returned if width is less than ... Read More

Performing total of a column in a temporary column in SAP

Arjun Thakur
Published on 23-Sep-2019 10:47:31
You need to perform select again on your query. Here is the sampleSELECT DATE, FUND_ID, PPT_ID, SOURCE_ID, AMOUNT, SUM (AMOUNT) as TOTAL FROM (    SELECT    AD.CHV_DATE.DATE,    AD.CHV_FUND.FUND_ID,    AD.CHV_PARTICT.PPT_ID,    AD.CHV_PARTICT.SOURCE_ID,    SUM (AD.CHV_PARTICT.AMOUNT), FROM    AD.CHV_DATE,    AD.CHV_FUND,    AD.CHV_PARTICT,    AD.CHV_SOURCE WHERE    DC.CHV_SOURCE.FUND_ID=AD.CHV_FUND.FUND_ID AND ... Read More

Getting details when a table is modified in SAP HANA DB

Rama Giri
Published on 23-Sep-2019 10:47:31
You can query SYS.M_TABLE_STATISTICS providing name of table and LAST MODIFY DATE. Here is the sample SQL query.SELECT "ABC", "LAST_MODIFY_TIME"   FROMSYS.M_TABLE_STATISTICS ORDER BY “LAST_MODIFY_TIME" DESCIn above command, you need to replace “ABC” by your table name. Read More

How to split string by a delimiter str in Python?

Rajendra Dharmkar
Published on 23-Sep-2019 10:47:31
Python's String class has a method called split() which takes a delimiter as optional argument. Default delimiter for it is whitespace. You can use it in the following way:>>> 'aa-ab-ca'.split('-') ['aa', 'ab', 'ca'] >>> 'abc mno rst'.split(' ') ['abc', 'mno', 'rst']You can also use regex for this operation. The re.split ... Read More

Learning about SAP ABAP CDS views

Sravani S
Published on 23-Sep-2019 10:47:31
First thing, whether it is CDS or ABAP or anything pertaining to SAP, you can always find free courses on  https://open.sap.com/  referred as Open SAP. Besides this, there are lot of free help as well just Google it and the result list is huge.There are various self-learning tutorials site that ... Read More

Converting a file into a byte array in SAP ABAP

Ramu Prasad
Published on 23-Sep-2019 10:47:31
Here is a code snippet to do the same.data: f_line type xstring.               // to get line by line content data: f_file type table of xstring.      // to get the final content data: f_filename type string value 'samplefile.txt'.   // store the ... Read More
Advertisements