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

Badi to set the defualt priority for repair tickets

Hi,

My requirement is, when the IC agent saves the repair ticket the priority filed should get set automatically to some value based on the business logic. For this i am trying to use Prepare method of the ORDER_SAVE badi. But unfortunately it's not getting triggered when i save the repair tickect in WEB UI.

Friends, is there any othor Badi for this? or the way i am trying to proceed is wrong. Your help is greatly apriciated.

Thanks,

Ravi

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 07, 2008 at 12:05 PM

    Hello Ravi,

    You can change this attribute on EH_SAVE method thats executed when you pressing SAVE button.

    Good Luck

    Eli Steklov

    Please Reward Points if it Helped 😊

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Ravi,

      You don't need to do Repair !!!

      Copy this screen to your BSP Application Inherit Classes and make changes on your classes,

      and replace standard page with your page .

      You should be familiar with ICWC programing technic to do this.

      if BADI ORDER_SAVE not working I don't know any other BADI 😔

      Good Luck

      Eli Steklov

  • author's profile photo Former Member
    Former Member
    Posted on Jul 08, 2008 at 09:51 AM

    Hello,

    Use IF_EX_ORDER_SAVE~CHECK_BEFORE_SAVE of the badi order_save. This should definitely work since I have used it to save the priority for a one order object and it is working fine for me.

    dont forget to use CRM_ACTIVITY_H_MAINTAIN_OW to set the priority at the very end of the method.

    Regards,

    S Sarma.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Sarma,

      Thanks for your update. Yes today i tried to trigger the ORDER_SAVE badi and it's working. Now i need to set the priority field based on business logic.

      I need to get the customer classification (like gold, silver,white e.t.c) and the code attached to the category2 filed from Web UI. Based on these two values i decide the priority and set it.

      I tried to read the order with CRM_ORDER_READ but it seems it doesn't fetch this data. So i am checking if there are any tables or classes which contains the Customer clasification and code assigned to category field.

      Could you please guide me...?

      Thanks & Regards,

      Ravi

  • author's profile photo Former Member
    Former Member
    Posted on Jul 10, 2008 at 12:42 PM

    Hi,

    Every category has a reason code attached to it in the category modeller. The reason code is configured in the SPRO with the code code gruppe and katalogue.

    You need to get the reason code for gold silver etc.

    In your badi in the method you will first perform a CRM_ORDER_READ to read the subject set (ET_SERVICE_OS)and from there you will get the reason codes for the categories you need to look for the Ref_kind = 'A'. In the osset you will have the table. Study the entries of this table one of the entries would be referring to the code codegruppe katalogue of gold silver etc.

    Once you have done that you can update the priority by using the FM CRM_ACTIVITY_H_MAINTAIN_OW. here you will have to fill the structure IS_ACTIVITY_H_COM and CT_INPUT_FIELD_NAMES and set IV_EXTERNAL_CALL = 'X'.

    If you are using more than one categories than you will have to back trace to category2 from the last category you entered. For example if you have entered Category 3 before saving you will have to get the category2 from category3 and then look for the reason code details of category 2.

    Hope this helps.

    Regards,

    S Sarma.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Sarma,

      After performing the CRMD_ORDER_READ i can find the entries in the table ET_SERVICE_OS or directly in the table ET_SUBJECT.

      For example the etries are like this

      KATALOGART - C

      CODEGRUPPE - A003

      CODE - A002

      KATALOGTXT u2013 Damage

      SCHLAGWORT u2013 Damage

      GROUPTEXT u2013 Repair

      KURZTEXT u2013 O

      CODETEXT u2013 O

      CATALOG_TYPE u2013 C

      I believe KATALOGART , CODEGRUPPE and CODE tells us the code assigned to the Category2 field and the description of the Category1.

      Could you please let me know with the above info how to find the code asigned to it and the description of the Category1 field?

      This is very critical to me please help.

      Regards,

      Ravi.

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.