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

Create Quote referring Another quote,

I have a typical scenario,

I have Quotation1 and I create Quotation2 referring Quotation1.

If the Quotation2 is rejected through status, then i Need to create another Quotation3, referring Quotation1

I am facing issue while creation Quotation3 as the items are already copied to Quotation2 and system is not allowing to create Quotaion3 referring Quotation1.

Suggest if there is any solution for this.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 18, 2011 at 12:14 PM

    quotation gets status "quotation accepted" for the items and due to this it is not

    possible to create another follow-up order to this quotation.

    Please check the below code

    LCRM_QUOTATION_ECU03

    CRM_QUOTATION_AFTER_COPY_EC

    • Is the target item a quotation?

    ...

    IF sy-subrc = 0.

    ls_status_wrk-process = gc_process-complete.

    ELSE.

    ls_status_wrk-process = gc_process-accept_quotation.

    ENDIF.

    ...

    • Change the status to "Quotation accepted" - the checks

    ...

    • Change the status to "Quotation accepted" - the checks

    • are not necessary at this place (i.e. Before Change and

    • Status checks) - the After Change, however, will be

    ls_status_wrk-guid = lv_item_guid.

    perform exec_process using ls_status_wrk.

    ...

    later it checks if its quote it sets to completed.

    • Was it a quotation?

    call function 'CRM_STATUS_CHECK'

    exporting

    objnr = lv_item_guid

    status = gc_status-quotation

    exceptions

    object_not_found = 1

    status_not_active = 2

    others = 3.

    check sy-subrc = 0.

    for reference check note 1141403.

    You need to do modification here if you want to change the status to not to be changed to Completed.

    and you can refer it again.

    May be this will help.

    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.