Quantcast
Channel: SCN : Unanswered Discussions - ABAP Development
Viewing all articles
Browse latest Browse all 8768

Time Out in MB_MIGO_BADI

$
0
0

Hi all,

 

We are using badi MB_MIGO_BADI in order to display additional detail Sub screens.

 

In our implementing class we have this piece of code:

 

Method: IF_EX_MB_MIGO_BADI~PBO_HEADER:

 

During PBO we go and check the document for the presence of certain "Movement Type"

based on the result we initiate the display of the extra tab.

 

* i_action come from method IF_EX_MB_MIGO_BADI~MODE_SET .

  DATA: rg_bwart TYPE RANGE OF godefault_tv-bwart .
  APPEND 'IEQ102' TO rg_bwart .
  APPEND 'IEQ541' TO rg_bwart .
  APPEND 'IEQ301' TO rg_bwart .

* Display mode .
* A03 = Cancellation
* A04 = Display
  DATA: rg_action_d TYPE RANGE OF godefault_tv-action .
  APPEND 'IEQA03' TO rg_action_d .
  APPEND 'IEQA04' TO rg_action_d .

 

DATA: it_mseg TYPE TABLE OF mseg .

 

* Check for display mode
  IF i_action IN rg_action_d .
    SELECT * INTO TABLE it_mseg
    FROM mseg
    UP TO 1 ROWS
    WHERE
      mblnr EQ st_mkpf-mblnr AND
      mjahr EQ st_mkpf-mjahr AND
      bwart IN rg_bwart AND
      sobkz EQ 'Q' .
  ENDIF .
 
Some time we are getting time out for the select statement.

 

The number of lines in given document is less then 10 rows.

 

Can we improve on the select statement ? is the problem is in programing ? did you encounter similar problems ?

 

Thank you in advance for any response.

 

Regards.


Viewing all articles
Browse latest Browse all 8768

Latest Images

Trending Articles



Latest Images

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