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

Fn module

Former Member
0 Likes
816

Hi,

Is there any fn mod which gives previous month and also

how to assign the low date of that month to low value of a select-option var and high date high value.

Pls help.

It's urgent.

Regards,

kb

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
642

Hi,

Try these fm's..

RS_VARI_V_LAST_MONTH

RS_VARI_V_L_ACTUAL_MONTH

RS_VARI_V_L_LAST_MONTH

Regards,

Sankar

4 REPLIES 4
Read only

Former Member
0 Likes
643

Hi,

Try these fm's..

RS_VARI_V_LAST_MONTH

RS_VARI_V_L_ACTUAL_MONTH

RS_VARI_V_L_LAST_MONTH

Regards,

Sankar

Read only

Former Member
0 Likes
642

Hi,

try to use the function module below it might resolve your problem

FUNCTION RS_VARI_V_LAST_MONTH.

DATA: L_DATE LIKE SY-DATUM.

REFRESH P_DATETAB.

MOVE: 'I' TO P_DATETAB-SIGN,

'BT' TO P_DATETAB-OPTION.

L_DATE = SY-DATLO.

MOVE '01' TO L_DATE+6(2).

L_DATE = L_DATE - 1.

MOVE: L_DATE TO P_DATETAB-LOW,

L_DATE TO P_DATETAB-HIGH.

MOVE '01' TO P_DATETAB-LOW+6(2).

APPEND P_DATETAB.

ENDFUNCTION.

***********please reward points if the information is helpful to you**********

Read only

0 Likes
642

Hi,

Th fn md is giving the previous month but how to get the low and high value's from that and assign to var.

Regards,

kb

Read only

0 Likes
642

Hi,

When we call that fn md into report wht do we need to paas and wht to retrieve?

Pls help it's urgent.

Regards,

kb