Skip to Content
author's profile photo Former Member
Former Member

BADI Order_save not updating date

Hi,

I am trying to update one of the date fields in date profile. The scenario is to update this particular date when the Activity is at status 'complete'.

Below is the code I am using for the same, please let me know where I am going wrong.

Code in attachment.

Prasad

BADI.txt.zip (1.5 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on May 14, 2015 at 06:10 AM

    Hello Prasad,

    can you please check if the function module returning sy-subrc = 0.

    "CRM_APPT_MAINTAIN_SINGLE_OW"

    Br,

    Navn

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 14, 2015 at 06:21 AM

    I think it would not update because the order is already set to COMPLETE. You might have to set the date before the status is complete by trying to use some other status to track the progress.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 15, 2015 at 10:45 AM

    Hi Prasad,

    Can you try to use the same code in the CRM_STATUS_BADI - After change method instead of the Order Save badi, and see if it works there.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.