Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Performance issue while deleting Work center from CR02.

Former Member
0 Likes
1,553

While trying to delete a work center(ARBPL) from T-Code CR02, the time taken is around an hour or so. Was not able to find any related SAP notes for the same. Any help would be appreciated!!!

SAP ECC 6.0

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,482

Thanks for your quick responses. I did run ST05 and SE30. It seems max time is taken on two select queries.

In include LCRA0F25

  SELECT SINGLE * FROM AFRU WHERE ARBID = OBJID_CRHD.

  IF SY-SUBRC = 0.

    FLG-ARBPL_USED = KREUZ.

    EXIT.

  ENDIF.

  SELECT SINGLE * FROM CATSDB WHERE ARBID = OBJID_CRHD.

  IF SY-SUBRC = 0.

    FLG-ARBPL_USED = KREUZ.

    EXIT.

  ENDIF.

Gaurav: There is no BADI or enhancement spot being used.

Will run STAD and ST12 today and post findings soon. Thanks for this info.

9 REPLIES 9
Read only

Private_Member_49934
Product and Topic Expert
Product and Topic Expert
0 Likes
1,482

It's very unlikely that there are performance problem due to standard sap. One hour for deleting one entry might not be due SAP standard code.

Check if any exit or Badi is activated for the transaction. One I faced such a situation where inside an exit a select was done with FOR ALL ENTRIES and the  table used for for all entires was initial.

Such things might be causeing problem in your system.

Read only

Former Member
0 Likes
1,482

Use transactions SE30 or ST05 analyze in which statements you have problem in performance.

Read only

yuri_ziryukin
Product and Topic Expert
Product and Topic Expert
0 Likes
1,482
Read only

HermannGahm
Product and Topic Expert
Product and Topic Expert
0 Likes
1,482

Hi,

get the STAD record as a start for you analysis. Then take traces ...

Kind regards,

Hermann

Read only

Former Member
0 Likes
1,483

Thanks for your quick responses. I did run ST05 and SE30. It seems max time is taken on two select queries.

In include LCRA0F25

  SELECT SINGLE * FROM AFRU WHERE ARBID = OBJID_CRHD.

  IF SY-SUBRC = 0.

    FLG-ARBPL_USED = KREUZ.

    EXIT.

  ENDIF.

  SELECT SINGLE * FROM CATSDB WHERE ARBID = OBJID_CRHD.

  IF SY-SUBRC = 0.

    FLG-ARBPL_USED = KREUZ.

    EXIT.

  ENDIF.

Gaurav: There is no BADI or enhancement spot being used.

Will run STAD and ST12 today and post findings soon. Thanks for this info.

Read only

HermannGahm
Product and Topic Expert
Product and Topic Expert
0 Likes
1,482

Hi,

how much percentage of the total run time is spent on these selects? (look it up in SE30).

For AFRU:

Make sure index AFRU~3  on columns MANDT, ARBID is active (created) on your DB.

For CATSDB:

Make sure index CATSDB~6 on columns MANDT, ARBID is active (created) on your DB.

Use SE14 to activate the indexes (if they don't exist on your DB).

Kind regards,

Hermann

Read only

0 Likes
1,482

Hi

Check the SAP note 539564

Read only

yuri_ziryukin
Product and Topic Expert
Product and Topic Expert
0 Likes
1,482

He can also do Explain in ST05 for both statements

And mention the numbers that one can see in ST05 statement summary.

Read only

Former Member
0 Likes
1,482

Hi..

Thanks guys  we have updated the index and now its working fine