Skip to Content
0
Former Member
Aug 21, 2007 at 11:05 AM

bdc

13 Views

hi

i have to upload only 2 field in a modified transaction ZREC3 which is modified from tr FBZ1 can anyone tell me where is the problem when i execute my report it shows me changed value but when i go to transaction it shows no changes

REPORT ZBDC_L2.

data : begin of itab occurs 0 ,

XBLNR LIKE BKPF-XBLNR ,

KONTO LIKE RF05A-KONTO,

end of itab.

data : bdcdata like bdcdata occurs 0 with header line.

data : messtab like bdcmsgcoll occurs 0 with header line.

ITAB-XBLNR = 'PRASHANT-III'.

ITAB-KONTO = '24541612'.

APPEND ITAB.

LOOP AT ITAB.

BDCDATA-PROGRAM = 'SAPMF05A'.

BDCDATA-DYNPRO = '0103'.

BDCDATA-DYNBEGIN = 'X'.

APPEND BDCDATA.

CLEAR BDCDATA.

BDCDATA-FNAM = 'BKPF-XBLNR'.

BDCDATA-FVAL = 'prashant-III'.

APPEND BDCDATA.

CLEAR BDCDATA.

BDCDATA-FNAM = 'RF05A-KONTO'.

BDCDATA-FVAL = '24541612'.

APPEND BDCDATA.

CLEAR BDCDATA.

BDCDATA-FNAM = 'BDC_OKCODE'.

BDCDATA-FVAL = '=BU'.

APPEND BDCDATA.

CLEAR BDCDATA.

BDCDATA-FNAM = 'BDC_OKCODE'.

BDCDATA-FVAL = '/11'.

APPEND BDCDATA.

CALL TRANSACTION 'FBZ1' using BDCDATA mode 'A' update 'N' messages into messtab.

REFRESH BDCDATA.

ENDLOOP.