Often when developing ABAP programs, it becomes necessary to replace a substring with another or find string length ABAP. For example, replace a comma with a dot or insert a space instead of a separator and many other options. The ABAP REPLACE character replacement function will help. This function replaces a substring of text with a string of characters and returns the modified text as a result. There are two call options, we will look at each of them in more detail:
Continue reading REPLACE ABAP SAP. Replacing character in string.Category Archives: ABAP
Articles on ABAP programming will be useful for both ABAP developers and SAP consultants. I will analyze both ABAP from scratch and the new syntax of ABAP 7.4 and 7.5. I will describe in detail the technical details that I encountered and how I solved them. I will also try to help consultants look beyond ABAP development in order to better understand how everything works. Subcategories:
DELETE ADJACENT DUBLICATES in SAP ABAP
Removing duplicate rows from an internal table in ABAP is a common task. You can implement it using the DELETE ADJACENT DUBLICATES construct, here is an example of ABAP code:
Continue reading DELETE ADJACENT DUBLICATES in SAP ABAPHow to close RFC connection ABAP?
Sometimes there is a need to forcibly close the RFC connection after calling some RFC module. There can be many reasons, but more importantly, how to do it?
The functional module RFC_CONNECTION_CLOSE will help us with this. Below I will give an example of calling this FM for greater clarity:
ABAP last day of month SAP.
The problem: “How in ABAP get last day of month SAP ?” and first month in ABAP is not uncommon. For example, display orders for the current month, regardless of what date it is today. Or calculate the turnover for this month and so on.
Continue reading ABAP last day of month SAP.Add month to date ABAP SAP. Month_plus_determine.
Adding/subtracting a month to/from a date in SAP ABAP can be done with the FM MONTH_PLUS_DETERMINE. Operations with months are not so frequent, but just as useful. For example, calculate the end date of a contract that expires in half a year. In order to subtract the desired number of months, we simply pass a negative number to the months parameter.
Continue reading Add month to date ABAP SAP. Month_plus_determine.