Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

problem with time_out error

Hi guys,

I have this code below and I am getting a time_out error:

LOOP AT i_vbfa.

SELECT SINGLE buchk FROM vbuk INTO v_buchk

WHERE vbeln = i_vbfa-vbeln

AND buchk = 'A'.

IF sy-subrc <> 0.

DELETE i_vbfa INDEX sy-tabix.

ELSE.

SELECT SINGLE vbtyp FROM vbrk INTO v_vbtyp

WHERE vbeln = i_vbfa-vbeln.

IF v_vbtyp NE space.

DELETE i_vbfa INDEX sy-tabix.

ENDIF.

ENDIF.

ENDLOOP.

I have a select single within the loop, will it cause trigger the error? why? Thanks

Tags:
replied

Hi

I donot have much idea, but u can do SQL Trace using T.code ST05.

in that you will get what time each select statement is taking and some other details also.

Regards

Mukesh.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question