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

Need a new customer exit variable

Former Member
0 Likes
683

Hi,

I need to create a new customer exit variable that defaults to the current month/year in the format mm/yyyy. It should be be a mandatory, single value entry. Any help would be greatly appreciated. Thanks!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
653

Hi

Where do you need to do it?

Anyway:

DATA: PERIOD(7) TYPE C.

WRITE: SY-DATUM+4(2) TO PERIOD(2),
            '/',                       TO PERIOD+2(1),
            SY-DATUM(4)      TO PERIOD+3(4).

Max

Hi,

I need to create a new customer exit variable that defaults to the current month/year in the format mm/yyyy. It should be be a mandatory, single value entry. Any help would be greatly appreciated. Thanks!

3 REPLIES 3
Read only

Former Member
0 Likes
654

Hi

Where do you need to do it?

Anyway:

DATA: PERIOD(7) TYPE C.

WRITE: SY-DATUM+4(2) TO PERIOD(2),
            '/',                       TO PERIOD+2(1),
            SY-DATUM(4)      TO PERIOD+3(4).

Max

Read only

0 Likes
653

I don't really follow what you mean when you say 'Where do I need it'? I tried to assign you points, but I got an error message. I will retry. Thanks for your help and quick response!

Read only

0 Likes
653

Hi

Excuse me: 'Where do you need it' means in which exit you've to place it.

Max