cancel
Showing results for 
Search instead for 
Did you mean: 

Defining date rule functionality in date rule ?

former_member198180
Active Participant
0 Kudos

Hi Team,

I am new of XML coding for defining date rule, my requirement is if user enter date suppose today date is less than previous date it is not allowed.for this how to define date rule and XML doing.please help.

First time it is empty, after that user enter any date is less than today date should not allow..for this how to define date rule.

date  rule type - SRV_CUST_BEG.

Thanks & Regards

Kalpana

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member198180
Active Participant
0 Kudos

Hi Team,

Could you please help here.

Thanks &Regards

Kalpana

Former Member
0 Kudos

Hi Kalpana,

I think below link can help you in understanding the XML around date rule.

Creation of Date rule using XML rules. - CRM - SCN Wiki

Also, you can call your own custom Function module in XML to populate the dates.

You can explore this possibility as well if the date determination logic is complex.

Use XML as

<?xml version="1.0"?>

<SAPTimeRule>

  <ABAPTimeRule function="FUNCTION MODULE NAME"/>

</SAPTimeRule>

Thanks,

Ravi

former_member198180
Active Participant
0 Kudos

Hi Ravi,

Thanks for your reply.Could you please share any function module ? i.e if user enter less than today date it is not allowed,to allow today and future date only.

Thanks & Regards

kalpana

former_member198180
Active Participant
0 Kudos

Hi Team,

Still i am looking help here..Could you please help.

could you please share the logic..i am new to XML coding

User enter request start date  should not less than today date and future date.

Date profile - SRV_CUST_BEG

example-1(correct scenario)

request start  date - today date

Request end date - future date

then it should work only

example(wrong scenari)

request start  date -  yesterday date

Request end date - future date

Now its not allowed ...

Please help here.

Thanks & Regards

Kalpana