Hi Javed ,
You are right I tried to debug it the way you mentioned already so when it is encountering BDC statement inside the Functional module it is taking quite long time to process the transaction 'VL09' and then control comes back to FM with sy-subrc = 0 .
When I check in SOAP UI there is only message "error getting response timeout exception is shown",which clearly says that connection is fine and issue is in BDC code which as below , can you suggest me to optimize the code to decrease the runtime.
wa_bdcdata-program = 'RVV50L09'.
wa_bdcdata-dynpro = '1000'.
wa_bdcdata-dynbegin = 'X'.
append wa_bdcdata to i_bdcdata.
wa_bdcdata-fnam = 'BDC_OKCODE'.
wa_bdcdata-fval = '=ONLI'.
append wa_bdcdata to i_bdcdata.
wa_bdcdata-fnam = 'I_VBELN-LOW'.
wa_bdcdata-fval = lv_delivery. "'8891963'.
CALL TRANSACTION 'VL09'
USING i_bdcdata
MODE w_mode " 'Q'
UPDATE c_s " ''A'
MESSAGES INTO i_bdcmsgcoll.
LOOP at i_bdcmsgcoll.
MESSAGE ID i_bdcmsgcoll-MSGID
TYPE i_bdcmsgcoll-MSGTYP
NUMBER i_bdcmsgcoll-MSGNR
INTO description
WITH i_bdcmsgcoll-MSGV1
i_bdcmsgcoll-MSGV2
i_bdcmsgcoll-MSGV3
i_bdcmsgcoll-MSGV4.
ENDLOOP.
Many thanks in advance