Skip to Content
0
Former Member
Aug 25, 2009 at 03:34 PM

How to put a report which contains code for BDC in background

84 Views

Hello Experts ,

Please provide your valuable opinions on following issue,

My BDC execution is taking longer time and it gives time out error. To avoid this problem i have created a separate report which l contains the BDC code (Call transaction ) and i have put this report for background execution. But upon doing this My BDC code is not performing the transaction call which it was performing when it was executed individually. In sm37 it shown the job that i am creating but nothing is actually happening as a result of transaction call.

The code that i have written is :

RFC code

SUBMIT ZREPORT AND RETURN.

RFC end

Z_REPORT .

PERFORM open_job.

PERFORM get_print_parameters.

PERFORM job_submit. here in Submit i have specified the another report name(zbdcreport) which contains the actual logic for bdc

PERFORM job_close.

Report END.

zbdcreport

The call transaction is as follows :

( CALL TRANSACTION TCODE USING BDCDATA

MODE 'N' "CTUMODE "N

UPDATE 'S' "CUPDATE "S

MESSAGES INTO MESSTAB .)

end zbdcreport

Can anybody provide the reason for the error .

Regards,

Uma