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

Data element for period

Former Member
0 Likes
9,432

Hello!

I need a data element for period. Anybody know?

I need that this element valid month and year.

Ex: 12.2008 is correct, 05.2006 is correct, 13.2009 is wrong.

Please, help-me

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
5,056

Try SPMON

format YYYYMM.

Regards,

Shailaja

7 REPLIES 7
Read only

Former Member
0 Likes
5,056

SMON

Rob

Read only

Former Member
0 Likes
5,056

Hi,

These is no such data element or value table or the FM to validate the entered entry is correct or wrong.

You need to check the value from the T247 table to validate.

Take the First two digit of the input and check in this table T247 with field MNR.

T247 -Month name and short text

Ex:  13.2009 

l_month = '13'.

SELECT SINGLE * FROM T247 WHERE SPRAS EQ SY-LANGU AND MNR EQ l_month.

Read only

Former Member
0 Likes
5,056

Hi

Try this FM OIUH_FORMAT_DATE for validatation.

e.g.

1. Give input as

FORMAT MM-YYYY

INPUT_DATE 200912

OUTPUT is :

FORMAT MM-YYYY

INPUT_DATE 200912

Export parameters Value

OUTPUT_DATE 12-2009

2. Input :

FORMAT MM-YYYY

INPUT_DATE 200913

OUTPUT is :

FORMAT MM-YYYY

INPUT_DATE 200913

Export parameters Value

OUTPUT_DATE <Returns space>

Regards,

Raju.

Read only

Former Member
0 Likes
5,056

Try ABGRPERIOD

Regards

Shashi

Read only

Former Member
0 Likes
5,056

Hi,

Check SMON.

Month MMYYYY

Read only

Former Member
0 Likes
5,056

hi,

data element SMON will allow to enter till 12 .

thanq,

rajesh.k

Read only

Former Member
0 Likes
5,057

Try SPMON

format YYYYMM.

Regards,

Shailaja