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 Type programming

Former Member
0 Likes
428

We need to write an ABAP program, which includes getting access to the Dates in a Transaction. These Dates are dynamically computed at run time, based on Date Rules, which are created when configuring Date Management in the IMG. Has anyone does this? Are there Function Modules, which are delivered to assist?

The way it works is that a date is entered, such as Start Date, then a Date Rule is chosen for End Date, adn teh system automatically computes the End Date and displays it in the transaction.

Our specific case is to get to the CRM system Opportunity Milestone dates; however, since IMG Date Management and Configuration is available in all SAP systems, I assume there are also other transactions in other SAP systems (R3, etc) which also dynamically calculate dates based on teh cofigured rules - so that is why I open this question out to anyone who may have been called upon to do similar Date calcluation programming.

3 REPLIES 3
Read only

Former Member
0 Likes
397

hi Collins,

try this kind of FMs <b>RP_LAST_DAY_OF_MONTHS</b>

if i give any date to this FM it will give end date of that month.

if u want more like this search in se37.

Regards

Prabhu

Read only

0 Likes
397
SG_PS_GET_LAST_DAY_OF_MONTH 
BKK_GET_MONTH_LASTDAY      
SLS_MISC_GET_LAST_DAY_OF_MONTH
                
RE_LAST_DAY_OF_MONTH      

check the above FM's.

Regards

vijay

Read only

Former Member
0 Likes
397

Can you check below FMs

MM_LAST_DAY_OF_MONTHS
RE_LAST_DAY_OF_MONTH
RP_LAST_DAY_OF_MONTHS 
SLS_MISC_GET_LAST_DAY_OF_MONTH
RS_VARI_V_1_LAST_MONTH 
RS_VARI_V_LAST_MONTH   
RS_VARI_V_L_LAST_MONTH 
LAST_DAY_OF_MONTHS

rgds,

TM