Skip to Content
-2
May 02, 2018 at 09:50 PM

WAIT UPTO COMMAND ISSUE

203 Views

Hi All,

I have written ABAP program which will trigger the info package (multiple times) with different selections by using the function module "BAPI_IPKG_START".

code :

LOOP AT IT_ABC Assigning <WA_ABC>.

IT_ABC2[ ] = P_IT_ABC[ ].

DELETE IT_ABC2 WHERE SIMULATION_ID NE <WA_ABC>-SIMULATOIN_ID

CALL FUNCTION 'ENQUEUE_E_TABLE'
EXPORTING
MODE_RSTABLE = 'E'
TABNAME = 'ZDEMO'

DELETE FROM ZDEMO WHERE SIMULATION_ID IS NOT NULL.
CALL FUNCTION 'DB_COMMIT'.

MODIFY ZDEMO FROM TABLE IT_ABC2.
CALL FUNCTION 'DB_COMMIT'.

CALL FUNCTION 'DEQUEUE_E_TABLE'
EXPORTING
MODE_RSTABLE = 'E'
TABNAME = 'ZDEMO''.

CALL FUNCTION 'BAPI_IPAK_START'

EXPORTING
INFOPACKAGE = P_IPACK
* JOBNAME =
* IMPORTING
* REQUESTID =
TABLES
RETURN = LV_RETURN.

WAIT UP TO 200 SECONDS.

CLEAR IT_ABC2[ ].

ENDLOOP.

But we are getting performance issue due to statement - wait upto 200 seconds.

once the Infopackage is triggered and completed , the next info package will start after 200 seconds. The info package ran 80 times for different selection and hence 200 seconds is causing delay and program is taking 4-5 hours to complete.

80 times * 200 seconds = 16000 seconds = 4 - 4:45 hours

Please let me know if there are any other way by which I can improve my performance.

Thanks,

Abhimanyu Sharma.

Attachments

capture1.jpg (19.6 kB)