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:

REPLACE ABAP SAP. Replacing character in string.

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.

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.