Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Date calculation in SAPSCRIPT

Former Member
0 Likes
399

How to do calculation using dates?

I want to add BSID-ZFBDT and BSID-ZBD1T fields. i know this needs a subroutine pool to be created using perform-endperform in script. i have passed these two fields in the input structure itcsy in Z-program.

the date in the field BSID-ZFBDT is stored in the format DD.MM.YYYY

please help.

Thanks in advance

1 REPLY 1
Read only

Former Member
0 Likes
318

Hi

You can do the date calculation in to the driver program using FM

<b>BCA_US_DATES_CALC_UNIT</b>and here ypu can pass 2 dates and also pass a perameters for which value you required like

1 Calendar Days

2 Weeks

3 Months

4 Quarter

5 Year

Hope this help you,

Regards,

Hiren Patel