cancel
Showing results for 
Search instead for 
Did you mean: 

Create a new "actual day variable" for 0CALDAY

Former Member
0 Kudos

Hello,

i want to create a new "actual day variable" for InfoObject 0Calday. The variable should have the same functions like 0DAT.

How can I create this? Coding for CMOD?

Thanks and regards,

Heiko

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

As I understand your question properly, You need a dynamic variable which will give the actual date i.e current date.

create a variable for 0calday with single value processing type customer exit. reay for input deselect.

in cmod

When 'vARIABLE FOR CALDAY'.

CLEAR L_S_RANGE.

L_S_RANGE-SIGN = 'I'.

L_S_RANGE-OPT = 'EQ'.

L_S_RANGE-LOW = SY-DATUM.

APPEND L_S_RANGE TO E_T_RANGE.

Regards,

Ranganath.

Former Member
0 Kudos

Hello Ranganath,

thank's for your message. The solution is perfect.

Kind regard's,

Heiko

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Check if there exist any sap exit variable already activated for 0calday to give the current day, otherwise you can activate current day sap exit variable.

If you don't find any variable then you can go for the above suggested code.

Regards,

Durgesh