2012 Mar 20 2:46 PM
Hi All,
We have created BDC report program for transaction VD51.When we upload small amount of data its working fine.
But for larger data say 400 - 500 records, its not working properly.The problem is only few records are updating at a time so we have to run this program for 15 times to upload 500 records.
In program i am using synchronous mode(S) and also giving 0.02 seconds delay.
Can you please suggest me any alternative methods?
Thanks in advance,
Greeshma.
Hi All,
We have created BDC report program for transaction VD51.When we upload small amount of data its working fine.
But for larger data say 400 - 500 records, its not working properly.The problem is only few records are updating at a time so we have to run this program for 15 times to upload 500 records.
In program i am using synchronous mode(S) and also giving 0.02 seconds delay.
Can you please suggest me any alternative methods?
Thanks in advance,
Greeshma.
2012 Mar 20 2:59 PM
Why are you providing delay ? Why not use asynchronous mode ? Check if the code is written properly ( recorded ), test it with one record in 'A' mode.
2012 Mar 20 4:45 PM
Use Call Transaction method.
DATA: wt_bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE.
* messages of call transaction
DATA: wt_messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
CALL TRANSACTION 'VD51' USING wt_bdcdata
MODE wv_mode
MESSAGES INTO wt_messtab.
get the messages looping message table...
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
id = it_messtab-msgid
lang = it_messtab-msgspra
no = it_messtab-msgnr
v1 = it_messtab-msgv1
v2 = it_messtab-msgv2
IMPORTING
msg = g_msg
EXCEPTIONS
OTHERS = 0.
Try changing mode to A during run time to test few records if your recording is correct.
Also refer http://help.sap.com/saphelp_erp60_sp/helpdata/en/fa/09715a543b11d1898e0000e8322d00/content.htm
2012 Apr 04 2:28 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |