Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8623

Re: Report with corresponding tables for different maintenance views going to time-out error

$
0
0

Hi Kumar,

 

I changed the select statement. Try to add maximum primary keys where conditions in the select statement. declare your internal tables with the following fields in the select statement and donot use corresponding fields of in the select statement.

 

Try to see the relations on the table  and prepare your final internal table and display it.

 

  • SELECT spras
  •           zschl
  •           ztext
  • FROM tkzslt INTO t_tkzslt
  • WHERE spras EQ sy-langu.
  • SELECT KVEWE
  •         KAPPL
  •         KSCHL
  •         KOZGF FROM t685
  • INTO TABLE t_t685.
  • IF t_t685 IS NOT INITIAL.
  • SELECT * FROM T685T INTO TABLE t_t685t
  • FOR ALL ENTRIES IN t_t685
  • WHERE spras eq sy-langu
  • AND kschl = t_t685-kschl.
  • SELECT   DATAB
  •           DATBI
  •           KSCHL
  •           VARFLD001
  •           VARFLD002
  •           VARFLD003
  •           VARFLD004
  •           VARFLD005
  •           KBETR
  •           KONWA FROM konx INTO TABLE t_konx
  • FOR ALL ENTRIES IN t_t685
  • WHERE kschl t_t685-kschl.
  • ENDIF.
  • SELECT  KVEWE
  •          KAPPL
  •          KALSM FROM t683
  • INTO TABLE t_t683.
  • IF t_t683 IS NOT INITIAL.
  • SELECT * FROM t683u
  • INTO TABLE t_t683u FOR ALL ENTRIES IN t_t683
  • WHERE kalsm = t_t683-kalsm.
  • ENDIF.
  • SELECT abgsl slerg FROM tkkaa INTO TABLE t_tkkaa.
  • **SELECT STATEMENT FOR TKKAX AND TKKAY
  • SELECT kokrs zlnid FROM tkkax INTO TABLE t_tkkax.
  • IF t_tkkax IS NOT INITIAL.
  • SELECT * FROM tkkay INTO TABLE t_tkkay
  • FOR ALL ENTRIES IN t_tkkax
  • WHERE  spras EQ SY_LANGU AND
  •                    kokrs = t_tkkax-kokrs.
  • ENDIF.
  • **SELECT STATEMENT FOR TKB1A.
  • SELECT BLTYP
  •             BLART
  •             aprof FROM tkb1a INTO TABLE t_tkb1a.


I hope this will be helpful.



Thanks & Regards,

Raghunadh Kodali.


Viewing all articles
Browse latest Browse all 8623

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>