Skip to Content

Date profile- How to create one?

It is very important in any transaction in SAP CRM to have a date profile. Amongst other reason, it is what decides the validity of a transaction.In this document, I will try to explain step by step the necessary action that needs to be taken to set up a simple date profile. Lets take an example to understand this feature.Lets assume that a service request needs to be assigned to an employee within 1 hour of creation of the request.So, the “date/time of assignment=  start date +1hour”.

Note: A lot of standard date profile s are already present but in some situation one may need to create a new one.

We need to create the rule based on our requirement. Let us first split out requirement into two halves.

First half is start date, which is nothing but the current time (todays date and time) and the second half is “1 hour”. We get our result by adding these two variables.

Let us go to the following spro path


Now create a new entry (say, ZTEST_RULE)  and enter some  description (say,  DEMO RULE)



Save the entry and double click on the newly created rule.The current version of the rule is displayed. Double click again on the version to open the xml editor.


Here in this code if you look , we have defined our requirement in a simple formula

RESULT=SRV_CUST_BEG + ZCONSTANT , where SRV_CUST_BEG is nothing but a standard date type which denotes start time.To view this search for SRV_CUST_BEG in date types.


ZCONSTANT is a custom defined duration. (Again click on new entry to create a new duration type with meaningful description)


Now the since our rule is built, it needs to be associated with a date profile. To create a date profile again follow the spro path described below.


Click on new entry to create a date profile with meaningful description.


Enter the reference object as SYSTEM. Details about reference object can be found at


Now, search for the newly created date rule. (ZTEST_RULE in this case)


Now enter all the date types  used in our case by clicking on new entry button.


Now enter the duration type as shown below.


Our date rule is built now on lines of our requirement.All we need to do now is to insert this date profile to our desired transaction type.

You must be Logged on to comment or reply to a post.
  • Thank you very much Mr. Aneesh Biswas for sharing your knowledg. It is very much useful information. However, please explain a little more clearly about Date rule creation.  After creating new date rule and double clicking on it, system  displayed XML editor but there is no default coding as you explained.  Please clarify my concern if possible.

    If possible, please mail me the clarification to

    Awaiting for your reply. 

    • Hi Maddy,

      if you meant to say the xml part. The best thing would be to check some standard ones...there are many already ....standard rules /profiles provided by SAP.... you can copy one that suites your need and understand some basic xml...then forging it to ur requirememnt wont be so difficult....

      hope this helps!



    • Hey Aneesh,

      The document is really helpful, one small observation for the service request transaction type if you need to add any customized  date type the date profile needs to be added to the item category

      I did try to assign the date profile to the customized service request which is the transaction type, however the z customized date type did not show up

      However when I did assign the date profile to the item category in case of service requests the z date types showed up in the date assignment block

      Hope this helps

      Kind Regards


  • Hey Aneesh,

    This was real handful..I faced the same trouble..getting in the loop of configs for date profile...Now things are much clear...some bit of xml scripting is required though and in complex scenarios a tech consultant may be needed.

    • Hi Aneesh,

      Thank you for your prompt reply.  I think you created a new date rule without copying, didn't you?

      The reason why i got confused is, i was just thinking that which standard date rule you copied. But i think you did not copy any standard rule. You wrote the xml code, am i right?

      Please correct me if i am wrong in understanding you.



  • Hi Mr. Aneesh Biswas,

      Thanks for sharing your knowledge. It is helpful for me but little bit of explanation on each screen shot or steps would be more useful for beginners.



  • Dear Aneesh,

    The document is really good, it has clarified my doubts. Thanks for sharing.

    One small clarification, while creating the date profile, in Date types you assigned the Date rule (TODAYTIME) created by the standard SAP and not the one you created (ZTEST_RULE). Could you please more details? If this is the case what is the reason for creating new Date Rule?


  • Hi Aneesh,

    Is it possible to define date rule based on the status of Transaction type?

    For example we want to capture "Implementation Date" once its status is "Completed". Is that possible to achieve it?


    Piyush Jain