Quantcast
Channel: SCN: Message List - ABAP Development
Viewing all articles
Browse latest Browse all 10425

Re: back ground jod getting cancelled-database error

$
0
0

  hi Edgar,

 

below is the code & taking too much of time..

 

   SELECT lifnr
                banks
                bankl
                bankn
                FROM lfbk
                INTO CORRESPONDING FIELDSOFTABLE gt_lfbk 

                FORALL ENTRIES IN gt_lifname
                WHERE lifnr EQ gt_lifname-lifnr.

  IF gt_lfbk[] ISNOTINITIAL.

    LOOPAT gt_lfbk ASSIGNING<ls_lfbk>.

     CALLFUNCTION'CONVERSION_EXIT_ZBNKN_OUTPUT'
          EXPORTING
            input  = <ls_lfbk>-bankn
          IMPORTING
            output = <ls_lfbk>-bankn1.

    ENDLOOP.

  ENDIF.

  IF gt_lfbk ISNOTINITIAL.

    SELECT
          a~lifnr             "Vendor number
          a~land1             "Country Key
          a~name1             "Name1
          a~name2             "Name2
          a~adrnr             "Address Number
          a~ktokk             "Account Group
          a~sperr             "Central posting bloc
          a~stcd1             "Tax Number1
          a~stcd2             "Tax Number2
          a~stceg             "VAT Registration No.
          b~banks             "Bank country key
          b~bankl             "Bank keys
          b~bankn             "Bank Account Number
          c~bukrs             "Company Code
          c~erdat             "Created Date
          c~ernam             "Created by
          c~sperr             "Posting block for company code
          FROM lfa1 AS a
          INNER JOIN lfbk AS b
          on a~lifnr = b~lifnr
          INNER JOIN lfb1 asc
          on a~lifnr = c~lifnr
          INTO CORRESPONDING FIELDSOFTABLE gt_lfbk_fd
          FORALL ENTRIES IN gt_lfbk
          WHERE bankl EQ gt_lfbk-bankl
          AND land1 EQ p_land1
          AND a~sperr EQ''.

 

i am using the function module "conversion_exit_zbnkn_output" to decrypt the bank account number here the time is taking too much(around 9000 records are looping here) and while i am checking in debugging almost it's taking 70 minutes of time and then after executing this query in the next select the session is terminated because of timeout (in debugging).i think the problem is in the next select(FAE)but for the other variant which have the same no.of records but working fine.

 

if u have any solution kindly provide me the solution ...

 

Thanks,

Bharath.

 

 

 

 

 

 

 


Viewing all articles
Browse latest Browse all 10425

Trending Articles



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