cancel
Showing results for 
Search instead for 
Did you mean: 

Badi to set the defualt priority for repair tickets

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Eli Steklov,

Thanks for your quick response.I looked into the method EH_ONSAVE you suggested. It's an event method in BSP and to edit this we need Acees key.

If i am not wrong one way of achieving is through this BSP events and second way is Through Badi if any Badi is provided.

Do you know any Badi which gets triggred on Saving the repair ticket so that i can go for Badi option with out the use of Acees Key.

Please suggest.

Thanks,

Ravi

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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