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:

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.

Days_between_two_dates. How to find difference between dates in ABAP SAP?

Using the function module DAYS_BETWEEN_TWO_DATES we can quickly get the result as the difference between dates in days. You can count the days until the end of the payment term or calculate the number of days until the end of the contract and much more.

Continue reading Days_between_two_dates. How to find difference between dates in ABAP SAP?

Add days to date ABAP SAP.

ABAP add days to date. Add / subtract days/hour from a date in ABAP or add them to a very useful functionality that can be implemented using the function module TZTF_ADD_DAY. Calling this FM will allow, for example, to receive data for the last n days, where n is entered by the user, or to find the end date of the reserve, which, for example, is 14 days after the order SAP CRM, and much more.

Continue reading Add days to date ABAP SAP.

How find length string ABAP? ABAP string length | STRLEN SAP

ABAP string length. The ABAP language has several expressions for dealing with the length of ABAP strings. Let’s analyze these features in more detail. All string manipulation functions have one unnamed argument and are used by ABAP developers. Using examples, I will analyze how to get the length of a string in various ways.

Continue reading How find length string ABAP? ABAP string length | STRLEN SAP