Skip to Content

Triggering Service Order's Based on Contract Validity Dates Using Action Profile

Dear All,

We have a requirement where based on the contract validity dates the service order's need to get triggered at the back end, I have used using action profile method call copy_document for the same. Following is the requirement which is given below

1) If Contract Validity Date is 1 year- Trigger All 4 Service Order's

2) If Contract Validity Date is 9months- Trigger 3 Service Order's

3) If Contract Validity Date is 6 Months- Trigger 2 Service Order's

4) If Contract Validity Date is 3 Months- Trigger 1 Service Order.

I am pasting the screen shot of my contract first created in SAP CRM Web Ui with all 4 service order's which got triggered using action profile

Following configurations done.

Created action profile, assigned start condition to the same and assigned the action profile to my contract. In the container  I have selected status profile, with this container all 4 service order's get triggered, however which container should I select so that if the contract validity is say 9 months then only 3 Service Order's need to get triggered and if the contract validity is 6 months then the contract should trigger only 2 Service Order's as mentioned above.

Following are the action profile settings which I have made

The method call used is copy_document

Kind Regards


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 06, 2013 at 02:31 PM

    Hi Atul,

    Unfortunately "Date" fields are not available in SAP standard BOR object BUS2000112. So you'll have to add them yourself as mentioned in the following OSS note (point 6):

    Note 670544 - FAQ: Actions

    And by the way: why do you generate 4, then 3, then 2... service orders at the same time? Why don't you use a condition that allows you to create a new service order every 3 months until the contract ends for example?



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      I just noticed that I said something misleading regarding date fields. I'm sorry.

      Indeed the oss note I gave you is relevant for all the fields except date fields. They are not present in the BOR object, but that's normal: date fields are an exception. They don't need to be there at BOR object level to be used as condition criteria... Because they come from the date profile that you fill in when creating you're action profile definition.



  • Sep 09, 2013 at 06:51 AM

    Hi Atul,

    Other than using the workflow type for checking the schedule or start conditions , you can also use the BADI based check.

    In the last screen shot under "Action determination and action merging" you can set this in the box where you have setup "Workflow condition" .

    Then you have to implement the badi : EVAL_SCHEDCOND_PPF with a filter value. Here you can right your own logic to evaluate whether the action should get scheduled or not.


    Add comment
    10|10000 characters needed characters exceeded