Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem in BDC for VD51

Former Member
0 Likes
680

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.

3 REPLIES 3
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
594

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.

Read only

former_member189779
Active Contributor
0 Likes
594

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

Read only

0 Likes
594

Solved by giving 1 s delay...