Application Development 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: 

Uploading data from legacy system to sap system

Former Member
0 Kudos

Hi,

Uploaded 10 data’s in Direct Input mtd—it is successful; while the same no. of records are uploaded using call transaction, then it fails—what is the reason for it?

points will be awarded.

3 REPLIES 3

Former Member
0 Kudos

u could have done some mistakes in the coding...

just paste ur coding... i will check it...

Former Member
0 Kudos

hi

kavitha

after getting records in internal table

use loop at stmt

between loop and end loop you need to clear

BDCDATA internal table (both header and body)

eg.

LOOP AT IT_MAT.

CLEAR BDCDATA.

CLEAR BDCDATA[].

perform bdc_dynpro using 'SAPLMGMM' '0060'.

perform bdc_field using 'BDC_CURSOR'

'RMMG1-MTART'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'RMMG1-MBRSH'

IT_MAT-MBRSH.

perform bdc_field using 'RMMG1-MTART'

IT_MAT-MTART.

perform bdc_dynpro using 'SAPLMGMM' '0070'.

perform bdc_field using 'BDC_CURSOR'

'MSICHTAUSW-DYTXT(02)'.

perform bdc_field using 'BDC_OKCODE'

'=ENTR'.

perform bdc_field using 'MSICHTAUSW-KZSEL(01)'

'X'.

perform bdc_field using 'MSICHTAUSW-KZSEL(02)'

......................................

......................

CALL TRANSACTION 'MM01' USING BDCDATA MODE 'A'

MESSAGES INTO IT_MESSTAB.

ENDLOOP.

plz reward points if useful

regards

Hemasekhara Reddy

0 Kudos

Hi Kavitha,

You might have trying to overwite the data in SAP.

Thanks.

Note:Reward Points if you find useful.